/* ══════════════════════════════════════════════════════════
   JQ FINANCIAL ADVISOR — DESIGN SYSTEM
   Fonts: Hubballi (headings) · Afacad (body)
   Colors: navy · gold · magenta · off-white
   ══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
    --navy: #0b1d35;
    --navy-card: #112240;
    --navy-mid: #1a3a5c;
    --gold: #c9a84c;
    --gold-light: #e0c06e;
    --gold-dim: rgba(201, 168, 76, 0.15);
    --magenta: #c4006a;
    --white: #ffffff;
    --off-white: #f8f5ee;
    --text-dark: #0b1d35;
    --text-mid: #3d5166;
    --text-muted: #8a9bb0;
    --border: rgba(201, 168, 76, 0.25);
    --surface-line: rgba(11, 29, 53, 0.08);
    --shadow-soft: 0 10px 24px rgba(11, 29, 53, 0.08);
    --shadow-medium: 0 18px 44px rgba(11, 29, 53, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --transition: all 0.3s ease;
}

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

/* scroll-behavior handled per-call in JS so pinScroll stays instant */

body {
    font-family: 'Afacad', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

h1,
h2,
h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    line-height: 1.1;
}

/* ── Container ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-family: 'Hubballi', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

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

.btn-magenta:hover {
    background: #a5005a;
    border-color: #a5005a;
}

.btn-dark {
    font-family: 'Hubballi', Georgia, serif;
    font-weight: 600;
    /* font-size: 48pt; */
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn-dark:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 29, 53, 0.25);
}

.btn-whatsapp {
    font-weight: bold;
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ── Shared section label ──────────────────────────────── */
.section-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.section-eyebrow.light {
    color: rgba(201, 168, 76, 0.8);
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid rgba(11, 29, 53, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(11, 29, 53, 0.12);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar-logo img {
    height: 56px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: var(--gold-dim);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(11, 29, 53, 0.08) 0%, rgba(11, 29, 53, 0) 36%),
        radial-gradient(circle at 12% 84%, rgba(201, 168, 76, 0.2) 0%, rgba(201, 168, 76, 0) 34%),
        var(--off-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* navbar height */
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 245, 238, 0) 0%, var(--off-white) 100%);
}

.hero-content {
    padding: 5rem 0;
    max-width: 760px;
}

.hero-name {
    font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Hubballi', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: 'Afacad', sans-serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 620px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 2rem;
    max-width: 720px;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--surface-line);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.2rem;
}

.hero-metric-value {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--navy);
    font-size: 1.15rem;
    line-height: 1.2;
}

.hero-metric-label {
    color: var(--text-mid);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.trust-pill {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    border: 1px solid rgba(11, 29, 53, 0.18);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
}

.legal-note {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: rgba(11, 29, 53, 0.65);
    line-height: 1.45;
}

.legal-note-light {
    color: rgba(255, 255, 255, 0.62);
}

.credibilidad {
    background: linear-gradient(180deg, var(--off-white) 0%, #f2ede1 100%);
    padding: 0 0 4.5rem;
}

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

.cred-card {
    background: var(--white);
    border: 1px solid var(--surface-line);
    border-top: 3px solid var(--gold);
    border-radius: 14px;
    padding: 1.2rem 1.15rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cred-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.cred-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.cred-card h3 {
    font-family: 'Afacad', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.cred-card p {
    font-size: 0.96rem;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   SERVICES — sticky scroll track (one card at a time)
   ══════════════════════════════════════════════════════════ */
.servicios {
    position: relative;
    background: var(--off-white);
}

.servicios::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 245, 238, 0) 0%, var(--off-white) 100%);
}

/* Tall scroll track — 100vh per card = natural 1 scroll = 1 card */
.svc-track {
    height: 700vh;
    position: relative;
}

/* Sticky viewport-height panel */
.svc-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--off-white);
}

/* Content layout */
.svc-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* navbar height */
    gap: 2rem;
}

.svc-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-shrink: 0;
}

.svc-section-title {
    display: block;
    width: 100%;
    font-family: 'Afacad', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    text-decoration: underline;
    text-decoration-color: var(--navy);
    text-underline-offset: 10px;
    text-decoration-thickness: 3px;
}

