/* ============================================================
   BORR — bundle.css
   Archivo generado para producción. NO editar directamente.
   Fuente editable: main.css + archivos individuales.
   Orden de cascade layers: reset, base, layout, components, utilities.
   Generado manualmente 2026-05-30.
============================================================ */

/* Self-hosted fonts */
@import url('fonts.css');

@layer reset, base, layout, components, utilities;

/* ── tokens.css — fuera de layers (custom properties globales) ── */

/* ============================================================
   TOKENS — tres niveles
   Nivel 1: primitivos  |  Nivel 2: semánticos  |  Nivel 3: componente
   Regla: los componentes solo usan tokens de nivel 2 o 3.
============================================================ */
:root {

  /* ── Nivel 1: Primitivos ── */

  /* Escala de color ink */
  --color-ink:     #1a1a1a;
  --color-ink-rgb: 26, 26, 26;
  --color-ink-94:  rgba(26, 26, 26, 0.94);
  --color-ink-80:  rgba(26, 26, 26, 0.80);
  --color-ink-70:  rgba(26, 26, 26, 0.70);
  --color-ink-60:  rgba(26, 26, 26, 0.60);
  --color-ink-40:  rgba(26, 26, 26, 0.40);
  --color-ink-20:  rgba(26, 26, 26, 0.20);
  --color-ink-10:  rgba(26, 26, 26, 0.10);

  /* Escala de blanco */
  --color-white:     #ffffff;
  --color-white-92:  rgba(255, 255, 255, 0.92);
  --color-white-70:  rgba(255, 255, 255, 0.70);
  --color-white-65:  rgba(255, 255, 255, 0.65);
  --color-white-55:  rgba(255, 255, 255, 0.55);
  --color-white-35:  rgba(255, 255, 255, 0.35);
  --color-white-30:  rgba(255, 255, 255, 0.30);
  --color-white-28:  rgba(255, 255, 255, 0.28);
  --color-white-25:  rgba(255, 255, 255, 0.25);
  --color-white-20:  rgba(255, 255, 255, 0.20);
  --color-white-18:  rgba(255, 255, 255, 0.18);
  --color-white-15:  rgba(255, 255, 255, 0.15);
  --color-white-12:  rgba(255, 255, 255, 0.12);
  --color-white-10:  rgba(255, 255, 255, 0.10);
  --color-white-08:  rgba(255, 255, 255, 0.08);

  /* Superficies */
  --color-bg:      #f0ede6;
  --color-bg-alt:  #e8e4db;

  /* Acento */
  --color-rose:       #ffc5d3;
  --color-rose-75:    rgba(255, 197, 211, 0.75);
  --color-rose-70:    rgba(255, 197, 211, 0.70);
  --color-rose-dim:   rgba(255, 197, 211, 0.15);

  /* Slot de acento — cambiá solo esto para migrar a otro color */
  --color-accent:     var(--color-rose);
  --color-accent-75:  var(--color-rose-75);
  --color-accent-70:  var(--color-rose-70);
  --color-accent-dim: var(--color-rose-dim);

  /* Radio */
  --radius-1:    4px;
  --radius-2:    8px;
  --radius-3:    12px;
  --radius-4:    16px;
  --radius-full: 100px;

  /* Z-index — escala nombrada por rol */
  --z-base:     1;    /* elementos levantados dentro de un componente */
  --z-raised:   10;   /* cards, tooltips flotantes */
  --z-dropdown: 50;   /* menús desplegables */
  --z-nav:      100;  /* navegación sticky */
  --z-overlay:  200;  /* overlays de página */
  --z-modal:    300;  /* modales */
  --z-toast:    400;  /* notificaciones sobre todo */

  /* Breakpoints — referencia (no usables en @media sin PostCSS) */
  /* --bp-sm: 600px  — tablet portrait                          */
  /* --bp-md: 900px  — tablet landscape                         */
  /* --bp-lg: 1280px — desktop                                  */

  /* Espaciado — base 4px, escala Tailwind (número = unidades de 4px) */
  --space-1:   0.25rem;  /*   4px */
  --space-2:   0.5rem;   /*   8px */
  --space-3:   0.75rem;  /*  12px */
  --space-4:   1rem;     /*  16px */
  --space-5:   1.25rem;  /*  20px */
  --space-6:   1.5rem;   /*  24px */
  --space-8:   2rem;     /*  32px */
  --space-10:  2.5rem;   /*  40px */
  --space-12:  3rem;     /*  48px */
  --space-14:  3.5rem;   /*  56px */
  --space-16:  4rem;     /*  64px */
  --space-20:  5rem;     /*  80px */
  --space-24:  6rem;     /*  96px */
  --space-30:  7.5rem;   /* 120px */

  /* Tipografías */
  --font-sans:    'DM Sans', sans-serif;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-serif:   'Lora', serif;

  /* Font weights — 4 valores usados en BORR */
  --fw-regular:   400;  /* cuerpo */
  --fw-medium:    500;  /* UI, etiquetas */
  --fw-bold:      700;  /* énfasis, nav */
  --fw-extrabold: 800;  /* display, headings */

  /* Line heights — escala Material/Tailwind adaptada */
  --lh-tight:   1.1;   /* display, headings grandes */
  --lh-snug:    1.3;   /* sub-headings */
  --lh-base:    1.5;   /* UI labels, captions */
  --lh-relaxed: 1.6;   /* cuerpo, párrafos */
  --lh-loose:   1.75;  /* bloques de texto extenso */

  /* Easing */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);

  /* Duración — referencia HIG/Material */
  --duration-fast:      100ms;  /* hover, focus rings */
  --duration-base:      200ms;  /* mayoría de transiciones */
  --duration-slow:      400ms;  /* entradas, expansiones */
  --duration-very-slow: 800ms;  /* reveal animations */

  /* Escala tipográfica — 7 pasos */
  --fs-2xs:    0.625rem;  /* 10px — decorativo puro */
  --fs-xs:     0.6875rem; /* 11px — etiquetas, badges, nav */
  --fs-sm:     0.75rem;   /* 12px — texto secundario */
  --fs-caption: 0.875rem; /* 14px — bullets, captions */
  --fs-base:   1rem;      /* 16px — cuerpo principal */
  --fs-md:     1.125rem;  /* 18px — énfasis, precios */
  --fs-2xl:    2rem;      /* 32px — pull quote */

  /* ── Nivel 2: Semánticos ── */

  /* Texto sobre fondo claro */
  --text:           var(--color-ink);
  --text-secondary: var(--color-ink-80);
  --text-muted:     var(--color-ink-70);

  /* Texto sobre fondo oscuro */
  --text-on-dark:           var(--color-white);
  --text-on-dark-secondary: var(--color-white-70);
  --text-on-dark-muted:     var(--color-white-55);
  --text-on-dark-strong:    var(--color-white-92);

  /* Texto acento */
  --text-accent:           var(--color-accent);
  --text-accent-on-dark:   var(--color-accent-75);
  --text-accent-dim:       var(--color-accent-70);

  /* Superficies */
  --surface:       var(--color-bg);
  --surface-alt:   var(--color-bg-alt);
  --surface-dark:  var(--color-ink);
  --surface-white: var(--color-white);
  --surface-accent: var(--color-accent-dim);

  /* Bordes */
  --border-subtle: var(--color-ink-10);
  --border-medium: var(--color-ink-20);
  --border-strong: var(--color-white-55); /* borde visible sobre fondos oscuros */

  /* Espaciado semántico — alias por rol, no por tamaño */
  --space-xs:   var(--space-2);   /*  8px — gaps mínimos, separadores */
  --space-sm:   var(--space-4);   /* 16px — padding interno de componente */
  --space-md:   var(--space-6);   /* 24px — gap entre elementos */
  --space-lg:   var(--space-10);  /* 40px — separación entre grupos */
  --space-xl:   var(--space-16);  /* 64px — padding de sección */
  --space-2xl:  var(--space-24);  /* 96px — separación entre secciones */
  --space-3xl:  var(--space-30);  /* 120px — padding macro */

  /* Sizing semántico */
  --radius-sm:  var(--radius-2);
  --radius-md:  var(--radius-3);
  --radius-lg:  var(--radius-4);
  --radius-btn: var(--radius-full);

  /* Roles tipográficos globales */
  --font: var(--font-sans);
  --ease: var(--ease-standard);

  /* Sombras — elevación */
  --shadow-subtle:      0 1px 3px  rgba(var(--color-ink-rgb),0.08);
  --shadow-medium:      0 4px 12px rgba(var(--color-ink-rgb),0.12);
  --shadow-pronounced:  0 8px 24px rgba(var(--color-ink-rgb),0.16);
  --shadow-xl:          0 16px 48px rgba(var(--color-ink-rgb),0.20); /* modales, drawers */

  /* Sombras — estados */
  --shadow-inset:  inset 0 1px 3px rgba(var(--color-ink-rgb),0.08); /* pressed, inputs */
  --shadow-accent: 0 4px 16px rgba(255,197,211,0.25);                /* glow de acento */

  /* Glassmorphism — valores primitivos */
  --glass-blur:    12px;
  --glass-blur-sm: 6px;
  --glass-blur-lg: 24px;

  /* Glass sobre fondo oscuro — cards, panels sobre dark o imagen */
  --glass-dark-bg:       var(--color-white-10);
  --glass-dark-bg-hover: rgba(255,255,255,0.16); /* valor único sin alias de escala */
  --glass-dark-border:   var(--color-white-18);

  /* Glass sobre fondo claro — nav, drawers sobre sand */
  --glass-light-bg:     rgba(240,237,230,0.85);
  --glass-light-border: rgba(var(--color-ink-rgb),0.08);

  /* ── Nivel 3: Componente ── */

  --btn-radius:         var(--radius-btn);
  --btn-font-size:      var(--fs-xs);
  --btn-letter-spacing: 0.22em;
}

