/*
Theme Name: Flor de Té
Theme URI: https://www.flordeteyecla.com/
Author: Seonergy
Author URI: https://seonergy.es/
Description: Tema a medida para Flor de Té, herboristería online en Yecla. Lenguaje visual cálido y artesanal, construido sobre WooCommerce sin dependencias de page builders.
Version: 1.18.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flordete
Tags: e-commerce, custom-menu, featured-images, translation-ready, block-patterns
*/

/* ==========================================================================
   1. TOKENS
   Sistema de forma documentado:
     - Botones y pills: radio completo (999px)
     - Tarjetas, media, paneles: 14px
     - Inputs y selects: 10px
     - Fichas de categoría: circulares (50%)
   ========================================================================== */

:root {
  /* Neutros calcados de la referencia (medidos a 1920 px) */
  --fd-paper:        #fbf0e5;   /* crema de pagina y de hero */
  --fd-paper-deep:   #f6e9db;
  --fd-surface:      #ffffff;
  --fd-surface-alt:  #faf3ea;

  /* Barra superior */
  --fd-topbar-bg:    #e8d9d0;
  --fd-topbar-ink:   #936f62;

  /* Tinta */
  --fd-ink:          #333333;   /* titulares */
  --fd-ink-soft:     #7d6d61;   /* texto corrido: tono del original, oscurecido para pasar AA */
  --fd-ink-mute:     #948578;
  --fd-hairline:     #e6d9c9;

  /* Acento: donde la referencia pone rosa palo, Flor de Te pone verde herbal */
  --fd-green-900:    #16301f;
  --fd-green-800:    #1f4430;
  --fd-green:        #2e6047;
  --fd-green-600:    #3a7758;
  --fd-green-300:    #9dbfab;
  --fd-green-100:    #e4eee7;
  --fd-green-50:     #f1f7f2;

  --fd-clay:         #b4653a;
  --fd-clay-100:     #f8e9df;
  --fd-star:         #c08a2e;
  --fd-danger:       #9c3b2c;

  /* Una sola familia, Elms Sans, para titulares y texto: el contraste lo da el
     peso (700 en titulares, 400 en cuerpo) y no un cambio de tipo.
     Ephesis para los antetitulos manuscritos. */
  --fd-font-display: 'Elms Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fd-font-body:    'Elms Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fd-font-script:  'Ephesis', 'Elms Sans', cursive;

  /* Ritmo: contenedor de 1200 con 15 de padding, exactamente como el original */
  --fd-shell:        1200px;
  --fd-gutter:       15px;
  --fd-section:      90px;      /* padding vertical medido en el original */
  --fd-section-lg:   120px;

  /* Forma */
  --fd-r-card:       10px;
  --fd-r-input:      6px;
  --fd-r-btn:        0px;
  --fd-r-pill:       999px;

  --fd-shadow-sm:    0 1px 2px rgba(51, 51, 51, .05), 0 2px 8px rgba(51, 51, 51, .04);
  --fd-shadow-md:    0 2px 6px rgba(51, 51, 51, .06), 0 12px 32px rgba(51, 51, 51, .07);
  --fd-shadow-lg:    0 4px 12px rgba(51, 51, 51, .07), 0 24px 60px rgba(51, 51, 51, .10);

  --fd-ease-out:     cubic-bezier(.23, 1, .32, 1);
  --fd-ease-in-out:  cubic-bezier(.77, 0, .175, 1);

  --fd-header-h:     101px;   /* alto de la banda de cabecera en el original */
}

@media (max-width: 780px) {
  :root { --fd-gutter: 20px; --fd-header-h: 72px; }
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--fd-header-h) + 1rem);
}

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

body {
  margin: 0;
  background: var(--fd-paper);
  color: var(--fd-ink-soft);
  font-family: var(--fd-font-body);
  font-size: 17px;
  line-height: 30px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }
/* Los iconos del tema son de trazo y declaran fill="none". Sin esta linea la
   regla de arriba los rellena y salen como manchas solidas en vez de dibujos. */
svg[fill="none"] { fill: none; }

a {
  color: var(--fd-green);
  text-decoration-color: color-mix(in srgb, var(--fd-green) 35%, transparent);
  text-underline-offset: .22em;
  transition: color .18s ease, text-decoration-color .18s ease;
}
a:hover { color: var(--fd-green-800); text-decoration-color: currentColor; }

h1, h2, h3, h4, h5 {
  font-family: var(--fd-font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;   /* compensa el ancho natural de Elms Sans */
  color: var(--fd-ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}

/* Medidos en el original: titular 64/70,4, seccion 42/60,375, sub 30/36 */
h1 { font-size: clamp(2.4rem, 3.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 2.3vw, 42px); line-height: 1.4375; }
h3 { font-size: clamp(1.25rem, 1.6vw, 30px); line-height: 1.2; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--fd-green-100); color: var(--fd-green-900); }

:focus-visible {
  outline: 2px solid var(--fd-green);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.fd-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.fd-skip {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--fd-green); color: #fff;
  padding: .75rem 1.25rem; border-radius: var(--fd-r-pill);
  font-weight: 700; text-decoration: none;
}
.fd-skip:focus { top: 1rem; color: #fff; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.fd-shell {
  width: 100%;
  max-width: var(--fd-shell);
  margin-inline: auto;
  padding-inline: var(--fd-gutter);
}

.fd-shell--narrow { max-width: 860px; }

.fd-section { padding-block: var(--fd-section); position: relative; }
.fd-section--lg { padding-block: var(--fd-section-lg); }
.fd-section--tight { padding-block: 65px; }
@media (max-width: 900px) {
  :root { --fd-section: 64px; --fd-section-lg: 72px; }
  .fd-section--tight { padding-block: 48px; }
}
.fd-section--paper { background: var(--fd-paper-deep); }
.fd-section--white { background: var(--fd-surface); }
.fd-section--forest { background: var(--fd-green-900); color: #efe9dd; }
.fd-section--forest h2,
.fd-section--forest h3 { color: #fff; }

.fd-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }

/* ==========================================================================
   4. TIPOGRAFÍA DE SECCIÓN
   ========================================================================== */

.fd-eyebrow {
  font-family: var(--fd-font-script);
  /* El original usa 22px con Niconne. Ephesis tiene la altura de x mas baja,
     asi que al mismo cuerpo se veria diminuta: se compensa subiendo a 30px. */
  font-size: 30px;
  line-height: 34px;
  color: var(--fd-green);
  margin: 0 0 .6rem;
  display: block;
}
.fd-section--forest .fd-eyebrow { color: var(--fd-green-300); }

.fd-lede {
  font-family: var(--fd-font-body);
  font-size: 20px;
  line-height: 30px;
  color: var(--fd-ink-soft);
  max-width: 62ch;
}
@media (max-width: 700px) { .fd-lede { font-size: 17px; line-height: 27px; } }
.fd-section--forest .fd-lede { color: #cfd6c9; }

.fd-head { max-width: 62ch; margin-bottom: 50px; }
.fd-head h2 { margin-bottom: .35rem; }
.fd-head .fd-eyebrow + h2 { margin-top: .2rem; }

/* ==========================================================================
   5. BOTONES
   ========================================================================== */

.fd-btn {
  --btn-bg: var(--fd-green);
  --btn-fg: #ffffff;
  --btn-bd: var(--fd-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  white-space: nowrap;
  font-family: var(--fd-font-body);
  font-weight: 700;
  font-size: 16.5px;        /* medido en la referencia */
  letter-spacing: normal;
  line-height: 1;
  min-height: 58px;
  padding: 0 32px;
  border-radius: var(--fd-r-btn);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--fd-ease-out),
              background-color 200ms ease,
              border-color 200ms ease,
              color 200ms ease,
              box-shadow 200ms ease;
}

.fd-btn:hover {
  --btn-bg: var(--fd-green-800);
  --btn-bd: var(--fd-green-800);
  color: #fff;
  box-shadow: var(--fd-shadow-md);
}

.fd-btn:active { transform: scale(.97); }

.fd-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fd-green-800);
  --btn-bd: color-mix(in srgb, var(--fd-green) 40%, transparent);
}
.fd-btn--ghost:hover {
  --btn-bg: var(--fd-green-100);
  --btn-bd: var(--fd-green);
  color: var(--fd-green-900);
  box-shadow: none;
}

.fd-btn--light {
  --btn-bg: #ffffff;
  --btn-fg: var(--fd-green-900);
  --btn-bd: #ffffff;
}
.fd-btn--light:hover {
  --btn-bg: var(--fd-green-100);
  --btn-bd: var(--fd-green-100);
  color: var(--fd-green-900);
}

.fd-btn--sm { padding: .7rem 1.3rem; font-size: .88rem; }
.fd-btn--block { width: 100%; }

.fd-link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--fd-font-body);
  font-weight: 700; font-size: .95rem;
  text-decoration: none;
  color: var(--fd-green-800);
  border-bottom: 1.5px solid color-mix(in srgb, var(--fd-green) 30%, transparent);
  padding-bottom: .2rem;
  transition: border-color .2s ease, gap .2s var(--fd-ease-out);
}
.fd-link-arrow:hover { border-color: var(--fd-green); gap: .8rem; }
.fd-link-arrow svg { width: 16px; height: 16px; }