.section-heading .svc-section-title {
    text-wrap: balance;
}

.svc-counter {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
}

/* Card row: holds the magenta bar + the card */
.svc-card-row {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding-bottom: 1.5rem;
}

.svc-stack {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    width: auto;
    height: var(--svc-card-height, clamp(320px, 54vh, 500px));
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.svc-stack-card {
    --svc-stack-x: 0px;
    --svc-stack-y: 0px;
    --svc-stack-z: 0px;
    --svc-stack-scale: 1;
    --svc-stack-opacity: 0;
    position: absolute;
    inset: 0;
    border-radius: 43px;
    background: linear-gradient(150deg, rgba(11, 29, 53, 0.2), rgba(11, 29, 53, 0.3));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.18);
    opacity: var(--svc-stack-opacity);
    transform: perspective(1450px) translate3d(var(--svc-stack-x), var(--svc-stack-y), var(--svc-stack-z)) scale(var(--svc-stack-scale));
    box-shadow: 0 20px 34px rgba(11, 29, 53, 0.2);
    transition: transform 0.44s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.svc-stack-card.stack-visible {
    opacity: var(--svc-stack-opacity, 0.6);
}

.svc-stack-card.stack-1 {
    --svc-stack-y: 72px;
    --svc-stack-z: -24px;
    --svc-stack-scale: 0.92;
    --svc-stack-opacity: 0.72;
}

.svc-stack-card.stack-2 {
    --svc-stack-y: 146px;
    --svc-stack-z: -48px;
    --svc-stack-scale: 0.84;
    --svc-stack-opacity: 0.54;
}

.svc-stack-card.stack-3 {
    --svc-stack-y: 212px;
    --svc-stack-z: -70px;
    --svc-stack-scale: 0.77;
    --svc-stack-opacity: 0.4;
}

/* Full-width magenta accent bar behind the card */
.svc-magenta-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 22px;
    background: var(--magenta);
    z-index: 0;
    pointer-events: none;
}

/* The image card */
.svc-card {
    --svc-card-height: clamp(320px, 54vh, 500px);
    --svc-perspective: 1450px;
    --svc-depth-x: 0px;
    --svc-depth-shift: 0px;
    --svc-depth-z: 0px;
    --svc-depth-scale: 1;
    --svc-depth-tilt: 0deg;
    --svc-shadow-lift: 0px;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    height: var(--svc-card-height);
    border-radius: 43px;
    overflow: hidden;
    transform-style: preserve-3d;
    transform-origin: center center;
    transform: perspective(var(--svc-perspective)) translate3d(var(--svc-depth-x), var(--svc-depth-shift), var(--svc-depth-z)) rotateY(var(--svc-depth-tilt)) scale(var(--svc-depth-scale));
    box-shadow: 0 calc(22px + var(--svc-shadow-lift)) calc(58px + var(--svc-shadow-lift)) rgba(11, 29, 53, 0.2);
    will-change: transform;
    transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-card.svc-front-down {
    --svc-depth-shift: -20px;
    --svc-depth-scale: 0.965;
}

.svc-card.svc-front-up {
    --svc-depth-shift: 20px;
    --svc-depth-scale: 0.965;
}

/* A/B background layers for crossfade */
.svc-bg-a,
.svc-bg-b {
    position: absolute;
    inset: 0;
    transition: opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-bg-a img,
.svc-bg-b img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.15);
}

.svc-bg-b {
    opacity: 0;
}

/* Dark gradient — heavy on left where text lives */
.svc-overlay {
    --svc-overlay-alpha: 1;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(11, 29, 53, 0.92) 0%,
        rgba(11, 29, 53, 0.65) 50%,
        rgba(11, 29, 53, 0.20) 100%
    );
    opacity: var(--svc-overlay-alpha);
    z-index: 1;
    transition: opacity 0.42s ease;
}

