/* ============================================================
   Biosmart — Design tokens (paleta oficial)
   Verde oscuro/principal (#183B36): secciones importantes, botón
   primario, footer. Verde profundo (#102A27): hero y momentos de
   mayor contraste. Crema (#F3F0E9): fondo predominante. Beige cálido
   (#E6DED1): diferencia secciones puntuales sin contraste agresivo.
   Terracota (#A86545): acento, uso puntual — nunca fondo grande.
   --color-ink es el texto principal; --color-text-secondary el
   secundario/meta.
   ============================================================ */

:root {
  --color-ink: #1f302d;
  --color-text-secondary: #5f6661;
  --color-teal: #183b36;
  --color-teal-dark: #102a27;
  --color-teal-tint: #e7eeec;
  --color-terracota: #a86545;
  --color-terracota-tint: #f5e8dd;
  --color-cream: #f3f0e9;
  --color-cream-deep: #e6ded1;
  --color-white: #ffffff;
  --color-line: #d9cdb8;

  /* Header: valores exactos del refinamiento editorial del header global */
  --header-height: 84px;
  --header-bg: #faf9f6;
  --header-bg-scrolled: rgba(250, 249, 246, 0.94);
  --header-border: rgba(24, 51, 47, 0.06);
  --header-border-scrolled: rgba(24, 51, 47, 0.08);
  --header-shadow-scrolled: 0 4px 20px rgba(25, 52, 47, 0.03);
  --header-text: #4f5b58;
  --header-text-hover: #19342f;
  --header-accent: #a66f4a;

  --font-display: "Familjen Grotesk", "Century Gothic", "Futura", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-editorial: "DM Serif Display", Georgia, "Times New Roman", serif;

  --container: 1180px;
  --radius: 2px;
  --transition: 320ms cubic-bezier(0.4, 0, 0.2, 1);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 10px);
}

html.nav-locked {
  overflow: hidden;
}

html.nav-locked .wa-float,
html.nav-locked .cookie-banner {
  display: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-teal-dark);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.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;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

h3 {
  font-size: 1.3rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-terracota);
  margin-bottom: var(--space-xs);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--space-xl) 0;
}

@media (max-width: 720px) {
  section {
    padding: var(--space-lg) 0;
  }
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--header-border-scrolled);
  box-shadow: var(--header-shadow-scrolled);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  line-height: normal;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 9px;
  color: var(--header-text);
  transition: color 250ms ease;
}

.main-nav a:hover {
  color: var(--header-accent);
}

.main-nav a.active {
  color: var(--header-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--header-text-hover);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 220;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--header-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg) 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .main-nav.open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .main-nav .btn {
    margin-top: var(--space-md);
  }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--color-teal);
  color: var(--color-ink);
}

.btn-ghost:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/* ---------------- Nosotros — Bloque 01: Nuestros orígenes ---------------- */
/* Paleta y proporciones propias de este bloque (no reutiliza tokens
   globales) por pedido explícito de Marcelo: fondo #F3F0EA, título
   #18332F, texto #30423E, acento #A66F4A. No tocar en cambios a otros
   bloques de Nosotros. */

.origins-section {
  background: #f3f0ea;
}

.origins-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: stretch;
}

@media (max-width: 860px) {
  .origins-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.origins-content {
  display: flex;
  align-items: center;
  padding: 0 6% 0 11%;
}

@media (max-width: 860px) {
  .origins-content {
    padding: 0;
  }
}

.origins-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.15;
  color: #18332f;
}

.origins-text {
  margin-top: 1.4rem;
  max-width: 500px;
}

.origins-text p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #30423e;
}

.origins-text p + p {
  margin-top: 1rem;
}

.origins-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .origins-media img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------------- Nosotros — Bloque 02: Una experiencia real ---------------- */
/* Paleta propia de este bloque (no reutiliza tokens globales) por pedido
   explícito de Marcelo: fondo #18332F, título/frase #F3F0EA, texto
   secundario #D9D6CF, acento #A66F4A. No tocar en cambios a otros
   bloques de Nosotros. Único momento oscuro de la página: pausa
   emocional entre el origen y la filosofía. */

