/* ============================================
   ATTIC STORIES — Dark Cinematic Theme
   ============================================

   Brand Colors (Marca Madre):
   - BORGONA:     #4e1517 (accent borgoña oscuro)
   - MADERA:      #2e0907 (profundidad)
   - GOLD CTA:    #FFAE45 (ámbar cálido — CTA principal)
   - GOLD BRIGHT: #FFD900 (dorado brillante — hover)
   - CREAM:       #f9f9ff (blanco cálido — texto sobre oscuro)

   Sublíneas:
   - SKY:         #81CEFA / #FFAE45 / #FF6F66
   - GOLD:        #FFD900 / #FFAE45 / #2C2F54
   - BLACK:       #121212 / #4A4A4A / #002A3D

   Typography:
   - Headings: EB Garamond (serif, 400-700)
   - Body: Inter (sans-serif, 300-600)

   ============================================ */

:root {
    /* ── Accents — borgoña y dorado ── */
    --terracotta: #4e1517;
    --terracotta-light: #7a2030;
    --terracotta-dark: #2e0907;
    --clay: rgba(249, 249, 255, 0.12);
    --clay-light: rgba(249, 249, 255, 0.20);

    /* Text — claro sobre oscuro */
    --sand: #f9f9ff;
    --sand-dark: #f9f9ff;
    --sand-muted: rgba(249, 249, 255, 0.60);
    --earth-400: rgba(249, 249, 255, 0.40);
    --earth-500: rgba(249, 249, 255, 0.50);
    --earth-600: rgba(249, 249, 255, 0.65);
    --earth-700: #2e0907;
    --earth-800: #4e1517;
    --earth-900: #3d1012;

    /* Gold CTA */
    --cyan: #FFAE45;
    --mint: #FFD900;

    /* Backgrounds — borgoña cinematográfico */
    --bg-primary: #4e1517;
    --bg-secondary: #3d1012;
    --bg-dark: #2e0907;

    /* RGB tuples */
    --terracotta-rgb: 78, 21, 23;
    --cyan-rgb: 255, 174, 69;
    --bg-primary-rgb: 78, 21, 23;
    --bg-secondary-rgb: 61, 16, 18;
    --bg-dark-rgb: 46, 9, 7;

    /* Functional */
    --success: #FFAE45;
    --border: rgba(249, 249, 255, 0.10);
    --text-primary: #f9f9ff;
    --text-muted: rgba(249, 249, 255, 0.55);

    /* Spacing */
    --section-padding: 72px;
    --container-max: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Font heading alias */
    --font-heading: 'EB Garamond', Georgia, serif;

    /* Blog aliases */
    --color-sand: var(--sand);
    --color-sand-60: var(--sand-muted);
    --color-sand-40: var(--earth-400);
    --color-accent: var(--cyan);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--sand-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.3s ease;
}

.nav--scrolled {
    background: rgba(var(--bg-dark-rgb), 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 108px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.nav__logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.nav__logo-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
    line-height: 1;
}

.nav__logo-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--sand);
    letter-spacing: 0.14em;
}

.nav__logo-sub {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 9px;
    color: var(--terracotta);
    letter-spacing: 0.28em;
    margin-left: 1px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--sand-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav__links a:hover {
    color: var(--sand);
}

a.nav__cta {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    background: var(--cyan);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.nav__cta:hover {
    background: var(--mint);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(var(--cyan-rgb), 0.3);
}

.nav__mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sand);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 3px;
    margin-left: 12px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--sand-muted);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--sand);
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn--active {
    color: var(--earth-800);
    background: var(--cyan);
    font-weight: 600;
}

.lang-btn--active:hover {
    background: var(--mint);
    color: var(--earth-800);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__mountains {
    position: absolute;
    bottom: -2%;
    left: 50%;
    transform: translateX(-50%);
    width: 115%;
    max-width: none;
    height: auto;
    opacity: 0.12;
    user-select: none;
    will-change: transform;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(var(--bg-dark-rgb),0.55) 100%),
        linear-gradient(to bottom, rgba(var(--bg-dark-rgb),0.45) 0%, transparent 18%, transparent 72%, rgba(var(--bg-dark-rgb),0.65) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 3;
}


/* Animaciones de entrada staggered */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__content--animate .hero__badge {
    animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.2s;
}
.hero__content--animate .hero__title {
    animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.4s;
}
.hero__content--animate .hero__subtitle {
    animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.65s;
}
.hero__content--animate .hero__actions {
    animation: heroFadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.85s;
}

.hero__content {
    max-width: 820px;
}

/* Services strip below hero */
.services-strip {
    background: var(--bg-secondary);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--terracotta);
    background: rgba(var(--terracotta-rgb), 0.1);
    border: 1px solid rgba(var(--terracotta-rgb), 0.25);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--terracotta);
    border-radius: 50%;
}

.hero__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--sand);
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.hero__title .accent {
    background: linear-gradient(135deg, #FFAE45 0%, #FFD900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(249, 249, 255, 0.85);
    display: block;
    max-width: 560px;
    margin: 0 auto 32px;
    font-weight: 300;
    text-shadow: 0 1px 16px rgba(0,0,0,0.6);
}

.hero__actions {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn--primary {
    background: var(--cyan);
    color: var(--earth-900);
    box-shadow: 0 4px 20px rgba(var(--cyan-rgb), 0.25);
}

.btn--primary:hover {
    background: var(--mint);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--cyan-rgb), 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--sand);
    border: 1.5px solid var(--clay);
}

.btn--secondary:hover {
    border-color: var(--terracotta);
    color: var(--terracotta-light);
    background: rgba(var(--terracotta-rgb), 0.08);
}

.btn--large {
    padding: 18px 40px;
    font-size: 15px;
}

/* Hero cards grid (right column) */
.hero__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}


.hero__cards .service-card {
    position: relative;
    z-index: 1;
}

.service-card--compact {
    padding: 24px;
    border-radius: 12px;
}

.service-card--compact .service-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.service-card--compact .service-card__number {
    font-size: 14px;
    color: var(--terracotta);
    margin-bottom: 0;
    line-height: 1;
}

.service-card--compact .service-card__title {
    font-size: 14px;
    margin-bottom: 0;
}

.service-card--compact .service-card__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--sand-muted);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--section-padding) 0;
}

.section--alt {
    background: var(--bg-secondary);
}

.section--dark {
    background: var(--bg-dark);
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section__label {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--sand-muted);
    margin-bottom: 12px;
}

.section__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--sand);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section__description {
    font-size: 16px;
    color: var(--sand-muted);
    line-height: 1.7;
}

/* ============================================
   SERVICES (cards)
   ============================================ */
.service-card {
    background: linear-gradient(135deg,
        rgba(139, 111, 71, 0.1) 0%,
        rgba(74, 87, 89, 0.1) 100%);
    border: 1px solid rgba(96, 102, 117, 0.1);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.service-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 8px 32px rgba(var(--cyan-rgb), 0.1);
    transform: translateY(-4px);
}

.service-card__number {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--earth-600);
    line-height: 1;
    margin-bottom: 20px;
}

.service-card:hover .service-card__number {
    color: rgba(var(--cyan-rgb), 0.2);
}

.service-card__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sand-dark);
}

.service-card__tag {
    display: inline-block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--terracotta);
    background: rgba(var(--terracotta-rgb), 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-top: 16px;
}