/* Animated info block — vertically centered inside card */
.svc-info {
    position: absolute;
    z-index: 2;
    left: clamp(1.5rem, 3vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    max-width: 55%;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    transition: opacity 0.44s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-info.svc-exit {
    opacity: 0;
    transform: translateY(calc(-50% + 18px));
}

.svc-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    font-weight: 600;
    font-style: normal;
    color: var(--white);
    line-height: 1.15;
}

.svc-lead {
    font-family: 'Hubballi', Georgia, serif;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 400;
    font-style: normal;
    color: var(--gold);
    line-height: 1.5;
}

.svc-list {
    font-family: 'Afacad', Georgia, serif;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.2rem;
}

.svc-list li {
    font-family: 'Afacad', Georgia, serif;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    padding-left: 1.1rem;
    position: relative;
}

.svc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* Progress dots — dark on light background */
.svc-progress {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    z-index: 3;
}

.svc-dot {
    appearance: none;
    border: 0;
    padding: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(11, 29, 53, 0.18);
    cursor: pointer;
    transition: background 0.52s ease, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-dot.active {
    background: var(--magenta);
    transform: scale(1.5);
}

.svc-dot:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════
   SERVICES — vertical carousel (new implementation)
   ══════════════════════════════════════════════════════════ */
.servicios {
    padding: 6rem 0;
    overflow: visible;
}

.services-carousel-layout {
    display: flex;
    width: 100%;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
    justify-content: center;
}

.services-carousel-section,
.services-controls-section {
    flex: 1;
}

.services-carousel-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-carousel-container {
    width: min(500px, 100%);
    max-width: 500px;
    min-height: min(66vh, 620px);
    position: relative;
    perspective: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    touch-action: pan-x;
    overscroll-behavior: contain;
}

.services-carousel-track {
    width: min(460px, 100%);
    height: clamp(360px, 58vh, 520px);
    min-height: 360px;
    position: relative;
    transform-style: preserve-3d;
    overflow: visible;
}

.services-card {
    position: absolute;
    width: min(420px, calc(100% - 0.75rem));
    height: clamp(170px, 32vh, 236px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.22);
    box-shadow: 0 24px 42px rgba(11, 29, 53, 0.2);
    transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.75s ease, filter 0.75s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    will-change: transform, opacity;
}

.services-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(11, 29, 53, 0.06), rgba(11, 29, 53, 0.18));
    pointer-events: none;
}

.services-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.75s ease;
}

.services-card.is-center {
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.08) translateZ(0);
    opacity: 1;
}

.services-card.is-up-2 {
    z-index: 1;
    transform: translate(-50%, calc(-50% - 280px)) scale(0.8) translateZ(-280px);
    opacity: 0.66;
}

.services-card.is-up-1 {
    z-index: 5;
    transform: translate(-50%, calc(-50% - 145px)) scale(0.9) translateZ(-110px);
    opacity: 0.9;
}

.services-card.is-down-1 {
    z-index: 5;
    transform: translate(-50%, calc(-50% + 145px)) scale(0.9) translateZ(-110px);
    opacity: 0.9;
}

.services-card.is-down-2 {
    z-index: 1;
    transform: translate(-50%, calc(-50% + 280px)) scale(0.8) translateZ(-280px);
    opacity: 0.66;
}

.services-card.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.services-card:not(.is-center) img {
    filter: grayscale(100%);
}