.story-section {
  background: #18332f;
}

.story-grid {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: stretch;
  gap: 3rem;
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.story-content {
  display: flex;
  align-items: center;
}

.story-title {
  max-width: 480px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.15;
  color: #f3f0ea;
}

.story-text {
  margin-top: 1.4rem;
  max-width: 460px;
}

.story-text p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d9d6cf;
}

.story-text p + p {
  margin-top: 1rem;
}

.story-quote {
  margin-top: 1.6rem;
  max-width: 460px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  color: #f3f0ea;
}

.story-accent {
  color: #a66f4a;
}

.story-attribution {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(217, 214, 207, 0.6);
}

.story-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.story-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-media .instagram-media {
  width: 100% !important;
  max-width: 326px !important;
  min-width: 0 !important;
}

@media (max-width: 860px) {
  .story-media img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------------- Nosotros — Bloque 04: Lo que buscamos ---------------- */
/* Paleta propia de este bloque (no reutiliza tokens globales) por pedido
   explícito de Marcelo: fondo #E8E0D4, título/frase #18332F, texto
   secundario #30423E, acento #A66F4A. No tocar en cambios a otros
   bloques de Nosotros. Sección deliberadamente más compacta que las
   anteriores. */

.purpose-section {
  background: #e8e0d4;
  padding: var(--space-lg) 0;
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 3rem;
}

@media (max-width: 860px) {
  .purpose-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.purpose-content {
  display: flex;
  align-items: center;
}

.purpose-title {
  max-width: 420px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: #18332f;
}

.purpose-text {
  margin-top: 1.2rem;
  max-width: 460px;
}

.purpose-text p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #30423e;
}

.purpose-text p + p {
  margin-top: 0.8rem;
}

.purpose-quote {
  margin-top: 1.4rem;
  max-width: 440px;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.5;
  color: #18332f;
}

.purpose-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .purpose-media img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------------- Nosotros — Bloque 03: Nuestra filosofía ---------------- */
/* Paleta propia de este bloque (no reutiliza tokens globales) por pedido
   explícito de Marcelo: fondo #F3F0EA, declaración/detalle #18332F,
   texto secundario #30423E, acento #A66F4A. No tocar en cambios a otros
   bloques de Nosotros. Isotipo como elemento gráfico grande en la columna
   izquierda (antes era una marca de agua chica en la esquina) — único
   otro uso del isotipo en el sitio (el primero es #catalogo en home). */
.block-philosophy {
  position: relative;
  overflow: hidden;
  background: #f3f0ea;
}

.block-philosophy .container {
  position: relative;
  z-index: 1;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 3rem;
}

.philosophy-visual {
  position: relative;
}

.philosophy-mark {
  display: block;
  position: absolute;
  top: 0;
  right: -4%;
  height: 100%;
  aspect-ratio: 409 / 408;
  background-color: #18332f;
  -webkit-mask-image: url("../assets/logo/isotipo-negro-clean.png");
  mask-image: url("../assets/logo/isotipo-negro-clean.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 860px) {
  .philosophy-visual {
    min-height: 200px;
  }

  .philosophy-mark {
    right: 4%;
    height: 200px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.philosophy-main {
  display: flex;
  flex-direction: column;
}

.philosophy-statement {
  order: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.28;
  color: #18332f;
}

.philosophy-text {
  order: 2;
  margin-top: 1.8rem;
  max-width: 620px;
}

.philosophy-text p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #30423e;
}

.philosophy-text p + p {
  margin-top: 0.7rem;
}

.philosophy-detail {
  order: 3;
  margin-top: 2rem;
}

.philosophy-key {
  margin-top: 1rem;
  max-width: 480px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: #18332f;
}

@media (max-width: 860px) {
  .philosophy-text {
    order: 3;
  }
  .philosophy-detail {
    order: 2;
  }
}

/* ---------------- Nosotros — Bloque 05: Conoce Biosmart ---------------- */
/* Paleta propia de este bloque (no reutiliza tokens globales) por pedido
   explícito de Marcelo: fondo #F3F0EA, título #18332F, texto secundario
   #30423E, acento #A66F4A. No tocar en cambios a otros bloques de
   Nosotros. Cierre de la página: galería editorial, no una cuadrícula
   pareja — una foto principal grande + secundarias de distinto tamaño. */

.showcase-section {
  background: #f3f0ea;
}

.showcase-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.showcase-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: #18332f;
}

.showcase-gallery {
  display: grid;
  grid-template-columns: 57% 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "main sec"
    "pano pano";
  gap: 8px;
}

.showcase-gallery img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.showcase-main {
  grid-area: main;
  aspect-ratio: 3 / 2;
  object-position: center 40%;
}

.showcase-secondary {
  grid-area: sec;
  height: 100%;
  object-position: center 45%;
}

.showcase-panoramic {
  grid-area: pano;
  aspect-ratio: 21 / 9;
}

@media (max-width: 860px) {
  .showcase-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "main"
      "sec"
      "pano";
  }

  .showcase-gallery img {
    height: auto;
  }

  .showcase-main {
    aspect-ratio: 4 / 5;
  }

  .showcase-secondary {
    aspect-ratio: 4 / 3;
  }

  .showcase-panoramic {
    aspect-ratio: 16 / 9;
  }
}

/* ---------------- Contact ---------------- */

.contact-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(620px 440px at 6% 8%, rgba(216, 185, 138, 0.16), transparent 70%),
    radial-gradient(560px 480px at 96% 90%, rgba(230, 217, 197, 0.55), transparent 65%),
    radial-gradient(520px 420px at 55% -8%, rgba(250, 248, 243, 0.65), transparent 70%),
    #f4f1eb;
}

