/* ============================================================
   SONIA CIFUENTES — Contadora Pública
   Luxury editorial accounting: deep green ledger canvas +
   cream editorial sections + gold hairlines.
   Mobile-first, WCAG 2.1 AA contrast verified palette.
   ============================================================ */

/* ============ 1. TOKENS ============ */

:root {
  /* Palette (mandatory) */
  --verde-superior: #1B352C;
  --verde-medio: #152A25;
  --verde-principal: #102018;
  --verde-profundo: #0C1D17;
  --verde-negro: #081810;
  --dorado: #B68A33;
  --dorado-claro: #C9A34A;
  --dorado-suave: #D6B86A;
  --dorado-oscuro: #9E7628;
  --crema: #E8E0C8;
  --crema-clara: #F0E9D8;
  --blanco-calido: #F5EFE3;
  --rojo-check: #A83B32;

  --gradient-verde: linear-gradient(180deg, #1B352C 0%, #152A25 25%, #102018 55%, #0C1D17 80%, #081810 100%);
  --gradient-dorado: linear-gradient(135deg, #D6B86A 0%, #B68A33 50%, #9E7628 100%);
  --gradient-crema: linear-gradient(135deg, #F0E9D8 0%, #E8E0C8 100%);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 1px 0 rgba(8, 24, 16, 0.04), 0 12px 30px -12px rgba(8, 24, 16, 0.18);
  --shadow-deep: 0 30px 60px -20px rgba(8, 24, 16, 0.5);
  --shadow-gold: 0 10px 26px rgba(8, 24, 16, 0.45), 0 0 0 1px rgba(158, 118, 40, 0.4);
  --glow-gold: 0 0 44px rgba(182, 138, 51, 0.28);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --container-max: 1140px;
  --header-height: 76px;
  --hairline-gold: rgba(182, 138, 51, 0.28);
  --hairline-gold-strong: rgba(201, 163, 74, 0.5);
  --hairline-crema: rgba(182, 138, 51, 0.16);

  /* Ledger paper texture (subtle ruled lines) */
  --texture-crema: repeating-linear-gradient(0deg, rgba(139, 122, 72, 0.025) 0 1px, transparent 1px 4px);

  /* ===== Papel viejo / rasgado ===== */
  /* Torn silhouette shared by paper cards */
  --papel-recorte: polygon(
    0% 1%, 3% 0%, 6% 1.1%, 9% 0%, 12% 0.9%, 15% 0%, 18% 1.2%, 21% 0%,
    24% 0.8%, 27% 0%, 30% 1%, 33% 0%, 36% 1.1%, 39% 0%, 42% 0.7%, 45% 0%,
    48% 1%, 51% 0%, 54% 0.9%, 57% 0%, 60% 1.2%, 63% 0%, 66% 0.8%, 69% 0%,
    72% 1%, 75% 0%, 78% 0.9%, 81% 0%, 84% 1.1%, 87% 0%, 90% 0.8%, 93% 0%,
    96% 1%, 99% 0%, 100% 14%, 99.6% 28%, 100% 42%, 99.7% 56%, 100% 70%,
    99.5% 84%, 100% 92%, 97% 100%, 94% 98.5%, 91% 100%, 88% 98.8%, 85% 100%,
    82% 98.4%, 79% 100%, 76% 99%, 73% 100%, 70% 98.6%, 67% 100%, 64% 98.9%,
    61% 100%, 58% 98.5%, 55% 100%, 52% 99.1%, 49% 100%, 46% 98.7%, 43% 100%,
    40% 98.8%, 37% 100%, 34% 98.5%, 31% 100%, 28% 99%, 25% 100%, 22% 98.6%,
    19% 100%, 16% 98.9%, 13% 100%, 10% 98.7%, 7% 100%, 4% 98.9%, 1% 100%,
    0% 98.6%, 0.4% 86%, 0% 72%, 0.3% 58%, 0% 44%, 0.4% 30%, 0% 16%
  );
  /* Foxing / aging blotches y grano viven en public/css/texturas.css
     (SVG procedural unico por card: --textura-* con --papel-recorte). */
}

/* ============ 2. RESET & BASE ============ */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--verde-superior);
  background: var(--crema);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.15;
  color: var(--verde-principal);
}

::selection {
  background: var(--dorado);
  color: var(--verde-profundo);
}

/* ============ 3. UTILITIES ============ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container--narrow {
  max-width: 860px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 0;
  left: var(--space-4);
  z-index: 3000;
  transform: translateY(-150%);
  background: var(--gradient-dorado);
  color: var(--verde-profundo);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ============ 4. FOCUS STYLES ============ */

:focus-visible {
  outline: 3px solid var(--verde-profundo);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Dark surfaces get a gold focus outline */
.header :focus-visible,
.hero :focus-visible,
.menu :focus-visible,
.menu-overlay:focus-visible,
.section--verde :focus-visible,
.footer :focus-visible,
.whatsapp-btn:focus-visible {
  outline-color: var(--dorado-claro);
}

/* ============ 5. BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    background-color var(--transition-base), border-color var(--transition-base);
}

.btn i {
  transition: transform var(--transition-base);
}

.btn:hover i {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--gradient-dorado);
  color: var(--verde-profundo);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), var(--glow-gold);
}

.btn--outline {
  background: transparent;
  border-color: var(--dorado-claro);
  color: var(--dorado-claro);
}

.btn--outline:hover {
  background: rgba(201, 163, 74, 0.12);
  transform: translateY(-2px);
}

/* ============ 6. HEADER & NAV ============ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-base), border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(8, 24, 16, 0.92);
  border-bottom-color: var(--hairline-gold-strong);
  box-shadow: 0 10px 30px rgba(8, 24, 16, 0.35);
}

/* Blur lives on a pseudo-element, NOT on the header itself: a filter /
   backdrop-filter on an ancestor turns every fixed descendant (the mobile
   drawer .menu and .menu-overlay) into an anchor relative to that ancestor,
   collapsing the drawer to the header height when scrolled. */
.header.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: -1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  min-height: var(--header-height);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blanco-calido);
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dorado-claro);
  margin-top: 0.15rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline-gold-strong);
  border-radius: var(--radius-sm);
  color: var(--dorado-claro);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(201, 163, 74, 0.14);
}

