:root {
    --ind-blue: #5885ED;
    --ind-blue-dark: #3f6ad4;
    --ind-blue-mid: #6b95f0;
    --ind-navy: #0f1f3d;
    --ind-navy-2: #16305a;
    --ind-text: #2a3f66;
    --ind-muted: #5a6f93;
    --ind-light: #f4f7fb;
    --ind-white: #ffffff;
    --ind-border: #c5d0e4;
    --ind-font: "Montserrat", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    margin: 0;
    font-family: var(--ind-font);
    color: var(--ind-text);
    background: var(--ind-white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.landing-container {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

/* Header */
.landing-header {
    background: #fff;
    position: relative;
    z-index: 40;
}

.landing-topbar {
    background: #fff;
    border-bottom: 1px solid #e8eef5;
}

.landing-topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 128px;
    gap: 1rem;
    padding: 1.1rem 0 1.25rem;
    position: relative;
}

.landing-logo {
    justify-self: start;
}

.landing-logo img {
    height: 96px;
    width: auto;
}

.landing-title {
    margin: 0;
    justify-self: center;
    text-align: center;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 500;
    color: #4a6eab;
    letter-spacing: 0.01em;
    line-height: 1.15;
    white-space: nowrap;
}

.landing-title strong {
    color: #1a3668;
    font-weight: 800;
}

.landing-actions {
    justify-self: end;
    align-self: start;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: -0.35rem;
    margin-right: -0.35rem;
}

.action-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.action-btn:hover {
    background: rgba(44, 77, 139, 0.08);
    color: var(--ind-blue);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* Nav */
.landing-nav {
    background: var(--ind-blue);
    position: relative;
    z-index: 50;
}

.landing-nav-inner {
    display: flex;
    align-items: center;
    position: relative;
}

.landing-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
}

.landing-menu > li {
    position: relative;
    flex: 1 1 0;
    display: flex;
}

.landing-nav a.nav-link,
.landing-nav button.nav-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.48rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    height: 100%;
    min-height: 38px;
    text-align: center;
    transition: background 0.18s ease;
}

.landing-nav .has-dropdown.open > .nav-link {
    background: #1a3668;
}

@media (hover: hover) and (pointer: fine) {
    .landing-nav a.nav-link:hover,
    .landing-nav button.nav-link:hover,
    .landing-nav .has-dropdown:hover > .nav-link {
        background: #1a3668;
    }

    .has-dropdown:hover > .dropdown-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

.landing-nav .chevron {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    margin-top: 2px;
}

.has-dropdown {
    position: relative;
}

.dropdown-panel {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(4px);
    min-width: max(100%, 320px);
    background: rgba(248, 250, 253, 0.97);
    border: 1px solid #d7e0ef;
    box-shadow: 0 10px 28px rgba(15, 31, 61, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 80;
}

/* puente para no perder hover al bajar al menú */
.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.has-dropdown.open > .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-panel a {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5885ED;
    line-height: 1.35;
}

.dropdown-panel a::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: 0.45rem;
    flex: 0 0 auto;
    background: #5885ED;
    border-radius: 50%;
    opacity: 0.7;
}

.dropdown-panel a:hover {
    background: #fff;
    color: #1a3668;
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    margin-left: 0.15rem;
    background: transparent;
    border: 0;
    color: #1a1a1a;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-menu-head {
    display: none;
}

.landing-menu > li.mobile-menu-head {
    display: none;
}

.nav-backdrop {
    display: none;
}

/* Hero */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: clamp(320px, 48vw, 460px);
    margin: 0;
    padding: 0;
    height: auto;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    margin: 0;
    height: 100%;
}

.hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-cta {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    background: rgba(20, 28, 45, 0.72);
    color: #fff;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
    background: rgba(20, 28, 45, 0.9);
    transform: translateY(-2px);
}

.section-spacer {
    height: clamp(4.5rem, 9vw, 7rem);
    background: #fff;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: float-in 0.7s ease both;
}

.whatsapp-float span {
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    padding: 0.48rem 0;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transform: translateX(12px);
    transition:
        max-width 0.35s ease,
        padding 0.35s ease,
        opacity 0.28s ease,
        transform 0.35s ease;
}

.whatsapp-float:hover span,
.whatsapp-float:focus-visible span {
    max-width: 9.5rem;
    opacity: 1;
    padding: 0.48rem 2.1rem 0.48rem 0.85rem;
    transform: translateX(0);
}

.whatsapp-float img {
    width: 58px;
    height: 58px;
    margin-left: 0;
    position: relative;
    z-index: 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
    transition: transform 0.2s ease, margin-left 0.35s ease;
}

.whatsapp-float:hover img,
.whatsapp-float:focus-visible img {
    margin-left: -34px;
    transform: scale(1.04);
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-compact {
    padding-top: 0;
}

.section-title {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ind-blue);
    line-height: 1.2;
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    margin-top: 0.65rem;
    background: currentColor;
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    margin-inline: auto;
}

.section-title.light {
    color: #fff;
}

.list-grid {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--ind-muted);
    font-size: 1.02rem;
    columns: 2;
    gap: 2rem;
}