.services-controls-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.services-nav-controls {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.services-nav-arrow {
    background: transparent;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(11, 29, 53, 0.16);
    color: var(--navy);
    font-size: 1.55rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.services-nav-arrow:hover {
    transform: scale(1.1);
    border-color: var(--gold);
    color: var(--magenta);
    box-shadow: 0 12px 24px rgba(11, 29, 53, 0.12);
}

.services-member-info {
    text-align: center;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
}

.services-counter {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.services-member-name {
    color: var(--navy);
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    position: relative;
    display: inline-block;
    transition: opacity 0.4s ease;
}

.services-member-name::before,
.services-member-name::after {
    content: '';
    position: absolute;
    top: calc(100% + 8px);
    width: 62px;
    height: 2px;
    background: var(--navy);
}

.services-member-name::before {
    left: -78px;
}

.services-member-name::after {
    right: -78px;
}

.services-member-role {
    color: var(--magenta);
    font-size: 1rem;
    font-family: 'Afacad', sans-serif;
    line-height: 1.55;
    max-width: 52ch;
    transition: opacity 0.4s ease;
}

.services-member-list {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.5rem;
    color: var(--text-mid);
    font-size: 0.95rem;
    transition: opacity 0.4s ease;
}

.services-member-list li {
    position: relative;
    padding-left: 1rem;
    text-align: left;
}

.services-member-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.services-dots {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.services-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: rgba(11, 29, 53, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.services-dot.active {
    background: var(--magenta);
    transform: scale(1.25);
}

.services-dot:focus-visible,
.services-nav-arrow:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.services-carousel-container > .services-nav-arrow {
    display: none;
}

@media (max-width: 992px) {
    .services-carousel-layout {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .services-carousel-section,
    .services-controls-section {
        width: 100%;
        min-width: 0;
    }

    .services-member-info {
        max-width: 100%;
    }

    .services-carousel-container {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .servicios {
        padding: 4rem 0;
    }

    .services-nav-controls {
        display: none;
    }

    .services-carousel-container {
        max-width: 360px;
        width: min(92vw, 360px);
        min-height: clamp(360px, 55vh, 460px);
        touch-action: none;
        overscroll-behavior: none;
        -webkit-overflow-scrolling: auto;
    }

    .services-carousel-track {
        width: min(92vw, 360px);
        height: clamp(270px, 48vh, 340px);
        min-height: 270px;
        perspective: none;
        transform-style: flat;
        display: block;
        overflow: visible;
    }

    .services-card {
        position: absolute;
        left: 50%;
        top: 50%;
        margin: 0;
        width: min(84vw, 320px);
        height: clamp(150px, 31vw, 180px);
        border-radius: 18px;
        transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, filter 0.22s ease;
        transform: translate(-50%, -50%);
    }

    .services-card.is-center {
        display: block;
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 1;
        pointer-events: auto;
        z-index: 8;
    }

    .services-card.is-up-2 {
        display: block;
        transform: translate(-50%, calc(-50% - 108px)) scale(0.88);
        opacity: 0;
        pointer-events: none;
        z-index: 1;
    }

    .services-card.is-up-1 {
        display: block;
        transform: translate(-50%, calc(-50% - 56px)) scale(0.93);
        opacity: 0.55;
        pointer-events: auto;
        z-index: 4;
    }

    .services-card.is-down-1 {
        display: block;
        transform: translate(-50%, calc(-50% + 56px)) scale(0.93);
        opacity: 0.55;
        pointer-events: auto;
        z-index: 4;
    }

    .services-card.is-down-2 {
        display: block;
        transform: translate(-50%, calc(-50% + 108px)) scale(0.88);
        opacity: 0;
        pointer-events: none;
        z-index: 1;
    }

    .services-card.is-hidden {
        display: none;
    }

    .services-carousel-container > .services-nav-arrow {
        display: inline-flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 62px;
        height: 62px;
        background: rgba(248, 245, 238, 0.95);
        z-index: 30;
    }

    .services-carousel-container > .services-nav-arrow.services-up {
        top: 10px;
    }

    .services-carousel-container > .services-nav-arrow.services-down {
        bottom: 10px;
    }

    .services-member-name {
        font-size: 1.6rem;
    }

    .services-member-name::before,
    .services-member-name::after {
        width: 36px;
    }

    .services-member-name::before {
        left: -48px;
    }

    .services-member-name::after {
        right: -48px;
    }

    .services-member-role {
        font-size: 0.95rem;
    }

    .services-member-list {
        font-size: 0.9rem;
    }

    .services-member-list li:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 420px) {
    .services-carousel-container {
        min-height: clamp(330px, 52vh, 420px);
    }

    .services-carousel-track {
        height: clamp(250px, 45vh, 300px);
        min-height: 250px;
    }

    .services-card {
        width: min(82vw, 300px);
        height: clamp(138px, 38vw, 168px);
    }

    .services-card.is-up-2 {
        transform: translate(-50%, calc(-50% - 92px)) scale(0.89);
        opacity: 0;
    }

    .services-card.is-up-1 {
        transform: translate(-50%, calc(-50% - 48px)) scale(0.94);
        opacity: 0.5;
    }

    .services-card.is-down-1 {
        transform: translate(-50%, calc(-50% + 48px)) scale(0.94);
        opacity: 0.5;
    }

    .services-card.is-down-2 {
        transform: translate(-50%, calc(-50% + 92px)) scale(0.89);
        opacity: 0;
    }

    .services-carousel-container > .services-nav-arrow {
        width: 56px;
        height: 56px;
    }
}

@media (max-height: 680px) and (max-width: 768px) {
    .services-carousel-container {
        min-height: 330px;
    }

    .services-carousel-track {
        height: 285px;
        min-height: 285px;
    }
}

/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
.acerca {
    position: relative;
    background: var(--off-white);
    padding: 6rem 0;
}

.acerca::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 245, 238, 0) 0%, var(--off-white) 100%);
}

.section-heading {
    margin-bottom: 3rem;
    text-align: center;
    display: grid;
    justify-items: center;
}

.section-heading .section-eyebrow {
    margin-bottom: 0.75rem;
}

.section-heading .svc-section-title::after {
    content: '';
    display: block;
    width: min(180px, 45%);
    height: 1px;
    margin: 0.9rem auto 0;
    background: linear-gradient(90deg, rgba(11, 29, 53, 0), rgba(11, 29, 53, 0.35), rgba(11, 29, 53, 0));
}

.acerca-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 5rem;
    align-items: center;
}

.acerca-text>p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    margin-top: 2rem;
}

.about-checks li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
}

.about-checks li img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.acerca-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(11, 29, 53, 0.15);
}