/* ── Dark mode — overrides semánticos ── */
[data-theme="dark"] {
  --text:           var(--color-white);
  --text-secondary: var(--color-white-70);
  --text-muted:     var(--color-white-55);
  --surface:        #111111;
  --surface-alt:    rgba(255,255,255,0.06);
  --surface-white:  rgba(255,255,255,0.09);
  --surface-dark:   #000000;
  --surface-accent: rgba(255,197,211,0.08);
  --border-subtle:  rgba(255,255,255,0.08);
  --border-medium:  rgba(255,255,255,0.16);
  --shadow-subtle:      0 1px 3px  rgba(0,0,0,0.30);
  --shadow-medium:      0 4px 12px rgba(0,0,0,0.40);
  --shadow-pronounced:  0 8px 24px rgba(0,0,0,0.50);
  --shadow-xl:          0 16px 48px rgba(0,0,0,0.60);
  color-scheme: dark;
}

/* ── reset.css ── */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
}

/* ── base.css ── */
@layer base {
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }

  body {
    font-family: var(--font);
    background: var(--surface);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
  }

  a { text-decoration: none; }

  svg.ph {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
  }

  a:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
  }

  #hero a:focus-visible,
  #hero button:focus-visible,
  #about a:focus-visible,
  #about button:focus-visible,
  #contact a:focus-visible,
  #contact button:focus-visible {
    outline-color: var(--text-on-dark);
  }

  #header.on-dark a:focus-visible,
  #header.on-dark button:focus-visible {
    outline-color: var(--text-on-dark);
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
  }

  @media (hover: none), (pointer: coarse) {
    body,
    .srv-item,
    .pf-row { cursor: auto; }
  }

  /* Easter egg gif popup */
  .easter-egg-popup {
    position: fixed;
    z-index: var(--z-toast);
    pointer-events: none;
    width: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.88) translateY(10px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
    box-shadow: var(--shadow-xl);
  }

  .easter-egg-popup.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  .easter-egg-popup img {
    display: block;
    width: 100%;
    height: auto;
  }

  @media (hover: none), (pointer: coarse) {
    .easter-egg-popup { display: none; }
  }

  @media (forced-colors: active) {
    body { cursor: auto; }
  }

  .skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--text);
    color: var(--text-on-dark);
    font-family: var(--font);
    font-size: var(--fs-caption);
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
  }

  .skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    overflow: visible;
    white-space: normal;
    top: 16px;
    left: 16px;
  }
}

