/* ================================================================
   GESTORÍA CHRISTIAN SÁNCHEZ — HOME
   style.css · Ranking Online · 2025
   ================================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────────── */
:root {
    /* Brand */
    --color-bg: #F7F9FF;
    --color-primary: #0B60CD;
    --color-dark: #2F2885;
    --color-accent: #22D3EE;
    --color-cream: #EEF2FA;
    --color-text: #1A1F3C;
    --color-muted: #5B6484;
    --color-border: #D4DCEC;

    --gradient-brand: linear-gradient(135deg, var(--color-primary), var(--color-dark));

    /* Service accents */
    --svc-herencias: #22D3EE;
    --svc-transferencias: #0B60CD;
    --svc-pensiones: #2F2885;
    --svc-autonomos: #0891B2;
    --svc-plusvalias: #1D5FA8;

    /* Type */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Radius */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-pill: 100px;

    /* Shadow */
    --sh-sm: 0 1px 3px rgb(26 34 50/0.08), 0 1px 2px rgb(26 34 50/0.05);
    --sh-md: 0 4px 14px rgb(26 34 50/0.10), 0 2px 4px rgb(26 34 50/0.06);
    --sh-lg: 0 12px 36px rgb(26 34 50/0.13), 0 4px 10px rgb(26 34 50/0.06);

    /* Motion */
    --ease: 200ms ease-out;

    /* Z-index */
    --z-nav: 100;
    --z-float: 50;
}

/* ── 2. Reset ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

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

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* ── 3. Layout helpers ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.section--dark {
    background-color: var(--color-primary);
    color: var(--color-cream);
}

.section-header {
    max-width: 640px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: var(--color-primary);
}

.section--dark .section-header h2 {
    color: var(--color-cream);
}

/* ── 4. Typography ──────────────────────────────────────────────── */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

p {
    max-width: 65ch;
    line-height: 1.7;
}

/* ── 5. Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--r-pill);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--ease), color var(--ease),
        border-color var(--ease), box-shadow var(--ease),
        transform var(--ease);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: #0891B2;
    border-color: #0891B2;
    box-shadow: var(--sh-md);
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0d6fe0, #3830a0);
    border-color: transparent;
    box-shadow: var(--sh-md);
}

.btn-ghost {
    background-color: transparent;
    color: rgba(245, 240, 232, .85);
    border-color: rgba(245, 240, 232, .3);
}

.btn-ghost:hover {
    background-color: rgba(245, 240, 232, .08);
    border-color: rgba(245, 240, 232, .55);
}

.btn-outline-cream {
    background-color: transparent;
    color: var(--color-cream);
    border-color: rgba(245, 240, 232, .4);
}

.btn-outline-cream:hover {
    background-color: rgba(245, 240, 232, .1);
    border-color: var(--color-cream);
}

/* ── 6. Navigation ──────────────────────────────────────────────── */
.nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: var(--z-nav);
    padding-block: 1.125rem;
    transition: background-color var(--ease), box-shadow var(--ease),
        padding-block var(--ease);
}

.nav--scrolled {
    background-color: rgba(47, 40, 133, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .07);
    padding-block: .875rem;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    line-height: 1.2;
    flex-shrink: 0;
}

.nav-logo-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.1;
}

.nav-logo-tagline {
    font-size: .68rem;
    color: rgba(245, 240, 232, .5);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.nav-logo-img {
    height: 34px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: opacity var(--ease);
}

.nav-logo:hover .nav-logo-img {
    opacity: .85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .125rem;
    margin-left: auto;
}

.nav-links a {
    padding: .375rem .75rem;
    font-size: .875rem;
    font-weight: 500;
    color: rgba(245, 240, 232, .75);
    border-radius: var(--r-sm);
    transition: color var(--ease), background-color var(--ease);
}

.nav-links a:hover {
    color: #fff;
    background-color: rgba(245, 240, 232, .08);
}

.nav-cta {
    flex-shrink: 0;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .625rem;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background-color: rgba(245, 240, 232, .85);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}

/* ── 7. HERO (Editorial Structural Redesign) ────────────────────── */
.hero--editorial {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Premium brand gradient (from Primary to Dark to deep midnight blue) */
    background: radial-gradient(ellipse at top left, var(--color-primary) -20%, var(--color-dark) 45%, #0B091D 100%);
    padding-top: 5.5rem;
    z-index: 1;
}

/* Sophisticated background grid */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 80%);
    z-index: -2;
}