.acerca-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
.contacto {
    position: relative;
    background: transparent;
    padding: 6rem 0;
    overflow: hidden;
}
.contacto::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(180deg, rgba(6, 15, 30, 0) 0%, rgba(6, 15, 30, 0.42) 100%);
}

.contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, #01273e 0%, #0f3551 100%);
    opacity: 0.14;
    z-index: 0;
}

.contacto-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}

.contacto-lead {
    max-width: 520px;
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.contacto-highlights {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 2rem;
}

.contacto-highlights span {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: rgba(11, 29, 53, 0.85);
}

.contacto-highlights span::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(11, 29, 53, 0.08);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.contact-icon {
    font-size: 1.4rem;
    line-height: 1;
    margin-top: 2px;
}

.contact-label {
    font-family: 'Afacad', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-item a {
    font-family: 'Afacad', sans-serif;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 400;
}

.contact-item a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--border);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Contact form */
.contacto-form {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 29, 53, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
}

.contacto-form-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contacto-form h3 {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.contacto-form-intro {
    color: var(--text-mid);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 1.4rem;
}

.contact-trust {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.contact-trust span {
    font-size: 0.82rem;
    color: var(--navy);
    padding-left: 1rem;
    position: relative;
}

.contacto .legal-note-light {
    color: rgba(11, 29, 53, 0.72);
}

.contacto .form-group label {
    color: var(--navy);
}

.contacto .form-group input,
.contacto .form-group textarea {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(11, 29, 53, 0.16);
    color: var(--navy);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contacto .form-group input::placeholder,
.contacto .form-group textarea::placeholder {
    color: rgba(11, 29, 53, 0.45);
}

.contacto .form-group input:focus,
.contacto .form-group textarea:focus {
    background: var(--white);
    border-color: var(--navy-mid);
}

.contact-trust span::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.form-message {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: 'Afacad', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
    background: #060f1e;
    padding-top: 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-brand img {
    height: 64px;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    font-family: 'Hubballi', Georgia, serif;
    font-weight: 200;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.75;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Afacad', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a,
.footer-contact a {
    font-family: 'Afacad', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-contact p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding: 1.5rem 0;
}

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

.footer-bottom p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s;
}

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

/* ══════════════════════════════════════════════════════════
   BLOG — shared across blog.html
   ══════════════════════════════════════════════════════════ */

/* Blog header */
.blog-header {
    background: var(--off-white);
    padding: 5rem 0 4rem;
    padding-top: calc(80px + 4rem);
    /* navbar */
    text-align: center;
}

.blog-header h1 {
    font-family: 'Afacad', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    text-decoration: underline;
    text-decoration-color: var(--magenta);
    text-underline-offset: 10px;
    text-decoration-thickness: 3px;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto;
}

.blog-header-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

/* Blog section */
.blog-section {
    background: var(--white);
    padding: 4rem 0 6rem;
}

.blog-cta-strip {
    background: linear-gradient(180deg, #f3efe4 0%, #ece6d8 100%);
    padding: 2.5rem 0;
}

.blog-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem 2.2rem;
    background: var(--white);
    border: 1px solid rgba(11, 29, 53, 0.08);
    border-radius: 16px;
    padding: clamp(1rem, 2vw, 1.4rem) clamp(1rem, 2.6vw, 1.8rem);
    box-shadow: 0 8px 24px rgba(11, 29, 53, 0.08);
}

.blog-cta-inner h3 {
    font-family: 'Afacad', sans-serif;
    font-size: clamp(1.4rem, 2.3vw, 1.8rem);
    color: var(--navy);
    margin-bottom: 0.45rem;
}

.blog-cta-inner p {
    max-width: 620px;
    color: var(--text-mid);
}

.blog-cta-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.blog-cta-inner .legal-note {
    margin-top: 0.2rem;
}

/* Filters */
.blog-filters {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid rgba(11, 29, 53, 0.15);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-mid);
    font-family: 'Afacad', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--magenta);
    color: var(--navy);
}

.filter-btn.active {
    background: var(--magenta);
    color: var(--white);
    border-color: var(--magenta);
}

/* Blog grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Blog card */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(11, 29, 53, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(11, 29, 53, 0.14);
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--navy-card);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.06);
}

/* Category badge on image */
.blog-category {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--magenta);
}