.menu-toggle.active i::before {
  content: "\f00d";
}

/* Mobile drawer (default) */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(78%, 320px);
  padding: var(--space-5);
  overflow-y: auto;
  background: var(--verde-profundo);
  border-right: 1px solid var(--hairline-gold-strong);
  box-shadow: var(--shadow-deep);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--transition-base), visibility 0s var(--transition-base);
  z-index: 960;
}

.menu.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--transition-base), visibility 0s;
}

.menu-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-3);
}

.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline-gold-strong);
  border-radius: var(--radius-sm);
  color: var(--dorado-claro);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.menu-close:hover {
  background: rgba(201, 163, 74, 0.14);
}

.menu a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem var(--space-3);
  color: var(--crema);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-crema);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.menu a:hover {
  color: var(--dorado-suave);
  padding-left: var(--space-5);
}

.menu a i {
  width: 1.1rem;
  text-align: center;
  color: var(--dorado-claro);
  font-size: 0.95rem;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 24, 16, 0.66);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility 0s var(--transition-base);
  z-index: 950;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-base), visibility 0s;
}

/* Desktop nav */
@media (min-width: 900px) {
  .menu-toggle,
  .menu-close-row {
    display: none;
  }

  .menu {
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-right: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    gap: var(--space-5);
  }

  .menu a {
    position: relative;
    padding: 0.4rem 0;
    border-bottom: 0;
    font-size: 0.95rem;
  }

  .menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-dorado);
    transition: width var(--transition-base);
  }

  .menu a:hover {
    color: var(--dorado-suave);
    padding-left: 0;
  }

  .menu a:hover::after {
    width: 100%;
  }

  .menu a i {
    font-size: 0.85rem;
    width: auto;
  }

  .menu-overlay {
    display: none;
  }
}

/* ============ 7. HERO ============ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-9);
  background: var(--gradient-verde);
  color: var(--crema);
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

/* Ledger grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(182, 138, 51, 0.055) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(182, 138, 51, 0.03) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

/* Radial gold glow */
.hero-glow {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(182, 138, 51, 0.16), transparent 70%);
  pointer-events: none;
}

/* Thin gold frame accent */
.hero-frame {
  position: absolute;
  top: 9%;
  left: -2%;
  width: 26vw;
  max-width: 340px;
  height: 44vh;
  border: 1px solid rgba(182, 138, 51, 0.22);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-7);
}

.hero-content {
  max-width: 44rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-5);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dorado-suave);
}

.hero-kicker-rule {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: var(--gradient-dorado);
}