/* ============================================
   PROCESS
   ============================================ */
.process__flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.process__step {
    flex: 1;
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.process__step::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--earth-600);
}

.process__step:last-child::after {
    display: none;
}

.process__step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
}

.process__step:nth-child(1) .process__step-badge {
    background: rgba(74, 87, 89, 0.25);
    color: #7A9A9E;
}

.process__step:nth-child(2) .process__step-badge {
    background: rgba(var(--terracotta-rgb), 0.15);
    color: var(--terracotta);
}

.process__step:nth-child(3) .process__step-badge {
    background: rgba(var(--cyan-rgb), 0.1);
    color: var(--cyan);
}

.process__step-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand-muted);
    margin-bottom: 8px;
}

.process__step-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--sand);
    margin-bottom: 12px;
}

.process__step-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--sand-muted);
    max-width: 280px;
    margin: 0 auto;
}

.process__arrow {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--earth-400);
    font-size: 20px;
}

/* ============================================
   TARGET & TECH STACK
   ============================================ */
.target {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.target__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: var(--sand);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.target__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--sand-muted);
    margin-bottom: 32px;
}

.target__verticals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vertical-tag {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.08);
    border: 1px solid rgba(var(--cyan-rgb), 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.target__checklist {
    list-style: none;
}

.target__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--sand-dark);
    margin-bottom: 16px;
    line-height: 1.5;
}

.target__checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: rgba(var(--cyan-rgb), 0.1);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F5C31E'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
}

.target__stack {
    background: rgba(139, 111, 71, 0.08);
    border: 1px solid rgba(96, 102, 117, 0.1);
    border-radius: 20px;
    padding: 48px;
}

.target__stack-label {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-muted);
    margin-bottom: 8px;
}

.target__stack-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--sand);
    margin-bottom: 8px;
}

.target__stack-subtitle {
    font-size: 14px;
    color: var(--sand-muted);
    margin-bottom: 32px;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-pill {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid var(--clay);
    border-radius: 100px;
    color: var(--terracotta);
    background: rgba(139, 111, 71, 0.1);
    transition: all 0.2s ease;
}

.tech-pill:hover {
    border-color: var(--terracotta);
    background: rgba(var(--terracotta-rgb), 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--terracotta-rgb), 0.2);
}

.tech-pill--highlight {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.06);
}

.tech-pill--highlight:hover {
    border-color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.12);
    box-shadow: 0 4px 12px rgba(var(--cyan-rgb), 0.2);
}

.tech-pill--with-desc {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 12px 20px;
}

.tech-pill__name {
    font-weight: 600;
    font-size: 13px;
}

.tech-pill__desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-sand-60);
    line-height: 1.5;
}

/* ============================================
   CONTACT
   ============================================ */
/* Form */
.contact__form {
    background:
        linear-gradient(160deg, rgba(12, 4, 2, 0.72) 0%, rgba(20, 8, 4, 0.68) 100%),
        url('/img/bg-contacto.webp') center/cover no-repeat;
    border: 1px solid rgba(249, 249, 255, 0.10);
    border-radius: 20px;
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form__group {
    margin-bottom: 16px;
}

.form__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--sand-dark);
    margin-bottom: 8px;
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(96, 102, 117, 0.06);
    border: 1px solid rgba(96, 102, 117, 0.15);
    border-radius: 10px;
    color: var(--sand);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--sand-muted);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    border-color: var(--cyan);
    background: rgba(96, 102, 117, 0.08);
    box-shadow: 0 0 0 3px rgba(var(--cyan-rgb), 0.1);
}

.form__select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239AA0AD'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.form__select option {
    background: var(--earth-700);
    color: var(--sand);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__submit {
    width: 100%;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 32px;
    background: var(--cyan);
    color: var(--earth-900);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.form__submit:hover {
    background: var(--mint);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--cyan-rgb), 0.25);
}

/* ============================================
   METRICS STRIP
   ============================================ */
.metrics-strip {
    background: var(--bg-dark);
    border-top: 2px solid var(--terracotta);
    border-bottom: 1px solid var(--border);
    padding: 52px 0;
}

.metrics-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.metrics-strip__item {
    text-align: center;
    padding: 20px 28px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.metrics-strip__item:last-child { border-right: none; }

.metrics-strip__value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 700;
    color: var(--cyan);
    line-height: 1.05;
    margin-bottom: 10px;
    min-height: 3.2rem;           /* all headings start at same Y */
    display: flex;
    align-items: center;
    justify-content: center;
}

.metrics-strip__heading {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 8px;
}

.metrics-strip__value--sm {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.metrics-strip__label {
    font-size: 0.82rem;
    color: var(--sand-muted);
    line-height: 1.45;
    max-width: 170px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .metrics-strip__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .metrics-strip__item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 22px 16px;
    }
    .metrics-strip__item:nth-child(odd) { border-right: 1px solid var(--border); }
    .metrics-strip__item:last-child,
    .metrics-strip__item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* ============================================
   AI-READY SECTION
   ============================================ */
.ai-ready {
    background: var(--bg-primary);
}

.ai-ready__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.ai-ready__card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    position: relative;
    transition: border-color 0.2s;
}
.ai-ready__card:hover { border-color: var(--terracotta); }

.ai-ready__card-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--terracotta);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 16px;
}

.ai-ready__card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ai-ready__card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.ai-ready__card--highlight {
    border-color: var(--terracotta);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(var(--terracotta-rgb),0.06));
}
.ai-ready__card--highlight .ai-ready__card-num { opacity: 0.55; }

@media (max-width: 768px) {
    /* ── AI-Ready: timeline vertical en móvil ── */
    .ai-ready__cards {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        margin-top: 32px;
    }

    /* Línea vertical que conecta los círculos */
    .ai-ready__cards::before {
        content: '';
        position: absolute;
        left: 17px;           /* centro del círculo de 36px */
        top: 38px;            /* empieza bajo el primer círculo */
        bottom: 38px;         /* termina sobre el último */
        width: 1px;
        background: linear-gradient(
            to bottom,
            rgba(var(--terracotta-rgb), 0.15),
            rgba(var(--terracotta-rgb), 0.45) 50%,
            rgba(var(--terracotta-rgb), 0.15)
        );
    }

    /* Cada tarjeta = fila horizontal */
    .ai-ready__card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 18px;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0 0 28px 0;
    }
    .ai-ready__card:last-child { padding-bottom: 0; }
    .ai-ready__card--highlight { background: transparent; }

    /* Número → círculo pequeño anclado a la línea */
    .ai-ready__card-num {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--bg-secondary);
        border: 1.5px solid rgba(var(--terracotta-rgb), 0.35);
        font-size: 0.72rem;
        font-weight: 700;
        opacity: 1;           /* override el 0.25 decorativo del desktop */
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--terracotta);
        margin-top: 2px;
        position: relative;
        z-index: 1;           /* queda sobre la línea */
    }

    /* Círculo relleno para el paso central (destacado) */
    .ai-ready__card--highlight .ai-ready__card-num {
        background: var(--terracotta);
        border-color: var(--terracotta);
        color: #fff;
    }

    /* Título del paso central en cyan para distinguirlo */
    .ai-ready__card--highlight .ai-ready__card-title {
        color: var(--cyan);
    }

    .ai-ready__card-text { font-size: 0.88rem; }
}

/* ============================================
   HOW WE WORK
   ============================================ */
/* proceso__banner removed — section uses full-bg approach */

