:root {
    --navy: #082d4f;
    --blue: #087eb8;
    --cyan: #37c7d5;
    --gold: #f5c842;
    --ink: #17324a;
    --muted: #5e7488;
    --surface: #ffffff;
    --soft: #eff9fb;
    --line: rgba(8, 45, 79, 0.12);
    --shadow-sm: 0 10px 30px rgba(8, 45, 79, 0.09);
    --shadow-lg: 0 24px 70px rgba(8, 45, 79, 0.18);
    --radius: 24px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    color: white;
    transition: background-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.site-header.transparent {
    background: linear-gradient(180deg, rgba(3, 24, 47, 0.58), transparent);
}

.site-header.scrolled,
.site-header.menu-open {
    background: rgba(5, 46, 78, 0.93);
    box-shadow: 0 8px 30px rgba(2, 18, 37, 0.18);
    backdrop-filter: blur(16px);
}

.nav-container {
    width: min(1180px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: white;
    text-decoration: none;
    font-family: "Bodoni 72", Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    font-weight: 650;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.25));
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 650;
    border-radius: 999px;
    transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--navy);
    background: var(--gold);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 4px;
    background: white;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-height) + 36px) 20px 72px;
    color: white;
    text-align: center;
    isolation: isolate;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    background: #092f59;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 30%, rgba(56, 213, 225, 0.03), rgba(3, 22, 47, 0.32) 48%, rgba(3, 19, 42, 0.76) 100%),
        linear-gradient(180deg, rgba(4, 24, 49, 0.2), rgba(4, 24, 49, 0.58));
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 64px;
    background: var(--surface);
    clip-path: ellipse(58% 55% at 50% 100%);
}

.hero-content {
    width: min(760px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: hero-in 720ms ease both;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #dcfbff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-brand-lockup {
    width: clamp(330px, 42vw, 520px);
    max-height: min(58svh, 560px);
    margin: -4px 0 -2px;
    object-fit: contain;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.38));
}

.hero-intro {
    width: min(610px, 92%);
    margin: 6px auto 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    text-wrap: balance;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 25px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 780;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-primary {
    color: var(--navy);
    background: var(--gold);
    box-shadow: 0 12px 28px rgba(245, 200, 66, 0.28);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(245, 200, 66, 0.36);
    outline: none;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 42px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transform: translateX(-50%);
    animation: float 1.8s ease-in-out infinite;
}

.section {
    padding: clamp(76px, 9vw, 118px) 20px;
}

.section-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-heading {
    width: min(720px, 100%);
    margin: 0 auto 48px;
    text-align: center;
}

.section h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4.7vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.section-heading > p:last-child,
.ebook-copy > p,
.contact-copy > p {
    color: var(--muted);
}

.ebook {
    background: var(--surface);
}

.ebook-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(44px, 7vw, 92px);
}

.ebook-visual {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 3 / 4;
    justify-self: center;
    animation: ebook-float 6s ease-in-out infinite;
}

.ebook-visual::before {
    content: "";
    position: absolute;
    inset: 34px -22px -22px 34px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fdf1cf, #dff8fb);
}

.ebook-visual video {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.visual-badge {
    position: absolute;
    right: -18px;
    bottom: 26px;
    padding: 13px 19px;
    color: var(--navy);
    background: var(--gold);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    font-weight: 800;
}

.ebook-copy .lead {
    color: var(--ink);
    font-size: clamp(1.14rem, 1.8vw, 1.35rem);
    line-height: 1.55;
}

.ebook-points {
    display: grid;
    gap: 12px;
    margin: 22px 0 28px;
    padding: 0;
    list-style: none;
}

.ebook-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink);
    font-size: 0.98rem;
}

.ebook-points li span {
    flex: none;
    margin-top: 2px;
    color: var(--gold);
}

.ebook-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    margin-bottom: 16px;
}

.ebook-actions .text-link {
    margin-top: 0;
}

.ebook-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
}

.text-link,
.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.text-link {
    margin-top: 10px;
}

.text-link span,
.profile-link span {
    transition: transform 180ms ease;
}

.text-link:hover span,
.profile-link:hover span {
    transform: translateX(4px);
}

.services {
    background:
        radial-gradient(circle at 0 0, rgba(55, 199, 213, 0.13), transparent 34%),
        var(--soft);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.service-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.18fr);
    min-height: 310px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-body {
    position: relative;
    padding: 34px 30px;
}