.hero-title {
  font-size: clamp(2.35rem, 6vw, 4.3rem);
  font-weight: 600;
  color: var(--blanco-calido);
  margin-bottom: var(--space-5);
  max-width: 18ch;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--dorado-suave);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--crema);
  opacity: 0.92;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* Floating serif numeral */
.hero-numeral {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  position: relative;
}

.hero-numeral::before {
  content: '';
  position: absolute;
  inset: 6% -8%;
  border: 1px solid rgba(201, 163, 74, 0.28);
  transform: rotate(2deg);
}

.hero-numeral-figure {
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 163, 74, 0.5);
}

.hero-numeral-caption {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dorado-claro);
}

/* While the container is still full-width (vw < 1380) the chapter rail
   would overlap the hero text; reserve left space so the kicker/title
   stay clear of the rail. Past 1380px the centered container (max-width
   1140px + 24px padding) clears the rail on its own. */
@media (min-width: 900px) and (max-width: 1379px) {
  .hero-inner {
    padding-left: 9rem;
  }
}

@media (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
  }

  .hero-numeral {
    display: flex;
  }
}

/* Staggered load reveal */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-kicker {
  animation: hero-rise 0.7s ease both;
}

.hero-title {
  animation: hero-rise 0.7s ease 0.12s both;
}

.hero-subtitle {
  animation: hero-rise 0.7s ease 0.24s both;
}

.hero-actions {
  animation: hero-rise 0.7s ease 0.36s both;
}

.hero-numeral {
  animation: hero-fade 1.1s ease 0.5s both;
}

/* ============ 8. SECTIONS (base) ============ */

.section {
  padding: var(--space-9) 0;
  scroll-margin-top: var(--header-height);
}

#inicio {
  scroll-margin-top: 0;
}

.section--crema {
  background-color: var(--crema);
  background-image: var(--texture-crema);
}

.section--crema-clara {
  background-color: var(--crema-clara);
  background-image: var(--texture-crema);
}

.section--verde {
  background: var(--gradient-verde);
}

.section-header {
  margin-bottom: var(--space-8);
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.section-header--left {
  text-align: left;
  margin-inline: 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-3);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--verde-superior);
}

.section-header--dark .section-kicker {
  color: var(--dorado-claro);
}

.section--contacto .section-kicker--centered,
.section-kicker--centered {
  color: var(--verde-superior);
  display: inline-flex;
}

.section-kicker::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gradient-dorado);
}

.section-header--dark .section-kicker::before {
  background: var(--gradient-dorado);
}

.section-header h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 600;
  color: var(--verde-principal);
  margin-bottom: var(--space-3);
}

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

.section-header h2::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--gradient-dorado);
  margin: var(--space-3) auto 0;
}

.section-header--left h2::after {
  margin-inline: 0;
}

.section-header .section-subtitle {
  font-size: 1.08rem;
  color: var(--verde-superior);
  opacity: 0.88;
}

.section-header--dark .section-subtitle {
  color: var(--crema);
  opacity: 0.85;
}

.section--contacto .section-subtitle {
  color: var(--verde-superior);
  opacity: 0.88;
}

/* ============ 9. SERVICES (ledger entries) ============ */

.servicios-grid {
  display: grid;
  gap: var(--space-5);
}

.servicio-card {
  position: relative;
  padding: var(--space-6) var(--space-5) calc(var(--space-6) + 16px);
  background: var(--crema-clara);
  /* Silueta de papel rasgado (relieve/manchas en texturas.css) */
  clip-path: var(--papel-recorte);
  background-image: var(--texture-crema);
  filter: drop-shadow(0 12px 16px rgba(8, 24, 16, 0.16))
    drop-shadow(0 2px 3px rgba(8, 24, 16, 0.1));
  transition: rotate var(--transition-base), translate var(--transition-base),
    filter var(--transition-base);
}

/* Hojas levemente desacomodadas, como páginas sobre el escritorio */
.servicio-card:nth-child(odd) {
  rotate: -0.6deg;
}

.servicio-card:nth-child(even) {
  rotate: 0.5deg;
}

/* Cinta dorada que crece sobre el borde rasgado inferior */
.servicio-card::after {
  content: '';
  position: absolute;
  left: 1.25rem;
  bottom: 1.15rem;
  width: 0;
  height: 2px;
  background: var(--gradient-dorado);
  transition: width var(--transition-slow);
}

.servicio-card:hover {
  rotate: 0deg;
  translate: 0 -6px;
  filter: drop-shadow(0 18px 24px rgba(8, 24, 16, 0.22))
    drop-shadow(0 2px 3px rgba(8, 24, 16, 0.12));
}