.how-we-work__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
    position: relative;
}

.how-we-work__step {
    text-align: center;
    padding: 0 16px;
}

.how-we-work__num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--mint);
    opacity: 0.75;
    line-height: 1;
    margin-bottom: 12px;
}

.how-we-work__step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.how-we-work__step-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Connector arrows between steps — hidden for 4-column layout */
.how-we-work__steps::before,
.how-we-work__steps::after {
    display: none;
}

@media (max-width: 768px) {
    /* ── Cómo lo hacemos: stepper con tabs en móvil ── */
    .how-we-work__steps {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: 200px;   /* evita saltos de layout al cambiar steps */
    }
    .how-we-work__steps::before,
    .how-we-work__steps::after { display: none; }

    /* Todos los pasos ocultos; solo el activo se muestra */
    .how-we-work__step {
        display: none;
        text-align: left;
        padding: 24px 0 8px;
        animation: stepFadeIn 0.25s ease both;
    }
    .how-we-work__step.is-active { display: block; }

    @keyframes stepFadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Número: más compacto en el panel */
    .how-we-work__num {
        font-size: 2.8rem;
        margin-bottom: 8px;
    }

    /* Tabs generados por JS */
    .how-we-work__tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 4px;
    }
    .how-we-work__tab {
        flex: 1;
        padding: 10px 4px;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        background: transparent;
        color: var(--text-muted);
        font-family: var(--font-heading);
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
        letter-spacing: 0.05em;
    }
    .how-we-work__tab.is-active {
        background: var(--mint);
        border-color: var(--mint);
        color: #1a1000;
    }
}

/* ============================================
   TECH MARQUEE
   ============================================ */
.tech-marquee {
    margin-top: 64px;
    overflow: hidden;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.tech-marquee__label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.6;
}

.tech-marquee__track {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee__inner {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

.tech-marquee__inner:hover { animation-play-state: paused; }

.tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 32px;
    border-right: 1px solid var(--border);
}

.tech-item img {
    width: 30px;
    height: 30px;
    opacity: 0.45;
    transition: opacity 0.25s;
    display: block;
}
.tech-item:hover img { opacity: 0.85; }

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--earth-900);
    color: var(--sand-muted);
    padding: 44px 0 24px;
    border-top: 1px solid rgba(96, 102, 117, 0.08);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px 48px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(96, 102, 117, 0.08);
    margin-bottom: 20px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer__brand-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
    line-height: 1;
}

.footer__tagline {
    font-size: 14px;
    color: var(--sand-muted);
    max-width: 320px;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    gap: 48px;
}

.footer__links-col h4 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: 16px;
}

.footer__links-col a {
    display: block;
    font-size: 14px;
    color: var(--sand-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer__links-col a:hover {
    color: var(--sand);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--earth-400);
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    color: var(--sand-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__social a:hover {
    color: var(--cyan);
}

/* ============================================
   METRICS STRIP
   ============================================ */
.metrics {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.metrics__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.metrics__item {
    text-align: center;
    padding: 8px 16px;
}

.metrics__value {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 8px;
}

.metrics__label {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--sand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.metrics__detail {
    font-size: 13px;
    color: var(--sand-muted);
    line-height: 1.4;
}

/* ============================================
   ABOUT / TEAM
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    color: var(--sand);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--sand-muted);
    margin-bottom: 16px;
}

.about__text:last-child {
    margin-bottom: 0;
}

.about__text--highlight {
    color: var(--sand-dark);
    font-size: 14px;
    border-left: 2px solid var(--cyan);
    padding-left: 12px;
    opacity: 0.75;
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 8px;
}

.about__value {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about__value-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(var(--cyan-rgb), 0.08);
    border: 1px solid rgba(var(--cyan-rgb), 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
}

.about__value-icon svg {
    width: 22px;
    height: 22px;
}

.about__value-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 4px;
}

.about__value-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sand-muted);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 56px;
}

.compare__col {
    background: rgba(96, 102, 117, 0.03);
    border: 1px solid rgba(96, 102, 117, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.compare__col--highlight {
    border-color: rgba(var(--cyan-rgb), 0.25);
    background: rgba(var(--cyan-rgb), 0.03);
    box-shadow: 0 0 40px rgba(var(--cyan-rgb), 0.06);
}

.compare__header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(96, 102, 117, 0.08);
}

.compare__header--highlight {
    background: rgba(var(--cyan-rgb), 0.06);
    border-bottom-color: rgba(var(--cyan-rgb), 0.15);
}

.compare__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--sand);
    margin-bottom: 2px;
}

.compare__header--highlight .compare__title {
    color: var(--cyan);
}

.compare__subtitle {
    font-size: 13px;
    color: var(--sand-muted);
}

.compare__list {
    list-style: none;
    padding: 20px 24px;
}

.compare__item {
    font-size: 14px;
    line-height: 1.5;
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--sand-dark);
    border-bottom: 1px solid rgba(96, 102, 117, 0.05);
}

.compare__item:last-child {
    border-bottom: none;
}

.compare__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-size: contain;
}

.compare__item--good::before {
    background: rgba(var(--cyan-rgb), 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F5C31E'%3E%3Cpath d='M13.354 4.354a.5.5 0 010 .707l-6 6a.5.5 0 01-.708 0l-3-3a.5.5 0 11.708-.707L7 10.086l5.646-5.647a.5.5 0 01.708 0z'/%3E%3C/svg%3E");
}

.compare__item--good {
    color: var(--sand);
}

.compare__item--bad::before {
    background: rgba(var(--terracotta-rgb), 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23CD5A23'%3E%3Cpath d='M4.646 4.646a.5.5 0 01.708 0L8 7.293l2.646-2.647a.5.5 0 01.708.708L8.707 8l2.647 2.646a.5.5 0 01-.708.708L8 8.707l-2.646 2.647a.5.5 0 01-.708-.708L7.293 8 4.646 5.354a.5.5 0 010-.708z'/%3E%3C/svg%3E");
}

.compare__item--neutral::before {
    background: rgba(168, 155, 130, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239AA0AD'%3E%3Cpath d='M4 8a.5.5 0 01.5-.5h7a.5.5 0 010 1h-7A.5.5 0 014 8z'/%3E%3C/svg%3E");
}

/* ============================================
   WORKFORMAT CHIPS (reemplaza las 4 tarjetas)
   ============================================ */
.workformat-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 8px;
    margin-top: 40px;
    padding: 20px 28px;
    border: 1px solid rgba(var(--terracotta-rgb), 0.2);
    border-radius: 16px;
    background: rgba(var(--terracotta-rgb), 0.04);
}

.workformat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.workformat-chip svg {
    color: var(--cyan);
    flex-shrink: 0;
}

.workformat-chip__sep {
    color: rgba(96, 102, 117, 0.35);
    font-size: 1rem;
    line-height: 1;
    user-select: none;
}

/* En móvil los separadores desaparecen y los chips se apilan en 2 columnas */
@media (max-width: 580px) {
    .workformat-chips {
        justify-content: flex-start;
        gap: 10px 16px;
        padding: 16px 20px;
    }
    .workformat-chip__sep { display: none; }
    .workformat-chip { font-size: 0.82rem; }
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: 0;
}

.cta-banner__inner {
    background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.08) 0%, rgba(var(--terracotta-rgb), 0.08) 100%);
    border: 1px solid rgba(var(--cyan-rgb), 0.15);
    border-radius: 20px;
    padding: 56px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-banner__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--sand);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cta-banner__text {
    font-size: 15px;
    color: var(--sand-muted);
    line-height: 1.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s var(--ease-out);
}

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

.reveal-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.reveal-children--visible > *:nth-child(1) { transition-delay: 0s;   opacity: 1; transform: translateY(0); }
.reveal-children--visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-children--visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-children--visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-children--visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-children--visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-children--visible > *:nth-child(7) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-children--visible > *:nth-child(8) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 56px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .target {
        grid-template-columns: 1fr;
        gap: 48px;
    }


    .process__flow {
        flex-direction: column;
    }

    .process__step::after {
        right: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
    }

    .process__arrow {
        display: none;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta-banner__inner {
        flex-direction: column;
        text-align: center;
        padding: 48px 40px;
    }

    .metrics__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .compare {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .workformat-REMOVED {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
    }

    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: block;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 12px;
    }

    .nav__links--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 108px;
        left: 0;
        right: 0;
        background: rgba(var(--bg-dark-rgb), 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .hero {
        padding: 100px 0 48px;
    }

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

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    /* Mountains: fill the full hero background on mobile.
       object-fit: cover scales the SVG to cover the container without distortion. */
    .hero__mountains {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
        left: 0;
        bottom: 0;
        transform: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Badge: hide on mobile — 3 lines takes too much hero space */
    .hero__badge {
        display: none;
    }

    /* Subtitle: slightly tighter on mobile */
    .hero__subtitle {
        font-size: 16px;
    }

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

    .footer__top {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .footer__links {
        flex-direction: column;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .service-card--compact {
        padding: 20px;
    }

    .metrics__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .metrics__detail {
        display: none;
    }

    .cta-banner__inner {
        padding: 40px 24px;
    }

    /* ── Compare: carrusel centrado en móvil ──
       Freelancer ← [Sediment] → Enterprise
       Sediment ya está en el medio del DOM; snap center lo mantiene ahí. */
    .compare {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        /* 7.5% padding = (100% - 85% card) / 2 → primer y último card pueden centrarse */
        padding-left: 7.5%;
        padding-right: 7.5%;
        padding-bottom: 16px;
        margin-bottom: 8px;
    }
    .compare::-webkit-scrollbar { display: none; }

    .compare__col {
        flex: 0 0 85%;
        scroll-snap-align: center;   /* centrado, no al inicio */
        min-width: 0;
    }

    /* Sediment queda en su posición natural del DOM (centro) */
    .compare__col--highlight {
        order: 0;
    }

    /* Dots del compare — misma lógica que problems */
    .compare__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 4px;
        margin-bottom: 32px;
    }
    .compare__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: var(--border);
        padding: 0;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }
    .compare__dot--active {
        background: var(--terracotta);
        transform: scale(1.3);
    }

    .workformat-REMOVED {
        grid-template-columns: 1fr;
    }

    /* Contact form: reduce padding on mobile */
    .contact__form {
        padding: 24px;
    }

    /* CTA banner: button full-width from 768px (not only 480px) */
    .cta-banner .btn {
        width: 100%;
        text-align: center;
    }

}

/* ============================================
   PROBLEMS SECTION
   ============================================ */
.problems {
    padding: var(--section-padding) 0 40px;
    background: var(--bg-secondary);
}

.problems__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.problem-card {
    background: rgba(var(--bg-dark-rgb), 0.7);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.2s;
}

.problem-card:hover {
    border-color: rgba(var(--terracotta-rgb), 0.35);
    transform: translateY(-2px);
}

.problem-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--terracotta);
    opacity: 0.85;
    flex-shrink: 0;
}

.problem-card__icon svg {
    width: 100%;
    height: 100%;
}

.problem-card__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sand);
    line-height: 1.3;
}