.list-grid li {
    margin-bottom: 0.55rem;
    break-inside: avoid;
}

.mission-copy .stack-gap {
    margin-top: 0.75rem;
}

/* Quiénes somos */
.about-section {
    background: linear-gradient(90deg, #5681E6 0%, #05070D 100%);
    color: #fff;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
    overflow: visible;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
}

.about-copy p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
    max-width: 34rem;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-photo {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
    align-self: end;
    max-width: 100%;
    margin-bottom: -3.5rem;
    position: relative;
    z-index: 2;
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.about-section .reveal {
    transform: none;
}

.about-section .reveal.visible {
    transform: none;
}

/* Misión / Visión */
#mision-vision {
    padding-top: clamp(4.5rem, 8vw, 6rem);
}

.mission-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;
}

.mission-photos {
    display: grid;
    gap: 1rem;
}

.mission-photos img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    box-shadow: 0 10px 24px rgba(15, 31, 61, 0.12);
}

.mission-copy h3 {
    margin: 1.5rem 0 0.55rem;
    color: var(--ind-blue);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
}

.mission-copy h3:first-of-type {
    margin-top: 0.35rem;
}

.mission-copy p {
    margin: 0;
    color: var(--ind-muted);
    font-size: 0.98rem;
}

/* Testimonials */
.testimonials-section {
    background: var(--ind-light);
}

.testimonials-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--ind-border);
    border-radius: 14px;
    padding: 1.5rem 1.15rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 22px rgba(15, 31, 61, 0.06);
}

.testimonial-card img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    margin: -2.35rem auto 0.85rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 31, 61, 0.18);
}

.testimonial-card p {
    margin: 0 0 0.9rem;
    color: var(--ind-muted);
    font-size: 0.92rem;
    min-height: 4.2em;
}

.stars {
    display: inline-flex;
    gap: 0.15rem;
    color: #f5b301;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.stars .empty {
    color: #c9d2e3;
}

.slider-btn {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ind-border);
    background: #fff;
    color: var(--ind-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.slider-btn:hover {
    background: #e8eef8;
}

.google-badge {
    position: absolute;
    right: -0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    opacity: 0.95;
    pointer-events: none;
}

/* Contact */
.contact-section {
    background: #e9edf4;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-map {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 31, 61, 0.1);
}

.contact-map iframe,
.contact-map img {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
    object-fit: cover;
}

.contact-address {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-top: 0.85rem;
    color: var(--ind-text);
    font-size: 0.95rem;
}

.contact-address svg {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: var(--ind-blue);
}

.contact-details {
    display: grid;
    gap: 1.1rem;
    padding-top: 0.35rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ind-blue-dark);
    font-weight: 600;
    font-size: 1.02rem;
}

