:root {
    --blue: #002960;
    --blue-dark: #001f4c;
    --blue-soft: #003b82;
    --pink: #fd778e;
    --pink-soft: #ffa8b1;
    --sky: #97d8f3;
    --white: #ffffff;
    --light: #f5f5f5;
    --text: #1e293b;
    --muted: #5b6472;
    --border: rgba(0, 41, 96, .10);
    --shadow-soft: 0 18px 42px rgba(0, 41, 96, .12);
    --shadow-hover: 0 26px 58px rgba(0, 41, 96, .20);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

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

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.site-header {
    width: 100%;
    height: 86px;
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue);
    font-weight: 900;
    text-transform: uppercase;
}

.brand img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.brand-fallback {
    display: none;
    color: var(--blue);
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.brand-fallback small {
    display: block;
    color: var(--pink);
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    color: var(--blue);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 0;
    letter-spacing: .3px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--blue);
    border-radius: 20px;
    transition: width .28s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    width: 38px;
    height: 34px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--blue);
    border-radius: 20px;
    margin: 7px 0;
    transition: .25s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* =========================
   ELEMENTOS GENERALES
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: .25s ease;
}

.btn-pink {
    background: var(--pink);
    color: var(--white);
}

.btn-pink:hover {
    background: var(--pink-soft);
    color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--blue);
    font-size: clamp(26px, 3vw, 38px);
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 18px;
}

.section-subtitle {
    max-width: 920px;
    margin: 0 auto 42px;
    text-align: center;
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}

/* =========================
   HERO GENÉRICO
========================= */

.page-hero {
    margin-top: 86px;
    background-color: var(--blue);
    background-image: url("../img/bg-stars.png");
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: .95;
    margin-bottom: 18px;
}

.page-hero p {
    max-width: 880px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .92);
}

.hero {
    margin-top: 86px;
    min-height: 640px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--blue);
    color: var(--white);
}

.hero video,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 41, 96, .35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    z-index: 5;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 115px;
    display: block;
}

.hero-wave path {
    fill: var(--blue);
}

/* =========================
   SECCIONES HOME
========================= */

.blue-section {
    background-color: var(--blue);
    background-image: url("../img/estrellas.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    color: var(--white);
    position: relative;
    padding: 70px 0 150px;
    overflow: hidden;
}

.blue-bottom-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.blue-bottom-wave svg {
    display: block;
    width: 100%;
    height: 135px;
}

.blue-bottom-wave path {
    fill: #ffffff;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.image-frame img {
    margin: 0 auto;
    max-width: 600px;
    border-radius: 28px;
}

.blue-title {
    font-size: clamp(28px, 3vw, 44px);
    line-height: .98;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 22px;
    text-shadow: 0 2px 6px rgba(0, 41, 96, .4);
}

.blue-text {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .92);
    margin-bottom: 18px;
}

.pink-title {
    color: var(--pink);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 22px;
}

.white-section {
    background: var(--white);
    padding: 85px 0 80px;
    position: relative;
}

.offers {
    max-width: 940px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.offer-card {
    background: var(--blue);
    color: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    transition: .25s ease;
    min-height: 155px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 41, 96, .12);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 41, 96, .24);
    background: var(--blue-dark);
}

.offer-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.offer-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: .25s ease;
}

.offer-card:hover .offer-icon {
    transform: scale(1.05);
}

.offer-card h3 {
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
    font-weight: 900;
    position: relative;
    z-index: 2;
}

.offer-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
    position: relative;
    z-index: 2;
    margin: 0;
}

.agents-section {
    padding-top: 75px;
    padding-bottom: 0;
}

.agents-wave {
    line-height: 0;
    background: var(--blue);
    margin-top: -1px;
    height: 155px;
    overflow: hidden;
}

.agents-wave svg {
    display: block;
    width: 100%;
    height: 155px;
    transform: rotate(180deg);
    transform-origin: center;
}

.agents-wave .wave-dark {
    fill: #595982;
    opacity: .95;
}

.agents-wave .wave-mid {
    fill: #c4879d;
    opacity: .9;
}

.agents-wave .wave-light {
    fill: var(--pink-soft);
}

/* =========================
   TESTIMONIOS
========================= */