.problem-card__solution {
    font-size: 0.88rem;
    color: var(--sand-muted);
    line-height: 1.6;
    flex: 1;
}

.problem-card__solution strong {
    color: var(--sand-dark);
    font-weight: 500;
}

.problem-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.problem-card__tag {
    font-size: 0.7rem;
    color: var(--sand-muted);
    background: rgba(96, 102, 117, 0.06);
    border: 1px solid rgba(96, 102, 117, 0.1);
    border-radius: 2rem;
    padding: 0.15rem 0.5rem;
}

.problems__cta {
    margin-top: 2.5rem;
    text-align: center;
}

.problems__cta a {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 500;
}

.problems__cta a:hover {
    text-decoration: underline;
}

.inline-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.inline-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .problems__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    /* ── Carrusel horizontal con scroll snap ── */
    .problems__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;          /* Firefox */
        gap: 14px;
        padding-bottom: 16px;
        /* Negative margin bleeds to screen edges; padding restores first-card indent */
        margin-left: calc(-1 * var(--container-padding, 20px));
        margin-right: calc(-1 * var(--container-padding, 20px));
        padding-left: var(--container-padding, 20px);
        padding-right: var(--container-padding, 20px);
    }
    .problems__grid::-webkit-scrollbar { display: none; }

    .problem-card {
        flex: 0 0 82%;       /* 82% wide → 18% of next card always peeks */
        scroll-snap-align: start;
        min-width: 0;
    }

    /* Spacer so last card can scroll fully into view */
    .problems__grid::after {
        content: '';
        flex: 0 0 1px;
    }

    /* Navigation dots */
    .problems__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
    .problems__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: var(--border);
        padding: 0;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }
    .problems__dot--active {
        background: var(--terracotta);
        transform: scale(1.3);
    }
}

/* ============================================
   PACKAGES SECTION
   ============================================ */
.packages {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.package-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(212, 118, 75, 0.06);
    border: 1px solid rgba(212, 118, 75, 0.25);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2.5rem;
    position: relative;
}

.package-banner__left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.package-banner__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.package-banner__list li {
    font-size: 0.9rem;
    color: var(--sand-muted);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.package-banner__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-size: 0.8rem;
}

@media (max-width: 700px) {
    .package-banner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
}

.packages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    align-items: start;
}

.package-card {
    background: rgba(var(--bg-dark-rgb), 0.5);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s;
}

.package-card--highlight {
    background: rgba(var(--terracotta-rgb), 0.07);
    border-color: rgba(var(--terracotta-rgb), 0.4);
    position: relative;
}

.package-card__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--terracotta);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.9rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.package-card__name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sand);
}

.package-card__tagline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--terracotta);
    opacity: 0.85;
}

.package-card__desc {
    font-size: 0.9rem;
    color: var(--sand-muted);
    line-height: 1.6;
}

.package-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.package-card__list li {
    font-size: 0.88rem;
    color: var(--sand-dark);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.4;
}

.package-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-weight: 700;
    font-size: 0.8rem;
}

.package-card__delivery {
    font-size: 0.8rem;
    color: var(--sand-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.package-card__delivery strong {
    color: var(--sand-dark);
}

.package-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 0.25rem;
}

.package-card__price-note {
    font-size: 0.78rem;
    color: var(--sand-muted);
    font-style: italic;
}

.package-card .btn {
    margin-top: 0.5rem;
    text-align: center;
}

.packages__note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--sand-muted);
}

.packages__tracks-label {
    text-align: center;
    margin: 2rem 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--terracotta);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.package-card--entry {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.1fr auto;
    gap: 2.5rem;
    align-items: start;
}