.contact-item svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    color: var(--ind-blue);
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.landing-footer {
    background: linear-gradient(90deg, #05070D 0%, #5681E6 100%);
    color: rgba(255, 255, 255, 0.92);
    padding: 2.75rem 0 1.25rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.15fr 1.2fr 1.1fr;
    gap: 1.5rem;
}

.footer-col {
    padding-right: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-col:last-child {
    border-right: 0;
    padding-right: 0;
}

.footer-col h4 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-col a,
.footer-col p {
    display: block;
    margin: 0 0 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
    text-align: right;
}

.footer-brand img {
    width: 72px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-brand span {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    max-width: 10rem;
}

.footer-copy {
    margin: 1.75rem 0 0;
    padding-top: 1rem;
    border-top: 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Reveal motion */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
    .hero-split,
    .about-grid,
    .mission-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-track {
        grid-template-columns: 1fr;
    }

    .testimonial-card:nth-child(n + 2) {
        display: none;
    }

    .testimonials-track.show-all .testimonial-card {
        display: block;
    }

    .google-badge {
        display: none;
    }

    .footer-col {
        border-right: 0;
        padding-right: 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-col:last-child {
        border-bottom: 0;
    }

    .footer-brand {
        justify-content: flex-start;
        text-align: left;
    }

    .landing-title {
        display: none;
    }

    .landing-topbar-inner {
        grid-template-columns: 1fr auto;
        min-height: 96px;
        padding: 0.85rem 0;
    }

    .landing-logo img {
        height: 72px;
    }

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 760px) {
    .list-grid {
        columns: 1;
    }

    .landing-nav {
        background: transparent;
        height: 0;
        overflow: visible;
        box-shadow: none;
        z-index: 120;
    }

    .landing-nav-inner {
        height: 0;
        width: 0;
        max-width: none;
        padding: 0;
        margin: 0;
        overflow: visible;
        pointer-events: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 22, 45, 0.45);
        z-index: 110;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .nav-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .landing-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 88vw);
        margin: 0;
        padding: 0 0 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        box-shadow: -12px 0 40px rgba(15, 31, 61, 0.18);
        z-index: 121;
        pointer-events: auto;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .landing-menu.open {
        transform: translateX(0);
    }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.15rem;
        background: #5885ED;
        color: #fff;
        font-weight: 700;
        font-size: 1rem;
        border: 0;
    }

    .mobile-menu-close {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-menu-close svg {
        width: 18px;
        height: 18px;
    }

    .landing-menu > li {
        width: 100%;
        flex: none;
        display: block;
        border-bottom: 1px solid #e8eef7;
    }

    .landing-menu > li.mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        border-bottom: 0;
    }

    .landing-menu > li.mobile-menu-head > span {
        flex: 1 1 auto;
    }

    .landing-menu > li.mobile-menu-head > .mobile-menu-close {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .landing-nav a.nav-link,
    .landing-nav button.nav-link,
    .landing-menu a.nav-link,
    .landing-menu button.nav-link {
        width: 100%;
        height: auto;
        justify-content: space-between;
        color: #1a3668;
        background: #fff;
        font-size: 0.98rem;
        font-weight: 600;
        padding: 1rem 1.15rem;
        min-height: 52px;
    }

    .landing-nav .has-dropdown.open > .nav-link,
    .landing-menu .has-dropdown.open > .nav-link {
        background: #eef3fb;
        color: #1a3668;
    }

    .landing-menu .chevron {
        border-top-color: #5885ED;
        transition: transform 0.2s ease;
    }

    .landing-menu .has-dropdown.open .chevron {
        transform: rotate(180deg);
    }

    .has-dropdown::after {
        display: none;
    }

    .landing-menu > li.has-dropdown {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: relative;
    }

    .landing-menu .has-dropdown > .dropdown-panel {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        inset: auto;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        background: #f7f9fc;
        min-width: 0 !important;
        width: 100%;
        margin: 0;
        padding: 0.2rem 0 0.55rem;
        z-index: auto;
    }

    .landing-menu .has-dropdown.open > .dropdown-panel {
        display: block !important;
        transform: none !important;
    }

    .landing-menu .dropdown-panel a {
        color: #3d567f;
        font-weight: 500;
        padding: 0.75rem 1.15rem 0.75rem 1.65rem;
        font-size: 0.9rem;
        background: transparent;
    }

    .landing-menu .dropdown-panel a::before {
        background: #5885ED;
        opacity: 0.55;
        width: 5px;
        height: 5px;
    }

    .landing-menu .dropdown-panel a:hover,
    .landing-menu .dropdown-panel a:active {
        background: #eaf0fb;
        color: #1a3668;
    }

    .hero-split {
        grid-template-columns: 1fr;
    }

    body.menu-open {
        overflow: hidden;
    }
}