.contact-section .container {
  position: relative;
  max-width: 1360px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 10fr 13fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.contact-info {
  max-width: 46ch;
  padding-top: 0.25rem;
}

.contact-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a6548;
}

.contact-title {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  line-height: 0.98;
  color: #19342f;
}

.contact-lead {
  margin-top: 1.4rem;
  max-width: 40ch;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.3vw, 1.35rem);
  line-height: 1.6;
  color: #4b5250;
}

.contact-channels {
  margin-top: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.contact-channels li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.contact-channel-icon {
  flex: none;
  width: 32px;
  height: 32px;
  color: #19342f;
}

.contact-channel-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.1rem;
}

.contact-channel-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: #19342f;
}

.contact-channel-value {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: #4b5250;
  transition: color var(--transition);
}

a.contact-channel-value:hover {
  color: #9a6548;
}

.contact-form-panel {
  background: #f8f6f1;
  border: 1px solid rgba(130, 110, 80, 0.22);
  border-radius: 16px;
  padding: clamp(1.75rem, 3.5vw, 3.4rem);
  box-shadow: 0 30px 60px -40px rgba(25, 52, 47, 0.18);
}

.contact-form-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.1;
  color: #19342f;
  margin-bottom: 2rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

.contact-form-field.full {
  grid-column: 1 / -1;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  width: 100%;
  height: 70px;
  padding: 0 1.3rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #19342f;
  background: transparent;
  border: 1px solid rgba(130, 110, 80, 0.28);
  border-radius: 9px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form-field textarea {
  height: auto;
  min-height: 175px;
  padding-top: 1.1rem;
  resize: vertical;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: #5a605d;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: #19342f;
  box-shadow: 0 0 0 2px #19342f;
}

.contact-form-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319342f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 18px;
}

.contact-form-field select:invalid {
  color: #5a605d;
}

.contact-form-submit {
  display: block;
  width: 100%;
  height: 72px;
  margin-top: 2.5rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f4f1eb;
  background: #173b33;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.contact-form-submit:hover {
  background: #23483f;
}

.location-strip {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-line);
}

.location-strip .eyebrow {
  margin-bottom: var(--space-sm);
}

.map-frame {
  border: none;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius);
  filter: grayscale(0.3) contrast(1.05);
}