.servicio-card:hover::after {
  width: calc(100% - 2.5rem);
}

.servicio-numero {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--dorado-oscuro);
}

.servicio-icono {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: var(--space-5);
  border: 1px solid var(--dorado);
  border-radius: 50%;
  background: rgba(182, 138, 51, 0.08);
  color: var(--dorado-oscuro);
  font-size: 1.3rem;
  transition: background var(--transition-base), color var(--transition-base),
    transform var(--transition-base);
}

.servicio-card:hover .servicio-icono {
  background: var(--gradient-dorado);
  color: var(--verde-profundo);
  transform: scale(1.06);
}

.servicio-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--verde-principal);
  margin-bottom: var(--space-2);
}

.servicio-card p {
  font-size: 0.95rem;
  color: var(--verde-superior);
  opacity: 0.9;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

/* ============ 10. EXPERIENCE TIMELINE ============ */

.experiencia-timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 0;
}

/* Vertical gold rail */
.experiencia-timeline::before {
  content: '';
  position: absolute;
  left: 0.95rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(201, 163, 74, 0.5) 6%,
    rgba(201, 163, 74, 0.5) 94%,
    transparent
  );
}

.experiencia-item {
  position: relative;
  padding: 0 0 var(--space-6) 3rem;
}

.experiencia-item:last-child {
  padding-bottom: 0;
}

/* Gold diamond node with cream/rojo check (verification stamp accent) */
.experiencia-node {
  position: absolute;
  left: 0.38rem;
  top: 0.35rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid var(--dorado-claro);
  background: var(--verde-principal);
  transform: rotate(45deg);
}

.experiencia-node::after {
  content: '';
  position: absolute;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--crema);
}

.experiencia-node i {
  position: relative;
  z-index: 1;
  font-size: 0.42rem;
  color: var(--rojo-check);
  transform: rotate(-45deg);
}

.experiencia-card {
  position: relative;
  padding: var(--space-5);
  background: rgba(21, 42, 37, 0.55);
  clip-path: var(--papel-recorte);
  filter: drop-shadow(0 10px 14px rgba(8, 24, 16, 0.45))
    drop-shadow(0 2px 3px rgba(8, 24, 16, 0.3));
  transition: transform var(--transition-base), rotate var(--transition-base),
    background-color var(--transition-base);
}

.experiencia-card:hover {
  transform: translateY(-4px);
  rotate: 0deg;
  background: rgba(21, 42, 37, 0.72);
}

/* Hojas levemente desacomodadas en la línea de tiempo */
.experiencia-item:nth-child(odd) .experiencia-card {
  rotate: -0.4deg;
}

.experiencia-item:nth-child(even) .experiencia-card {
  rotate: 0.35deg;
}

.experiencia-anio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dorado-claro);
}

.experiencia-anio::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--gradient-dorado);
}

.experiencia-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blanco-calido);
  margin-bottom: var(--space-1);
}

.experiencia-empresa {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--crema);
  opacity: 0.9;
  margin-bottom: var(--space-2);
}

.experiencia-descripcion {
  font-size: 0.92rem;
  color: var(--crema);
  opacity: 0.85;
  line-height: 1.7;
}

/* ============ 11. ABOUT ============ */

.sobre-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.sobre-visual {
  position: relative;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}

/* Document-style placa with double border, hoja rasgada */
.sobre-placa {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  aspect-ratio: 4 / 5;
  background: var(--crema);
  background-image: var(--texture-crema);
  clip-path: var(--papel-recorte);
  filter: drop-shadow(0 14px 20px rgba(8, 24, 16, 0.18))
    drop-shadow(0 2px 3px rgba(8, 24, 16, 0.1));
  rotate: -0.6deg;
}

.sobre-placa::before {
  content: '';
  position: absolute;
  inset: 0.75rem;
  border: 1px solid rgba(182, 138, 51, 0.35);
  pointer-events: none;
}

.sobre-monograma {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(16, 32, 24, 0.6);
}

.sobre-placa-linea {
  width: 3rem;
  height: 1px;
  background: var(--gradient-dorado);
}

.sobre-placa-texto {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--verde-superior);
}

/* Verification stamp (rojo-check accent on cream) */
.sobre-sello {
  position: absolute;
  right: -0.75rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 5.5rem;
  height: 5.5rem;
  border: 2px dashed var(--dorado-oscuro);
  border-radius: 50%;
  background: var(--crema-clara);
  color: var(--rojo-check);
  box-shadow: var(--shadow-soft);
  transform: rotate(-8deg);
}