/* Ambient deep glow using accent color for contrast */
.hero-ambient {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    animation: pulseAmbient 12s ease-in-out infinite alternate;
}

@keyframes pulseAmbient {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }
}

/* Inner Layout Grid */
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    padding-top: clamp(4rem, 8vw, 8rem);
    padding-bottom: clamp(6rem, 10vw, 8rem);
    /* leaves space for trust-bar */
    position: relative;
    z-index: 10;
    flex: 1;
}

/* Left Typography */
.hero-typo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge-wrap {
    overflow: hidden;
    border-radius: var(--r-pill);
    margin-bottom: 2.5rem;
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* Headline */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0;
    text-align: left;

    /* Reveal animation */
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* The stunning "confianza" text */
.title-italic {
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
    position: relative;
    display: inline-block;
    padding-right: 0.1em;
}

.title-italic::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    color: var(--color-accent);
    -webkit-text-stroke: 0px;
    overflow: hidden;
    white-space: nowrap;
    animation: fillText 1.5s cubic-bezier(0.7, 0, 0.3, 1) 0.8s forwards;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

@keyframes fillText {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Right Console Glass */
.hero-console {
    position: relative;
    width: 100%;
}

.console-flare {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%);
    filter: blur(30px);
    z-index: 0;
    border-radius: 50%;
}

.console-glass {
    position: relative;
    background: rgba(20, 22, 35, 0.35);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;

    /* Hover floating effect */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;

    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.console-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
}

.console-tag {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    text-wrap: pretty;
}

.hero-subtitle strong {
    color: #fff;
    font-weight: 500;
}

/* Actions in console */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.btn-icon {
    justify-content: space-between;
}

.btn-solid-hover {
    transition: all 0.3s ease;
}

.btn-solid-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(34, 211, 238, 0.3);
}

.btn-outline-ghost {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: center;
}

.btn-outline-ghost:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Scroll Line */
.hero-scroll-line {
    position: absolute;
    bottom: 2rem;
    left: clamp(1.25rem, 5vw, 2.5rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: revealFade 1s ease 1.2s forwards;
    z-index: 10;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-bar {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: var(--color-accent);
    animation: scrollRight 2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes scrollRight {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Editorial Hero */
@media (max-width: 991px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 7rem;
        padding-bottom: 5rem;
    }

    .hero-title br {
        display: none;
    }
}

/* ── 8. Trust Bar ────────────────────────────────────────────────── */
.trust-bar {
    position: relative;
    z-index: 10;
    margin-top: -3.5rem;
    /* overlaps the hero section */
}

.trust-ledger {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--color-dark);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.trust-card {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    padding: clamp(3rem, 5vw, 4rem);
    position: relative;
    text-align: center;
    background-color: transparent;
    z-index: 1;
    overflow: hidden;
}

/* Animated Solid Color Fill on Hover */
.trust-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-primary);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.trust-card:hover::before {
    transform: translateY(0);
}

.trust-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.trust-value {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 3.5vw, 3.25rem);
    font-weight: 400;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-card:hover .trust-value {
    transform: translateY(-8px) scale(1.05);
}

.trust-label {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.05vw, 1rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 28ch;
    margin-inline: auto;
    transition: color 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-card:hover .trust-label {
    color: #ffffff;
    transform: translateY(-4px);
}

/* ── 9. Services — editorial numbered list ───────────────────────── */
.services-list {
    list-style: none;
    border-top: 1px solid var(--color-border);
}

.svc-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 3rem;
    align-items: center;
    gap: 1rem clamp(1.5rem, 3vw, 3rem);
    padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background-color var(--ease);
    position: relative;
}

.svc-title-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Hover: cream tint slides in from the left */
.svc-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-primary);
    opacity: 0;
    transition: opacity var(--ease);
    pointer-events: none;
}