/* ── layout.css ── */
@layer layout {
  #main-content {
    display: flex;
    flex-direction: column;
  }

  #hero      { order: 1; }
  #problem   { order: 2; }
  #about     { order: 3; }
  #services  { order: 4; }
  #portfolio { order: 5; }
  #contact   { order: 6; }

  .container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding-left: clamp(24px, 5vw, 80px);
    padding-right: clamp(24px, 5vw, 80px);
  }
}

/* ── components/cursor.css ── */
@layer components {
  #cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
    mix-blend-mode: multiply;
  }

  #cursor.hover {
    width: 44px;
    height: 44px;
    background: var(--text-accent);
  }

  @media (max-width: 900px), (hover: none), (pointer: coarse) {
    body { cursor: auto; }
    #cursor { display: none; }
  }
}

/* ── components/loader.css ── */
@layer components {
  #loader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: var(--surface);
  }

  #loader.hidden {
    display: none;
  }

  #loader-greet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 88px);
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
    text-align: center;
    margin: 0;
  }

  #loader-logo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }

  #loader-logo-wrap.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ── components/nav.css ── */
@layer components {
  /* ── Desktop header ── */
  #header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 12px 20px 12px 16px;
    background: var(--color-white-18);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--color-white-35);
    border-radius: var(--radius-btn);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.6s var(--ease),
      opacity 0.6s var(--ease),
      background 0.5s,
      border-color 0.5s,
      box-shadow 0.5s;
    white-space: nowrap;
  }

  #header.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  #header.on-dark {
    background: var(--color-white-12);
    border-color: var(--color-white-25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  #header:not(.on-dark) {
    background: var(--color-ink-10);
    border-color: var(--border-subtle);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  }

  /* Logo */
  .header-logo {
    display: flex;
    align-items: center;
    line-height: 0;
  }

  .header-logo svg { transition: color 0.35s; }

  #header.on-dark .header-logo svg     { color: var(--text-on-dark); }
  #header:not(.on-dark) .header-logo svg { color: var(--text); }


  /* Nav links */
  .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
  }

  .header-nav a {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.2s, opacity 0.2s;
    position: relative;
    z-index: 1;
  }

  #header.on-dark .header-nav a       { color: var(--text-on-dark-secondary); }
  #header.on-dark .header-nav a:hover { color: var(--text-on-dark); }
  #header.on-dark .header-nav a.nav-active { color: var(--text-on-dark); }

  #header:not(.on-dark) .header-nav a       { color: var(--text-secondary); }
  #header:not(.on-dark) .header-nav a:hover { color: var(--text); }
  #header:not(.on-dark) .header-nav a.nav-active { color: var(--text); }

  /* Scrollspy pill */
  .nav-pill {
    position: absolute;
    height: 26px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--radius-full);
    background: var(--color-accent);
    opacity: 0;
    pointer-events: none;
    transition:
      left  0.45s var(--ease),
      width 0.45s var(--ease),
      opacity 0.25s var(--ease);
    z-index: 0;
  }

  .nav-pill.visible { opacity: 1; }

  /* Link activo sobre la pastilla — solo links, no el CTA */
  #header .header-nav a.nav-active:not(.header-cta) { color: var(--color-ink) !important; }

  /* CTA activo (sección contact) — se llena de rosado */
  #header .header-cta.nav-active {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
  }

  #header .header-cta.nav-active .btn-inner { color: var(--color-ink) !important; }

  /* CTA */
  .header-cta {
    padding: 8px 18px;
    border-radius: var(--radius-btn);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
  }

  #header.on-dark .header-cta       { color: var(--text-on-dark); border: 1px solid var(--color-white-35); }
  #header:not(.on-dark) .header-cta { color: var(--text); border: 1px solid var(--border-medium); }

  .header-cta:hover .btn-inner { color: var(--text); }

  @media (max-width: 900px) {
    #header { display: none; }
  }

  /* ── Mobile FAB ── */
  #mobile-fab {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-white-18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-white-30);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.25s;
  }

  #mobile-fab.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  #mobile-fab:hover   { background: var(--color-white-28); }

  #mobile-fab span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }

  #mobile-fab.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  #mobile-fab.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  #mobile-fab.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  @media (max-width: 900px) {
    #mobile-fab { display: flex; }
  }

  /* ── Mobile logo ── */
  #mobile-logo {
    position: fixed;
    bottom: 24px;
    left: 20px;
    z-index: 300;
    display: none;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }

  #mobile-logo.visible        { opacity: 0.55; pointer-events: auto; }
  #mobile-logo svg            { color: var(--text-on-dark); transition: color 0.4s; }
  #mobile-logo.on-light svg   { color: var(--text); }

  @media (max-width: 900px) {
    #mobile-logo { display: flex; }
  }

  /* ── Mobile nav overlay ── */
  #mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: var(--color-ink-94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }

  #mobile-nav.open { opacity: 1; pointer-events: auto; }

  #mobile-nav a {
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-white-65);
    padding: 16px 32px;
    transition: color 0.2s;
  }

  #mobile-nav a:hover { color: var(--text-on-dark); }

  #mobile-nav .nav-cta-mobile {
    margin-top: 16px;
    border: 1px solid var(--color-white-35);
    border-radius: var(--radius-sm);
    color: var(--text-on-dark);
  }

  #mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--color-white-08);
    border: 1px solid var(--color-white-15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-white-65);
    font-size: var(--fs-base);
    font-family: var(--font);
    transition: background 0.2s, color 0.2s;
  }

  #mobile-nav-close:hover { background: var(--color-white-15); color: var(--text-on-dark); }
}