.blog-category.inversiones {
    background: var(--navy-mid);
}

.blog-category.planificacion {
    background: #3d7a5c;
}

.blog-category.fiscal {
    background: var(--magenta);
}

.blog-category.consultoria {
    background: #6b4e9e;
}

.blog-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: 0.6rem;
}

.blog-card-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
    color: var(--magenta);
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(11, 29, 53, 0.08);
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s;
}

.blog-card:hover .blog-card-link {
    gap: 0.625rem;
}

/* No posts */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Blog post detail */
.blog-post-page {
    background: var(--off-white);
}

.blog-post-container {
    padding-top: calc(80px + 3rem);
    padding-bottom: 3rem;
    background: radial-gradient(circle at 12% 10%, rgba(201, 168, 76, 0.14) 0%, rgba(201, 168, 76, 0) 38%), var(--off-white);
}

.blog-post-loading {
    min-height: 50vh;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.blog-post-hero {
    max-width: 860px;
    margin: 0 auto 1.5rem;
}

.blog-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-post-back::before {
    content: '\2190';
}

.blog-post-back:hover {
    color: var(--gold);
}

.blog-post-category {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(196, 0, 106, 0.12);
    color: var(--magenta);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.blog-post-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.15rem);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.blog-post-meta span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(11, 29, 53, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
}

.blog-post-cover {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(11, 29, 53, 0.12);
}

.blog-post-cover img {
    width: 100%;
    height: clamp(260px, 42vw, 460px);
    object-fit: cover;
}

.blog-post-body {
    max-width: 860px;
    margin: 2rem auto 0;
    background: var(--white);
    border: 1px solid rgba(11, 29, 53, 0.08);
    border-radius: 18px;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    box-shadow: 0 8px 30px rgba(11, 29, 53, 0.08);
}

.blog-post-body h2 {
    font-family: 'Afacad', Georgia, serif;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    color: var(--navy);
    margin: 2rem 0 0.8rem;
}

.blog-post-body h3 {
    font-family: 'Afacad', Georgia, serif;
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    color: var(--navy-mid);
    margin: 1.4rem 0 0.6rem;
}

.blog-post-body h2:first-child {
    margin-top: 0;
}

.blog-post-body p {
    font-size: 1.06rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-post-body ul {
    list-style: none;
    margin: 0.4rem 0 1.2rem;
    padding-left: 0;
}

.blog-post-body ol {
    margin: 0.4rem 0 1.2rem;
    padding-left: 1.3rem;
    color: var(--text-mid);
}

.blog-post-body li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-mid);
    margin-bottom: 0.45rem;
}