.sobre-sello i {
  font-size: 1.25rem;
}

.sobre-sello span {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sobre-content .section-header {
  margin-bottom: var(--space-5);
}

.sobre-descripcion {
  font-size: 1.05rem;
  color: var(--verde-superior);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.sobre-stats {
  display: grid;
  gap: var(--space-5);
}

.stat-item {
  position: relative;
  padding: var(--space-5);
  background: var(--blanco-calido);
  clip-path: var(--papel-recorte);
  filter: drop-shadow(0 10px 14px rgba(8, 24, 16, 0.16))
    drop-shadow(0 2px 3px rgba(8, 24, 16, 0.1));
}

.stat-item:nth-child(odd) {
  rotate: -0.3deg;
}

.stat-item:nth-child(even) {
  rotate: 0.3deg;
}

.stat-numero {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--verde-principal);
  margin-bottom: var(--space-2);
}

.stat-numero::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gradient-dorado);
  margin-top: var(--space-2);
}

.stat-etiqueta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--verde-superior);
  opacity: 0.9;
}

@media (min-width: 640px) {
  .sobre-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .sobre-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-8);
  }

  .sobre-visual {
    margin-inline: 0;
  }
}

/* ============ 12. CONTACT (formal document card) ============ */

.section--contacto {
  text-align: center;
}

.contacto-documento {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1.25rem, 5vw, 3rem);
  background: var(--crema);
  background-image: var(--texture-crema);
  clip-path: var(--papel-recorte);
  filter: drop-shadow(0 18px 28px rgba(8, 24, 16, 0.28))
    drop-shadow(0 3px 4px rgba(8, 24, 16, 0.14));
  rotate: -0.35deg;
  text-align: left;
}

/* Inner offset hairline */
.contacto-documento::before {
  content: '';
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(182, 138, 51, 0.35);
  border-radius: calc(var(--radius-md) - 6px);
  pointer-events: none;
}

.contacto-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.contacto-header h2 {
  margin-bottom: var(--space-3);
}

.contacto-header h2::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--gradient-dorado);
  margin: var(--space-3) auto 0;
}

.contacto-header .section-subtitle {
  color: var(--verde-superior);
  opacity: 0.88;
}

.contacto-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* Ledger rows: icon | label | value */
.contacto-item {
  display: grid;
  grid-template-columns: 1.5rem 7rem 1fr;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(140, 110, 45, 0.22);
}

.contacto-item:last-child {
  border-bottom: 1px solid rgba(140, 110, 45, 0.22);
}

.contacto-item i {
  color: var(--dorado-oscuro);
  font-size: 1.1rem;
  padding-top: 0.15rem;
}

.contacto-item strong {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde-superior);
  opacity: 0.85;
}

.contacto-item a,
.contacto-item span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--verde-principal);
  text-decoration: none;
  word-break: break-word;
}

.contacto-item a:hover {
  color: var(--dorado-oscuro);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 640px) {
  .contacto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto-item {
    grid-template-columns: 1.5rem 7rem 1fr;
  }
}

/* ============ 13. FOOTER ============ */

.footer {
  padding: var(--space-8) 0 var(--space-5);
  background: var(--verde-negro);
  border-top: 1px solid rgba(182, 138, 51, 0.45);
  color: var(--crema);
  text-align: center;
}

.footer-nombre {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blanco-calido);
  margin-bottom: var(--space-2);
}

.footer-nombre::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gradient-dorado);
  margin: var(--space-3) auto 0;
}

.footer-texto {
  max-width: 40rem;
  margin: var(--space-3) auto var(--space-6);
  font-size: 0.95rem;
  color: rgba(232, 224, 200, 0.82);
  line-height: 1.7;
}

.footer-copyright {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(182, 138, 51, 0.2);
  font-size: 0.8rem;
  color: rgba(232, 224, 200, 0.6);
  letter-spacing: 0.04em;
}

/* ============ 14. WHATSAPP BUTTON ============ */

.whatsapp-btn {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 880;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gradient-dorado);
  color: var(--verde-profundo);
  font-size: 1.6rem;
  box-shadow: var(--shadow-gold);
  text-decoration: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--shadow-gold), var(--glow-gold);
}

.whatsapp-tooltip {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.75rem);
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  background: var(--verde-negro);
  color: var(--crema);
  font-size: 0.85rem;
  border: 1px solid var(--hairline-gold);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility 0s var(--transition-base);
}