.svc-row:hover::before {
    opacity: .03;
}

/* Number */
.svc-num {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--color-primary);
    opacity: 1;
    align-self: start;
    padding-top: .45rem;
    transition: opacity var(--ease), color var(--ease);
}

/* Per-service hover color on number */
.svc-row--herencias:hover .svc-num {
    opacity: 1;
    color: var(--svc-herencias);
}

.svc-row--transferencias:hover .svc-num {
    opacity: 1;
    color: var(--svc-transferencias);
}

.svc-row--pensiones:hover .svc-num {
    opacity: 1;
    color: var(--svc-pensiones);
}

.svc-row--autonomos:hover .svc-num {
    opacity: 1;
    color: var(--svc-autonomos);
}

.svc-row--plusvalias:hover .svc-num {
    opacity: 1;
    color: var(--svc-plusvalias);
}

/* Body: title + desc */
.svc-body {
    min-width: 0;
}

.svc-title {
    font-family: var(--font-serif);
    font-size: clamp(1.625rem, 2.8vw, 2.25rem);
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: .5rem;
    transition: color var(--ease);
}

.svc-row:hover .svc-title {
    color: var(--color-primary);
}

.svc-desc {
    font-size: .9375rem;
    line-height: 1.65;
    color: var(--color-muted);
    max-width: 60ch;
}

/* Arrow button */
.svc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    color: var(--color-primary);
    flex-shrink: 0;
    justify-self: end;
    transition: background-color var(--ease), border-color var(--ease),
        color var(--ease), transform var(--ease);
}

.svc-row:hover .svc-arrow {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translate(3px, -3px);
}

/* Mobile: collapse to 2-col (no arrow column) */
@media (max-width: 639px) {
    .svc-row {
        grid-template-columns: 2.5rem 1fr;
        grid-template-rows: auto auto;
    }

    .svc-arrow {
        display: none;
    }

    .svc-desc {
        max-width: none;
    }
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 4vw, 3rem);
}

/* ── 10. About intro ─────────────────────────────────────────────── */
.about-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: rgba(245, 240, 232, .75);
    margin-bottom: 1.25rem;
    max-width: 50ch;
    font-size: 1.0625rem;
}

.about-text .btn {
    margin-top: 1.5rem;
}

/* About Bento Grid */
.about-bento {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.125rem;
    position: relative;
    z-index: 1;
}

/* Ambient glow behind bento */
.about-bento::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(11, 96, 205, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.bento-item {
    background-color: rgba(11, 9, 40, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-md);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: transform var(--ease), background-color var(--ease), border-color var(--ease);
}

.bento-item:hover {
    background-color: rgba(11, 9, 40, 0.65);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px);
}

.bento-item--lead {
    grid-column: span 3;
    justify-content: space-between;
}

.bento-item--years {
    grid-column: span 2;
}

.bento-item--team {
    grid-column: span 2;
    justify-content: space-between;
}

.bento-item--focus {
    grid-column: span 3;
    justify-content: space-between;
}

/* Bento inner elements */
.bento-monogram {
    width: 3.25rem;
    height: 3.25rem;
    background-color: rgba(34, 211, 238, 0.12);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.bento-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--r-sm);
    color: var(--color-cream);
    margin-bottom: 2rem;
}

.team-avatars {
    display: flex;
    margin-bottom: 2rem;
}

.team-avatars .avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 2px solid var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-left: -0.75rem;
}