/* ==========================================================================
   6. CABECERA
   ========================================================================== */

.fd-topbar {
  background: var(--fd-topbar-bg);
  color: var(--fd-topbar-ink);
  font-family: var(--fd-font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: normal;
}
.fd-topbar .fd-shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 62px; flex-wrap: wrap;
}
.fd-topbar__claims { display: flex; gap: 1.4rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.fd-topbar__claims li { display: flex; align-items: center; gap: .45rem; }
.fd-topbar a { color: inherit; text-decoration: none; }
.fd-topbar a:hover { color: var(--fd-green-800); }

/* En la referencia la cabecera es una banda del mismo crema que el hero, asi
   que se lee como si no existiera. Solo cambia al hacer scroll. */
.fd-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--fd-paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.fd-header[data-stuck="true"] {
  border-bottom-color: var(--fd-hairline);
  box-shadow: 0 6px 24px rgba(35, 40, 31, .06);
  background: color-mix(in srgb, var(--fd-paper) 96%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

@media (prefers-reduced-transparency: reduce) {
  .fd-header[data-stuck="true"] { background: var(--fd-paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Tres zonas: marca, menu centrado, redes. El menu se centra respecto a la
   pagina, no respecto al hueco que dejan los laterales. */
.fd-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  min-height: var(--fd-header-h);
}

/* La columna de la marca no se encoge: con etiquetas de menu largas el grid
   apretaba el logo hasta 64 px de ancho. */
.fd-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: max-content; }
.fd-brand img { width: auto; height: 38px; max-width: none; }
.fd-brand__text {
  font-family: var(--fd-font-display);
  font-weight: 700; font-size: 1.28rem;
  letter-spacing: -.02em; color: var(--fd-ink);
}

.fd-nav { grid-column: 2; }
.fd-nav ul { display: flex; align-items: center; gap: 40px; list-style: none; margin: 0; padding: 0; }
.fd-nav li { position: relative; }
.fd-nav a {
  display: block; padding: .5rem 0;
  font-family: var(--fd-font-body);
  font-weight: 700; font-size: 15px;
  color: var(--fd-topbar-ink); text-decoration: none;
  white-space: nowrap;
}
.fd-nav > ul > li > a::after {
  content: ""; display: block; height: 1.5px; margin-top: .28rem;
  background: var(--fd-green);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--fd-ease-out);
}
.fd-nav > ul > li > a:hover::after,
.fd-nav > ul > li.current-menu-item > a::after { transform: scaleX(1); }
.fd-nav a:hover { color: var(--fd-green); }

/* Submenús */
.fd-nav .sub-menu {
  position: absolute; top: calc(100% + .4rem); left: -1rem;
  min-width: 230px; flex-direction: column; align-items: stretch; gap: 0;
  background: var(--fd-surface);
  border: 1px solid var(--fd-hairline);
  border-radius: var(--fd-r-card);
  box-shadow: var(--fd-shadow-lg);
  padding: .5rem;
  opacity: 0; visibility: hidden;
  transform: scale(.97) translateY(-4px);
  transform-origin: top left;
  transition: opacity 160ms var(--fd-ease-out), transform 160ms var(--fd-ease-out), visibility 160ms;
}
.fd-nav li:hover > .sub-menu,
.fd-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: scale(1) translateY(0);
}
.fd-nav .sub-menu a { padding: .6rem .8rem; border-radius: 8px; font-weight: 400; font-size: .93rem; }
.fd-nav .sub-menu a:hover { background: var(--fd-green-50); }

.fd-actions { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: .2rem; }

/* Redes en la cabecera, como la referencia */
.fd-headsocial { display: flex; align-items: center; gap: .35rem; }
.fd-headsocial a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fd-green-600); text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform 160ms var(--fd-ease-out);
}
.fd-headsocial a:hover { background: var(--fd-green-100); color: var(--fd-green-900); }
.fd-headsocial a:active { transform: scale(.94); }
.fd-headsocial svg { width: 21px; height: 21px; }

.fd-iconbtn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 50%; color: var(--fd-ink);
  text-decoration: none;
  transition: background-color .18s ease, transform 160ms var(--fd-ease-out);
}
.fd-iconbtn:hover { background: var(--fd-green-100); color: var(--fd-green-900); }
.fd-iconbtn:active { transform: scale(.94); }
.fd-iconbtn svg { width: 21px; height: 21px; }

.fd-count {
  position: absolute; top: 5px; right: 3px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--fd-green); color: #fff;
  font-size: .68rem; font-weight: 700; line-height: 1;
  border-radius: var(--fd-r-pill);
  border: 2px solid var(--fd-paper);
}

.fd-burger { display: none; }

/* Buscador desplegable */
.fd-search {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--fd-ease-out);
  border-top: 1px solid transparent;
}
.fd-search[data-open="true"] { grid-template-rows: 1fr; border-top-color: var(--fd-hairline); }
.fd-search > div { overflow: hidden; }
.fd-search form { display: flex; gap: .6rem; padding-block: 1.1rem; }
.fd-search input[type="search"] { flex: 1; }

/* ==========================================================================
   7. NAVEGACIÓN MÓVIL
   ========================================================================== */

/* --- Menú móvil: pantalla completa -----------------------------------------
   Un cajón lateral estrecho obliga a leer una lista apretada por el borde de
   la pantalla. A pantalla completa el menú es la pantalla: entradas grandes,
   una por línea, y debajo los datos con los que de verdad se convierte en una
   web local, que son el teléfono, la dirección y el horario. */

.fd-drawer {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
  overflow: hidden;
}
.fd-drawer[data-open="true"] { visibility: visible; pointer-events: auto; }
.fd-drawer__panel:focus { outline: none; }

.fd-drawer__panel {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: var(--fd-paper);
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 220ms var(--fd-ease-out), transform 280ms cubic-bezier(.32, .72, 0, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.fd-drawer[data-open="true"] .fd-drawer__panel { opacity: 1; transform: none; }

/* La cabecera del menú calca la de la web para que no se note el salto. */
.fd-drawer__top {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--fd-header-h);
  padding: 0 var(--fd-gutter);
  border-bottom: 1px solid var(--fd-hairline);
}
.fd-drawer__close { width: 48px; height: 48px; margin-right: -12px; }

.fd-drawer__nav {
  flex: 1 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 1.5rem var(--fd-gutter);
}
.fd-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.fd-drawer__nav > ul > li + li { border-top: 1px solid var(--fd-hairline); }

.fd-drawer__nav a {
  display: flex; align-items: center;
  min-height: 60px;
  padding: .55rem 0;
  font-family: var(--fd-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 8vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--fd-ink);
  text-decoration: none;
}
.fd-drawer__nav a:active { color: var(--fd-green); }

/* La página en la que estás, marcada con el punto verde de la casa. */
.fd-drawer__nav .current-menu-item > a,
.fd-drawer__nav .current_page_item > a { color: var(--fd-green); }
.fd-drawer__nav .current-menu-item > a::after,
.fd-drawer__nav .current_page_item > a::after {
  content: "."; color: var(--fd-green);
}

.fd-drawer__nav .sub-menu { margin: 0 0 .6rem .2rem; }
.fd-drawer__nav .sub-menu a {
  font-family: var(--fd-font-body);
  font-weight: 500;
  font-size: 1.05rem;
  min-height: 44px;
  color: var(--fd-ink-soft);
}

.fd-drawer__foot {
  flex: 0 0 auto;
  padding: 1.5rem var(--fd-gutter) 2.25rem;
  border-top: 1px solid var(--fd-hairline);
  background: var(--fd-paper-deep);
}
.fd-drawer__foot .fd-btn--block { min-height: 56px; font-size: 1.05rem; }

.fd-drawer__dato {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: 1.1rem 0 0;
  font-size: 15px; line-height: 24px;
  color: var(--fd-ink-soft);
}
.fd-drawer__dato svg { flex: 0 0 auto; margin-top: 3px; color: var(--fd-green); }
.fd-drawer__dato a { color: var(--fd-ink-soft); text-decoration: none; border-bottom: 1px solid var(--fd-green-100); }

.fd-drawer__social { display: flex; gap: 10px; margin-top: 1.4rem; }
.fd-drawer__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 3px;
  background: var(--fd-green);
  color: #fff; text-decoration: none;
}
.fd-drawer__social svg { width: 20px; height: 20px; }

