/* REANA: superficies limpias y rojo concentrado en marca, acciones y selección.
   Esta capa compartida actualiza la paleta sin alterar la composición original. */
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
@font-face {
  font-family: 'Sora';
  src: url('../assets/fonts/Sora-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}
:root {
  --paper: #fff;
  --surface: #f5f6f7;
  --ink: #24272c;
  --muted: #60656d;
  --line: #d9dde2;
  --red: #ce202b;
  --red-deep: #a71923;
  --red-soft: #fff;
  --lime: #fff;
  --sans: 'Source Sans 3', 'Segoe UI', sans-serif;
  --display: 'Sora', 'Segoe UI', sans-serif;
}

body { background: var(--paper); color: var(--ink); }
html { scroll-padding-top: 108px; }
::selection { background: var(--red); color: white; }
:focus-visible, .video-file-label:focus-within {
  outline: 3px solid var(--red-deep);
  outline-offset: 4px;
}
input, textarea { caret-color: var(--red); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; }
h1 em, h2 em, .fair-footer > p {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
}
.hero-film h1 { font-size: clamp(56px, 7vw, 96px); letter-spacing: -.04em; }
.hero-film h1 em { font-weight: 700; }
.hero-film .hero-copy > p { font-size: 17px; }
.hero-film .eyebrow { color: white; }
.button, .text-link { font-size: 15px; }
.eyebrow { font-size: 12px; letter-spacing: .1em; }

/* Una cabecera blanca en portada, interiores y al desplazarse. */
.header, .header.is-scrolled, .interior-page .header {
  height: 100px;
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header.is-scrolled { height: 88px; }
.interior-page { padding-top: 100px; }
.header .brand img { width: 130px; height: 76px; filter: none; }
.header nav { gap: 26px; font-size: 16px; font-weight: 600; }
.header nav > a { color: var(--ink); text-shadow: none; }
.header nav > a:hover, .header nav > a[aria-current="page"] { color: var(--red); }
.header nav > a:not(.nav-contact):after { background: var(--red); }
.header nav > a[aria-current="page"]:after { transform: scaleX(1); }
.header .nav-contact, .header .nav-contact[aria-current="page"] {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.header .nav-contact:hover { background: var(--red-deep); border-color: var(--red-deep); color: white; }
.header .menu-toggle { background: white; border-color: var(--line); color: var(--ink); }
.header .menu-toggle span { background: var(--ink); }

/* Alternancia neutra, sin fondos crema, rosados o verdes. */
.solutions, .campaign-section { background: var(--surface); }
.about:before { content: none; }
.topic-strip {
  background: white;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.topic-strip i { color: var(--red); }
.section-heading .section-index { color: #d9dde2; letter-spacing: -.04em; }
.about-copy > p:not(.large-copy), .section-heading > p, .area-copy p {
  font-size: 16px;
  line-height: 1.75;
}
.editorial-note { font-size: 13px !important; }
.solution-tabs { border-color: var(--line); }
.solution-tabs button { color: var(--muted); font-size: 16px; }
.area-copy h3 { letter-spacing: -.035em; }
.area-copy small, .area-tags span, .area-image > span { font-size: 12px; }
.species-icon { background: var(--surface); }
.species-card[aria-pressed="true"] { background: white; border-color: var(--red); }
.species-card[aria-pressed="true"] strong { color: var(--red); font-weight: 700; }
.species-card[aria-pressed="true"] .species-icon { background: var(--surface); }
.species-card small, .catalog-toolbar p, .catalog-note, #catalog-context { font-size: 13px; }
.catalog-detail { background: var(--surface); }
.catalog-category span, .catalog-category a { font-size: 13px; }
.catalog-category strong { font-size: 15px; }
.species-rail, .album-track { scrollbar-color: #b7bdc5 transparent; }
.album-filters button { border-color: var(--line); font-size: 14px; }
.album-caption small, .album-note { font-size: 13px; }
.locator-sidebar label, .locator-sidebar input, .locator-sidebar select { font-size: 15px; }
.locator-sidebar input, .locator-sidebar select { background: white; }
#store-count, #store-list small, #store-detail p, #store-region { font-size: 13px; }
#store-list strong { font-size: 16px; }
#store-detail { background: var(--surface); }
#distributor-map, #video-empty { background: var(--surface); }
.map-banner { background: white; color: var(--muted); font-size: 12px; }
.map-reset { font-size: 13px; }
.fair-entry[open] .fair-disclosure, .fair-filters button:hover { background: var(--surface); }
.fair-footer > p { font-size: 24px; }

/* Contacto descansa sobre gris neutro; el botón rojo concentra la acción. */
.contact {
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.contact .eyebrow, .contact h2 em, .contact-mark { color: var(--red); }
.contact-grid { align-items: start; gap: 7%; }
.contact-grid > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  max-width: 36ch;
}
.contact form { background: white; padding: 36px; border-radius: 12px; }
.contact .form-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.contact .form-heading h3 { font-size: 28px; }
.contact .form-heading span {
  background: var(--surface);
  border: 0;
  color: var(--muted);
  font-size: 12px;
}
.contact label { color: var(--ink); font-size: 15px; font-weight: 600; }
.contact input, .contact textarea, .contact select {
  color: var(--ink);
  background: white;
  border: 1px solid #a5adb7;
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  min-height: 48px;
}
.contact input::placeholder, .contact textarea::placeholder { color: var(--muted); opacity: 1; }
.contact select option { background: white; color: var(--ink); }
.contact .form-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact .button-lime { background: var(--red); color: white; min-height: 48px; font-size: 16px; }
.contact .button-lime:hover { background: var(--red-deep); }
.contact .form-status { color: var(--red-deep); font-size: 14px; }

.footer { background: white; color: var(--ink); border-top: 1px solid var(--line); }
.footer-brand span, .footer > p, .footer .admin-link { color: var(--muted); font-size: 12px; }
.footer > div { font-size: 15px; }
.footer a:hover, .footer .admin-link:hover { color: var(--red); }

@media (max-width: 1100px) {
  .header nav { gap: 18px; font-size: 15px; }
  .header .nav-contact { padding: 12px 16px; }
  .header .nav-contact span { padding-left: 8px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 90px; }
  .header, .interior-page .header { height: 88px; }
  .header.is-scrolled { height: 78px; }
  .interior-page { padding-top: 88px; }
  .header .brand img { width: 116px; height: 67px; }
  .header nav.open {
    top: calc(100% + 8px);
    background: white;
    border-color: var(--line);
    box-shadow: 0 16px 32px #24272c14;
    backdrop-filter: none;
  }
  .header nav > a { padding: 12px 10px; }
  .header .nav-contact { padding: 12px 16px; }
  .hero-film h1 { font-size: clamp(48px, 9vw, 80px); }
  .hero-film .hero-copy > p { font-size: 16px; }
  .hero-film .eyebrow { font-size: 11px; }
  .contact form { padding: 28px; }
  .solution-tabs button { font-size: 13px; }
  .topic-strip { font-size: 12px; }
}
@media (max-width: 520px) {
  .hero-film h1 { font-size: clamp(42px, 11vw, 57px); letter-spacing: -.035em; }
  .contact form { padding: 24px 20px; }
  .contact h2 { font-size: clamp(30px, 8.4vw, 42px); }
  .contact .form-heading h3 { font-size: 25px; }
  .footer > div { flex-wrap: wrap; gap: 16px 24px; }
}

/* Secuencia de referencia: onda Splash al hover, vibración Zap al activar. */
.header nav { gap: 8px; }
.header nav > a:not(.nav-contact) { padding: 12px 16px; border-radius: 100px; }
.header nav > a:not(.nav-contact):after { content: none; }
.header nav > a[aria-current="page"]:not(.nav-contact) { background: var(--surface); }
.action-effect {
  --wave-fill: var(--red-deep);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: none;
  transition: background .18s ease, box-shadow .18s ease;
}
.header nav > .action-effect:not(.nav-contact) { --wave-fill: var(--surface); }
.action-effect::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -30% -12%;
  background: var(--wave-fill);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 180' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 22C40 0 80 42 120 20S200 0 240 22V180H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: translateY(100%);
  transition: transform .42s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.action-effect > .effect-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
}
.header .nav-contact > .effect-label { padding: 0; font-size: inherit; }
.header .nav-contact .effect-label > span { padding-left: 0; }
.header .nav-contact.action-effect:hover, .contact .button-lime.action-effect:hover,
.button-dark.action-effect:hover, .hero-film .button-dark.action-effect:hover {
  background: var(--red);
  color: white;
}
.action-effect:focus-visible::before, .action-effect.is-zapping::before { transform: translateY(0); }
.button.action-effect:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .action-effect:hover::before { transform: translateY(0); }
}
.action-effect.is-zapping { animation: reana-zap 280ms ease-out both; }
.action-effect.is-zapping > .effect-label { animation: reana-zap-label 280ms steps(2, end) both; }
@keyframes reana-zap {
  0%, 100% { transform: translate(0); box-shadow: none; }
  18% { transform: translate(-2px, 1px) rotate(-.6deg); box-shadow: 0 3px 12px #ce202b45; }
  36% { transform: translate(2px, -1px) rotate(.6deg); }
  54% { transform: translate(-1px, 0); box-shadow: 0 2px 8px #ce202b30; }
  72% { transform: translate(1px, 0); }
}
@keyframes reana-zap-label {
  0%, 100% { transform: translateX(0); text-shadow: none; }
  20%, 60% { transform: translateX(1px); text-shadow: -1px 0 currentColor; }
  40% { transform: translateX(-1px); text-shadow: 1px 0 currentColor; }
  80% { transform: translateX(0); text-shadow: none; }
}
@media (max-width: 900px) {
  .header nav > a:not(.nav-contact) { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .action-effect::before { mask: none; transition: none; }
  .action-effect, .action-effect > .effect-label { animation: none !important; }
}