.team-avatars .avatar:first-child {
    margin-left: 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.team-avatars .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 50%;
}

.bento-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-cream);
    margin-bottom: 0.25rem;
}

.bento-desc {
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(245, 240, 232, 0.65);
}

/* Years Accent Card */
.bento-item--years {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.bento-item--years:hover {
    background: linear-gradient(135deg, #0d6fe0, #3830a0);
    border-color: transparent;
}

.bento-number {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.bento-item--years .bento-desc {
    color: rgba(255, 255, 255, 0.95);
}

/* ── 11. Why us (Modern Graphic Layout) ──────────────────────────────────────────────────── */
.why-us-wrapper {
    padding-inline: clamp(1rem, 3vw, 2rem);
    padding-block: 2rem;
}

.why-modern {
    background-color: var(--color-cream);
    border-radius: var(--r-lg);
    padding-block: clamp(4rem, 8vw, 6rem);
}

.why-modern-inner {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.why-modern-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.why-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
}

.why-subtitle {
    font-size: 1.0625rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* Graphic CSS Grid */
.why-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
}

.why-grid-modern article:nth-child(even) {
    transform: translateY(1.5rem);
}

.why-card-modern {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Hover Gradient Background */
.why-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-brand);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.why-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(11, 96, 205, 0.12);
}

.why-grid-modern article:nth-child(even):hover {
    transform: translateY(calc(1.5rem - 6px));
}

.why-card-modern:hover::before {
    opacity: 1;
}

/* Icon layers */
.card-modern-icon {
    position: relative;
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
}

.icon-layer-back {
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.12);
    border-radius: 14px;
    transform: rotate(-10deg);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card-modern:hover .icon-layer-back {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(0deg) scale(1.05);
}

.card-modern-icon svg {
    position: absolute;
    width: 28px;
    height: 28px;
    top: 14px;
    left: 14px;
    color: var(--color-primary);
    transition: all 0.5s ease;
}

.why-card-modern:hover .card-modern-icon svg {
    color: #fff;
    transform: scale(1.1);
}

/* Content styling */
.card-modern-content {
    position: relative;
    transition: color 0.5s ease;
}

.card-modern-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1;
    color: rgba(11, 96, 205, 0.06);
    position: absolute;
    top: -3rem;
    right: 0;
    font-weight: 700;
    transition: all 0.5s ease;
    pointer-events: none;
}

.why-card-modern:hover .card-modern-num {
    color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1) translateX(-8px);
}

.card-modern-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: color 0.5s ease;
}

.card-modern-content p {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.5;
    transition: color 0.5s ease;
    margin: 0;
}

/* Text color changes on hover */
.why-card-modern:hover .card-modern-content h3,
.why-card-modern:hover .card-modern-content p {
    color: #fff;
}

@media (max-width: 991px) {
    .why-grid-modern {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    .why-grid-modern article:nth-child(even) {
        transform: translateY(0);
    }

    .why-grid-modern article:nth-child(even):hover {
        transform: translateY(-6px);
    }
}

/* ── 12. CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
    background-color: var(--color-dark);
    padding-block: clamp(4.5rem, 9vw, 6.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle warm radial glow */
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(11, 96, 205, .18), transparent);
    pointer-events: none;
}

.cta-banner .container {
    position: relative;
}

.cta-banner h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.0625rem;
    color: rgba(245, 240, 232, .58);
    margin-bottom: 2.5rem;
    margin-inline: auto;
}

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ── 13. FAQ ─────────────────────────────────────────────────────── */
.faq-inner {
    max-width: 780px;
}

.faq-list {
    margin-bottom: 2.75rem;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding-block: 1.375rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    transition: color var(--ease);
}

.faq-question::-webkit-details-marker {
    display: none;
}

/* Chevron icon via SVG data-URI */
.faq-question::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2322D3EE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform var(--ease);
}

details[open]>.faq-question::after {
    transform: rotate(180deg);
}

