/* ==========================================================================
   Variables y Configuración General
   ========================================================================== */
:root {
    --bg-dark: #0C1940;
    --bg-card: #0F2259;
    --primary: #32BAD9;
    --primary-light: #30C8D9;
    --text-light: #F2F2F2;
    --text-muted: #a0aec0;
    --font-family: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Typography & Components */
h1,
h2,
h3,
h4 {
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Placeholders para Imágenes */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(15, 34, 89, 0.8), rgba(12, 25, 64, 0.9));
    border: 2px dashed rgba(50, 186, 217, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-align: center;
    padding: 1rem;
    transition: var(--transition);
}

.image-placeholder.sm {
    min-height: 150px;
    margin-bottom: 1.5rem;
}

.image-placeholder:hover {
    border-color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(50, 186, 217, 0.15);
}

.image-placeholder span {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 186, 217, 0.4);
}

.btn-primary-sm {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-dark);
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--text-light);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.navbar {
    background-color: rgba(15, 34, 89, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle,
.hamburger {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 180px 0 100px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    background-color: rgba(50, 186, 217, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(50, 186, 217, 0.2);
}

.hero-cta {
    margin-top: 2rem;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 50px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(50, 186, 217, 0.3);
}

.icon-box {
    background: rgba(50, 186, 217, 0.1);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 100px 0;
}

.history {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mv-box {
    background-color: rgba(15, 34, 89, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.mv-box h4 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 100px 0;
    background-color: rgba(15, 34, 89, 0.3);
}

.service-card {
    background-color: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.service-header {
    margin-bottom: 1.5rem;
}

.percentage {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-top: 0.3rem;
}

.service-list {
    list-style: none;
    margin-top: auto;
}

.service-list li {
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {

    /* Mobile Menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--text-light);
        border-radius: 2px;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        display: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .menu-toggle:checked~.nav-links {
        display: flex;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

/* Contenedor del enlace del logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Control de dimensiones de la imagen del logo */
.logo-img {
    height: 45px;
    /* Ajusta la altura según el diseño de tu archivo */
    width: auto;
    /* Mantiene la proporción original */
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

/* Efecto hover suave (opcional) */
.logo-img:hover {
    opacity: 0.9;
}