/* Cuando la pantalla es baja (móvil apaisado) no hay sitio para centrar nada:
   el menú pasa a scroll normal y las entradas se encogen. */
@media (max-height: 620px) {
  .fd-drawer__nav { justify-content: flex-start; }
  .fd-drawer__nav a { min-height: 52px; font-size: 1.4rem; }
  .fd-drawer__foot { padding-block: 1.25rem 1.75rem; }
}

@media (max-width: 1023px) {
  .fd-nav { display: none; }
  .fd-burger { display: inline-flex; }
  .fd-headsocial { display: none; }
  .fd-header__inner { grid-template-columns: 1fr auto; gap: .5rem; }
  .fd-actions { grid-column: 2; }
}

/* En pantallas estrechas el logo a tamano completo mas cuatro botones no caben
   en el ancho util de la cabecera. Se reducen ambos, no uno solo. */
@media (max-width: 560px) {
  :root { --fd-header-h: 68px; }
  .fd-brand img { height: 30px; max-width: 148px; object-fit: contain; }
  .fd-iconbtn { width: 40px; height: 40px; }
  .fd-iconbtn svg { width: 19px; height: 19px; }
  .fd-actions { gap: .1rem; }
  .fd-topbar { font-size: .76rem; }
  .fd-topbar .fd-shell { justify-content: center; }
  .fd-topbar__claims { gap: 1rem; justify-content: center; }
}

/* ==========================================================================
   8. CAMPOS DE FORMULARIO
   ========================================================================== */

input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
input[type="url"], input[type="password"], input[type="number"], input[type="date"],
select, textarea {
  width: 100%;
  font-family: var(--fd-font-body);
  font-size: 1rem;
  color: var(--fd-ink);
  background: var(--fd-surface);
  border: 1.5px solid var(--fd-hairline);
  border-radius: var(--fd-r-input);
  padding: .85rem 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 150px; resize: vertical; }

input::placeholder, textarea::placeholder { color: var(--fd-ink-mute); opacity: 1; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--fd-green);
  box-shadow: 0 0 0 3px var(--fd-green-100);
}

label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem; color: var(--fd-ink); }
.fd-field { margin-bottom: 1.1rem; }
.fd-help { font-size: .84rem; color: var(--fd-ink-soft); margin-top: .35rem; }
.fd-error { font-size: .84rem; color: var(--fd-danger); font-weight: 700; margin-top: .35rem; }

/* ==========================================================================
   9. HOME - HERO
   Calcado del original: NO es un grid a dos columnas. Es una seccion de
   776 px de alto con la fotografia como background-image a pantalla completa
   (cover, 57% 38%) sobre el crema, y el texto encima dentro del contenedor de
   1200 px ocupando 7 de las 12 columnas.
   ========================================================================== */

.fd-hero {
  position: relative;
  background-color: var(--fd-paper);
  /* 210 arriba y abajo dan los 776 px de alto del original. La cabecera va
     apilada encima, no superpuesta: es del mismo crema y se lee continua. */
  padding-block: 210px;
  overflow: hidden;
}

/* Difuminado de 50 px en el borde inferior: sin el, la foto corta en seco
   contra la franja crema de la seccion siguiente y se ve la costura. La curva
   no es lineal, se acelera al final, para que la transicion no deje banda. */
.fd-hero--photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px;
  background: linear-gradient(180deg, rgba(251, 240, 229, 0) 0%, rgba(251, 240, 229, .35) 45%, rgba(251, 240, 229, .8) 78%, var(--fd-paper) 100%);
  z-index: 2;
  pointer-events: none;
}

.fd-hero__bg {
  position: absolute;
  inset: 0;
  background-position: 57% 38%;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.fd-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--fd-shell);
  margin-inline: auto;
  padding-inline: var(--fd-gutter);
}

/* Siete columnas de doce, como en el original */
.fd-hero__copy { width: 58.3333%; padding-right: 15px; }

.fd-hero__copy h1 {
  font-size: 64px;           /* medido en la referencia */
  line-height: 70.4px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--fd-ink);
  margin-bottom: 43px;       /* separacion medida entre titular y subtitulo */
}

/* Ultima palabra del titular en el acento */
.fd-hero__accent { color: var(--fd-green); }

.fd-hero__cta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 70px; }

/* Aviso de foto pendiente. Solo lo ve quien ha iniciado sesion. */
.fd-hero__note {
  position: absolute; right: var(--fd-gutter); bottom: 1rem; z-index: 2;
  font-family: var(--fd-font-body);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fd-ink-mute);
  background: rgba(255,255,255,.7);
  padding: .4rem .8rem;
}

@media (max-width: 1200px) {
  .fd-hero { padding-block: 150px; }
  .fd-hero__copy { width: 70%; }
  .fd-hero__copy h1 { font-size: 52px; line-height: 58px; margin-bottom: 34px; }
  .fd-hero__cta { margin-top: 52px; }
}

@media (max-width: 900px) {
  .fd-hero { padding-block: 96px; }
  .fd-hero__copy { width: 100%; padding-right: 0; }
  .fd-hero__copy h1 { font-size: 40px; line-height: 46px; margin-bottom: 24px; }
  .fd-hero__cta { margin-top: 36px; }
  /* Con la foto de fondo a este ancho el texto pierde contraste, asi que se
     vela con un degradado desde el crema. */
  .fd-hero--photo .fd-hero__bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--fd-paper) 0%, rgba(251,240,229,.86) 55%, rgba(251,240,229,.72) 100%);
  }
}

@media (max-width: 560px) {
  .fd-hero { padding-block: 64px; }
  .fd-hero__copy h1 { font-size: 34px; line-height: 40px; }
  .fd-hero__cta .fd-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   10. HOME - TIRA DE VALORES
   ========================================================================== */

.fd-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.fd-value { display: flex; gap: .9rem; align-items: flex-start; }
.fd-value__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--fd-green-100);
  color: var(--fd-green-800);
}
.fd-value__icon svg { width: 22px; height: 22px; }
.fd-value strong { display: block; font-family: var(--fd-font-display); font-size: 1rem; margin-bottom: .15rem; }
.fd-value span { font-size: .88rem; color: var(--fd-ink-soft); line-height: 1.55; }

@media (max-width: 900px) { .fd-values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fd-values { grid-template-columns: 1fr; } }

/* ==========================================================================
   11-13. CENTRO DE LA PORTADA
   Recursos calcados del original: borde desgarrado entre secciones, punto
   final del titular en el acento, adorno vegetal, vinetas de hoja, fotos
   enmarcadas superpuestas y banda de dos piezas.
   ========================================================================== */

/* --- Borde desgarrado --- */
.fd-edge {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 60px;
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* --- Punto final del titular en el acento --- */
.fd-dot { color: var(--fd-green); }

/* --- Adorno vegetal bajo el titular --- */
.fd-ornament {
  width: 88px; height: 20px;
  color: var(--fd-green-300);
  margin: 4px 0 20px;
  display: block;
}

/* --- Lista con vineta de hoja --- */
.fd-leaflist { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; }
.fd-leaflist li { display: flex; gap: 12px; align-items: flex-start; }
.fd-leaflist svg { width: 18px; height: 18px; color: var(--fd-green); flex-shrink: 0; margin-top: 5px; }
.fd-leaflist span { font-size: 17px; line-height: 28.9px; color: var(--fd-ink-soft); }

/* --- Composicion: columna estrecha + area principal --- */
.fd-split {
  display: grid;
  grid-template-columns: 4fr 8fr;   /* 4 de 12 y 8 de 12, como el original */
  gap: 30px;
  align-items: start;
}
.fd-split__aside { padding-right: 30px; }
@media (max-width: 900px) {
  .fd-split { grid-template-columns: 1fr; }
  .fd-split__aside { padding-right: 0; }
}

/* --- Fichas de familia --- */
.fd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.fd-card { text-decoration: none; color: inherit; display: block; }
.fd-card__media {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fd-surface-alt);
  margin-bottom: 16px;
  display: grid; place-items: center;
  transition: transform 320ms var(--fd-ease-out), box-shadow 320ms var(--fd-ease-out);
}
.fd-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fd-card__empty { color: var(--fd-green-300); }
.fd-card h3 {
  font-family: var(--fd-font-display);
  font-weight: 600; font-size: 22px; line-height: 30.8px;
  color: var(--fd-ink); margin: 0 0 .2rem;
}
.fd-card p { font-size: 17px; line-height: 28.9px; color: var(--fd-ink-soft); margin: 0; }