.whatsapp-btn:hover .whatsapp-tooltip,
.whatsapp-btn:focus-visible .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-base), visibility 0s;
}

/* ============ 15. MODAL (rent consultation) ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(8, 24, 16, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-overlay.modal-visible {
  opacity: 1;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: min(94dvh, 900px);
  overflow-y: auto;
  padding: 2.25rem 1.5rem 2rem;
  background: var(--crema-clara);
  background-image: var(--texture-crema);
  border: 1px solid rgba(182, 138, 51, 0.55);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
  text-align: center;
  transform: translateY(24px) scale(0.98);
  transition: transform var(--transition-base);
}

.modal-overlay.modal-visible .modal-box {
  transform: none;
}

/* Inner offset hairline */
.modal-box::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(182, 138, 51, 0.3);
  border-radius: calc(var(--radius-md) - 5px);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--crema);
  border: 1px solid rgba(140, 110, 45, 0.3);
  border-radius: 50%;
  color: var(--verde-superior);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
  border-color: var(--dorado);
  color: var(--dorado-oscuro);
}

.modal-icono {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-3);
  border: 1px solid var(--dorado);
  border-radius: 50%;
  background: rgba(182, 138, 51, 0.1);
  color: var(--dorado-oscuro);
  font-size: 1.4rem;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--verde-principal);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.modal-title::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--gradient-dorado);
  margin: var(--space-2) auto 0;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--verde-superior);
  opacity: 0.85;
  margin: var(--space-3) 0 var(--space-4);
}

.tipo-persona {
  border: 0;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.tipo-persona legend {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde-superior);
  opacity: 0.85;
  margin-bottom: var(--space-2);
}

.tipo-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.tipo-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--crema);
  border: 1px solid rgba(140, 110, 45, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--verde-superior);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast);
}

.tipo-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tipo-option i {
  font-size: 0.85rem;
}

.tipo-option:focus-within {
  outline: 3px solid var(--verde-profundo);
  outline-offset: 2px;
}

.tipo-option:has(input:checked) {
  background: var(--verde-profundo);
  border-color: var(--verde-profundo);
  color: var(--dorado-suave);
}

.input-label {
  display: block;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde-superior);
  opacity: 0.85;
  margin-bottom: var(--space-2);
}

.modal-input-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.modal-input-wrap input {
  flex: 1;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--blanco-calido);
  border: 1px solid rgba(140, 110, 45, 0.4);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--verde-profundo);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-input-wrap input:focus-visible {
  border-color: var(--dorado);
  box-shadow: 0 0 0 3px rgba(182, 138, 51, 0.3);
}

.modal-input-wrap input::placeholder {
  color: var(--verde-superior);
  opacity: 0.5;
}

.modal-input-wrap button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--verde-profundo);
  border: 1px solid var(--verde-profundo);
  border-radius: var(--radius-sm);
  color: var(--dorado-suave);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.modal-input-wrap button:hover {
  background: var(--gradient-dorado);
  border-color: transparent;
  color: var(--verde-profundo);
  transform: translateY(-1px);
}

@media (min-width: 360px) {
  .modal-input-wrap {
    flex-direction: row;
    align-items: stretch;
  }

  .modal-input-wrap input {
    width: auto;
  }
}

/* Result region (base is invisible when empty) */
.modal-resultado {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.92rem;
  line-height: 1.6;
}

.modal-resultado > i {
  flex-shrink: 0;
  font-size: 1.75rem;
  margin-top: 0.1rem;
}

.modal-resultado > div {
  flex: 1;
}

.modal-resultado--success {
  background: rgba(27, 53, 44, 0.09);
  border-color: rgba(27, 53, 44, 0.35);
  color: var(--verde-superior);
}

.modal-resultado--success > i {
  color: var(--verde-principal);
}

.modal-resultado--error {
  background: rgba(168, 59, 50, 0.08);
  border-color: rgba(168, 59, 50, 0.45);
  color: var(--rojo-check);
}

.modal-resultado--error > i {
  color: var(--rojo-check);
}

.modal-resultado--info {
  background: rgba(182, 138, 51, 0.12);
  border-color: rgba(182, 138, 51, 0.55);
  color: var(--verde-superior);
}

.modal-resultado--info > i {
  color: var(--dorado-oscuro);
}

.resultado-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: var(--space-1);
}