details[open]>.faq-question {
    color: var(--color-primary);
}

.faq-answer {
    padding-bottom: 1.375rem;
}

.faq-answer p {
    font-size: .9375rem;
    color: var(--color-muted);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
}

/* ── 14. Footer ──────────────────────────────────────────────────── */
.footer {
    background-color: var(--color-text);
    color: rgba(245, 240, 232, .65);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-block: 3.5rem;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: .85;
    margin-bottom: .875rem;
}

.footer-brand-desc {
    font-size: .875rem;
    line-height: 1.65;
    max-width: 30ch;
}

.footer-col-title {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, .38);
    margin-bottom: 1rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-nav a {
    font-size: .9rem;
    transition: color var(--ease);
}

.footer-nav a:hover {
    color: var(--color-cream);
}

.footer-contact address {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer-contact p {
    font-size: .875rem;
    max-width: none;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 240, 232, .08);
    padding-block: 1.375rem;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: .8125rem;
    max-width: none;
    line-height: 1.5;
}

.footer-bottom nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-bottom a {
    font-size: .8125rem;
    transition: color var(--ease);
}

.footer-bottom a:hover {
    color: var(--color-cream);
}

/* ── 15. WhatsApp float ──────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-float);
    display: flex;
    align-items: center;
    gap: .5rem;
    background-color: #25d366;
    color: #fff;
    padding: .75rem 1.25rem;
    border-radius: var(--r-pill);
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 4px 18px rgba(37, 211, 102, .38);
    cursor: pointer;
    transition: background-color var(--ease), box-shadow var(--ease),
        transform var(--ease);
}

.whatsapp-float:hover {
    background-color: #1da853;
    box-shadow: 0 6px 28px rgba(37, 211, 102, .48);
    transform: translateY(-2px);
}

/* ── 16. Responsive ──────────────────────────────────────────────── */

/* Tablet up: show split hero */
@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: 1.05fr .95fr;
        align-items: center;
    }

    .hero-visual {
        display: block;
    }

    .about-inner {
        grid-template-columns: 1fr 1.2fr;
    }

    .why-inner {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 5rem;
    }
}

/* Mobile menu */
@media (max-width: 899px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background-color: rgba(47, 40, 133, .99);
        padding: 5.5rem 2rem 2rem;
        gap: .25rem;
        z-index: calc(var(--z-nav) - 1);
        overflow-y: auto;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.375rem;
        padding: .875rem 1rem;
        color: rgba(245, 240, 232, .85);
    }

    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

/* Mobile */
@media (max-width: 639px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .trust-ledger {
        grid-template-columns: 1fr;
    }

    .trust-card:not(:last-child)::after {
        right: 15%;
        left: 15%;
        bottom: 0;
        top: auto;
        height: 1px;
        width: auto;
    }

    .why-cards {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-watermark {
        font-size: 60vw;
    }

    .about-bento {
        grid-template-columns: 1fr;
    }

    .bento-item {
        grid-column: span 1 !important;
        min-height: 160px;
    }
}

/* ── 17. Focus & a11y ────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* ── 17b. Visítanos / Mapa ───────────────────────────────────────── */
.visit-us {
    background-color: #fff;
}

.visit-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.visit-text .section-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.visit-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
}

.visit-desc {
    font-size: 1.0625rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 50ch;
}

.visit-address {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.75rem;
}

.visit-address p {
    font-size: .9375rem;
    color: var(--color-text);
    line-height: 1.6;
    max-width: none;
}

.visit-address a {
    color: var(--color-primary);
    transition: color var(--ease);
}

.visit-address a:hover { color: var(--color-accent); }

.visit-map {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg);
    aspect-ratio: 4/3;
    background-color: var(--color-cream);
}

.visit-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 899px) {
    .visit-inner { grid-template-columns: 1fr; }
    .visit-map   { aspect-ratio: 16/11; }
}


/* ── 18. Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}