.testimonials {
    background: var(--pink-soft);
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}

.testimonials-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto 38px;
}

.testimonials-header .eyebrow {
    display: inline-block;
    color: var(--blue);
    background: rgba(255, 255, 255, .55);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 14px;
}

.testimonials-header h2 {
    color: var(--blue);
    font-size: clamp(28px, 3vw, 42px);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
}

.testimonials-header p {
    color: rgba(0, 41, 96, .78);
    font-size: 16px;
    line-height: 1.7;
}

.testimonial-card {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 48px 56px 34px;
    box-shadow: 0 24px 60px rgba(0, 41, 96, .20);
    border: 1px solid rgba(255, 255, 255, .65);
    overflow: hidden;
}

.quote-mark {
    position: absolute;
    top: -32px;
    left: 32px;
    font-size: 170px;
    line-height: 1;
    color: rgba(0, 41, 96, .08);
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial-content {
    position: relative;
    z-index: 2;
}

.testimonial-message {
    min-height: 125px;
    color: #374151;
    font-size: 19px;
    line-height: 1.8;
    text-align: center;
    transition: opacity .25s ease, transform .25s ease;
}

.testimonial-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 41, 96, .12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.testimonial-name {
    color: var(--blue);
    font-size: 19px;
    font-weight: 900;
    margin: 0;
}

.testimonial-label {
    color: rgba(0, 41, 96, .62);
    font-size: 13px;
    font-weight: 700;
}

.testimonial-controls {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 41, 96, .22);
    cursor: pointer;
    transition: .25s ease;
    padding: 0;
}

.testimonial-dot:hover {
    background: rgba(0, 41, 96, .45);
}

.testimonial-dot.active {
    width: 26px;
    border-radius: 999px;
    background: var(--blue);
}

/* =========================
   FOOTER / ACREDITACIONES
========================= */

.accreditations {
    background: #f5f5f5;
    padding: 90px 0 70px;
    overflow: hidden;
}

.logo-slider {
    margin: 0 auto;
    background: #f5f5f5;
    padding: 34px 0;
    overflow: hidden;
    border-radius: 4px;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 55px;
    width: max-content;
    animation: logoScroll 34s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-track img {
    height: 90px;
    width: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.logo-track img.logo-big {
    height: 135px;
}

@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.site-footer {
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: 22px 0;
    font-size: 14px;
}

/* =========================
   NOSOTROS - HERO
========================= */

.about-hero {
    margin-top: 86px;
    min-height: 530px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-image: url("../img/pexels-craig-adderley-3411139.jpg");
    background-size: cover;
    background-position: center 32%;
    color: var(--white);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 41, 96, .34) 0%, rgba(0, 41, 96, .58) 42%, rgba(0, 41, 96, .28) 100%),
        rgba(0, 0, 0, .18);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1020px;
    text-align: center;
    padding: 78px 0 138px;
}

.about-hero h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 24px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}

.about-hero p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .96);
    max-width: 980px;
    margin: 0 auto;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .26);
}

.about-hero-cta {
    margin-top: 18px !important;
    font-weight: 700;
}

.about-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}

.about-hero-wave svg {
    display: block;
    width: 100%;
    height: 145px;
}

.about-hero-wave path {
    fill: #ffffff;
}

/* =========================
   NOSOTROS - AGENTES
========================= */

.agents-list {
    background: var(--white);
    padding: 82px 0 105px;
    position: relative;
    overflow: visible;
}

.agents-heading {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 70px;
}

.agents-heading .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    border-radius: 999px;
    background: rgba(253, 119, 142, .12);
    color: var(--pink);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .75px;
    margin-bottom: 15px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 96px 34px;
    align-items: stretch;
    padding-top: 32px;
}

.agent-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 0 28px 28px;
    text-align: center;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(253, 119, 142, .28);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.agent-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(253, 119, 142, .42);
}

.agent-card-top {
    position: relative;
    height: 96px;
    background: transparent;
}

.agent-photo {
    width: 173px;
    height: 173px;
    position: absolute;
    left: 50%;
    top: -89px;
    transform: translateX(-50%);
    margin: 0;
    border-radius: 50%;
    z-index: 5;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 18px 38px rgba(0, 41, 96, .22);
    overflow: visible;
}