.card-number {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.service-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 1.72rem);
    line-height: 1.2;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.team {
    background: var(--surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.team-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 320px;
    overflow: hidden;
    background: #dceff4;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.team-card:hover .team-image img {
    transform: scale(1.045);
}

.team-card-body {
    padding: 24px 24px 26px;
    text-align: center;
}

.team-card h3 {
    margin: 0 0 7px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
}

.team-role {
    min-height: 44px;
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.social-links {
    min-height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(8, 45, 79, 0.11);
    transition: transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-3px);
    outline: 3px solid rgba(55, 199, 213, 0.25);
}

.social-links img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact {
    color: white;
    background:
        linear-gradient(135deg, rgba(6, 45, 78, 0.96), rgba(4, 86, 117, 0.92)),
        url("../img/fondo_azul_estrellas1.JPG") center / cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(42px, 7vw, 96px);
}

.contact .section-kicker {
    color: #94edf4;
}

.contact h2 {
    color: white;
}

.contact-copy > p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.08rem;
}

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    padding: 17px 19px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
}

.contact-note span {
    color: var(--gold);
}

.contact-note p {
    margin: 0;
}

.contact form {
    display: grid;
    padding: clamp(26px, 4vw, 42px);
    color: var(--ink);
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.contact label {
    margin: 0 0 7px;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 780;
}

.contact input,
.contact textarea {
    width: 100%;
    margin: 0 0 17px;
    padding: 13px 15px;
    color: var(--ink);
    background: #f8fbfc;
    border: 1px solid #cfdde5;
    border-radius: 12px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact textarea {
    min-height: 126px;
    resize: vertical;
}

.contact input:focus,
.contact textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(55, 199, 213, 0.17);
}

.contact form .btn {
    width: 100%;
    margin-top: 4px;
}

footer {
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.72);
    background: #031d35;
}

.footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: "Bodoni 72", Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-decoration: none;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.28));
}

.footer-inner p {
    margin: 0;
    font-size: 0.88rem;
}

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

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 7px); }
}

@keyframes ebook-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 1020px) {
    .service-card {
        grid-template-columns: 1fr;
    }

    .service-card > img {
        height: 230px;
    }

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

    .team-card {
        grid-column: auto;
    }

    .team-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 13px);
        justify-self: center;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 68px;
    }

    .nav-container {
        width: min(100% - 28px, 1180px);
    }

    .brand span {
        font-size: 0.95rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 14px;
        left: 14px;
        display: grid;
        gap: 4px;
        padding: 14px;
        background: rgba(5, 46, 78, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-14px) scale(0.98);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
    }

    .nav-links.open {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 12px 14px;
    }

    .hero {
        min-height: 760px;
        padding-bottom: 80px;
    }

    .hero-brand-lockup {
        width: min(500px, 82vw);
        max-height: 520px;
    }

    .ebook-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .ebook-visual {
        width: min(100%, 390px);
    }

    .ebook-copy {
        text-align: center;
    }

    .ebook-actions {
        justify-content: center;
    }

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

    .service-card {
        grid-template-columns: minmax(210px, 0.9fr) minmax(0, 1.1fr);
    }

    .service-card > img {
        height: 100%;
    }

    .contact-copy {
        text-align: center;
    }

    .contact-note {
        text-align: left;
    }
}

@media (max-width: 620px) {
    .section {
        padding: 72px 18px;
    }

    .hero {
        min-height: 700px;
        padding-inline: 16px;
    }

    .hero-intro {
        font-size: 0.98rem;
    }

    .hero-brand-lockup {
        width: min(350px, 92vw);
        max-height: 430px;
    }

    .scroll-cue {
        display: none;
    }

    .ebook-visual {
        width: min(100%, 330px);
    }

    .ebook-visual::before {
        inset: 20px -8px -12px 20px;
    }

    .visual-badge {
        right: 10px;
        bottom: 14px;
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .service-card > img {
        height: 220px;
    }

    .service-card-body {
        padding: 26px 24px 30px;
    }

    .card-number {
        margin-bottom: 15px;
    }

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

    .team-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .team-image {
        height: min(390px, 96vw);
    }

    .contact-grid {
        gap: 34px;
    }

    .contact form {
        padding: 24px 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