.map-frame.compact {
  min-height: 260px;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--color-teal);
  color: rgba(255, 255, 255, 0.82);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-grid a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a:hover {
  color: var(--color-terracota);
}

.footer-grid a.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-book-badge {
  display: inline-flex;
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.footer-book-badge:hover {
  color: var(--color-terracota);
}

.footer-book-badge svg {
  width: 46px;
  height: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------- Floating WhatsApp ---------------- */

.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 200;
  background: var(--color-teal);
  color: var(--color-white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(16, 42, 39, 0.55);
  transition: transform var(--transition), background var(--transition), bottom 320ms ease;
}

.wa-float:hover {
  background: var(--color-terracota);
  transform: translateY(-2px);
}

body.cookie-banner-open .wa-float {
  bottom: calc(1.4rem + var(--cookie-banner-h, 0px));
}

/* ---------------- Aviso de cookies ---------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  background: var(--color-teal-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.1rem 1.5rem;
  transform: translateY(100%);
  transition: transform 320ms ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 62ch;
}

.cookie-banner-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.cookie-banner-text a:hover {
  color: var(--color-terracota);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  transition: border-color var(--transition), color var(--transition);
}

.cookie-banner-reject:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

@media (max-width: 620px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-accept,
  .cookie-banner-reject {
    flex: 1;
    justify-content: center;
  }
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

/* ---------------- Forms (Libro de Reclamaciones) ---------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-cream);
  color: var(--color-ink);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
  border-color: var(--color-teal);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(26, 29, 27, 0.75);
}

.form-checkbox input {
  margin-top: 0.2rem;
}

.form-ref {
  font-family: var(--font-display);
  color: var(--color-terracota);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.form-note {
  font-size: 0.85rem;
  color: rgba(26, 29, 27, 0.6);
  margin-top: 1.5rem;
}

.legal-copy h2 {
  font-size: 1.4rem;
  margin-top: var(--space-md);
  margin-bottom: 0.6rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p,
.legal-copy li {
  color: rgba(26, 29, 27, 0.8);
  margin-bottom: 0.8rem;
  max-width: 72ch;
}

.legal-copy ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 0.8rem;
}

.legal-copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.legal-copy th,
.legal-copy td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-line);
}

.legal-copy th {
  font-family: var(--font-display);
  color: var(--color-ink);
}

/* ---------------- Utilities ---------------- */

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

/* ============================================================
   Medicina Regenerativa — catálogo premium editorial
   Paleta propia de esta página (no reutiliza tokens globales) por
   pedido explícito de Marcelo: fondo #F3F0EA, verde oscuro #18332F,
   texto secundario #30423E, cobre #A66F4A. Misma paleta que los
   bloques editoriales de Nosotros — es la dirección visual premium
   del sitio. Catálogo sin precios: solo foto + nombre + descripción
   breve + WhatsApp.
   ============================================================ */

.regen-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a66f4a;
  margin-bottom: 0.9rem;
}

/* ---- Hero ---- */

.regen-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  background: #f3f0ea;
  min-height: clamp(420px, 48vw, 560px);
  padding: 0;
}

.regen-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
}

.regen-hero-grid {
  display: flex;
  flex: 1;
}

.regen-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.regen-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  color: #18332f;
  max-width: 16ch;
}

.regen-hero-text {
  margin-top: 1.3rem;
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: #30423e;
}

.regen-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
}

.regen-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 6%, rgba(0, 0, 0, 0.8) 12%, #000 18%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 6%, rgba(0, 0, 0, 0.8) 12%, #000 18%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media (max-width: 860px) {
  .regen-hero {
    display: block;
    min-height: 0;
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .regen-hero .container {
    display: block;
  }

  .regen-hero-grid {
    display: block;
  }

  .regen-hero-content {
    display: block;
    padding-top: clamp(2.5rem, 5vw, 4rem);
  }

  .regen-hero-media {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 2rem;
  }

  .regen-hero-media img {
    aspect-ratio: 16 / 10;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---- Catálogo ---- */

.regen-catalog {
  background: #faf8f4;
  padding-top: clamp(1.5rem, 3vw, 2rem);
}

.regen-catalog-head {
  max-width: 640px;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.regen-catalog-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: #18332f;
}

.regen-catalog-lead {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: #30423e;
}

.regen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 860px) {
  .regen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .regen-grid {
    grid-template-columns: 1fr;
  }
}

.regen-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #18332f;
}