.agent-photo::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), #e9a3c0 45%, var(--sky));
    z-index: -1;
}

.agent-photo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
}

.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.agent-body {
    padding: 0;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.agent-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 18px;
    color: var(--pink);
    background: rgba(253, 119, 142, .10);
    border: 1px solid rgba(253, 119, 142, .24);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.agent-body h3 {
    color: var(--blue);
    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
    margin: 0 0 14px;
}

.agent-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}

.agent-socials a {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(0, 41, 96, .08);
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .22s ease, background .22s ease, color .22s ease;
    font-size: 16px;
}

.agent-socials a:hover {
    background: var(--blue);
    color: #ffffff;
    transform: translateY(-3px);
}

.agent-desc {
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
    margin: 0 auto 26px;
    max-width: 315px;
}

.agent-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 41, 96, .12);
}

.agent-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    color: var(--blue);
    background: transparent;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
    transition: color .22s ease, gap .22s ease;
}

.agent-contact:hover {
    color: var(--pink);
    gap: 14px;
}

.empty-agents {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 16px 40px rgba(0, 41, 96, .10);
    border: 1px solid var(--border);
}

.empty-agents h3 {
    color: var(--blue);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}

.empty-agents p {
    color: var(--muted);
    line-height: 1.7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .hamburger {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 86px;
        right: -100%;
        width: min(340px, 82%);
        height: calc(100vh - 86px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 34px 30px;
        gap: 22px;
        box-shadow: -10px 0 28px rgba(0, 0, 0, .15);
        transition: right .3s ease;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        font-size: 16px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 38px;
        text-align: center;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

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

    .image-frame img {
        max-width: 390px;
    }

    .about-hero {
        min-height: 500px;
        background-position: center center;
    }

    .about-hero-content {
        padding: 66px 0 120px;
    }

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

@media (max-width: 767px) {
    .testimonial-card {
        padding: 38px 24px 28px;
        border-radius: 22px;
    }

    .testimonial-message {
        font-size: 16px;
        line-height: 1.75;
        min-height: 165px;
    }

    .testimonial-name {
        font-size: 17px;
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 76px;
    }

    .main-nav {
        top: 76px;
        height: calc(100vh - 76px);
    }

    .brand img {
        height: 46px;
    }

    .brand-fallback {
        font-size: 15px;
    }

    .page-hero,
    .hero,
    .about-hero {
        margin-top: 76px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-wave svg {
        height: 70px;
    }

    .blue-section {
        padding: 55px 0 75px;
    }

    .white-section {
        padding: 65px 0;
    }

    .offer-card {
        min-height: auto;
        padding: 24px 22px;
    }

    .offer-card-head {
        align-items: flex-start;
        gap: 12px;
    }

    .offer-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }

    .offer-card h3 {
        font-size: 16px;
    }

    .testimonials {
        padding: 56px 0 70px;
    }

    .testimonials-header {
        margin-bottom: 28px;
    }

    .testimonials-header p {
        font-size: 15px;
    }

    .quote-mark {
        font-size: 125px;
        top: -22px;
        left: 18px;
    }

    .about-hero {
        min-height: auto;
        background-position: 28% center;
    }

    .about-hero-content {
        padding: 72px 0 105px;
    }

    .about-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-hero-wave svg {
        height: 86px;
    }

    .agents-list {
        padding: 72px 0 82px;
    }

    .agents-heading {
        margin-bottom: 66px;
    }

    .agents-grid {
        grid-template-columns: 1fr;
        gap: 92px;
        padding-top: 28px;
    }

    .agent-card {
        padding: 0 22px 28px;
        border-radius: 26px;
    }

    .agent-card-top {
        height: 90px;
    }

    .agent-photo {
        width: 165px;
        height: 165px;
        top: -82px;
    }

    .agent-body h3 {
        font-size: 23px;
    }

    .logo-track {
        gap: 35px;
        animation-duration: 24s;
    }

    .logo-track img {
        height: 68px;
    }

    .logo-track img.logo-big {
        height: 95px;
    }
}

@media (max-width: 480px) {
    .testimonial-message {
        min-height: 190px;
    }

    .testimonial-card {
        padding-left: 20px;
        padding-right: 20px;
    }
}
