/* ================= CONTENEDORES ================= */

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.section {
    padding: 78px 0;
}

.section-light {
    background: #ffffff;
}

.section-soft {
    background: #f8fafc;
}

/* ================= HEADER / NAVBAR ================= */

.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    width: auto;
    height: 54px;
    object-fit: contain;
}

.brand-logo-im {
    height: 58px;
}

.nav-toggle,
.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.nav-toggle span,
.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: #2563eb;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1),
.site-header.nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2),
.site-header.nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3),
.site-header.nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    flex: 1;
}

.nav-menu > a,
.nav-dropdown-toggle {
    position: relative;
    font-size: 0.94rem;
    font-weight: 800;
    color: #24324a;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-menu > a::after,
.nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-menu > a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
    color: #2563eb;
    transform: translateY(-2px);
}

.nav-menu > a.active {
    color: #2563eb;
}

.nav-menu > a:hover::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.dropdown-arrow {
    font-size: 0.78rem;
    color: inherit;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    min-width: 190px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: all 0.25s ease;
    z-index: 1200;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: #24324a;
    font-size: 0.92rem;
    font-weight: 800;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    transform: translateX(3px);
}

/* ================= HERO ================= */

.hero-section {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    padding: 88px 0;
    background: var(--gradient-dark);
    color: #ffffff;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 38px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    width: min(100%, 480px);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(22px);
}

.hero-card img {
    width: min(100%, 330px);
    margin: 0 auto 34px;
}

.hero-card-info {
    text-align: center;
}

/* ================= ENCABEZADOS DE SECCIÓN ================= */

.section-heading,
.section-header {
    max-width: 780px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-label-left {
    margin-left: 0;
    margin-right: auto;
}

/* ================= GRIDS GENERALES ================= */

.services-grid,
.why-grid,
.tech-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ================= CONTACTO ================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 64px;
}

.contact-list {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}

/* ================= FOOTER ================= */

.site-footer {
    background: #030817;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    gap: 44px;
    padding: 74px 0 52px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo img {
    width: 160px;
    height: auto;
    margin-bottom: 22px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-bottom-content {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ================= PÁGINAS INTERNAS ================= */

.about-page,
.mission-page,
.plans-page {
    background: #ffffff;
}

.about-hero,
.mission-hero,
.plans-hero {
    padding: 88px 0;
}

.about-page-layout,
.mission-page-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 70px;
}

.mission-page-layout {
    grid-template-columns: 1.05fr 0.95fr;
}

.about-page-visual,
.mission-page-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.about-page-visual img,
.mission-page-visual img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.about-page-content,
.mission-page-content {
    max-width: 660px;
}

.about-page-text,
.mission-page-text {
    display: grid;
    gap: 20px;
    margin-top: 26px;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 36px;
}

/* ================= PLANES ================= */

.plans-header {
    max-width: 860px;
    margin: 0 auto 48px;
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 28px;
}

.support-section {
    padding: 78px 0;
    background: #f8fafc;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

/* ================= AJUSTE LOGO ESCRITORIO ================= */

@media (min-width: 1025px) {
    .navbar {
        min-height: 104px;
    }

    .brand {
        min-width: 190px;
    }

    .brand-logo,
    .brand-logo-im {
        width: 170px;
        height: auto;
        max-height: 82px;
        object-fit: contain;
        display: block;
    }

    .hero-section {
        min-height: calc(100vh - 104px);
    }
}