/* ── components/hero.css ── */
@layer components {
  /* ── Section ── */
  #hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    max-height: 960px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--surface-dark);
  }

  #hero-bg {
    position: absolute;
    inset: -60px;
    background-color: var(--color-ink);
    will-change: transform;
    z-index: 0;
  }

  #hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 280px 280px;
  }

  #hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px clamp(24px, 5vw, 120px);
    max-height: 960px;
    display: flex;
    align-items: center;
  }

  /* ── Argument block ── */
  .hero-argument {
    width: 100%;
    max-width: 1100px;
  }

  /* ── L1 — Headline principal ── */
  .hero-l1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    letter-spacing: -0.03em;
    color: var(--text-on-dark);
    margin: 0;
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }

  /* ── L2 — Frase subordinada ── */
  .hero-l2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: var(--fw-regular);
    font-style: italic;
    line-height: var(--lh-snug);
    letter-spacing: -0.01em;
    color: var(--text-on-dark);
    margin: 0;
    margin-top: clamp(2rem, 5vw, 4rem);
  }

  /* ── L3 — CTA textual ── */
  .hero-l3 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: var(--fw-bold);
    letter-spacing: 0.02em;
    line-height: var(--lh-base);
    color: var(--text-on-dark);
    text-decoration: none;
    padding: 8px 14px;
    margin: 0;
    margin-top: clamp(3rem, 6vw, 5rem);
    overflow: hidden;
    opacity: 0.85;
    transition: color 0.4s var(--ease), opacity 0.25s;
  }

  .hero-l3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--surface-white);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s var(--ease);
    z-index: -1;
  }

  .hero-l3:hover {
    opacity: 1;
    color: var(--surface-dark);
  }

  .hero-l3:hover::before {
    transform: scaleX(1);
  }

  .hero-l3 svg {
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
  }

  .hero-l3:hover svg {
    transform: translateX(4px);
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-l3::before { transition: none; }
    .hero-l3 svg     { transition: none; }
  }

  /* ── Shared magnetic button pieces ── */
  .btn-fill {
    position: absolute;
    width: 300%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--text-accent);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
  }

  .btn-magnetic {
    transition: transform 0.4s var(--ease);
  }

  .btn-inner {
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease), color 0.25s 0.12s;
  }

  /* ── Scroll indicator ── */
  .hero-scroll {
    position: absolute;
    inset: auto 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    pointer-events: none;
  }

  .hero-scroll-line {
    width: 0.5px;
    height: 48px;
    background: var(--color-white-25);
    overflow: hidden;
    position: relative;
  }

  .hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--text-on-dark);
    animation: scroll-run 2s ease-in-out infinite;
  }

  @keyframes scroll-run {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
  }

  .hero-scroll-label {
    font-size: var(--fs-2xs);
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-on-dark-secondary);
  }

  /* ── Section tag (shared) ── */
  .section-tag {
    display: inline-block;
    font-size: clamp(11px, 1.2vw, 14px);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 48px;
  }

  .section-tag.rose  { color: var(--text-accent); }
  .section-tag.dark  { color: var(--text-secondary); }
  .section-tag.light { color: var(--text-on-dark-secondary); }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .hero-content {
      padding: 16px 24px 80px;
      min-height: 100svh;
      max-height: 900px;
      align-items: flex-end;
    }

    .hero-scroll { display: none; }
  }

  @media (max-width: 480px) {
    .hero-l1 { letter-spacing: -0.02em; }

    .hero-l2 {
      margin-top: clamp(1.5rem, 4vw, 2rem);
    }

    .hero-l3 {
      margin-top: clamp(2rem, 5vw, 3rem);
      font-size: 1rem; /* floor explícito: nunca menos de 16px */
    }
  }
}

/* ── components/problem.css ── */
@layer components {
  #problem {
    background: var(--surface);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px clamp(24px, 5vw, 120px);
    position: relative;
    overflow: hidden;
  }

  #problem > * {
    width: 100%;
    max-width: 1440px;
  }

  .problem-h2 {
    font-family: var(--font-serif);
    font-size: clamp(52px, 9vw, 112px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 64px;
    max-width: 1100px;
  }

  .problem-h2 em {
    font-style: italic;
    font-weight: 400;
  }

  .problem-cols {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 720px;
  }

  .problem-body {
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-secondary);
  }

  .problem-body--muted { color: var(--text-muted); }

  .problem-body strong {
    color: var(--text);
    font-weight: 700;
  }

  .problem-pull {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-extrabold);
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
  }

  @media (max-width: 900px) {
    #problem {
      padding: 72px 0;
    }

    .problem-h2 { margin-bottom: 40px; }

    .problem-cols { gap: 24px; }
  }
}