.resultado-digitos {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.resultado-fecha {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.15rem 0 0.6rem;
}

.resultado-aviso {
  font-size: 0.82rem;
  opacity: 0.9;
  line-height: 1.5;
}

.resultado-aviso i {
  margin-right: 0.3rem;
}

.resultado-aviso a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}

.cuotas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin: 0.7rem 0;
}

@media (min-width: 360px) {
  .cuotas-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cuota-item {
  padding: 0.7rem 0.8rem;
  background: rgba(245, 239, 227, 0.8);
  border: 1px solid rgba(140, 110, 45, 0.25);
  border-radius: 8px;
  text-align: left;
}

.cuota-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.cuota-1 {
  background: var(--verde-profundo);
  color: var(--dorado-suave);
}

.cuota-2 {
  background: var(--crema);
  border: 1px solid rgba(182, 138, 51, 0.5);
  color: var(--verde-superior);
}

.cuota-label {
  font-size: 0.78rem;
  opacity: 0.8;
  color: var(--verde-superior);
}

.cuota-fecha {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--verde-profundo);
}

/* --- 15.2 Modal compacto en pantallas chicas --------------------------- */
/* Compacta espaciados para que el resultado de la consulta entre sin
   scroll interno en teléfonos (la caja ya es más grande en desktop) */

@media (max-width: 479px) {
  .modal-box {
    padding: 1.5rem 1.25rem 1.5rem;
  }

  .modal-icono {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
  }

  .modal-title {
    font-size: 1.22rem;
    margin-bottom: var(--space-1);
  }

  .modal-subtitle {
    font-size: 0.85rem;
    margin: var(--space-2) 0 var(--space-3);
  }

  .tipo-persona {
    margin-bottom: var(--space-3);
  }

  .tipo-persona legend,
  .input-label {
    margin-bottom: var(--space-1);
  }

  .tipo-option {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  .modal-input-wrap {
    gap: var(--space-2);
    margin-bottom: var(--space-3);
  }

  .modal-input-wrap input,
  .modal-input-wrap button {
    padding: 0.7rem 1rem;
  }

  .modal-input-wrap button {
    font-size: 0.9rem;
  }

  .modal-resultado {
    gap: 0.7rem;
    padding: 0.8rem;
    font-size: 0.88rem;
  }

  .modal-resultado > i {
    font-size: 1.5rem;
  }

  .resultado-digitos {
    font-size: 1.5rem;
  }

  .resultado-fecha {
    font-size: 0.98rem;
  }

  .resultado-aviso {
    font-size: 0.78rem;
  }

  .cuota-item {
    padding: 0.55rem 0.7rem;
  }
}

/* Pantallas muy chicas (≤380px): el ícono decorativo cede espacio
   para que el resultado entre sin scroll interno */
@media (max-width: 379px) {
  .modal-icono {
    display: none;
  }

  .modal-title {
    font-size: 1.16rem;
  }

  .modal-subtitle {
    margin: var(--space-2) 0 var(--space-2);
  }

  .modal-resultado {
    padding: 0.7rem;
  }

  .tipo-option {
    padding: 0.45rem 0.8rem;
  }
}

/* ============ 16. NOSCRIPT FALLBACK ============ */

.noscript-notice {
  padding: var(--space-3) var(--space-5);
  background: var(--crema-clara);
  border-top: 3px solid var(--dorado);
  color: var(--verde-superior);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* ============ 17. SCROLL REVEAL ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s var(--transition-slow);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.servicios-grid .reveal:nth-child(2) {
  --reveal-delay: 0.08s;
}

.servicios-grid .reveal:nth-child(3) {
  --reveal-delay: 0.16s;
}

.servicios-grid .reveal:nth-child(4) {
  --reveal-delay: 0.24s;
}

.servicios-grid .reveal:nth-child(5) {
  --reveal-delay: 0.32s;
}

.servicios-grid .reveal:nth-child(6) {
  --reveal-delay: 0.4s;
}

.experiencia-item:nth-child(2) {
  --reveal-delay: 0.08s;
}

.experiencia-item:nth-child(3) {
  --reveal-delay: 0.16s;
}

.experiencia-item:nth-child(4) {
  --reveal-delay: 0.24s;
}

.experiencia-item:nth-child(5) {
  --reveal-delay: 0.32s;
}

.experiencia-item:nth-child(6) {
  --reveal-delay: 0.4s;
}

.sobre-content .reveal:nth-child(2) {
  --reveal-delay: 0.12s;
}

.sobre-stats .reveal:nth-child(2) {
  --reveal-delay: 0.1s;
}

/* ============ 18. REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  /* Reveals start visible */
  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Las hojas rasgadas pierden la inclinación */
  .servicio-card,
  .experiencia-card,
  .sobre-placa,
  .stat-item,
  .contacto-documento {
    rotate: 0deg;
  }

  .hero-numeral,
  .hero-glow,
  .hero-frame {
    display: none;
  }
}
/* ============ 19. CHAPTER NAVIGATION ============ */
/* Book-style chapter rail + mobile chapter capsule.
   Complements the existing palette; no token values changed. */

/* --- 19.1 Desktop chapter rail ------------------------------------- */

.rail-nav {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.1rem 0.375rem;
  background: rgba(12, 29, 23, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(182, 138, 51, 0.22);
  border-radius: var(--radius-sm);
}

/* Positioned above the track in stacking order so their
   backgrounds hide the line segments behind them */
.rail-nav a {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem 0.3rem;
  text-decoration: none;
  border-radius: 2px;
  background: rgba(12, 29, 23, 0.55);
}

.rail-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 227, 0.7);
  transition: color var(--transition-base);
}