.regen-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.regen-card:hover .regen-card-img,
.regen-card:focus-visible .regen-card-img {
  transform: scale(1.045);
}

.regen-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 51, 47, 0.62) 0%, rgba(24, 51, 47, 0.06) 42%, rgba(24, 51, 47, 0) 62%);
  transition: background 420ms ease;
}

.regen-card:hover .regen-card-overlay,
.regen-card:focus-visible .regen-card-overlay {
  background: rgba(24, 51, 47, 0.93);
}

.regen-card-body {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.regen-card-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #f3f0ea;
}

.regen-card-desc {
  display: block;
  max-width: 30ch;
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(243, 240, 234, 0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 420ms ease, opacity 420ms ease, margin-top 420ms ease;
}

.regen-card:hover .regen-card-desc,
.regen-card:focus-visible .regen-card-desc {
  max-height: 240px;
  opacity: 1;
  margin-top: 0.7rem;
}

.regen-card-cta {
  display: inline-block;
  width: fit-content;
  margin-top: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f3f0ea;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 420ms ease, transform 420ms ease, margin-top 420ms ease;
}

.regen-card:hover .regen-card-cta,
.regen-card:focus-visible .regen-card-cta {
  opacity: 1;
  transform: translateY(0);
  margin-top: 1rem;
}

.regen-card:focus-visible {
  outline: 2px solid #f3f0ea;
  outline-offset: 4px;
}

/* En touch (sin hover real), el nombre, la descripción y el CTA se
   muestran directamente sobre la foto — sin paso intermedio de tap. */
@media (max-width: 560px), (hover: none) and (pointer: coarse) {
  .regen-card-overlay {
    background: linear-gradient(to top, rgba(24, 51, 47, 0.95) 0%, rgba(24, 51, 47, 0.6) 52%, rgba(24, 51, 47, 0.08) 78%);
  }

  .regen-card-desc {
    max-height: 240px;
    opacity: 1;
    margin-top: 0.7rem;
  }

  .regen-card-cta {
    opacity: 1;
    transform: none;
    margin-top: 1rem;
  }
}

/* ---- Cierre ---- */

.regen-closing {
  background: #e8e0d4;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.regen-closing-title {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: #18332f;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.regen-closing-text {
  margin: 1rem auto 0;
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: #30423e;
}

.regen-closing .btn-primary {
  margin-top: 1.75rem;
  background: #18332f;
  color: #f3f0ea;
}

.regen-closing .btn-primary:hover {
  background: #0f231f;
}

.regen-closing {
  position: relative;
  overflow: hidden;
}

.regen-closing .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Home — bloques editoriales
   Reutiliza la paleta y los patrones ya establecidos en Nosotros y
   Medicina Regenerativa/Estética (#f3f0ea, #18332f, #30423e, #a66f4a,
   DM Serif Display) en vez de los tokens antiguos de :root, para que
   Home comparta el mismo sistema visual que el resto del sitio.
   ============================================================ */

/* Jerarquía título/texto/CTA propia de Home — no toca .regen-hero-title
   ni .regen-hero-text globales (compartidos con Regenerativa/Estética),
   por eso va scopeada a .home-hero. */
.home-hero .regen-hero-text {
  margin-top: 2.1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.regen-hero-cta {
  align-self: flex-start;
  display: inline-flex;
  margin-top: 2.25rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.78rem;
}

/* ---- Idea principal ---- */

.idea-section {
  position: relative;
  overflow: hidden;
  background: #e8e0d4;
}

.idea-section .container {
  position: relative;
  z-index: 1;
}

.idea-mark {
  display: block;
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 460px;
  aspect-ratio: 409 / 408;
  background-color: #18332f;
  -webkit-mask-image: url("../assets/logo/isotipo-negro-clean.png");
  mask-image: url("../assets/logo/isotipo-negro-clean.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.idea-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .idea-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .idea-mark {
    width: 62%;
    right: -12%;
    opacity: 0.1;
  }
}

.idea-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.28;
  color: #18332f;
}

.idea-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #30423e;
  max-width: 46ch;
}