/* ── components/services.css ── */
@layer components {
  /* ─────────────────────────────────────────
     Services
     Accordion 01–04 + standalone Google card
  ───────────────────────────────────────── */

  /* ── Section layout ── */

  #services {
    background: var(--surface);
    padding: 120px clamp(24px, 5vw, 120px);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  #services > * {
    width: 100%;
    max-width: 1440px;
  }

  /* ── Section header ── */

  .services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 72px;
    padding-bottom: 40px;
    border-bottom: 0.5px solid var(--border-subtle);
  }

  .services-h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 4vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.92;
    color: var(--text);
    white-space: nowrap;
  }

  /* ── Accordion list ── */

  .srv-list {
    display: flex;
    flex-direction: column;
  }

  .srv-item {
    border-bottom: 0.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
  }

  .srv-item:last-child {
    border-bottom: none;
  }

  .srv-item::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--text-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
  }

  .srv-item:hover            { background: var(--color-ink-10); }
  .srv-item:hover::after     { transform: scaleX(1); }
  .srv-item:hover .srv-num   { color: var(--color-ink-20); }

  @media (hover: hover) and (pointer: fine) {
    /* Card hovered — estado intermedio: borde fuerte, fill sutil */
    .srv-item:hover .srv-cta {
      background: var(--color-ink-10);
      color: var(--text);
      border-color: var(--text);
    }

    /* CTA hoverado directamente — fill completo */
    .srv-item:hover .srv-cta:hover {
      background: var(--text);
      color: var(--surface-white);
      border-color: var(--text);
    }
  }

  /* ── Row: toggle (left) + price/CTA (right) ── */

  .srv-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .srv-toggle {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    padding: 40px 24px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
  }

  /* srv-toggle-cta ya no vive dentro del grid del toggle */

  .srv-num {
    padding-top: 6px;
    font-size: clamp(72px, 9vw, 120px);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--color-ink-10);
    user-select: none;
    transition: color 0.3s;
  }

  .srv-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 48px;
  }

  .srv-name {
    display: block;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
  }

  .srv-tagline {
    display: block;
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 440px;
  }

  .srv-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 40px 24px 0 0;
  }

  .srv-price {
    font-size: var(--fs-md);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
  }

  .srv-time {
    font-size: var(--fs-xs);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
  }

  .srv-badge {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    padding: 4px 10px;
    border-radius: var(--radius-1);
    border: 0.5px solid var(--text-accent);
    background: var(--surface-accent);
  }

  .srv-badge--entry {
    border-color: var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
  }

  .srv-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 7px 16px;
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    border: 1px solid var(--color-ink-40);
    border-radius: var(--radius-sm);
    background: transparent;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
  }

  .srv-cta svg {
    transition: transform 0.25s var(--ease);
  }

  .srv-cta:hover svg {
    transform: translateX(5px);
  }

  @media (prefers-reduced-motion: reduce) {
    .srv-cta svg { transition: none; }
  }

  @media (hover: none), (pointer: coarse) {
    .srv-cta {
      cursor: auto;
      border-width: 1.5px;
      border-color: var(--text);
    }
  }

  /* ── Expandable body ── */

  .srv-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-slow) var(--ease);
  }

  /* Direct grid child must have no padding — padding leaks through a 0fr track */
  .srv-body-inner {
    overflow: hidden;
    min-height: 0;
  }

  .srv-body .srv-center {
    padding: 1rem 24px 24px;
  }

  .srv-item[data-open="true"] .srv-body {
    grid-template-rows: 1fr;
  }

  /* ── Expand / collapse affordance (dentro del srv-toggle) ── */

  .srv-toggle-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) 0 var(--space-4);
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
  }

  .srv-tab-icon {
    transition: transform var(--duration-slow) var(--ease);
  }

  .srv-item[data-open="true"] .srv-tab-icon {
    transform: rotate(180deg);
  }

  /* ── Body content ── */

  .srv-center {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .srv-desc {
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 440px;
  }

  .srv-bullets {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .srv-bullet {
    position: relative;
    padding-left: 16px;
    font-size: var(--fs-caption);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
  }

  .srv-bullet::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
  }

  .srv-meta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .srv-meta-line {
    font-size: var(--fs-sm);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
  }

  .srv-meta-line strong {
    font-weight: 500;
  }

  .srv-meta-line--note {
    margin-top: 6px;
    font-style: italic;
  }

  /* ── Google card (service 05) ── */

  .srv-google-card {
    margin-top: var(--space-20);
    padding: var(--space-12) var(--space-16);
    background: var(--surface-alt);
    border: 0.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-subtle);
  }

  .srv-google-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 48px;
  }

  .srv-google-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .srv-google-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--text);
  }

  .srv-google-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-top: 8px;
    min-width: 180px;
  }

  /* Google card CTA: filled by default, inverts on hover */
  .srv-google-card .srv-cta {
    background: var(--text);
    color: var(--surface-white);
    border-color: var(--text);
  }

  @media (hover: hover) and (pointer: fine) {
    /* Card hovered — fill levemente más claro, señala interactividad */
    .srv-google-card:hover .srv-cta {
      background: rgba(var(--color-ink-rgb), 0.75);
      border-color: var(--text);
      color: var(--surface-white);
    }

    /* CTA hoverado directamente — invert completo */
    .srv-google-card:hover .srv-cta:hover {
      background: transparent;
      color: var(--text);
      border-color: var(--text);
    }
  }

  /* ── Closing note ── */

  .services-closing {
    margin-top: 64px;
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text);
    max-width: 560px;
  }

  /* ── Bridge copy antes de Google card ── */

  .srv-bridge {
    font-size: var(--fs-base);
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
  }

  /* ─────────────────────────────────────────
     Mobile — ≤ 900px
  ───────────────────────────────────────── */

  @media (max-width: 900px) {
    #services { padding: 72px 0; }

    .services-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 48px;
      padding-bottom: 24px;
    }

    /* .services-h2 font-size heredado del clamp global con vw — no override necesario */

    .services-bridge { margin-top: 0; }

    .srv-header { grid-template-columns: 1fr; }

    .srv-toggle {
      grid-template-columns: 1fr;
      gap: 8px;
      padding: 20px 12px 0;
    }

    .srv-toggle-text { padding-right: 0; }

    .srv-body .srv-center { padding: 0 12px 20px; }

    .srv-num { font-size: 36px; line-height: 1; }

    .srv-right {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      padding: 0 12px 20px;
    }

    .srv-badge { width: 100%; text-align: center; padding: 6px 0; order: -1; }

    .srv-cta { width: 100%; }

    .services-closing { margin-top: 48px; }

    /* Google card */
    .srv-google-card { padding: var(--space-8) var(--space-6); margin-top: var(--space-12); }

    .srv-google-body {
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .srv-google-right {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      padding-top: 0;
      min-width: 0;
    }

    .srv-google-right .srv-cta { width: 100%; }
  }
}