@media (hover: hover) and (pointer: fine) {
  a.fd-card:hover .fd-card__media { transform: translateY(-5px); box-shadow: var(--fd-shadow-md); }
  a.fd-card:hover h3 { color: var(--fd-green); }
}
@media (max-width: 1023px) { .fd-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fd-cards { grid-template-columns: 1fr; } }

/* --- Como trabajamos: fotos superpuestas + copia --- */
.fd-feature {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 60px;
  align-items: center;
}

/* Dos fotos enmarcadas sobre una mancha, como el original */
.fd-stack { position: relative; padding: 34px 44px 60px 0; }
.fd-stack::before {
  content: "";
  position: absolute; inset: 0 6% 4% 0;
  background: radial-gradient(circle at 46% 44%, #e9f0e9 0%, rgba(233,240,233,.6) 55%, rgba(233,240,233,0) 76%);
  border-radius: 52% 48% 42% 58% / 46% 55% 45% 54%;
  z-index: 0;
}
.fd-stack figure { margin: 0; position: relative; z-index: 1; }
.fd-stack__back img,
.fd-stack__front img {
  display: block; width: 100%; height: auto;
  border: 9px solid var(--fd-surface);
  box-shadow: var(--fd-shadow-md);
}
.fd-stack .fd-stack__back { width: 76%; margin: 0 0 0 auto; }
.fd-stack__back img { aspect-ratio: 4/3; object-fit: cover; }
.fd-stack .fd-stack__front {
  position: absolute; z-index: 2;
  left: 0; bottom: 0; width: 46%;
}
.fd-stack__front img { aspect-ratio: 1; object-fit: cover; }

.fd-feature__close {
  font-size: 17px; line-height: 28.9px;
  color: var(--fd-ink-mute);
  margin: 0 0 28px;
}

@media (max-width: 900px) {
  .fd-feature { grid-template-columns: 1fr; gap: 40px; }
  .fd-stack { padding: 24px 30px 44px 0; }
}

/* --- Banda de dos piezas --- */
.fd-band {
  display: grid;
  grid-template-columns: 5fr 7fr;   /* proporcion del original */
  gap: 24px;
  align-items: stretch;
}

.fd-band__data {
  background: var(--fd-paper);
  padding: 46px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.fd-band__data dl { margin: 10px 0 0; display: grid; gap: 22px; }
.fd-band__note {
  margin: 26px 0 0;
  font-size: 17px; line-height: 28.9px;
  color: var(--fd-ink-soft);
}
.fd-band__data dt {
  font-family: var(--fd-font-body);
  font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fd-topbar-ink);
  margin-bottom: 4px;
}
.fd-band__data dd {
  margin: 0;
  font-family: var(--fd-font-display);
  font-weight: 600; font-size: 22px; line-height: 30.8px;
  color: var(--fd-ink);
}
.fd-band__data dd a { color: inherit; text-decoration: none; }
.fd-band__data dd a:hover { color: var(--fd-green); }

.fd-band__photo {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--fd-green-900);
}
.fd-band__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* Velo para que el texto se lea sobre cualquier foto */
.fd-band__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,48,31,.10) 0%, rgba(22,48,31,.46) 30%, rgba(22,48,31,.84) 62%, rgba(22,48,31,.95) 100%);
}
.fd-band__copy { position: relative; z-index: 1; padding: 36px 44px 40px; max-width: 46ch; }
.fd-band__copy h2 { color: #fff; font-size: clamp(1.6rem, 2vw, 2rem); margin-bottom: .4rem; }
.fd-band__copy .fd-dot { color: var(--fd-green-300); }
.fd-band__copy p { color: #e2e8de; font-size: 17px; line-height: 28.9px; margin: 0 0 1.1rem; }

.fd-link-arrow--light {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.4);
}
.fd-link-arrow--light:hover { color: #fff; border-bottom-color: #fff; }

.fd-band__todo {
  display: inline-block;
  font-family: var(--fd-font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fd-clay); background: var(--fd-clay-100);
  padding: .35rem .6rem;
}

@media (max-width: 860px) {
  .fd-band { grid-template-columns: 1fr; }
  .fd-band__data { padding: 34px 28px; }
  .fd-band__copy { padding: 30px 28px; }
}

/* ==========================================================================
   14. HOME - TESTIMONIOS
   ========================================================================== */

.fd-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.fd-score {
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  font-size: 17px; color: var(--fd-ink-soft); margin: 6px 0 0;
}
.fd-score__stars { display: inline-flex; gap: 2px; color: var(--fd-star); }
.fd-score strong { font-family: var(--fd-font-display); font-size: 22px; color: var(--fd-ink); }

.fd-quote {
  background: var(--fd-surface);
  border-radius: var(--fd-r-card);
  padding: 1.8rem;
  box-shadow: var(--fd-shadow-sm);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.fd-quote__stars { display: flex; gap: .15rem; color: var(--fd-star); }
.fd-quote__stars svg { width: 16px; height: 16px; }
.fd-quote blockquote {
  margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--fd-ink);
  font-family: var(--fd-font-body);
}
.fd-quote figcaption { margin-top: auto; font-size: .88rem; color: var(--fd-ink-soft); }
.fd-quote figcaption strong { display: block; color: var(--fd-ink); font-family: var(--fd-font-display); font-size: .96rem; }

/* ==========================================================================
   15. HOME - BLOG
   ========================================================================== */

.fd-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.fd-post { display: flex; flex-direction: column; text-decoration: none; }
.fd-post__media {
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--fd-r-card); margin-bottom: 1rem;
  background: var(--fd-green-100);
}
.fd-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 520ms var(--fd-ease-out); }
.fd-post__meta { font-size: .82rem; color: var(--fd-ink-mute); margin-bottom: .35rem; }
.fd-post h3 { font-size: 1.15rem; margin-bottom: .45rem; color: var(--fd-ink); }
.fd-post p { font-size: .93rem; color: var(--fd-ink-soft); margin-bottom: .8rem; }

@media (hover: hover) and (pointer: fine) {
  .fd-post:hover .fd-post__media img { transform: scale(1.05); }
  .fd-post:hover h3 { color: var(--fd-green-800); }
}

/* ==========================================================================
   16. HOME - FAQ
   ========================================================================== */

.fd-faq { display: grid; gap: .6rem; max-width: 820px; }
.fd-faq details {
  background: var(--fd-surface);
  border: 1px solid var(--fd-hairline);
  border-radius: var(--fd-r-card);
  overflow: hidden;
  transition: border-color .2s ease;
}
.fd-faq details[open] { border-color: var(--fd-green-300); }
.fd-faq summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--fd-font-display); font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.fd-faq summary::-webkit-details-marker { display: none; }
.fd-faq summary::after {
  content: ""; flex-shrink: 0;
  width: 11px; height: 11px;
  border-right: 2px solid var(--fd-green); border-bottom: 2px solid var(--fd-green);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 220ms var(--fd-ease-out);
}
.fd-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.fd-faq__body { padding: 0 1.4rem 1.35rem; color: var(--fd-ink-soft); font-size: .97rem; }

/* ==========================================================================
   17. PIE
   Calcado del original: fondo crema (NO blanco), borde superior desgarrado,
   tira de cuatro garantias centrada dentro del propio pie y, debajo, cuatro
   columnas 37/17/27/27 sobre el contenedor de 1200.
   ========================================================================== */

.fd-footer {
  position: relative;
  background: var(--fd-paper);
  padding-top: 130px;
  margin-top: 0;
}

/* La onda necesita el blanco de la seccion de encima DETRAS: sin ese fondo se
   pinta crema sobre crema y no se ve nada. El trazo es del color del pie. */
.fd-footer__edge {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 60px;
  background: var(--fd-surface);
  color: var(--fd-paper);
  display: block;
  pointer-events: none;
}

/* --- Tira de garantias --- */

.fd-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 70px;
  text-align: center;
}

.fd-perk { display: flex; flex-direction: column; align-items: center; }