/* ---- Dos áreas principales ---- */

.areas-section {
  padding: 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 860px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

.areas-panel {
  position: relative;
  display: block;
  min-height: 620px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .areas-panel {
    min-height: 60vh;
  }
}

.areas-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.areas-panel:hover .areas-panel-img,
.areas-panel:focus-visible .areas-panel-img {
  transform: scale(1.04);
}

.areas-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 51, 47, 0.06) 0%, rgba(24, 51, 47, 0.18) 45%, rgba(24, 51, 47, 0.85) 100%);
  transition: background 420ms ease;
}

.areas-panel:hover .areas-panel-overlay,
.areas-panel:focus-visible .areas-panel-overlay {
  background: linear-gradient(180deg, rgba(24, 51, 47, 0.1) 0%, rgba(24, 51, 47, 0.24) 45%, rgba(24, 51, 47, 0.9) 100%);
}

.areas-panel-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 3rem);
}

.areas-panel-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: #f3f0ea;
}

.areas-panel-desc {
  display: block;
  margin-top: 0.7rem;
  max-width: 36ch;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(243, 240, 234, 0.85);
}

.areas-panel .cta-arrow {
  margin-top: 1.3rem;
}

.areas-panel:focus-visible {
  outline: 2px solid #f3f0ea;
  outline-offset: -4px;
}

/* ---- CTA de texto (reutilizado en áreas + espacio) ---- */

.cta-arrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #18332f;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 300ms ease, text-decoration-color 300ms ease, opacity 300ms ease;
}

.cta-arrow:hover {
  text-decoration-color: currentColor;
  opacity: 0.8;
}

.cta-arrow--light {
  color: #f3f0ea;
}

/* ---- Ciencia, experiencia y tecnología ---- */

.why-section {
  background: #f4f1eb;
  padding: clamp(3rem, 5.5vw, 4.5rem) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.why-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.18;
  color: #18332f;
  max-width: 14ch;
}

.why-support {
  margin-top: 1rem;
  max-width: 30ch;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5f6661;
}

.why-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

@media (max-width: 720px) {
  .why-points {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.why-point-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #18332f;
}

.why-point-text {
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #30423e;
}

/* ---- Nuestro espacio ---- */

.space-section {
  background: #faf8f4;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.space-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .space-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.space-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.2;
  color: #18332f;
  max-width: 15ch;
}

.space-text {
  margin-top: 1.1rem;
  max-width: 38ch;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: #30423e;
}

.space-cta {
  margin-top: 1.6rem;
}

.space-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 220px 220px;
  grid-template-areas: "main secA" "main secB";
  gap: 8px;
}

.space-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.space-main {
  grid-area: main;
}

.space-secondary-a {
  grid-area: secA;
}

.space-secondary-b {
  grid-area: secB;
}

@media (max-width: 860px) {
  .space-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "main" "secA" "secB";
  }

  .space-gallery img {
    height: auto;
  }

  .space-main {
    aspect-ratio: 4 / 3;
  }

  .space-secondary-a,
  .space-secondary-b {
    aspect-ratio: 4 / 3;
  }
}

/* ---- Cierre (isotipo sutil, home únicamente) ---- */

.closing-mark {
  display: block;
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 34%;
  max-width: 340px;
  aspect-ratio: 409 / 408;
  background-color: #18332f;
  -webkit-mask-image: url("../assets/logo/isotipo-negro-clean.png");
  mask-image: url("../assets/logo/isotipo-negro-clean.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 860px) {
  .closing-mark {
    display: none;
  }
}