/* ── components/about.css ── */
@layer components {
  #about {
    background: var(--surface-dark);
    min-height: 100vh;
    display: block;
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
  }

  .about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    padding: 48px;
    cursor: default;
  }

  .about-visual-logo,
  .about-visual-photo {
    position: absolute;
    transition: opacity 0.55s cubic-bezier(.4,0,.2,1);
    will-change: transform, opacity;
  }

  .about-visual-logo {
    width: 260px;
    z-index: 1;
    opacity: 0;
  }

  .about-visual-logo svg {
    width: 100%;
    display: block;
    color: var(--text-on-dark);
  }

  .about-visual-photo {
    width: calc(100% - 96px);
    max-width: 360px;
    opacity: 1;
    z-index: 2;
    pointer-events: none;
  }

  .about-visual-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 50%;
    box-shadow: 0 8px 40px rgba(var(--color-ink-rgb), 0.35), 0 2px 12px rgba(var(--color-ink-rgb), 0.20);
    border: 1px solid var(--color-white-10);
  }

  .about-visual:hover .about-visual-logo,
  .about-visual:focus-within .about-visual-logo,
  .about-visual:focus .about-visual-logo  { opacity: 1; }

  .about-visual:hover .about-visual-photo,
  .about-visual:focus-within .about-visual-photo,
  .about-visual:focus .about-visual-photo { opacity: 0; }

  .about-text-col {
    padding: 80px clamp(40px, 5vw, 100px) 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    max-width: 620px;
  }

  .about-h2 {
    font-family: var(--font-serif);
    font-size: clamp(45px, 5.8vw, 76px);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: var(--text-on-dark);
    margin-bottom: 36px;
  }

  .about-h2 em {
    font-weight: 400;
    font-style: italic;
    display: block;
  }

  .about-p {
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-on-dark-secondary);
    margin-bottom: 16px;
  }

  .about-p--strong { font-weight: 700; color: var(--text-on-dark); }


  .about-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 8px 12px;
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-on-dark-secondary);
    text-decoration: none;
    overflow: hidden;
    transition: color var(--duration-base) var(--ease);
  }

  .about-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.5px;
    background: var(--color-white-25);
  }

  .about-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-on-dark) 50%, transparent);
    transform: translateX(-100%);
    opacity: 0;
  }

  .about-link:hover {
    color: var(--text-on-dark);
  }

  .about-link:hover::after {
    opacity: 1;
    animation: about-link-shimmer 0.7s ease-out forwards;
  }

  .about-link svg {
    transition: transform 0.3s var(--ease);
  }

  .about-link:hover svg {
    transform: translateX(3px);
  }

  @keyframes about-link-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(320%); }
  }

  @media (prefers-reduced-motion: reduce) {
    .about-link::after { display: none; }
    .about-link svg    { transition: none; }
  }

  .about-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    font-size: var(--fs-xs);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-on-dark-secondary);
  }

  .loc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-accent);
    flex-shrink: 0;
  }

  @media (max-width: 900px) {
    #about { padding: 0; }

    .about-inner {
      grid-template-columns: 1fr;
      gap: 0;
      min-height: auto;
    }

    .about-visual {
      min-height: auto;
      padding: 48px 0 0;
      pointer-events: none;
    }

    /* Desactivar hover logo/photo swap en mobile */
    .about-visual:hover .about-visual-logo  { opacity: 0; }
    .about-visual:hover .about-visual-photo { opacity: 1; }

    /* Desactivar parallax en mobile — JS sigue corriendo pero no mueve */
    .about-visual-logo,
    .about-visual-photo {
      transition: opacity 0.55s cubic-bezier(.4,0,.2,1);
      transform: none !important;
    }

    .about-visual-logo { display: none; }

    .about-visual-photo {
      position: static;
      width: 100%;
      max-width: 280px;
      margin: 0 auto;
      display: block;
    }

    .about-visual-photo img {
      border-radius: 50%;
    }

    .about-text-col {
      padding: 32px 0 48px;
      min-height: auto;
      max-width: none;
    }

    .about-text-col::after {
      content: '';
      display: block;
      width: 80px;
      height: 28px;
      margin-top: 32px;
      background: var(--text-on-dark);
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 915 317' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='matrix(1,0,0,1,-10,7)' fill='currentColor'%3E%3Cpath d='M345.53,16.902C360.719,16.107 398.653,13.343 438.851,45.06C462.894,64.03 480.159,92.695 485.578,123.485C507.267,246.728 355.407,332.496 263.521,234.48C184.912,150.627 242.276,27.086 345.53,16.902Z'/%3E%3Cpath d='M616.48,21.909C692.364,26.724 725.256,119.635 666.229,171.167C657.384,178.888 647.927,179.978 653.763,186.259C690.359,225.648 690.269,225.639 727.302,264.667C729.179,266.644 728.814,270.242 724.499,270.474C719.511,270.742 534.98,270.534 518.5,270.515C509.767,270.506 511.827,266.147 511.827,253.5C511.827,24.107 511.714,23.857 512.751,22.743C513.923,21.484 514.258,21.679 558.5,21.679C607.538,21.679 607.504,21.645 616.48,21.909Z'/%3E%3Cpath d='M798.462,269.93C784.529,267.776 784.293,268.595 771.425,262.66C721.449,239.611 704.942,175.381 743.056,130.117C758.72,111.513 772.052,113.74 764.515,105.486C732.883,70.851 732.686,71.101 729.938,68.092C692.064,26.608 687.839,26.528 690.911,22.861C692.031,21.524 692.437,21.675 837.5,21.675C904.299,21.675 905.024,21.392 906.359,23.571C906.884,24.43 906.827,24.516 906.827,222.5C906.827,268.005 907.256,269.071 904.405,270.218C903.767,270.475 818.394,271.122 798.462,269.93Z'/%3E%3Cpath d='M137.481,22.913C195.367,26.521 224.956,92.123 188.038,138.122C180.848,147.08 194.36,145.152 204.561,171.476C222.365,217.422 189.369,269.978 136.5,270.489C128.113,270.571 34.357,271.478 31.664,270.117C29.422,268.984 29.711,268.156 29.711,199.5C29.711,24.993 29.595,24.712 30.649,23.649C31.6,22.69 31.827,22.635 76.5,22.727C123.805,22.823 123.774,22.661 137.481,22.913Z'/%3E%3C/g%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 915 317' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='matrix(1,0,0,1,-10,7)' fill='currentColor'%3E%3Cpath d='M345.53,16.902C360.719,16.107 398.653,13.343 438.851,45.06C462.894,64.03 480.159,92.695 485.578,123.485C507.267,246.728 355.407,332.496 263.521,234.48C184.912,150.627 242.276,27.086 345.53,16.902Z'/%3E%3Cpath d='M616.48,21.909C692.364,26.724 725.256,119.635 666.229,171.167C657.384,178.888 647.927,179.978 653.763,186.259C690.359,225.648 690.269,225.639 727.302,264.667C729.179,266.644 728.814,270.242 724.499,270.474C719.511,270.742 534.98,270.534 518.5,270.515C509.767,270.506 511.827,266.147 511.827,253.5C511.827,24.107 511.714,23.857 512.751,22.743C513.923,21.484 514.258,21.679 558.5,21.679C607.538,21.679 607.504,21.645 616.48,21.909Z'/%3E%3Cpath d='M798.462,269.93C784.529,267.776 784.293,268.595 771.425,262.66C721.449,239.611 704.942,175.381 743.056,130.117C758.72,111.513 772.052,113.74 764.515,105.486C732.883,70.851 732.686,71.101 729.938,68.092C692.064,26.608 687.839,26.528 690.911,22.861C692.031,21.524 692.437,21.675 837.5,21.675C904.299,21.675 905.024,21.392 906.359,23.571C906.884,24.43 906.827,24.516 906.827,222.5C906.827,268.005 907.256,269.071 904.405,270.218C903.767,270.475 818.394,271.122 798.462,269.93Z'/%3E%3Cpath d='M137.481,22.913C195.367,26.521 224.956,92.123 188.038,138.122C180.848,147.08 194.36,145.152 204.561,171.476C222.365,217.422 189.369,269.978 136.5,270.489C128.113,270.571 34.357,271.478 31.664,270.117C29.422,268.984 29.711,268.156 29.711,199.5C29.711,24.993 29.595,24.712 30.649,23.649C31.6,22.69 31.827,22.635 76.5,22.727C123.805,22.823 123.774,22.661 137.481,22.913Z'/%3E%3C/g%3E%3C/svg%3E");
      -webkit-mask-size: contain;
      mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
    }
  }
}