/* Mancha organica bajo el icono, como la acuarela del original */
.fd-perk__icon {
  display: grid; place-items: center;
  width: 126px; height: 126px;
  margin-bottom: 18px;
  color: var(--fd-green-600);
  background: radial-gradient(circle at 44% 40%, #dbe9df 0%, #e4eee7 52%, rgba(228,238,231,.35) 72%, rgba(228,238,231,0) 84%);
  border-radius: 47% 53% 40% 60% / 55% 42% 58% 45%;
}
.fd-perk__icon svg { width: 56px; height: 56px; stroke-width: 1.1; }
.fd-perk:nth-child(even) .fd-perk__icon { border-radius: 58% 42% 55% 45% / 43% 57% 40% 60%; }

.fd-perk h3 {
  font-family: var(--fd-font-display);
  font-weight: 600; font-size: 22px; line-height: 30.8px;
  color: var(--fd-topbar-ink);
  margin: 0 0 .4rem;
}
.fd-perk p {
  font-family: var(--fd-font-body);
  font-size: 17px; line-height: 28.9px;
  color: var(--fd-ink-soft);
  max-width: 275px;   /* ancho de columna del original */
  margin: 0 auto;
}

/* --- Columnas --- */

.fd-foot {
  display: grid;
  /* Pistas tomadas de las posiciones reales del original a 1920:
     columnas en 368, 768, 968 y 1268 con 30 px de separacion. */
  grid-template-columns: 37fr 17fr 27fr 27fr;
  gap: 30px;
  padding-bottom: 45px;
}

.fd-foot__title {
  font-family: var(--fd-font-display);
  font-weight: 600; font-size: 22px; line-height: 30.8px;
  color: var(--fd-green);
  margin: 0 0 18px;
  text-transform: none; letter-spacing: normal;
}
.fd-foot__title span { color: var(--fd-ink-soft); }

.fd-foot__logo { display: inline-flex; margin-bottom: 20px; }
.fd-foot__logo img { height: 44px; width: auto; }
.fd-foot__logo .fd-brand__text {
  font-family: var(--fd-font-display); font-weight: 700; font-size: 1.4rem; color: var(--fd-ink);
}

.fd-foot__brand p {
  font-family: var(--fd-font-body);
  font-size: 15px; line-height: 21.4px;
  color: var(--fd-ink-soft);
  max-width: 42ch; margin: 0;
}

/* Iconos sociales cuadrados y rellenos, como el original */
.fd-foot__social { display: flex; gap: 8px; margin-top: 22px; }
.fd-foot__social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 3px;
  background: var(--fd-green);
  color: #fff; text-decoration: none;
  transition: background-color .2s ease, transform 160ms var(--fd-ease-out);
}
.fd-foot__social a:hover { background: var(--fd-green-800); color: #fff; }
.fd-foot__social a:active { transform: scale(.94); }
.fd-foot__social svg { width: 19px; height: 19px; }

.fd-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.fd-foot ul a {
  font-family: var(--fd-font-body);
  font-weight: 700; font-size: 15px; line-height: 1.4;
  color: var(--fd-ink-soft); text-decoration: none;
}
.fd-foot ul a:hover { color: var(--fd-green); }

.fd-foot__data { margin: 0; display: grid; gap: 18px; }
.fd-foot__data dt {
  font-family: var(--fd-font-body);
  font-weight: 700; font-size: 15px; line-height: 25.5px;
  color: var(--fd-topbar-ink);
}
.fd-foot__data dd {
  margin: 0;
  font-family: var(--fd-font-body);
  font-weight: 700; font-size: 15px; line-height: 25.5px;
  color: var(--fd-ink-soft);
}
.fd-foot__data dd a { color: inherit; text-decoration: none; }
.fd-foot__data dd a:hover { color: var(--fd-green); }

.fd-foot__todo {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fd-ink-mute);
  background: rgba(255,255,255,.6);
  padding: .5rem .7rem; margin: 0 0 1rem;
}

.fd-foot .fd-btn--sm { margin-top: 22px; min-height: 46px; padding: 0 22px; font-size: 15px; }

.fd-foot__bar {
  border-top: 1px solid var(--fd-hairline);
  padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  align-items: center; justify-content: space-between;
  font-family: var(--fd-font-body);
  font-size: 14px;
  color: var(--fd-ink-mute);
}
.fd-foot__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.fd-foot__bar ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.fd-foot__bar a { color: var(--fd-ink-mute); text-decoration: none; font-weight: 700; }
.fd-foot__bar a:hover { color: var(--fd-green); }

/* El boton de preferencias es un <button> por necesidad, pero visualmente es
   un legal mas: si no se iguala, canta al lado de los otros tres. */
.fd-foot__bar .fd-consent__reopen {
  font-size: 14px;
  font-weight: 700;
  color: var(--fd-ink-mute);
  line-height: inherit;
}

.fd-foot__credit { color: var(--fd-ink-mute); }
.fd-foot__credit a {
  color: var(--fd-ink-soft);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--fd-green-100);
}
.fd-foot__credit a:hover { color: var(--fd-green); border-bottom-color: var(--fd-green); }

/* --- La barra en movil ---------------------------------------------------
   A este ancho los tres legales no caben en una linea y quedaban dos arriba y
   uno huerfano abajo, con el boton de preferencias descolgado y en otro tono.
   En columna, todos iguales y con area de toque, se leen como lo que son: una
   lista. */
@media (max-width: 720px) {
  .fd-foot__bar {
    display: grid;
    /* 'start' encogia la lista de legales a su ancho de contenido y las lineas
       separadoras quedaban a medio camino. Estirando la celda, cada enlace
       ocupa el ancho util y la fila entera es zona de toque. */
    justify-items: stretch;
    /* La regla base es un flex con 'space-between'. Al pasar a grid esa
       declaracion sigue viva y deja la unica columna a su ancho de contenido,
       asi que hay que devolverla a 'normal' o nada se estira. */
    justify-content: normal;
    gap: 18px;
    text-align: left;
  }
  .fd-foot__legal { display: grid; gap: 0; width: 100%; }
  .fd-foot__bar ul { display: grid; gap: 0; width: 100%; }
  .fd-foot__bar ul a,
  .fd-foot__bar .fd-consent__reopen {
    display: block;
    width: 100%;
    padding-block: 12px;
    text-align: left;
    border-bottom: 1px solid var(--fd-hairline);
  }
  .fd-foot__bar .fd-consent__reopen { border-bottom: 0; }
  .fd-foot__copy,
  .fd-foot__credit { font-size: 13.5px; }
  .fd-foot__credit { padding-top: 2px; }
}

@media (max-width: 1023px) {
  .fd-footer { padding-top: 90px; }
  .fd-perks { grid-template-columns: 1fr 1fr; gap: 40px 30px; padding-bottom: 50px; }
  .fd-foot { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .fd-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .fd-footer { padding-top: 70px; }
  .fd-perks { grid-template-columns: 1fr; gap: 36px; }
  .fd-foot { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
}

/* ==========================================================================
   17b. LANDINGS DE LINEA
   Mismo ancho y mismo lenguaje que la portada: hero a sangre, cuerpo a 1200
   con sumario lateral pegajoso y banda de visita al cierre.
   ========================================================================== */

/* --- Hero de pagina interior --- */
.fd-hero--page { padding-block: 150px; }
.fd-hero--page .fd-hero__copy { width: 62%; }
.fd-hero--page h1 {
  font-size: clamp(2.3rem, 3.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.fd-hero--page .fd-crumbs { margin-bottom: 1rem; }
.fd-hero--page .fd-eyebrow { margin-bottom: .4rem; }
.fd-hero--page .fd-hero__cta { margin-top: 34px; }

/* Sobre la foto el texto necesita un velo lateral desde el crema */
.fd-hero--page.fd-hero--photo .fd-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--fd-paper) 0%, var(--fd-paper) 26%, rgba(251,240,229,.94) 44%, rgba(251,240,229,.55) 68%, rgba(251,240,229,.15) 100%);
}

@media (max-width: 1100px) { .fd-hero--page .fd-hero__copy { width: 78%; } }
@media (max-width: 900px) {
  .fd-hero--page { padding-block: 90px; }
  .fd-hero--page .fd-hero__copy { width: 100%; }
  .fd-hero--page.fd-hero--photo .fd-hero__bg::after {
    background: linear-gradient(180deg, rgba(251,240,229,.94) 0%, rgba(251,240,229,.88) 60%, rgba(251,240,229,.8) 100%);
  }
}

/* --- Cuerpo: sumario + contenido, a 1200 como la portada --- */
.fd-linea {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 60px;
  align-items: start;
}

.fd-toc { align-self: stretch; }

.fd-toc__inner {
  position: sticky;
  max-height: calc(100vh - var(--fd-header-h) - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  top: calc(var(--fd-header-h) + 24px);
  border-left: 2px solid var(--fd-green-100);
  padding-left: 22px;
}
.fd-toc__title {
  font-family: var(--fd-font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fd-topbar-ink);
  margin: 0 0 16px;
}
.fd-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: 12px; }
.fd-toc li { counter-increment: toc; }
/* Acotado al listado: si no, el enlace del teléfono del lateral entraba en la
   numeración y salía como un apartado más de la página. */
.fd-toc ol a {
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--fd-font-body);
  font-size: 15px; line-height: 1.45; font-weight: 700;
  color: var(--fd-ink-soft); text-decoration: none;
}
.fd-toc ol a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 11px; color: var(--fd-green-300); flex-shrink: 0;
}
.fd-toc ol a:hover { color: var(--fd-green); }