.package-card--entry .package-card__list {
    flex: unset;
}

.package-card__cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 210px;
}

@media (max-width: 860px) {
    .package-card--entry {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.packages__note a {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 900px) {
    .packages__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   SMART BLUEPRINT BANNER
   ============================================ */
.smart-blueprint-banner {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.smart-blueprint-banner__inner {
    background: linear-gradient(135deg, rgba(var(--terracotta-rgb), 0.12), rgba(var(--bg-dark-rgb), 0.5));
    border: 1px solid rgba(var(--terracotta-rgb), 0.3);
    border-radius: 20px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.smart-blueprint-banner__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smart-blueprint-banner__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--sand);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.smart-blueprint-banner__subtitle {
    font-size: 1rem;
    color: var(--sand-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.smart-blueprint-banner__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem 2rem;
}

.smart-blueprint-banner__list li {
    font-size: 0.88rem;
    color: var(--sand-dark);
    padding-left: 1.1rem;
    position: relative;
}

.smart-blueprint-banner__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-size: 0.8rem;
}

.smart-blueprint-banner__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    min-width: 200px;
}

.smart-blueprint-banner__price {
    font-size: 0.8rem;
    color: var(--sand-muted);
}

@media (max-width: 768px) {
    .smart-blueprint-banner__inner {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .smart-blueprint-banner__cta {
        align-items: flex-start;
    }
    .smart-blueprint-banner__list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   AI READY SECTION
   ============================================ */
.ai-ready {
    padding: var(--section-padding) 0;
}

.ai-ready__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.ai-ready__stat {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ai-ready__stat-text {
    font-size: 1rem;
    color: var(--sand-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.ai-ready__blocks {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ai-ready__block {
    background: rgba(var(--bg-dark-rgb), 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.ai-ready__block-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.ai-ready__block-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--sand);
    margin-bottom: 0.4rem;
}

.ai-ready__body {
    color: var(--sand-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.ai-ready__body--last {
    margin-bottom: 2rem;
}

.ai-ready__emphasis {
    color: var(--sand-dark);
}

.ai-ready__block-text {
    font-size: 0.88rem;
    color: var(--sand-muted);
    line-height: 1.6;
}

.ai-ready__checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.75rem 0;
}

.ai-ready__checklist li {
    font-size: 0.88rem;
    color: var(--sand-dark);
    padding-left: 1.25rem;
    position: relative;
}

.ai-ready__checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-weight: 700;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .ai-ready__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.faq__list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__item:last-child {
    border-bottom: none;
}

.faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.4rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.faq__question:hover {
    background: rgba(96, 102, 117, 0.04);
}

.faq__question.is-open {
    background: rgba(var(--terracotta-rgb), 0.06);
}

.faq__question-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sand);
    line-height: 1.4;
}

.faq__question-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--cyan);
    transition: transform 0.25s var(--ease-out);
}

.faq__question.is-open .faq__question-icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__answer.is-open {
    max-height: 400px;
}

.faq__answer-inner {
    padding: 0 1.75rem 1.4rem;
    font-size: 0.93rem;
    color: var(--sand-muted);
    line-height: 1.75;
}

/* ============================================
   BRIEF MEJORAS — Abril 2026
   ============================================ */

/* Unificar color de labels de sección */
.target__stack-label {
    color: var(--terracotta) !important;
}

/* Hero cards: igualar alturas */
.hero__cards {
    align-items: stretch;
}
.hero__cards .service-card--compact {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Métricas: contraste visual como banda separada */
.metrics {
    background: var(--bg-dark);
    border-top: 2px solid var(--terracotta);
    border-bottom: 1px solid var(--border);
}

/* Hero CTAs — paleta cálida sobre fondo borgoña */
.hero__actions .btn--primary {
    background: #f5f0e8;
    color: #1a0505;
    border: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    font-size: 15px;
    font-weight: 700;
}
.hero__actions .btn--primary:hover {
    background: #ffffff;
    color: #1a0505;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.40);
}
.hero__actions .btn--secondary {
    background: rgba(245, 240, 232, 0.12);
    border: 1.5px solid rgba(245, 240, 232, 0.60);
    color: #f5f0e8;
    font-size: 15px;
    font-weight: 600;
}
.hero__actions .btn--secondary:hover {
    background: rgba(245, 240, 232, 0.22);
    border-color: rgba(245, 240, 232, 0.90);
    color: #ffffff;
}

/* "Leer más →": más peso visual */
.blog-card__link {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(var(--terracotta-rgb), 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s, text-decoration-color 0.2s;
}
.blog-card:hover .blog-card__link {
    text-decoration-color: rgba(var(--terracotta-rgb), 0.7);
}

/* Footer: LinkedIn icon alineado */
.footer__social-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.footer__social-icon svg {
    flex-shrink: 0;
}

/* Formulario: nota de privacidad */
.form__privacy {
    font-size: 0.78rem;
    color: var(--earth-400);
    margin-top: 0.75rem;
    line-height: 1.5;
}
.form__privacy a {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-color: rgba(var(--cyan-rgb), 0.4);
    text-underline-offset: 2px;
}
.form__privacy a:hover {
    color: var(--mint);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--earth-700);
    border-top: 1px solid rgba(96, 102, 117, 0.12);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
}
.cookie-banner.is-visible {
    transform: translateY(0);
}
.cookie-banner__text {
    font-size: 13px;
    color: var(--sand-muted);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}
.cookie-banner__text a {
    color: var(--terracotta);
    text-decoration: underline;
}
.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btn {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cookie-btn--accept {
    background: var(--cyan);
    color: var(--earth-900);
}
.cookie-btn--accept:hover {
    background: var(--mint);
}
.cookie-btn--reject {
    background: transparent;
    color: var(--sand-muted);
    border: 1px solid var(--earth-500);
}
.cookie-btn--reject:hover {
    color: var(--sand);
    border-color: var(--earth-400);
}

/* Blog TOC sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

.blog-toc {
    position: sticky;
    top: 100px;
    padding: 1.5rem;
    background: rgba(96, 102, 117, 0.04);
    border: 1px solid rgba(96, 102, 117, 0.1);
    border-radius: 12px;
}

.blog-toc__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.blog-toc__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-toc__list a {
    font-size: 0.85rem;
    color: var(--sand-muted);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
}

.blog-toc__list a:hover,
.blog-toc__list a.is-active {
    color: var(--sand);
    border-left-color: var(--terracotta);
}

.blog-toc__cta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(96, 102, 117, 0.1);
}

.blog-toc__cta p {
    font-size: 0.82rem;
    color: var(--sand-muted);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Blog byline */
.blog-post__byline {
    font-size: 0.82rem;
    color: var(--earth-400);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-post__byline-author {
    color: var(--sand-muted);
    font-weight: 500;
}

.blog-post__byline-sep {
    opacity: 0.4;
}

.blog-post__readtime {
    color: var(--earth-400);
}

/* Blog author box at end of post */
.blog-post__author-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(96, 102, 117, 0.04);
    border: 1px solid rgba(96, 102, 117, 0.1);
    border-radius: 12px;
}

.blog-post__author-box h4 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.blog-post__author-box p {
    font-size: 0.85rem;
    color: var(--sand-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive: hide TOC on mobile, show at bottom */
@media (max-width: 960px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-toc {
        position: static;
        order: 2;
    }
}

/* Process step badge: números más pequeños */
.process__step-badge {
    font-size: 18px;
    letter-spacing: -0.02em;
}

/* ==========================================================
   USE CASES SECTION
   ========================================================== */

.use-cases__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.use-case-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(96, 102, 117, 0.12);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.use-case-card__type {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
}

.use-case-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--color-sand);
    margin: 0;
    line-height: 1.3;
}

.use-case-card__section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.use-case-card__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-sand-60);
}

.use-case-card__section p {
    font-size: 0.92rem;
    color: var(--color-sand-60);
    line-height: 1.6;
    margin: 0;
}

.use-case-card__disclaimer {
    font-size: 0.78rem;
    color: var(--color-sand-40);
    margin: auto 0 0 0;  /* pushes disclaimer to bottom of flex card */
    padding-top: 0.75rem;
    border-top: 1px solid rgba(96, 102, 117, 0.1);
    font-style: italic;
}

@media (max-width: 768px) {
    .use-cases__grid {
        grid-template-columns: 1fr;
    }
}

/* Cases grid — 2-column layout for the restored use cases section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* Skip-to-content link (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    background: var(--terracotta);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 6px 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.15s;
}
.skip-link:focus {
    top: 0;
}

/* ==========================================================
   BLOG NEWSLETTER FORM
   ========================================================== */

.blog-newsletter {
    background: var(--bg-secondary);
    border: 1px solid rgba(96, 102, 117, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.blog-newsletter__question {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}

.blog-newsletter__title {
    font-size: 1.1rem;
    color: var(--color-sand);
    margin: 0 0 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.blog-newsletter__row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-newsletter__input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid rgba(96, 102, 117, 0.25);
    border-radius: 8px;
    color: var(--color-sand);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.blog-newsletter__input:focus {
    border-color: var(--color-accent);
}

.blog-newsletter__input::placeholder {
    color: var(--color-sand-40);
}

.blog-newsletter__btn {
    white-space: nowrap;
}

.blog-newsletter__disclaimer {
    font-size: 0.78rem;
    color: var(--color-sand-40);
    margin: 0.75rem 0 0;
}

.blog-newsletter__success {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
}

/* ============================================
   MOBILE — refinamiento general (< 480px)
   ============================================ */

/* Imágenes y SVGs en contenido markdown */
.blog-post__content img,
.blog-post__content svg {
    max-width: 100%;
    height: auto;
}

/* Tablas en posts: scroll horizontal en vez de overflow */
.blog-post__content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.blog-post__content th,
.blog-post__content td {
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(96, 102, 117, 0.2);
    text-align: left;
    color: var(--color-sand-60);
    white-space: nowrap;
}

.blog-post__content th {
    background: rgba(96, 102, 117, 0.12);
    color: var(--color-sand);
    font-weight: 600;
}

/* Código en posts: scroll horizontal */
.blog-post__content pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
    /* Contenedor */
    .container {
        padding: 0 16px;
    }

    /* Nav: lang-switcher más compacto, logo sin texto en muy chico */
    .lang-switcher {
        margin-left: auto;
        margin-right: 8px;
    }
    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    .nav__logo-text {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 88px 0 36px;
    }
    /* Mountains: extra override not needed, 768px rule handles it */
    .hero__title {
        font-size: clamp(26px, 7vw, 36px);
    }
    .hero__subtitle {
        font-size: 1rem;
    }
    .hero__actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 13px 20px;
    }
    .hero__cards {
        grid-template-columns: 1fr;
    }

    /* Métricas: 1 columna en pantalla muy chica */
    .metrics__grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Packages */
    .packages__grid {
        max-width: 100%;
    }
    .package-card {
        padding: 1.5rem;
    }
    .package-card--entry {
        padding: 1.5rem;
    }

    /* Audit banner */
    .smart-blueprint-banner__inner {
        padding: 1.5rem;
        border-radius: 14px;
    }
    .smart-blueprint-banner__list {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process__step {
        padding: 1.5rem;
    }

    /* Blog post */
    .blog-post {
        padding: 5rem 0 2rem;
    }
    .blog-post__title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
    .blog-post__description {
        font-size: 1rem;
    }

    /* TOC en mobile: ocultar (confunde al final del artículo) */
    .blog-toc {
        display: none;
    }

    /* Blog newsletter */
    .blog-newsletter__form {
        flex-direction: column;
    }
    .blog-newsletter__input {
        min-width: 0;
        width: 100%;
    }

    /* CTA banner */
    .cta-banner__inner {
        padding: 2rem 1.5rem;
        border-radius: 14px;
    }

    /* Secciones: menos padding */
    :root {
        --section-padding: 40px;
    }

    /* Botones: ancho completo en secciones CTA */
    .smart-blueprint-banner__cta .btn,
    .cta-banner .btn {
        width: 100%;
        text-align: center;
    }

    /* About: slightly tighter value-icons on very small screens */
    .about__value-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .about__value {
        gap: 14px;
    }

    /* FAQ: tighter question/answer padding on very small screens */
    .faq__question {
        padding: 1.1rem 1rem;
    }
    .faq__answer-inner {
        padding: 0 1rem 1.1rem;
    }
}

/* ============================================================
   ATTIC STORIES — Secciones específicas
   ============================================================ */

/* ── Sublíneas showcase ── */
.sublineas {
    padding: 72px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.sublineas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sublinea-card {
    background: rgba(var(--bg-dark-rgb), 0.7);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sublinea-card:hover { transform: translateY(-4px); }

.sublinea-card--sky { border-top: 2px solid #81CEFA; }
.sublinea-card--gold { border-top: 2px solid #FFD900; }
.sublinea-card--dark { border-top: 2px solid #4A4A4A; opacity: 0.75; }

.sublinea-card__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 20px;
}

.sublinea-card--sky .sublinea-card__badge {
    background: rgba(129, 206, 250, 0.12);
    color: #81CEFA;
    border: 1px solid rgba(129, 206, 250, 0.25);
}
.sublinea-card--gold .sublinea-card__badge {
    background: rgba(255, 217, 0, 0.12);
    color: #FFD900;
    border: 1px solid rgba(255, 217, 0, 0.25);
}
.sublinea-card--dark .sublinea-card__badge {
    background: rgba(74, 74, 74, 0.12);
    color: #9AA0AD;
    border: 1px solid rgba(74, 74, 74, 0.25);
}

.sublinea-card__name {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 6px;
    line-height: 1.15;
}

.sublinea-card__series {
    font-size: 13px;
    color: var(--sand-muted);
    margin-bottom: 14px;
    font-style: italic;
}

.sublinea-card__desc {
    font-size: 14px;
    color: var(--sand-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

.sublinea-card__link {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, opacity 0.2s;
}
.sublinea-card__link:hover { gap: 10px; }

.sublinea-card--sky .sublinea-card__link { color: #81CEFA; }
.sublinea-card--gold .sublinea-card__link { color: #FFD900; }
.sublinea-card--dark .sublinea-card__link { color: #9AA0AD; }

@media (max-width: 900px) {
    .sublineas__grid { grid-template-columns: 1fr 1fr; }
    .sublinea-card--dark { display: none; }
}
@media (max-width: 600px) {
    .sublineas__grid { grid-template-columns: 1fr; }
    .sublinea-card--dark { display: block; }
}

/* ── Que creamos — imagen de fondo con overlay ── */
#que-creamos {
    background:
        linear-gradient(160deg, rgba(78, 21, 23, 0.35) 0%, rgba(20, 8, 4, 0.30) 100%),
        url('/img/bg-que-creamos.webp') center/cover no-repeat;
    border-bottom: 10px solid var(--bg-primary);
}

#que-creamos .section__header {
    background: rgba(12, 4, 2, 0.58);
    padding: 32px 48px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

#que-creamos .section__label {
    color: var(--mint);
}

#que-creamos .section__title {
    color: var(--sand);
}

#que-creamos .section__description {
    color: rgba(249, 249, 255, 0.82);
}

@media (max-width: 640px) {
    #que-creamos .section__header {
        padding: 24px 20px;
    }
}

/* ── Series: container full-width para reducir márgenes externos ── */
#series > .container {
    max-width: none;
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 580px) {
    #series > .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ── Series showcase ── */
.series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.series-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
    position: relative;
}
.series-card:hover { transform: translateY(-4px); }

.series-card__cover {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
}

.series-card--gold .series-card__cover {
    background: linear-gradient(135deg, #2C2F54 0%, #121212 100%);
    color: #FFD900;
    border-bottom: 1px solid rgba(255, 217, 0, 0.2);
}
.series-card--sky .series-card__cover {
    background: linear-gradient(135deg, #003A6D 0%, #002A3D 100%);
    color: #81CEFA;
    border-bottom: 1px solid rgba(129, 206, 250, 0.2);
}
.series-card--dark .series-card__cover {
    background: linear-gradient(135deg, #121212 0%, #0a0a0a 100%);
    color: #4A4A4A;
    border-bottom: 1px solid rgba(74, 74, 74, 0.2);
}

/* Imagen real en cover de series */
.series-card__cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s var(--ease-out);
}
.series-card:hover .series-card__cover-img {
    transform: scale(1.06);
}
.series-card--sky .series-card__cover-img {
    object-position: center 65%;
}
.series-card--dark .series-card__cover-img {
    object-position: center 20%;
}

.series-card__cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.series-card__cover-label {
    display: none;
}

/* Imagen cinematográfica en sección About */
#nosotros {
    padding-top: 28px;
}

.about__cinematic {
    position: relative;
    height: 420px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    margin-bottom: 3.5rem;
    border: 1px solid var(--border);
    border-top: none;
}

@media (max-width: 768px) {
    .about__cinematic {
        height: 260px;
    }
}
.about__cinematic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 66%;
    display: block;
}
.about__cinematic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(46,9,7,0.88) 0%, rgba(46,9,7,0.35) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 2.5rem;
    gap: 0.75rem;
}
.about__cinematic-quote {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 500;
    font-style: italic;
    color: var(--sand);
    line-height: 1.4;
    max-width: 480px;
    margin: 0;
}
.about__cinematic-overlay .section__label {
    margin-bottom: 0.25rem;
}

.series-card__body {
    padding: 24px;
    background: var(--bg-secondary);
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.series-card--sky .series-card__body {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(129, 206, 250, 0.14) 0%, transparent 55%),
        linear-gradient(180deg, #001428 0%, #002A3D 100%);
}

.series-card--gold .series-card__body {
    background:
        radial-gradient(ellipse at 50% 110%, rgba(255, 215, 0, 0.20) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 174, 69, 0.10) 0%, transparent 40%),
        radial-gradient(ellipse at 15% 70%, rgba(255, 200, 20, 0.08) 0%, transparent 35%),
        linear-gradient(180deg, #1a1000 0%, #2C2F54 100%);
}

.series-card--dark .series-card__body {
    background: linear-gradient(180deg, #050505 0%, #0f0f0f 100%);
}

.series-card__type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.series-card--gold .series-card__type { color: #FFD900; }
.series-card--sky .series-card__type { color: #81CEFA; }
.series-card--dark .series-card__type { color: #4A4A4A; }

.series-card__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 8px;
    line-height: 1.3;
}

.series-card__desc {
    font-size: 13px;
    color: var(--sand-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.series-card__link {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}
.series-card__link:hover { gap: 10px; }
.series-card--gold .series-card__link { color: #FFD900; }
.series-card--sky .series-card__link { color: #81CEFA; }
.series-card--dark .series-card__link { color: #4A4A4A; }

.series-card__serie {
    padding-top: 12px;
    border-top: 1px solid rgba(249,249,255,0.08);
}
.series-card__serie-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand-muted);
    margin-bottom: 4px;
}
.series-card__serie-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--sand-muted);
    opacity: 0.6;
}

@media (max-width: 900px) { .series-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .series-grid { grid-template-columns: 1fr; } }

/* ── B2B / Para tu marca ── */
.b2b-banner {
    background: linear-gradient(135deg, rgba(78,21,23,0.25) 0%, rgba(30,12,14,0.8) 100%);
    border: 1px solid rgba(255,174,69,0.20);
    border-radius: 20px;
    padding: 56px 64px;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
}

.b2b-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,174,69,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.b2b-banner__header {
    text-align: center;
    margin-bottom: 48px;
}

.b2b-banner__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}

.b2b-banner__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 600;
    color: var(--sand);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.b2b-banner__subtitle {
    font-size: 16px;
    color: var(--sand-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.b2b-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.b2b-card {
    background: rgba(var(--bg-primary-rgb), 0.7);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    transition: border-color 0.3s;
}

.b2b-card--featured {
    border-color: rgba(var(--cyan-rgb), 0.30);
    background: rgba(var(--bg-dark-rgb), 0.8);
}

.b2b-card:hover { border-color: rgba(var(--cyan-rgb), 0.4); }

.b2b-card__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.10);
    border: 1px solid rgba(var(--cyan-rgb), 0.20);
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 20px;
}

.b2b-card__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 8px;
}

.b2b-card__price {
    font-size: 14px;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 20px;
}

.b2b-card__list {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.b2b-card__list li {
    font-size: 14px;
    color: var(--sand-muted);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.b2b-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 12px;
}

@media (max-width: 768px) {
    .b2b-banner { padding: 36px 24px; }
    .b2b-cards { grid-template-columns: 1fr; }
}

/* ── Hero nav text logo ── */
.nav__logo-name {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.12em;
}

.nav__logo-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 8px;
    letter-spacing: 0.35em;
    color: var(--cyan);
}

/* ── Secondary btn hover fix (dark theme — non-hero) ── */
.section--dark .btn--secondary:hover,
.section--alt .btn--secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.08);
}

/* ── Hero overlay adjusted for dark bg ── */
.hero__overlay {
    background:
        linear-gradient(to right, rgba(var(--bg-dark-rgb),0.85) 0%, rgba(var(--bg-dark-rgb),0.40) 55%, rgba(var(--bg-dark-rgb),0.10) 100%),
        linear-gradient(to bottom, rgba(var(--bg-dark-rgb),0.50) 0%, transparent 25%, transparent 65%, rgba(var(--bg-dark-rgb),0.75) 100%);
}

/* ── Hero bg dark ── */
.hero {
    background: var(--bg-dark);
}

/* ── Section contact dark = madera oscura ── */
.section--dark {
    background: #2e0907;
}

/* ── Footer bg = más oscuro que el fondo ── */
.footer {
    background: #1e0507;
    border-top: 1px solid rgba(249, 249, 255, 0.08);
}

/* ── Sección Estos somos nosotros ── */
.nosotros-video {
    padding: var(--section-padding) 0;
    background:
        linear-gradient(160deg, rgba(78, 21, 23, 0.90) 0%, rgba(20, 8, 4, 0.88) 100%),
        url('/img/bg-nosotros-video.webp') center/cover no-repeat;
}

.nosotros-video__embed {
    margin-top: 3rem;
}

.nosotros-video__frame-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(249,249,255,0.08);
}

.nosotros-video__frame-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.nosotros-video__caption {
    margin-top: 2rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(249,249,255,0.65);
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}


.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero__video.is-active {
    opacity: 1;
}

/* ── Logo centrado en el hero ── */
.hero__logo-wrap {
    margin-bottom: 2rem;
}

.hero__logo-img {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 32px rgba(255, 174, 69, 0.40));
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

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

/* ── Nav logo imagen ── */
.nav__logo-img {
    height: 100px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* ── Footer social icons ── */
.footer__social {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 16px;
}
.footer__social-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.footer__social-label {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-muted);
}
.footer__social-icons {
    display: flex;
    gap: 8px;
}
.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(249, 249, 255, 0.06);
    color: var(--sand-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.footer__social-link:hover {
    background: rgba(249, 249, 255, 0.14);
    color: var(--sand);
}

/* ── Footer logo imagen ── */
.footer__logo-img {
    height: 55px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ============================================================
   QUÉ CREAMOS — Formato cards (2×2 grid)
   ============================================================ */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.format-card {
    background: linear-gradient(135deg, rgba(var(--bg-dark-rgb), 0.90) 0%, rgba(var(--bg-primary-rgb), 0.50) 100%);
    border: 1px solid rgba(249, 249, 255, 0.07);
    border-radius: 16px;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.format-card--reels {
    background: linear-gradient(135deg, rgba(var(--bg-dark-rgb), 0.48) 0%, rgba(var(--bg-primary-rgb), 0.44) 100%), url('/img/que-creamos-reels.webp') center 85%/cover no-repeat;
}

.format-card--series {
    background: linear-gradient(135deg, rgba(var(--bg-dark-rgb), 0.55) 0%, rgba(var(--bg-primary-rgb), 0.50) 100%), url('/img/que-creamos-series.webp') center/cover no-repeat;
}

.format-card--corto {
    background: linear-gradient(135deg, rgba(var(--bg-dark-rgb), 0.55) 0%, rgba(var(--bg-primary-rgb), 0.50) 100%), url('/img/que-creamos-corto.webp') center 75%/cover no-repeat;
}

.format-card--campana {
    background: linear-gradient(135deg, rgba(var(--bg-dark-rgb), 0.55) 0%, rgba(var(--bg-primary-rgb), 0.50) 100%), url('/img/que-creamos-campana.webp') center 30%/cover no-repeat;
}

.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan) 0%, transparent 70%);
    opacity: 0.65;
}

.format-card {
    z-index: 1;
}

.format-card:hover {
    border-color: rgba(var(--cyan-rgb), 0.22);
    transform: scale(1.04);
    z-index: 2;
}

.format-card__icon {
    width: 44px;
    height: 44px;
    color: var(--cyan);
    margin-bottom: 20px;
    opacity: 0.85;
}

.format-card__icon svg {
    width: 100%;
    height: 100%;
}

.format-card__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 10px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.format-card__desc {
    font-size: 15px;
    color: var(--sand-muted);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.format-card:hover .format-card__title {
    color: #ffffff;
}

.format-card:hover .format-card__desc {
    color: rgba(249, 249, 255, 0.92);
}

@media (max-width: 640px) {
    .formats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   POR QUÉ NOSOTROS — Premium visual (section--comparison)
   ============================================================ */
.section--comparison {
    position: relative;
    background-image: url('/img/bg-comparacion.webp');
    background-size: cover;
    background-position: center;
}

.section--comparison::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 9, 7, 0.78);
    z-index: 0;
}

.section--comparison::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(var(--cyan-rgb), 0.025) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.section--comparison .container {
    position: relative;
    z-index: 1;
}

.section--comparison .compare__col--highlight {
    border-color: rgba(var(--cyan-rgb), 0.35);
    box-shadow: 0 0 60px rgba(var(--cyan-rgb), 0.08), 0 0 0 1px rgba(var(--cyan-rgb), 0.08) inset;
}

/* ============================================================
   PROCESO — Full section background image
   ============================================================ */
#proceso {
    position: relative;
    background: url('/img/bg-proceso.webp') center top/cover no-repeat;
    border-top: 10px solid var(--bg-primary);
    border-bottom: 10px solid var(--bg-primary);
}

#proceso::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 9, 7, 0.62);
    pointer-events: none;
    z-index: 0;
}

#proceso .container {
    position: relative;
    z-index: 1;
}

/* Steps as cards over image */
.how-we-work__step {
    background: rgba(20, 4, 4, 0.72);
    border: 1px solid rgba(249, 249, 255, 0.12);
    border-radius: 12px;
    padding: 28px 20px !important;
    backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
    .how-we-work__step {
        background: rgba(20, 4, 4, 0.80);
        border-radius: 10px;
        padding: 24px 20px 16px !important;
    }
}

/* ============================================================
   SERVICIOS — Background image
   ============================================================ */
#servicios {
    position: relative;
    background: url('/img/bg-marca.webp') center/cover no-repeat;
}

#servicios::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 9, 7, 0.84);
    pointer-events: none;
    z-index: 0;
}

#servicios .container {
    position: relative;
    z-index: 1;
}

/* FAQ — Background image */
#faq {
    position: relative;
    background: url('/img/faq-fondo.webp') center 30%/cover no-repeat;
}

#faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(46, 9, 7, 0.84);
    pointer-events: none;
    z-index: 0;
}

#faq .container {
    position: relative;
    z-index: 1;
}

/* ============================================================
   SERVICIOS — Project type cards (3 columns)
   ============================================================ */
.project-types {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
    padding-top: 14px;
}

.project-card {
    background: rgba(var(--bg-dark-rgb), 0.6);
    border: 1px solid rgba(249, 249, 255, 0.07);
    border-radius: 16px;
    padding: 60px 32px 36px;
    position: relative;
    transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(var(--cyan-rgb), 0.22);
    transform: translateY(-3px);
}

.project-card--featured {
    border-color: rgba(var(--cyan-rgb), 0.28);
    background: linear-gradient(135deg, rgba(var(--bg-dark-rgb), 0.8) 0%, rgba(var(--cyan-rgb), 0.04) 100%);
}

.project-card__badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(var(--cyan-rgb), 0.10);
    border: 1px solid rgba(var(--cyan-rgb), 0.20);
    padding: 3px 10px;
    border-radius: 100px;
    display: inline-block;
    width: fit-content;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.project-card__num {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--cyan);
    opacity: 0.40;
    line-height: 1;
    margin-bottom: 12px;
}

.project-card--featured .project-card__num {
    opacity: 0.65;
}

.project-card__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--sand);
    margin-bottom: 10px;
}

.project-card__desc {
    font-size: 14px;
    color: var(--sand-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.project-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card__list li {
    font-size: 13px;
    color: var(--sand-muted);
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.project-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 11px;
}

.servicios-cta {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.servicios-cta__text {
    font-size: 15px;
    color: var(--sand-muted);
    max-width: 420px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .project-types { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* YouTube facade */
.yt-facade {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yt-facade__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yt-facade__play {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.yt-facade__play:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