/* ── components/portfolio.css ── */
@layer components {
  #portfolio {
    background: var(--surface-dark);
    padding: 120px 0;
    overflow: clip;
    position: relative;
  }

  .portfolio-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
    max-width: 1440px;
    margin: 0 auto 64px;
    padding: 0 clamp(24px, 5vw, 120px);
  }

  .portfolio-h2 {
    font-family: var(--font-serif);
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.0;
    color: var(--text-on-dark);
  }

  .portfolio-sub {
    font-size: var(--fs-base);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-on-dark-secondary);
    max-width: 360px;
  }

  /* ── Lista de proyectos ── */
  .pf-list {
    max-width: 1440px;
    margin: 0 auto 48px;
    padding: 0 clamp(24px, 5vw, 120px);
    list-style: none;
  }

  /* li wrappers (sin clase propia) se eliminan del layout, dejando el <a> actuar directo */
  .pf-list > li:not(.pf-row) {
    display: contents;
  }

  .pf-row {
    display: grid;
    grid-template-columns: 56px 1fr auto auto 32px;
    align-items: center;
    gap: 0 24px;
    padding: 20px 0;
    border-bottom: 0.5px solid var(--color-white-12);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: padding-left 0.3s var(--ease), opacity 0.3s var(--ease);
    cursor: none;
  }

  .pf-row::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--text-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
  }

  .pf-list:has(.pf-row:hover) .pf-row:not(:hover) {
    opacity: 0.4;
  }

  .pf-row:hover            { padding-left: 8px; }
  .pf-row:hover::after     { transform: scaleX(1); }

  .pf-row-num {
    font-size: var(--fs-xs);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-on-dark-muted);
  }

  .pf-row-name {
    font-size: clamp(20px, 2.8vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-on-dark);
    transition: letter-spacing 0.3s var(--ease);
  }

  .pf-row:hover .pf-row-name { letter-spacing: -0.01em; }

  .pf-row-cat {
    font-size: var(--fs-xs);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-on-dark-secondary);
  }

  .pf-row-year {
    font-size: var(--fs-xs);
    font-weight: 300;
    color: var(--text-on-dark-muted);
    letter-spacing: 0.08em;
  }

  .pf-row-arrow {
    color: var(--text-accent);
    font-size: var(--fs-base);
    display: inline-block;
    opacity: 0;
    transform: translateX(-6px) rotate(0deg);
    transition: opacity 0.25s, transform 0.35s var(--ease);
  }

  .pf-row:hover .pf-row-arrow {
    opacity: 1;
    transform: translateX(0) rotate(-45deg);
  }

  .pf-row--placeholder {
    cursor: default;
    border-bottom-style: dashed;
  }

  .pf-row--placeholder .pf-row-name {
    color: var(--text-on-dark-muted);
    font-style: italic;
  }

  .pf-row--placeholder:hover            { padding-left: 0; opacity: 1 !important; }
  .pf-row--placeholder::after           { display: none; }

  /* ── Preview flotante ── */
  .pf-preview {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    will-change: transform;
  }

  .pf-preview.is-visible { opacity: 1; }

  .pf-preview-inner {
    width: 340px;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(var(--color-ink-rgb), 0.18), 0 4px 16px rgba(var(--color-ink-rgb), 0.08);
    transform: rotate(-1.5deg);
    background: var(--surface-white);
    border: 0.5px solid var(--border-subtle);
    position: relative;
  }

  .pf-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
  }

  /* Bottom row */
  .portfolio-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 120px);
  }


  .btn-text {
    font-size: var(--fs-caption);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-on-dark-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
  }

  .btn-text:hover { color: var(--text-on-dark); }

  @media (max-width: 900px) {
    #portfolio { padding: 72px 0; }

    .portfolio-top {
      grid-template-columns: 1fr;
      gap: 24px;
      padding: 0 16px;
    }

    .portfolio-cta-row { padding: 0 16px; }

    .pf-list { padding: 0 16px; }

    .pf-row {
      grid-template-columns: 28px 1fr auto;
      gap: 0 10px;
      padding: 16px 0;
      cursor: pointer;
    }

    .pf-row-cat,
    .pf-row-year { display: none; }

    .pf-row-name {
      font-size: clamp(16px, 4.8vw, 22px);
      overflow-wrap: anywhere;
      line-height: 1.2;
    }

    .pf-row-arrow { opacity: 1; transform: none; }

    .pf-list:has(.pf-row:hover) .pf-row:not(:hover) { opacity: 1; }

    .pf-preview { display: none; }
  }
}