.fd-toc__aside {
  margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--fd-hairline);
}
.fd-toc__aside p { font-size: 15px; line-height: 24px; color: var(--fd-ink-soft); margin: 0 0 .6rem; }

/* --- Contenido --- */
.fd-linea__body { max-width: none; }
.fd-linea__body > p,
.fd-linea__body > ul,
.fd-linea__body > ol { max-width: 68ch; }
.fd-linea__body h2 {
  margin-top: 2.4em;
  scroll-margin-top: calc(var(--fd-header-h) + 24px);
}
.fd-linea__body > *:first-child { margin-top: 0; }
.fd-linea__body figure { margin: 44px 0; }
.fd-linea__body figure img { width: 100%; height: auto; border-radius: var(--fd-r-card); }

@media (max-width: 1023px) {
  .fd-linea { grid-template-columns: 1fr; gap: 40px; }
  .fd-toc__inner { position: static; max-height: none; overflow: visible; }
  .fd-toc ol { grid-template-columns: 1fr 1fr; display: grid; }
}
@media (max-width: 600px) {
  .fd-toc ol { grid-template-columns: 1fr; }
}

/* Aviso de pagina sin terminar, visible solo para editores */
.fd-draftbar {
  background: var(--fd-clay); color: #fff;
  font-family: var(--fd-font-body); font-size: 14px;
  padding: .7rem var(--fd-gutter); text-align: center;
}
.fd-draftbar a { color: #fff; font-weight: 700; }

/* ==========================================================================
   18. CONTENIDO EDITORIAL
   ========================================================================== */

.fd-entry { max-width: 72ch; }
.fd-entry > * + * { margin-top: 1.2em; }
.fd-entry h2 { margin-top: 2.2em; }
.fd-entry h3 { margin-top: 1.8em; }
.fd-entry ul, .fd-entry ol { padding-left: 1.3em; }
.fd-entry li + li { margin-top: .4em; }
.fd-entry img, .fd-entry figure img { border-radius: var(--fd-r-card); }
.fd-entry blockquote {
  margin: 2em 0; padding: 1.4rem 1.6rem;
  background: var(--fd-green-50);
  border-left: 3px solid var(--fd-green);
  border-radius: 0 var(--fd-r-card) var(--fd-r-card) 0;
  font-size: 1.06rem;
}
.fd-entry blockquote p:last-child { margin-bottom: 0; }
.fd-entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fd-entry th, .fd-entry td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--fd-hairline); }
.fd-entry th { font-family: var(--fd-font-display); }

.fd-pagehead { background: var(--fd-paper-deep); padding-block: clamp(2.5rem, 5vw, 4rem); }
.fd-pagehead h1 { margin-bottom: .3rem; }

.fd-crumbs { font-size: .85rem; color: var(--fd-ink-mute); margin-bottom: .8rem; }
.fd-crumbs a { color: var(--fd-ink-soft); text-decoration: none; }
.fd-crumbs a:hover { color: var(--fd-green-800); }
.fd-crumbs span + span::before { content: "/"; margin: 0 .5rem; color: var(--fd-hairline); }

/* Estados vacíos */
.fd-empty { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; max-width: 460px; margin-inline: auto; }
.fd-empty svg { width: 54px; height: 54px; color: var(--fd-green-300); margin: 0 auto 1.2rem; }
.fd-empty h2 { font-size: 1.5rem; }
.fd-empty p { color: var(--fd-ink-soft); margin-inline: auto; }

