/* ==========================================================================
   Caolines La Pirámide — Design tokens
   ========================================================================== */
:root{
  --ink:        #171414;
  --paper:      #ffffff;
  --red:        #C41E2A;
  --red-dark:   #9C1620;
  --red-tint:   #FBF0F0;
  --fog:        #F5F4F2;
  --line:       #E5E1DE;
  --muted:      #6E6663;
  --dark:       #FBF0F0;
  --dark-line:  #EAD7D8;
  --dark-muted: #6E6663;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --container: 1200px;
  --gutter: 32px;

  --shadow-sm: 0 1px 2px rgba(23,20,20,0.04), 0 1px 1px rgba(23,20,20,0.03);
  --shadow-md: 0 6px 20px rgba(23,20,20,0.06), 0 2px 6px rgba(23,20,20,0.04);
  --shadow-lg: 0 24px 48px rgba(23,20,20,0.10), 0 8px 16px rgba(23,20,20,0.05);
  --shadow-red: 0 10px 24px rgba(196,30,42,0.18);

  --ease: cubic-bezier(.22,.68,0,1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  position: relative;
}
body::after{
  content:"";
  position: fixed; inset:0; z-index: 300; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02;
  mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: reduce), (max-width: 600px){
  body::after{ opacity: 0.015; }
}
h1,h2,h3,p,ul,figure{ margin:0; }
ul{ padding:0; list-style:none; }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; }
input, select, textarea{ font-family: inherit; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--ink); color:var(--paper); padding:12px 20px;
}
.skip-link:focus{ left:16px; top:16px; }

:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Detalles de marca a nivel de navegador */
::selection{ background: var(--red); color:#fff; }
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background: var(--fog); }
::-webkit-scrollbar-thumb{ background: #D8D3CF; border-radius:6px; border:2px solid var(--fog); }
::-webkit-scrollbar-thumb:hover{ background: var(--red); }
html{ scrollbar-color: #D8D3CF var(--fog); scrollbar-width: thin; }

/* Barra de progreso de lectura */
.scroll-progress{
  position: fixed; top:0; left:0; height:3px; width:0%;
  background: var(--red);
  z-index: 310;
  transition: width .1s linear;
}

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.anchor-offset{ position:relative; top:-112px; }
[id]{ scroll-margin-top: 126px; }

.text-red{ color: var(--red); }

.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight:600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.eyebrow__rule{
  width: 28px; height: 1px; background: var(--red); flex:none;
}
.section-head--dark .eyebrow{ color: var(--red); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-body);
  font-weight:600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn--primary{
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary:hover{ background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(196,30,42,0.24); }
.btn--primary:active{ transform: translateY(0); box-shadow: 0 4px 10px rgba(196,30,42,0.28); }
.btn--primary:focus-visible{ outline-color: #fff; box-shadow: 0 0 0 2px var(--red), 0 0 0 5px rgba(196,30,42,0.4); }
.btn--ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover{ border-color: var(--ink); background: var(--fog); }
.btn--ghost:active{ background: var(--line); }
.btn--ghost::after{
  content:"→";
  margin-left: 9px;
  display:inline-block;
  transition: transform .2s var(--ease);
}
.btn--ghost:hover::after{ transform: translateX(4px); }
.btn--small{ padding: 11px 20px; font-size: 14px; }
.btn--lg{ padding: 18px 34px; font-size: 16px; }
.btn--full{ width:100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.header{
  position: sticky; top:0; z-index: 300;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header::before{
  content:"";
  position:absolute; inset:0; z-index:-1;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
}
.header.is-scrolled{
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-md);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 112px;
  gap: 24px;
}
.brand{ display:flex; align-items:center; gap:14px; }
.brand__logo{
  height: 78px; width:auto; display:block;
}
.brand__logo--footer{ height: 92px; }
.nav{ display:flex; align-items:center; gap:36px; }
.nav a{
  font-size: 14.5px; font-weight:500; color: var(--ink);
  position:relative; padding: 6px 0;
}
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav a:hover::after{ transform: scaleX(1); }
.nav__cta{ display:none; }

.header__actions{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none; align-items:center; justify-content:center;
  width:46px; height:46px; background:none; border:none; padding:0;
  border-radius:50%;
  transition: background .2s var(--ease);
}
.nav-toggle:hover{ background: var(--fog); }
.nav-toggle__box{
  position:relative; width:22px; height:16px;
}
.nav-toggle__box span{
  position:absolute; left:0; height:2px; border-radius:2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), width .3s var(--ease), background .2s var(--ease);
}
.nav-toggle__box span:nth-child(1){ top:0; width:22px; }
.nav-toggle__box span:nth-child(2){ top:7px; width:16px; }
.nav-toggle__box span:nth-child(3){ top:14px; width:22px; }
.nav-toggle:hover .nav-toggle__box span{ background: var(--red); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span{ background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(1){
  width:22px; top:7px; transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(2){ opacity:0; width:0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__box span:nth-child(3){
  width:22px; top:7px; transform: rotate(-45deg);
}

/* ==========================================================================
   Reveal on scroll
   Por defecto el contenido es visible SIEMPRE (sin depender de JS).
   Solo si script.js corre correctamente, agrega la clase
   "reveal-init" y entonces sí se anima la aparición. Así, si JS
   falla por cualquier razón, el contenido nunca queda invisible.
   ========================================================================== */
[data-reveal].reveal-init{
  opacity:0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].reveal-init.is-visible{ opacity:1; transform: translateY(0); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ padding: 88px 0 72px; position:relative; overflow:hidden; }
.hero__bg{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  overflow:hidden;
}
.hero__grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items:center;
}
.hero__title{
  font-family: var(--font-display);
  font-weight:900;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero__lead{
  font-size: 17px; line-height:1.7; color: var(--muted);
  max-width: 46ch; margin-bottom: 36px;
}
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; }

/* Hero con fotografía a pantalla completa */
.hero--photo{
  min-height: 92vh;
  display:flex; align-items:center;
  padding: 120px 0 80px;
  position:relative;
}
.hero--center{ text-align:center; }
.hero--center .hero__inner{ display:flex; justify-content:center; }
.hero--center .hero__badge{ justify-content:center; }
.hero--center .hero__actions{ justify-content:center; }
.hero__bg-photo{
  position:absolute; inset:0; z-index:0;
  background-image: linear-gradient(rgba(23,20,20,0.5), rgba(23,20,20,0.42)), url('assets/mineral-cantera.jpg');
  background-size: cover;
  /* Encuadre hacia la parte baja de la foto: menos cielo, más montaña y cantera de caolín */
  background-position: center 78%;
  animation: heroSlowZoom 24s ease-in-out infinite alternate;
}
@keyframes heroSlowZoom{
  from{ transform: scale(1); }
  to{ transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce){
  .hero__bg-photo{ animation: none; }
}
.hero__inner{ position:relative; z-index:1; }
.hero__content{ max-width: 720px; }
.hero__badge{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-weight:600; font-size:13px;
  letter-spacing:0.08em; text-transform:uppercase;
  color:#fff; background: rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  padding:7px 16px 7px 12px; border-radius:20px;
  margin-bottom:22px;
}
.hero__badge::before{
  content:""; width:6px; height:6px; border-radius:50%;
  background: var(--red); flex:none;
  box-shadow: 0 0 0 3px rgba(196,30,42,0.35);
}
.hero__title--short{
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  margin-bottom: 32px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.eyebrow--onphoto{ color:#fff; }
.eyebrow--onphoto .eyebrow__rule{ background:#fff; }
.hero__title--onphoto{ color:#fff; }
.hero__lead--onphoto{ color: rgba(255,255,255,0.88); }
.btn--hero{ text-transform: uppercase; letter-spacing:0.04em; font-weight:700; padding:18px 38px; }
.btn--onphoto{ color:#fff; border-color: rgba(255,255,255,0.5); }
.btn--onphoto:hover{ border-color:#fff; background: rgba(255,255,255,0.1); }
.btn--onphoto::after{ color: #fff; }

@media (max-width: 640px){
  .hero.hero--photo{ min-height: 78vh; padding: 100px 0 64px; }
  .hero__title--short{ white-space: normal; }
}

/* Indicador de scroll: invita a seguir bajando */
.hero__scroll{
  position:absolute; left:50%; bottom:32px; transform: translateX(-50%);
  z-index:1;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color:#fff; text-decoration:none;
}
.hero__scroll-label{
  font-family: var(--font-mono); font-size:11px; letter-spacing:0.12em;
  text-transform:uppercase; opacity:0.85;
}
.hero__scroll-icon{
  width:22px; height:34px; border:2px solid rgba(255,255,255,0.6);
  border-radius:12px; position:relative;
}
.hero__scroll-icon::before{
  content:""; position:absolute; top:6px; left:50%;
  width:4px; height:4px; margin-left:-2px;
  background:#fff; border-radius:50%;
  animation: heroScrollDot 1.8s ease-in-out infinite;
}
@keyframes heroScrollDot{
  0%{ transform: translateY(0); opacity:1; }
  70%{ transform: translateY(12px); opacity:0; }
  100%{ transform: translateY(0); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .hero__scroll-icon::before{ animation:none; opacity:1; }
}
@media (max-width: 640px){
  .hero__scroll{ display:none; }
}

.media-placeholder{
  position:relative;
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(135deg, rgba(196,30,42,0.035) 0 1px, transparent 1px 13px),
    linear-gradient(155deg, #FAFAF9 0%, #F1EFED 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.media-placeholder::before{
  content:"";
  width: 34%; max-width:120px;
  aspect-ratio: 1/1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 L4.5 19 L12 15.5 Z' fill='%23C41E2A' fill-opacity='0.14'/%3E%3Cpath d='M12 3 L12 15.5 L19.5 17.7 Z' fill='%23C41E2A' fill-opacity='0.07'/%3E%3C/svg%3E");
  background-size: contain; background-repeat:no-repeat; background-position:center;
}
.media-placeholder--tall{ aspect-ratio: 4 / 5; }
.media-placeholder--photo{ aspect-ratio: 4 / 5; }
.media-placeholder--photo::before{ display:none; }
.media-placeholder--photo img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.media-tag{
  position:absolute; top:16px; right:16px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing:0.06em;
  background: #fff; border:1px solid var(--line);
  padding: 6px 10px; border-radius: 3px; color: var(--muted);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stats__grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
}
.stat{
  padding: 48px 40px; border-right: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.stat:hover{ background: var(--red-tint); }
.stat:last-child{ border-right:none; }
.stat__number{
  font-family: var(--font-display);
  font-weight:900;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  margin-bottom: 14px;
}
.stat__label{ font-size: 14.5px; color: var(--muted); line-height:1.6; }

/* ==========================================================================
   Section basics
   ========================================================================== */
.section{ padding: 100px 0; }
.section--fog{ background: var(--fog); }
.section--dark{ background: var(--dark); color: var(--ink); border-top:1px solid var(--dark-line); border-bottom:1px solid var(--dark-line); }

.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{
  font-family: var(--font-display); font-weight:900;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height:1.14; margin-bottom:18px;
}
.section-head p{ font-size: 16.5px; color: var(--muted); line-height:1.7; }
.section-head--dark p{ color: var(--dark-muted); }

.split{
  display:grid; grid-template-columns: 1fr 1fr; gap:72px; align-items:center;
}
.split--reverse{ grid-template-columns: 1fr 1fr; }
.split--reverse .split__media{ order:1; }
.split--reverse .split__text{ order:2; }

.split__text h2{
  font-family: var(--font-display); font-weight:900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height:1.15; margin-bottom:24px;
}
.split__text p{ font-size: 16px; line-height:1.75; color: var(--muted); margin-bottom:20px; }
.split__text p:last-of-type{ margin-bottom:0; }
.split__text strong{ color: var(--ink); font-weight:600; }

.pull-quote{
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--red);
}
.pull-quote p{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 10px;
}
.pull-quote cite{
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Aplicaciones — cards
   ========================================================================== */
.cards{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.card{
  position:relative;
  background:#fff; border:1px solid var(--line); border-radius:6px;
  padding: 38px 32px 34px; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  overflow:hidden;
}
.card::before{
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--red); transform: scaleX(0); transform-origin:left;
  transition: transform .25s var(--ease);
}
.card:hover{ border-color: var(--line); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::before{ transform: scaleX(1); }
.card__icon{
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:8px; color: var(--red);
  margin-bottom: 28px; background: var(--red-tint);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.card:hover .card__icon{ background: var(--red); color:#fff; transform: scale(1.06); }
.card__icon svg{ width:22px; height:22px; }
.card__eyebrow{
  font-family: var(--font-mono); font-size:12px; letter-spacing:0.08em;
  text-transform:uppercase; color: var(--red); font-weight:600; margin-bottom:10px;
}
.card h3{
  font-family: var(--font-display); font-weight:800; font-size: 1.35rem;
  margin-bottom: 20px;
}
.card ul{ display:flex; flex-direction:column; gap:12px; }
.card li{
  position:relative; padding-left:18px; font-size:14.5px; color:var(--muted); line-height:1.55;
}
.card li::before{
  content:""; position:absolute; left:0; top:9px; width:8px; height:1.5px; background: var(--red);
}

/* ==========================================================================
   Calidad — spec list
   ========================================================================== */
.spec-list{ border-top:1px solid var(--line); margin-top:8px; margin-bottom:20px; border-radius:6px; overflow:hidden; }
.spec-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 14px; border-bottom:1px solid var(--line);
  font-size: 15px;
  transition: background .15s var(--ease);
}
.spec-row:hover{ background: var(--red-tint); }
.spec-row span:first-child{ color: var(--muted); }
.spec-row span:last-child{ font-family: var(--font-mono); font-weight:600; color:var(--ink); }
.spec-note{ font-size: 13.5px; color: var(--muted); font-style:italic; }

/* ==========================================================================
   Proceso
   ========================================================================== */
.process{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:20px;
  position: relative;
}
.process::before{
  content:"";
  position:absolute; top:50%; left:6%; right:6%; height:1px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
  z-index:0;
}
.process__step{
  position:relative; z-index:1; padding: 30px 26px 28px;
  background:#fff; border:1px solid var(--line); border-radius:8px;
  box-shadow: var(--shadow-sm);
  min-height: 240px; overflow:hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.process__step:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
.process__ghost{
  position:absolute; right:12px; top:6px;
  font-family: var(--font-display); font-weight:900;
  font-size: 5.5rem; color: rgba(196,30,42,0.08); line-height:1; pointer-events:none;
}
.process__tag{
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:0.1em;
  color: var(--red); font-weight:600; margin-bottom:18px; position:relative;
}
.process__step h3{
  font-family: var(--font-display); font-weight:800; font-size:1.2rem;
  margin-bottom:14px; position:relative; color: var(--ink);
}
.process__step p{
  font-size: 14.5px; color: var(--dark-muted); line-height:1.65; position:relative;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta{ padding: 96px 0; position:relative; overflow:hidden; }
.cta::before{
  content:"";
  position:absolute; top:0; right:0; width:420px; height:420px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 L4.5 19 L12 15.5 Z' fill='%23C41E2A' fill-opacity='0.05'/%3E%3Cpath d='M12 3 L12 15.5 L19.5 17.7 Z' fill='%23C41E2A' fill-opacity='0.03'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:contain; background-position: top right;
  pointer-events:none;
}
.cta__inner{ max-width: 640px; text-align:left; position:relative; z-index:1; }
.cta h2{
  font-family: var(--font-display); font-weight:900;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height:1.16; margin-bottom:18px;
}
.cta p{ font-size:16.5px; color: var(--muted); line-height:1.7; margin-bottom:32px; }

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-list{ display:flex; flex-direction:column; gap:22px; margin-top:32px; }
.contact-list li{ display:flex; flex-direction:column; gap:4px; }
.contact-list__label{
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.08em;
  text-transform:uppercase; color: var(--muted);
}
.contact-list__value{ font-size:16px; font-weight:500; }
.contact-list__value a:hover{ color: var(--red); }
.contact-list__value--placeholder{ color: var(--muted); font-style:italic; font-weight:400; }

.form{
  background:#fff; border:1px solid var(--line); border-radius:8px; padding:32px;
  box-shadow: var(--shadow-md);
  display:flex; flex-direction:column; gap:20px;
}
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form__field{ display:flex; flex-direction:column; gap:8px; }
.form__field span{ font-size:13px; font-weight:600; color:var(--muted); }
.form__field--full{ grid-column: 1 / -1; }
.form input, .form select, .form textarea{
  border:1px solid var(--line); border-radius:4px; padding:12px 14px;
  font-size:14.5px; color:var(--ink); background:#fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus{
  border-color: var(--red); outline:none;
  box-shadow: 0 0 0 3px var(--red-tint);
}
.form textarea{ resize:vertical; min-height:96px; }
.form__note{ font-size:13.5px; color: var(--muted); min-height:1em; }
.form__note.is-success{ color: var(--red); font-weight:600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  background: var(--paper); color:var(--ink); padding: 64px 0 0;
  border-top: 2px solid var(--ink);
  position:relative; overflow:hidden;
}
.footer::before{
  content:"";
  position:absolute; bottom:-40px; right:4%; width:260px; height:260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 L4.5 19 L12 15.5 Z' fill='%23C41E2A' fill-opacity='0.035'/%3E%3Cpath d='M12 3 L12 15.5 L19.5 17.7 Z' fill='%23C41E2A' fill-opacity='0.02'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-size:contain;
  pointer-events:none;
}
.footer__grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:48px;
  padding-bottom: 56px; border-bottom:1px solid var(--line);
  position:relative; z-index:1;
}
.brand--footer .brand__name-secondary{ color: var(--red); }
.footer__brand p{ margin-top:16px; }
.footer__muted{ color: var(--muted); font-size:14px; }
.footer__col{ display:flex; flex-direction:column; gap:14px; }
.footer__col a{ font-size:14.5px; color: var(--ink); transition: color .18s var(--ease); }
.footer__col a:hover{ color: var(--red); }
.footer__heading{
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.08em;
  text-transform:uppercase; color: var(--muted); margin-bottom:2px;
}
.footer__contact-item{
  display:flex; align-items:flex-start; gap:10px; line-height:1.5;
}
.footer__contact-item svg{ flex:none; margin-top:2px; color: var(--red); }
.footer__contact-item--static{ font-size:14.5px; color: var(--ink); margin:0; }
.footer__whatsapp{
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; font-weight:600; color: var(--ink);
  margin-top:6px; width:fit-content;
}
.footer__whatsapp svg{ color:#25D366; }
.footer__whatsapp:hover{ color: var(--red); }
.footer__bottom{
  padding: 26px 0; position:relative; z-index:1;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
.footer__bottom p{ font-size:13px; color: var(--muted); margin:0; }
.footer__totop{
  font-size:13px; font-weight:600; color: var(--ink);
  display:inline-flex; align-items:center; gap:6px;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer__totop:hover{ color: var(--red); transform: translateY(-2px); }

/* ==========================================================================
   Mapa de Google
   ========================================================================== */
.map-embed{
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  filter: grayscale(0.15);
}
.map-embed iframe{ display:block; }

/* ==========================================================================
   FAQ (acordeón nativo con <details>)
   ========================================================================== */
.faq-list{ max-width: 760px; border-top: 1px solid var(--line); }
.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 4px 16px;
  margin: 0 -16px;
  border-radius: 6px;
  transition: background .18s var(--ease);
}
.faq-item:hover{ background: var(--red-tint); }
.faq-item summary{
  cursor:pointer;
  list-style:none;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:"+";
  flex:none;
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--red-tint);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--red);
  transition: transform .2s var(--ease), background .18s var(--ease);
}
.faq-item[open] summary::after{ content:"–"; background: var(--red); color:#fff; }
.faq-item p{
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
  padding-bottom: 20px;
  animation: faqFadeIn .25s var(--ease);
}
@keyframes faqFadeIn{
  from{ opacity:0; transform: translateY(-4px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */
.whatsapp-btn{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  transition: transform .18s var(--ease);
}
.whatsapp-btn:hover{ transform: translateY(-3px); }
.whatsapp-btn::before{
  content:"";
  position:absolute; inset:0;
  border-radius:50%;
  background:#25D366;
  animation: pulse-ring 2.4s ease-out infinite;
  z-index:-1;
}
@keyframes pulse-ring{
  0%{ transform: scale(1); opacity:0.55; }
  100%{ transform: scale(1.7); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .whatsapp-btn::before{ animation:none; display:none; }
}

/* Artículo individual */
.article{ padding: 64px 0 96px; }
.article__header{ max-width: 760px; margin: 0 auto 48px; }
.article__header .eyebrow{ margin-bottom:20px; }
.article__header h1{
  font-family: var(--font-display); font-weight:900;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height:1.15; margin-bottom:18px;
}
.article__meta{ font-size:14px; color:var(--muted); }
.article__media{
  max-width: 900px; margin: 0 auto 48px;
  aspect-ratio: 16/8;
  background:
    repeating-linear-gradient(135deg, rgba(196,30,42,0.035) 0 1px, transparent 1px 13px),
    linear-gradient(155deg, #FAFAF9 0%, #F1EFED 100%);
  border:1px solid var(--line); border-radius:6px; box-shadow: var(--shadow-sm);
}
.article__body{ max-width: 720px; margin: 0 auto; }
.article__body h2{
  font-family: var(--font-display); font-weight:800; font-size:1.5rem;
  margin: 40px 0 18px;
}
.article__body p{ font-size:16.5px; color:var(--ink); line-height:1.8; margin-bottom:20px; }
.article__body h3{
  font-family: var(--font-display); font-weight:700; font-size:1.15rem;
  margin: 32px 0 14px;
}
.article__body p.lead{ font-size:18px; color:var(--muted); }
.article__body ul{ margin: 0 0 20px; display:flex; flex-direction:column; gap:10px; }
.article__body li{ position:relative; padding-left:20px; font-size:16px; color:var(--ink); line-height:1.7; }
.article__body li::before{ content:""; position:absolute; left:0; top:11px; width:9px; height:1.5px; background:var(--red); }
.article__cta{
  margin-top: 48px; padding: 32px; background: var(--fog); border-radius:6px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px;
}
.article__cta p{ margin:0; font-weight:700; font-size:16px; max-width:36ch; }
.article__back{ display:inline-flex; align-items:center; gap:8px; font-size:14.5px; font-weight:600; margin-bottom:32px; }
.article__back:hover{ color: var(--red); }

/* ==========================================================================
   Aviso de cookies
   ========================================================================== */
.cookie-banner{
  position: fixed; left:20px; right:20px; bottom:20px; z-index: 250;
  max-width: 640px; margin: 0 auto;
  background: #fff; border:1px solid var(--line); border-radius:10px;
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  display:flex; flex-wrap:wrap; align-items:center; gap:16px;
}
.cookie-banner[hidden]{ display:none; }
.cookie-banner__text{ flex:1; min-width:220px; font-size:13.5px; color:var(--muted); line-height:1.6; }
.cookie-banner__text a{ color: var(--ink); text-decoration:underline; text-underline-offset:2px; }
.cookie-banner__actions{ display:flex; gap:10px; flex:none; }
.cookie-banner__actions .btn{ padding:10px 18px; font-size:13.5px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .nav{ display:none; }
  .nav-toggle{ display:flex; }
  .header__actions{ gap:14px; }
  .btn--small{ display:none; }
  .brand__logo{ height:52px; }
  .brand__logo--footer{ height:64px; }

  .header.nav-open .nav{
    display:flex; flex-direction:column; gap:0;
    position:fixed; top:112px; left:0; right:0; bottom:0;
    background:#fff;
    padding: 12px var(--gutter) 40px;
    overflow-y:auto;
    counter-reset: navlink;
    animation: navPanelIn .3s var(--ease) both;
  }
  @keyframes navPanelIn{
    from{ opacity:0; transform: translateY(-8px); }
    to{ opacity:1; transform: translateY(0); }
  }
  .header.nav-open .nav a{
    counter-increment: navlink;
    display:flex; align-items:center; gap:14px;
    width:100%; padding:20px 0;
    border-bottom:1px solid var(--line);
    font-family: var(--font-display); font-weight:700; font-size:1.15rem;
    opacity:0; transform: translateY(10px);
    animation: navLinkIn .4s var(--ease) forwards;
  }
  .header.nav-open .nav a::before{
    content: counter(navlink, decimal-leading-zero);
    font-family: var(--font-mono); font-weight:600; font-size:12px;
    color: var(--red);
  }
  .header.nav-open .nav a:nth-child(1){ animation-delay: .05s; }
  .header.nav-open .nav a:nth-child(2){ animation-delay: .1s; }
  .header.nav-open .nav a:nth-child(3){ animation-delay: .15s; }
  .header.nav-open .nav a:nth-child(4){ animation-delay: .2s; }
  .header.nav-open .nav a:nth-child(5){ animation-delay: .25s; }
  @keyframes navLinkIn{
    to{ opacity:1; transform: translateY(0); }
  }
  .header.nav-open .nav__cta{
    display:flex; justify-content:center;
    margin-top:28px; counter-increment: none; border-bottom:none;
    font-family: var(--font-body); font-size:15px;
  }
  .header.nav-open .nav__cta::before{ content:none; }
  @media (prefers-reduced-motion: reduce){
    .header.nav-open .nav, .header.nav-open .nav a{ animation:none; opacity:1; transform:none; }
  }

  .hero__grid, .split, .split--reverse{ grid-template-columns:1fr; gap:40px; }
  .split--reverse .split__media, .split--reverse .split__text{ order:initial; }

  .stats__grid{ grid-template-columns: repeat(2, 1fr); }
  .stat{ border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
  .stat:nth-child(2n){ border-right:none; }

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

  .process{ grid-template-columns: 1fr; }
  .process::before{ display:none; }
  .process__step{ min-height:auto; }

  .footer__grid{ grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom{ flex-direction:column; align-items:flex-start; gap:14px; }
}

@media (max-width: 620px){
  .section{ padding: 72px 0; }
  .hero{ padding: 56px 0 48px; }
  .form__row{ grid-template-columns:1fr; }
  .stats__grid{ grid-template-columns: 1fr; }
  .stat{ border-right:none; }
  .whatsapp-btn{ width:52px; height:52px; right:16px; bottom:16px; }
  .article__cta{ flex-direction:column; align-items:flex-start; }
}