/* ── components/contact.css ── */
@layer components {
  #contact {
    background: var(--surface-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px clamp(24px, 5vw, 120px);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .contact-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,197,211,0.06) 0%, transparent 70%); /* sin token — color-rose-dim es 15%, diferencia visual significativa para glow; no se reemplaza */
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .contact-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
  }

  .contact-h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 13vw, 6rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--text-on-dark);
    margin-bottom: 24px;
    white-space: nowrap;
  }

  .contact-sub {
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-accent-dim);
    margin-bottom: 16px;
  }

  .contact-note {
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-accent-on-dark);
    margin-bottom: 40px;
  }

  .contact-mail-wrap {
    display: inline-block;
    position: relative;
  }

  .contact-mail-fill {
    position: absolute;
    width: 300%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--text-accent);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
  }

  .contact-mail {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 56px;
    padding: 0 48px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--color-white-35);
    font-size: clamp(13px, 1.8vw, 18px);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-on-dark);
    overflow: hidden;
  }

  .contact-mail .btn-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s var(--ease), color 0.25s 0.12s;
  }

  .contact-mail:hover .btn-inner { color: var(--text); }

  .contact-ig {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: var(--fs-sm);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--text-on-dark-secondary);
    transition: color 0.25s;
  }

  .contact-ig:hover { color: var(--text-accent); }

  @media (max-width: 900px) {
    #contact { padding: 72px 16px; }

    .contact-mail { padding: 0 24px; font-size: clamp(12px, 3.5vw, 16px); }

    .contact-inner { max-width: 100%; padding: 0 8px; }
  }
}

/* ── components/footer.css ── */
@layer components {
  footer {
    display: flex;
    flex-direction: column;
  }

  .footer-brand {
    background: var(--surface-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 120px);
    color: var(--text-on-dark);
  }

  .footer-brand svg {
    display: block;
    width: clamp(160px, 28vw, 420px);
    height: auto;
  }

  .footer-bottom {
    background: var(--surface-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: clamp(32px, 4vw, 48px) clamp(24px, 5vw, 120px);
  }

  .footer-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-mail,
  .footer-ig,
  .footer-li {
    font-size: var(--fs-sm);
    font-weight: 300;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-mail:hover,
  .footer-ig:hover,
  .footer-li:hover { color: var(--text); }

  .footer-ig svg,
  .footer-li svg {
    transition: transform 0.3s var(--ease);
  }

  .footer-ig:hover svg,
  .footer-li:hover svg {
    transform: rotate(-45deg);
  }

  .footer-meta {
    font-size: var(--fs-xs);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-muted);
  }

  @media (max-width: 900px) {
    .footer-links {
      flex-direction: column;
      gap: 16px;
    }
  }
}

/* ── utilities.css ── */
@layer utilities {
  /* ── Reveal animations ── */
  .rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }

  .rv.visible   { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1; transform: none; }
  }
  .rv.delay-1   { transition-delay: 0.10s; }
  .rv.delay-2   { transition-delay: 0.22s; }
  .rv.delay-3   { transition-delay: 0.36s; }
  .rv.delay-4   { transition-delay: 0.52s; }
  .rv.delay-5   { transition-delay: 0.70s; }
  .rv.delay-6   { transition-delay: 0.90s; }
  .rv.delay-7   { transition-delay: 1.12s; }

  /* ── Rounded div — curvas de transición entre secciones ── */
  .rounded-div-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
    will-change: height;
  }

  .rounded-div {
    position: absolute;
    display: block;
    width: 150%;
    height: 750%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -86.666%);
    z-index: 1;
  }

  .rounded-div--dark  { background: var(--surface-dark); }
  .rounded-div--bg    { background: var(--surface); }
  .rounded-div--alt   { background: var(--surface-alt); }
  .rounded-div--white { background: var(--surface-white); }
}