/* Paginación */
.fd-pager { display: flex; justify-content: center; gap: .4rem; margin-top: clamp(2.5rem, 5vw, 4rem); flex-wrap: wrap; }
.fd-pager .page-numbers {
  min-width: 44px; height: 44px; padding: 0 .8rem;
  display: inline-grid; place-items: center;
  border-radius: var(--fd-r-pill);
  border: 1.5px solid var(--fd-hairline);
  background: var(--fd-surface);
  font-weight: 700; font-size: .92rem;
  color: var(--fd-ink); text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform 160ms var(--fd-ease-out);
}
.fd-pager .page-numbers:hover { border-color: var(--fd-green); color: var(--fd-green-900); }
.fd-pager .page-numbers:active { transform: scale(.95); }
.fd-pager .page-numbers.current { background: var(--fd-green); border-color: var(--fd-green); color: #fff; }
.fd-pager .dots { border-color: transparent; background: transparent; }

/* ==========================================================================
   19. REVELADO AL SCROLL
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms var(--fd-ease-out), transform 620ms var(--fd-ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  [data-reveal][data-shown="true"] { opacity: 1; transform: none; }
}

/* ==========================================================================
   20. IMPRESIÓN
   ========================================================================== */

/* ==========================================================================
   21. REFORMA MÓVIL
   Va al final a propósito: son correcciones sobre lo ya declarado y necesitan
   ganar en el orden de cascada sin subir especificidad a base de !important.
   ========================================================================== */

@media (max-width: 900px) {

  /* --- Cabecera ---------------------------------------------------------
     La barra superior repetía en dos líneas lo que ya dice el propio sitio y
     empujaba el contenido casi un tercio de pantalla hacia abajo. En móvil el
     teléfono ya está en el menú y en el pie, así que sobra. */
  .fd-topbar { display: none; }

  /* Menos aire entre la cabecera y lo primero que se lee. En una pantalla de
     844 px, 96 px de respiro arriba es un cuarto de pantalla en blanco. */
  .fd-hero { padding-block: 44px 56px; }
  .fd-hero--page { padding-block: 40px 52px; }

  /* --- Portada: fichas de familia ---------------------------------------
     A una columna, seis familias eran seis pantallas de scroll. A dos, se ven
     de un vistazo, que es justo lo que la sección promete. */
  .fd-cards { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .fd-card h3 { font-size: 17px; line-height: 24px; }
  .fd-card p { font-size: 14px; line-height: 21px; }
  .fd-card__media { margin-bottom: 12px; border-radius: 6px; }

  /* --- Objetivos táctiles ------------------------------------------------
     Un enlace de 18 px de alto se falla con el pulgar. El mínimo cómodo son
     44 px, y se consigue con relleno, sin tocar la tipografía. */
  .fd-foot ul { gap: 0; }
  .fd-foot ul a { display: block; padding-block: 11px; }
  .fd-foot__data a { display: inline-block; padding-block: 8px; }

  /* --- Pie ---------------------------------------------------------------
     Las cuatro garantías en columna ocupaban cuatro pantallas para decir
     cuatro frases. En dos columnas siguen leyéndose y ocupan la mitad. */
  .fd-perks { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .fd-perk h3 { font-size: 16px; line-height: 22px; }
  .fd-perk p { font-size: 13.5px; line-height: 20px; }
  .fd-perk__icon { width: 68px; height: 68px; }
  .fd-perk__icon svg { width: 32px; height: 32px; }

  .fd-foot { gap: 34px; }
}

/* --- Teléfonos estrechos ------------------------------------------------ */
@media (max-width: 560px) {

  /* El titular de la portada a 40 px partía "confianza" en dos en un iPhone
     mini. 32 px entra en una línea y sigue mandando en la pantalla. */
  .fd-hero__copy h1 { font-size: 32px; line-height: 38px; margin-bottom: 18px; }
  .fd-hero .fd-lede { font-size: 16px; line-height: 26px; }

  /* Los dos botones del hero, uno debajo de otro y a todo el ancho: en el
     pulgar se aciertan siempre y dejan de partirse en dos líneas. */
  .fd-hero__cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 28px; }
  .fd-hero__cta .fd-btn { width: 100%; justify-content: center; min-height: 52px; }

  /* Titulares de sección: 40 px en un móvil se come tres líneas. */
  .fd-section h2 { font-size: 28px; line-height: 34px; }
  .fd-lede { font-size: 16px; line-height: 26px; }

  /* Las dos fotos superpuestas son el recurso mas reconocible del diseno: al
     apilarlas quedaban dos marcos sueltos de tamanos distintos, uno tirando a
     la izquierda y otro a la derecha, y parecia un error de maquetacion. Se
     conserva el solape, solo que a escala y con menos hueco muerto. */
  .fd-stack { padding: 10px 16px 40px 0; }
  .fd-stack .fd-stack__back { width: 84%; }
  .fd-stack .fd-stack__front { position: absolute; width: 44%; left: 0; bottom: 0; }
  .fd-stack__back img, .fd-stack__front img { border-width: 6px; }

  /* FAQ: el acordeón necesita área de toque, no solo texto. */
  .fd-faq summary { padding-block: 16px; font-size: 16px; line-height: 24px; }

  /* Pie: a este ancho las cuatro columnas se leen mejor en una. */
  .fd-foot { grid-template-columns: 1fr; }
}

/* --- Pantallas muy estrechas -------------------------------------------- */
@media (max-width: 400px) {
  .fd-cards { gap: 18px 12px; }
  .fd-card h3 { font-size: 16px; }
  .fd-perks { gap: 24px 12px; }
}

/* --- El hero en móvil: que se vea la foto -------------------------------
   El velo de móvil era prácticamente opaco de arriba abajo, así que la
   fotografía quedaba en una textura de fondo que no aportaba nada. La idea es
   la contraria: crema sólido bajo el texto y foto limpia en la franja de
   abajo, de modo que en el primer pantallazo se lea el titular y se vea el
   producto sin pelearse por el mismo sitio. */
@media (max-width: 900px) {
  .fd-hero--photo { padding-block: 40px 210px; }
  .fd-hero--page.fd-hero--photo { padding-block: 36px 190px; }

  .fd-hero--photo .fd-hero__bg { background-position: 62% 62%; }

  .fd-hero--photo .fd-hero__bg::after,
  .fd-hero--page.fd-hero--photo .fd-hero__bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(
      180deg,
      var(--fd-paper) 0%,
      var(--fd-paper) 40%,
      rgba(251, 240, 229, .82) 55%,
      rgba(251, 240, 229, .28) 72%,
      rgba(251, 240, 229, 0) 88%
    );
  }
}

@media (max-width: 560px) {
  .fd-hero--photo { padding-block: 32px 180px; }
  .fd-hero--page.fd-hero--photo { padding-block: 28px 160px; }
}

/* --- Páginas de línea en móvil ------------------------------------------ */
@media (max-width: 900px) {

  /* El sumario en móvil es un bloque, no una columna lateral: se le da caja
     propia para que se lea como lo que es —un índice— y no como el principio
     del artículo. Sin caja, once enlaces seguidos parecían el contenido. */
  .fd-toc__inner {
    border-left: 0;
    padding: 20px 18px 22px;
    background: var(--fd-paper);
    border-radius: 10px;
  }
  .fd-toc ol { gap: 2px; }
  .fd-toc ol a { padding-block: 9px; }
  .fd-toc__aside { margin-top: 18px; padding-top: 16px; }
}

@media (max-width: 560px) {

  /* El titular de sección se reduce a 28 px, pero el rótulo del sumario es una
     etiqueta de 12 px en versalitas: si entra en esa regla se convierte en un
     titular gigante que compite con el H1 de la página. */
  /* Dos clases, no una: '.fd-section h2' vale (0,1,1) y le ganaria a un
     '.fd-toc__title' suelto, que es (0,1,0). Es la misma trampa de
     especificidad que ya nos costo dos rondas con las fotos superpuestas. */
  .fd-toc .fd-toc__title { font-size: 12px; line-height: 1.4; }

  /* Las imágenes del cuerpo respiraban 44 px arriba y abajo, que en una
     pantalla de 375 px es un tercio de altura en blanco. */
  .fd-linea__body figure { margin: 28px 0; }
  .fd-linea__body h2 { font-size: 26px; line-height: 32px; margin-top: 40px; }

  /* La entradilla del hero de página se iba a cinco líneas. */
  .fd-hero--page .fd-lede { font-size: 15.5px; line-height: 25px; }
}

/* --- Seguros de desbordamiento ------------------------------------------
   Nombres de cookie, URLs y correos son cadenas largas sin espacios: en un
   móvil estrecho empujan la caja y aparece scroll horizontal en toda la web
   por una sola palabra. */
@media (max-width: 560px) {
  .fd-entry { overflow-wrap: break-word; }
  .fd-entry code,
  .fd-entry a[href^="mailto:"] { overflow-wrap: anywhere; }
  .fd-entry code { font-size: .92em; }
}

/* ==========================================================================
   22. AVISO DE COOKIES
   No es una barra gris de plantilla: es una tarjeta de la casa, con su borde
   desgarrado, su punto de color y su adorno. Aparece abajo a la izquierda, sin
   tapar el contenido y sin bloquear la pagina, porque un muro modal para esto
   es un peaje, no una pregunta.
   ========================================================================== */

.fd-consent {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 300;
  width: min(420px, calc(100vw - 48px));
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity 280ms var(--fd-ease-out), transform 380ms cubic-bezier(.32, .72, 0, 1);
  pointer-events: none;
}
.fd-consent[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }

.fd-consent__card {
  position: relative;
  background: var(--fd-surface);
  border-radius: 12px;
  box-shadow: 0 18px 50px -12px rgba(22, 48, 31, .28), 0 2px 8px rgba(22, 48, 31, .06);
  overflow: hidden;
}
.fd-consent__card:focus { outline: none; }

/* Franja crema arriba con el borde inferior desgarrado, igual que la
   transicion entre dos secciones de la web: el blanco de la tarjeta sube
   rompiendo el crema. Pintarlo al reves (crema sobre blanco) lo dejaba
   invisible, que es como estaba al principio. */
.fd-consent__edge {
  display: block; width: 100%; height: 26px;
  background: var(--fd-paper);
  color: var(--fd-surface);
}

.fd-consent__inner { padding: 18px 26px 26px; }

/* El tarro: el icono de hoja dentro de una mancha organica, el mismo recurso
   que las garantias del pie. */
.fd-consent__jar {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 14px;
  border-radius: 42% 58% 54% 46% / 48% 42% 58% 52%;
  background: linear-gradient(150deg, var(--fd-green-100), rgba(46, 96, 71, .06));
  color: var(--fd-green);
}

.fd-consent__titulo {
  font-family: var(--fd-font-display);
  font-weight: 700;
  font-size: 24px; line-height: 30px;
  letter-spacing: -.01em;
  color: var(--fd-ink);
  margin: 0 0 .55rem;
}
.fd-consent__titulo em {
  display: block;
  font-family: var(--fd-font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 22px; line-height: 28px;
  color: var(--fd-green);
  margin-top: 3px;
}

.fd-consent__texto {
  font-size: 15px; line-height: 24px;
  color: var(--fd-ink-soft);
  margin: 0 0 1.25rem;
}
.fd-consent__texto a { color: var(--fd-green); text-decoration: underline; text-underline-offset: 3px; }

/* Aceptar y rechazar, mismo ancho y misma altura. La unica diferencia es el
   relleno del boton, no la jerarquia: rechazar no puede parecer la salida
   secundaria. */
.fd-consent__acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fd-consent__acciones .fd-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  padding-inline: 12px;
  font-size: 14.5px;
  text-align: center;
}

.fd-consent__toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 14px; padding: 8px 0;
  border: 0; background: none; cursor: pointer;
  font-family: var(--fd-font-body);
  font-size: 13.5px; font-weight: 700;
  letter-spacing: .02em;
  color: var(--fd-topbar-ink);
}
.fd-consent__toggle:hover { color: var(--fd-green); }
.fd-consent__toggle svg { transition: transform 240ms var(--fd-ease-out); }
.fd-consent__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.fd-consent__panel {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--fd-hairline);
}

.fd-consent__opcion {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: 10px 0;
  cursor: pointer;
}
.fd-consent__opcion input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--fd-green); flex: 0 0 auto; }
.fd-consent__opcion strong {
  display: block;
  font-family: var(--fd-font-display);
  font-size: 15px; font-weight: 700;
  color: var(--fd-ink);
}
.fd-consent__opcion em {
  display: block;
  font-style: normal;
  font-size: 13px; line-height: 20px;
  color: var(--fd-ink-soft);
  margin-top: 1px;
}
.fd-consent__opcion--fija { cursor: default; opacity: .78; }

.fd-consent__panel .fd-btn--sm { margin-top: 10px; width: 100%; justify-content: center; min-height: 44px; }

/* Enlace del pie para volver a decidir. Se pinta como los demas legales para
   que no parezca un boton de sistema. */
.fd-consent__reopen {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--fd-font-body);
  font-size: inherit; color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.fd-consent__reopen:hover { color: var(--fd-green); border-bottom-color: var(--fd-green-100); }

/* --- Velo con desenfoque -------------------------------------------------
   Mientras hay que decidir, el resto de la pagina se desenfoca. No es solo
   estetica: quita el ruido de detras y deja claro que la decision es lo unico
   que hay delante. La pagina no se pierde, se ve al fondo.

   El velo va aparte de .fd-consent porque ese contenedor se anima con
   transform, y un ancestro transformado convierte position:fixed en absolute.
   Metido dentro, el desenfoque se recortaria al tamano de la tarjeta. */