.rail-label {
  font-size: 0.7rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(245, 239, 227, 0.55);
  transition: color var(--transition-base);
}

.rail-nav a:hover .rail-num,
.rail-nav a:hover .rail-label {
  color: var(--crema);
}

/* Gold 2px rule preceding the active number */
.rail-nav a.is-active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -0.925rem;
  width: 10px;
  height: 2px;
  background: var(--gradient-dorado);
  transform: translateY(-50%);
}

.rail-nav a.is-active .rail-num {
  color: var(--dorado-claro);
}

.rail-nav a.is-active .rail-label {
  color: var(--dorado-suave);
}

/* Decorative SC monogram atop the rail */
.rail-mark {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-align: center;
  color: rgba(201, 163, 74, 0.65);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(182, 138, 51, 0.25);
}

/* Static 1px connector behind all items */
.rail-track {
  position: absolute;
  top: 2.5rem;
  bottom: 0.9rem;
  left: 50%;
  width: 1px;
  background: rgba(182, 138, 51, 0.25);
}

/* Gold progress fill from chapter one to the active one.
   Position/size are driven by JS via --rail-fill-top / --rail-fill-height */
.rail-fill {
  position: absolute;
  left: 50%;
  top: var(--rail-fill-top, 2.5rem);
  width: 1px;
  height: var(--rail-fill-height, 0);
  background: var(--gradient-dorado);
  transform: translateX(-50%);
  transition: top var(--transition-base), height var(--transition-base);
}

/* Hide the in-header link list and the hamburger on desktop:
   the chapter rail replaces them */
@media (min-width: 900px) {
  .rail-nav {
    display: flex;
  }

  .menu-toggle,
  .menu {
    display: none;
  }

  .menu-overlay {
    display: none;
  }
}

/* --- 19.2 Mobile chapter capsule ------------------------------------ */

.chapter-capsule {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 40;
  display: none;
  max-width: 45vw;
  padding: 0.4rem 0.8rem;
  background: var(--verde-negro);
  border: 1px solid rgba(182, 138, 51, 0.4);
  border-radius: var(--radius-pill);
  color: var(--crema);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capsule-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dorado-claro);
  margin-right: 0.55rem;
}

@media (max-width: 899px) {
  .chapter-capsule {
    display: flex;
    align-items: baseline;
  }
}

@media (max-width: 480px) {
  .chapter-capsule {
    padding: 0.35rem 0.65rem;
    font-size: 0.66rem;
    max-width: 42vw;
  }

  .capsule-num {
    font-size: 0.78rem;
    margin-right: 0.4rem;
  }
}

/* --- 19.3 Header CTA (desktop only) --------------------------------- */

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid var(--dorado);
  border-radius: var(--radius-sm);
  color: var(--dorado-claro);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base),
    border-color var(--transition-base);
}

.header-cta i {
  font-size: 0.9rem;
}

.header-cta:hover {
  background: var(--gradient-dorado);
  border-color: transparent;
  color: var(--verde-profundo);
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

/* --- 19.5 Chapter kicker numerals ----------------------------------- */

.kicker-num {
  font-family: var(--font-display);
  font-size: 0.95em;
  font-weight: 600;
  font-style: italic;
  color: var(--dorado-oscuro);
}

.section-kicker--centered .kicker-num {
  color: var(--dorado-oscuro);
}

@media (prefers-reduced-motion: reduce) {
  .rail-fill {
    transition: none;
  }
}