.blog-post-body ol li {
    padding-left: 0.25rem;
}

.blog-post-body li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.blog-post-body ol li::before {
    content: none;
}

.blog-post-body blockquote {
    margin: 1.2rem 0;
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--gold);
    background: rgba(201, 168, 76, 0.1);
    color: var(--text-mid);
}

.blog-post-body code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.92em;
    background: rgba(11, 29, 53, 0.08);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    color: var(--navy);
}

.blog-post-body hr {
    border: 0;
    border-top: 1px solid rgba(11, 29, 53, 0.15);
    margin: 1.4rem 0;
}

.blog-post-body a {
    color: var(--magenta);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.blog-post-body a:hover {
    color: #9f0058;
}

.related-posts {
    background: linear-gradient(180deg, var(--off-white) 0%, #f2eee4 100%);
    padding: 1rem 0 5rem;
}

.blog-post-cta-strip {
    padding-top: 0;
}

.related-posts h2 {
    font-family: 'Afacad', sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-post-error-wrap {
    min-height: 50vh;
    display: grid;
    place-items: center;
}

.blog-post-error {
    max-width: 560px;
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(11, 29, 53, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(11, 29, 53, 0.1);
}

.blog-post-error h2 {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.blog-post-error p {
    color: var(--text-mid);
    margin-bottom: 1.25rem;
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL (lightweight)
   ══════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .svc-track {
        height: 720vh;
    }

    .hero-content {
        max-width: 880px;
        margin: 0 auto;
        text-align: center;
        padding: 4.5rem 0 3.2rem;
    }

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

    .hero-tagline {
        width: min(100%, 42rem);
        margin-left: auto;
        margin-right: auto;
        text-wrap: balance;
    }

    .hero-metrics {
        margin: 0 auto 2rem;
    }

    .hero-trust {
        justify-content: center;
    }

    /* slightly more dwell on smaller screens */
    .acerca-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .acerca-photo {
        max-width: 500px;
    }

    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {

    .container {
        padding: 0 1.25rem;
    }

    .navbar-inner {
        height: 74px;
    }

    .hero-content {
        padding: 4.75rem 0 3.35rem;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .svc-track {
        height: 660vh;
    }

    /* Navbar mobile */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 1rem 2rem 1.5rem;
        gap: 0.25rem;
        box-shadow: 0 8px 24px rgba(11, 29, 53, 0.12);
        border-bottom: 2px solid var(--gold-dim);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    /* Hero */
    .hero-name {
        font-size: clamp(2.8rem, 14vw, 5rem);
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        width: min(100%, 34rem);
        margin-left: auto;
        margin-right: auto;
        text-wrap: balance;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
        margin-top: 0.2rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        margin-bottom: 1.5rem;
    }

    .hero-trust {
        margin-top: 1rem;
        justify-content: center;
    }

    .credibilidad {
        padding-bottom: 3.5rem;
    }

    .credibilidad-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-actions .btn {
        width: min(100%, 17rem);
        min-width: 0;
    }

    /* Services */
    .svc-card-row {
        padding: 0 0.45rem 1rem;
    }

    .svc-card {
        --svc-card-height: clamp(420px, 68vh, 560px);
        --svc-perspective: 1020px;
        width: 100%;
        margin: 0;
        border-radius: 24px;
        height: var(--svc-card-height);
    }

    .svc-stack {
        left: 0;
        right: 0;
    }

    .svc-stack-card.stack-1 {
        --svc-stack-y: 62px;
        --svc-stack-scale: 0.92;
    }

    .svc-stack-card.stack-2 {
        --svc-stack-y: 118px;
        --svc-stack-scale: 0.85;
    }

    .svc-stack-card.stack-3 {
        --svc-stack-y: 166px;
        --svc-stack-scale: 0.79;
    }

    .svc-stack-card {
        border-radius: 24px;
    }

    .svc-overlay {
        background: linear-gradient(
            180deg,
            rgba(11, 29, 53, 0.28) 0%,
            rgba(11, 29, 53, 0.74) 45%,
            rgba(11, 29, 53, 0.94) 100%
        );
    }

    .svc-info {
        left: 1rem;
        right: 1rem;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        max-width: none;
        gap: 0.4rem;
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        backdrop-filter: none;
        text-align: center;
        align-items: center;
    }

    .svc-card {
        --svc-depth-z: -24px;
    }

    .svc-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        line-height: 1.2;
    }

    .svc-lead {
        font-size: 1rem;
        line-height: 1.45;
    }

    .svc-list {
        margin-top: 0.35rem;
        gap: 0.28rem;
        align-items: center;
    }

    .svc-list li {
        font-size: 0.89rem;
        line-height: 1.35;
        padding-left: 0;
        max-width: 30ch;
    }

    .svc-list li::before {
        content: none;
    }

    .svc-list li:nth-child(n+4) {
        display: none;
    }

    .svc-magenta-bar {
        height: 16px;
    }

    .svc-section-title {
        font-size: 1.8rem;
    }

    .svc-counter {
        position: static;
        transform: none;
    }

    .svc-progress {
        right: 1rem;
        top: auto;
        bottom: 0.55rem;
        transform: none;
        flex-direction: row;
        gap: 0.45rem;
    }

    .svc-content {
        gap: 1.5rem;
        padding-top: 70px;
    }

    .svc-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* About */
    .acerca {
        padding: 4rem 0;
    }

    .acerca-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .about-checks li img {
        width: 32px;
        height: 32px;
    }

    /* Contact */
    .contacto {
        padding: 4rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contacto-form {
        padding: 1.75rem;
    }

    .contact-item {
        padding: 0.8rem 0.9rem;
    }

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

    .footer-brand {
        grid-column: auto;
    }

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

    /* Blog */
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .blog-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .blog-post-container {
        padding-top: calc(80px + 2rem);
        padding-bottom: 2rem;
    }

    .blog-post-title {
        font-size: clamp(1.85rem, 7vw, 2.4rem);
    }

    .blog-post-meta {
        gap: 0.55rem;
    }

    .blog-post-body p {
        font-size: 1rem;
    }

    .related-posts {
        padding-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.95rem;
    }

    .svc-track {
        height: 620vh;
    }

    .svc-card-row {
        padding: 0 0.2rem 0.85rem;
    }

    .svc-card {
        --svc-card-height: clamp(400px, 72vh, 520px);
        --svc-perspective: 900px;
        border-radius: 16px;
        height: var(--svc-card-height);
    }

    .svc-stack-card {
        border-radius: 16px;
    }

    .svc-info {
        left: 0.85rem;
        right: 0.85rem;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        padding: 0;
        border-radius: 0;
    }

    .hero-content {
        padding: 4.35rem 0 3rem;
    }

    .hero-tagline {
        width: min(100%, 26rem);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        width: 100%;
        align-items: center;
    }

    .hero-actions .btn {
        width: min(100%, 16rem);
    }

    .svc-title {
        font-size: clamp(1.16rem, 5.5vw, 1.42rem);
    }

    .svc-lead {
        font-size: 0.86rem;
    }

    .svc-list li {
        font-size: 0.8rem;
        line-height: 1.32;
        max-width: 27ch;
    }

    .svc-list li:nth-child(n+3) {
        display: none;
    }

    .svc-magenta-bar {
        height: 12px;
    }

    .svc-progress {
        right: 0.75rem;
        bottom: 0.42rem;
    }

    .svc-card {
        --svc-depth-z: -16px;
        --svc-depth-tilt: 0deg;
    }

    .contacto-form {
        padding: 1.1rem;
    }

    .contact-item {
        padding: 0.72rem 0.78rem;
    }
}

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

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

    .svc-card {
        transform: none !important;
        box-shadow: 0 16px 34px rgba(11, 29, 53, 0.16);
    }

    .svc-overlay {
        opacity: 1 !important;
    }

    .svc-stack-card {
        opacity: 0 !important;
        transform: none !important;
    }
}

/* Print */
@media print {

    .navbar,
    .footer {
        display: none;
    }

    body {
        font-size: 11pt;
    }
}