.fd-consent-scrim {
  position: fixed; inset: 0;
  z-index: 290;
  background: rgba(251, 240, 229, .34);
  -webkit-backdrop-filter: blur(7px) saturate(.92);
  backdrop-filter: blur(7px) saturate(.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--fd-ease-out);
}
html[data-fd-consent="open"] .fd-consent-scrim { opacity: 1; pointer-events: auto; }

/* Nada de scroll detras: si el fondo se mueve bajo el desenfoque, marea. */
html[data-fd-consent="open"] body { overflow: hidden; }

/* Sin soporte de backdrop-filter (Firefox antiguo, navegadores de gama baja)
   el velo se queda en un crema translucido: sigue apagando el fondo, solo que
   sin desenfocarlo. Nunca queda transparente del todo. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fd-consent-scrim { background: rgba(251, 240, 229, .82); }
}

/* --- Movil ---------------------------------------------------------------
   Pegada abajo y a todo el ancho: en el pulgar los dos botones caen donde
   llega la mano, y no tapa el contenido mas de lo imprescindible. */
@media (max-width: 640px) {
  .fd-consent {
    left: 10px; right: 10px; bottom: 10px;
    width: auto;
    transform: translateY(20px);
  }
  .fd-consent__inner { padding: 2px 20px 20px; }
  .fd-consent__jar { width: 44px; height: 44px; margin-bottom: 10px; }
  .fd-consent__jar svg { width: 22px; height: 22px; }
  .fd-consent__titulo { font-size: 21px; line-height: 27px; }
  .fd-consent__titulo em { font-size: 18px; line-height: 24px; }
  .fd-consent__texto { font-size: 14.5px; line-height: 23px; margin-bottom: 1rem; }
  .fd-consent__acciones { grid-template-columns: 1fr; }
  .fd-consent__acciones .fd-btn { min-height: 50px; }
  /* El panel abierto no puede empujar la tarjeta fuera de la pantalla. */
  .fd-consent__panel { max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; }
}

@media (prefers-reduced-motion: reduce) {
  .fd-consent { transition: opacity 120ms linear; transform: none; }
  .fd-consent[data-open="true"] { transform: none; }
}

/* ==========================================================================
   23. CONTACTO
   ========================================================================== */

/* --- Atajos: llamar, WhatsApp, venir ---
   Van antes que el formulario a proposito. Quien llega a esta pagina desde el
   movil buscando "herbolario Yecla" quiere llamar o ir, no escribir y esperar
   respuesta. El formulario es para lo que no corre prisa. */
.fd-vias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fd-via {
  display: block;
  padding: 26px 24px 24px;
  background: var(--fd-paper);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 320ms var(--fd-ease-out), box-shadow 320ms var(--fd-ease-out);
}
.fd-via__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 16px;
  border-radius: 42% 58% 54% 46% / 48% 42% 58% 52%;
  background: linear-gradient(150deg, var(--fd-green-100), rgba(46, 96, 71, .06));
  color: var(--fd-green);
}
.fd-via strong {
  display: block;
  font-family: var(--fd-font-display);
  font-size: 19px; line-height: 26px; font-weight: 700;
  color: var(--fd-ink);
}
.fd-via__dato {
  display: block;
  font-family: var(--fd-font-body);
  font-size: 15px; font-weight: 700;
  color: var(--fd-green);
  margin: 4px 0 8px;
}
.fd-via em {
  display: block;
  font-style: normal;
  font-size: 14.5px; line-height: 22px;
  color: var(--fd-ink-soft);
}
@media (hover: hover) and (pointer: fine) {
  .fd-via:hover { transform: translateY(-4px); box-shadow: var(--fd-shadow-md); }
  .fd-via:hover strong { color: var(--fd-green); }
}

/* --- Formulario y datos --- */
.fd-contacto {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 60px;
  align-items: start;
}
.fd-contacto__caja {
  background: var(--fd-surface);
  border-radius: 12px;
  padding: 32px 30px;
  position: sticky;
  top: calc(var(--fd-header-h) + 24px);
}
.fd-contacto__caja .fd-foot__title { margin-top: 26px; }
.fd-contacto__caja .fd-foot__title:first-child { margin-top: 0; }

/* --- Campos ---
   Contact Form 7 no trae estilos que valgan, asi que se visten con la misma
   tipografia y el mismo crema que el resto. El foco es verde y grueso porque
   en un formulario es la unica pista de donde estas escribiendo. */
.fd-form__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.fd-field { margin: 0 0 20px; }
.fd-field label {
  display: block;
  font-family: var(--fd-font-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: .01em;
  color: var(--fd-ink);
  margin-bottom: 7px;
}
.fd-field label span { font-weight: 400; color: var(--fd-ink-mute); }

.fd-form input[type="text"],
.fd-form input[type="email"],
.fd-form input[type="tel"],
.fd-form select,
.fd-form textarea {
  width: 100%;
  font-family: var(--fd-font-body);
  font-size: 16px; line-height: 26px;
  color: var(--fd-ink);
  background: var(--fd-surface);
  border: 1px solid var(--fd-hairline);
  border-radius: 6px;
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.fd-form textarea { resize: vertical; min-height: 150px; }
.fd-form ::placeholder { color: var(--fd-ink-mute); opacity: 1; }

.fd-form input:focus,
.fd-form select:focus,
.fd-form textarea:focus {
  outline: none;
  border-color: var(--fd-green);
  box-shadow: 0 0 0 3px rgba(46, 96, 71, .14);
}

/* El desplegable pierde la flecha del sistema al quitarle la apariencia, asi
   que se dibuja una con el mismo trazo que los iconos del tema. */
.fd-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d6d61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

/* Casilla de consentimiento: el enlace a la política tiene que verse, porque
   aceptar sin poder leerla no es aceptar nada. */
.fd-field--check { margin-top: 26px; }
.fd-field--check .wpcf7-list-item { margin: 0; }
.fd-field--check label {
  display: flex; align-items: flex-start; gap: .65rem;
  font-weight: 400; font-size: 14.5px; line-height: 22px;
  color: var(--fd-ink-soft);
  cursor: pointer;
}
.fd-field--check input[type="checkbox"] {
  width: 19px; height: 19px; margin-top: 1px;
  accent-color: var(--fd-green);
  flex: 0 0 auto;
}
.fd-field--check a { color: var(--fd-green); text-decoration: underline; text-underline-offset: 3px; }

.fd-form__enviar { margin: 26px 0 0; }
.fd-form input[type="submit"] {
  font-family: var(--fd-font-body);
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  color: #fff;
  background: var(--fd-green);
  border: 0;
  border-radius: var(--fd-r-btn);
  padding: 17px 34px;
  min-height: 54px;
  cursor: pointer;
  transition: background-color .2s ease, transform 160ms var(--fd-ease-out);
}
.fd-form input[type="submit"]:hover { background: var(--fd-green-800); }
.fd-form input[type="submit"]:active { transform: scale(.98); }

/* --- Avisos de Contact Form 7 ---
   Los de serie son bordes de colores planos que no pegan con nada. */
.fd-form .wpcf7-not-valid-tip {
  display: block;
  font-size: 13.5px; line-height: 20px;
  color: #a3352b;
  margin-top: 6px;
}
.fd-form .wpcf7-not-valid { border-color: #c4675d; }

.fd-form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 0;
  border-left: 3px solid var(--fd-green);
  border-radius: 4px;
  background: var(--fd-paper-deep);
  font-size: 15px; line-height: 24px;
  color: var(--fd-ink-soft);
}
.fd-form .wpcf7-response-output.wpcf7-validation-errors,
.fd-form .wpcf7-response-output.wpcf7-acceptance-missing {
  border-left-color: #c4675d;
}
.fd-form .wpcf7-spinner { margin-left: 12px; }

/* --- Móvil --- */
@media (max-width: 1023px) {
  .fd-vias { grid-template-columns: 1fr; gap: 16px; }
  .fd-contacto { grid-template-columns: 1fr; gap: 44px; }
  .fd-contacto__caja { position: static; }
}

@media (max-width: 560px) {
  .fd-form__fila { grid-template-columns: 1fr; }
  .fd-via { padding: 20px 20px 22px; }
  .fd-via__icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .fd-via__icon svg { width: 21px; height: 21px; }
  .fd-via strong { font-size: 17px; line-height: 24px; }
  .fd-contacto__caja { padding: 26px 22px; }
  /* A 16 px el navegador del movil no hace zoom al enfocar el campo; por
     debajo, si, y la pagina pega un salto muy feo. */
  .fd-form input, .fd-form select, .fd-form textarea { font-size: 16px; }
  .fd-form input[type="submit"] { width: 100%; }
}

@media print {
  .fd-header, .fd-topbar, .fd-footer, .fd-drawer, .fd-search { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
