/* ================================================================
   ILLA DE DRABES — SISTEMA VISUAL WEB
   Basado en el Manual de Identidad Visual v1.0
   Herbario contemporáneo · Institución cultural · Refugio y rigor
   ================================================================ */

/* ----------------------------------------------------------------
   1. FUENTES AUTOALOJADAS
   Copiar los .woff2 en public/assets/fonts/
   ---------------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ----------------------------------------------------------------
   2. TOKENS DE IDENTIDAD
   ---------------------------------------------------------------- */

:root {
  color-scheme: light;

  --ivory-main: #f7f4ee;
  --ivory-secondary: #eee8de;
  --card: #fcfbf8;
  --draba: #66755c;
  --draba-dark: #485440;
  --sage: #87907a;
  --sage-light: #c9cdbf;
  --stone: #cfc6b6;
  --stone-light: #e2dbd0;
  --ink: #3e3a37;
  --ink-soft: #6d6862;
  --border: #ddd6cb;
  --danger: #8d4147;
  --success: #49664f;

  /* Acentos editoriales de la referencia visual. */
  --forest: #263127;
  --forest-deep: #1d261f;
  --mustard: #d2aa2b;
  --mustard-soft: #e3c65c;
  --lavender: #9a7a9e;
  --lavender-dark: #725a77;
  --paper: #f4efe6;
  --paper-shadow: #e5ddd0;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Baskerville,
    "Palatino Linotype", Palatino, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI Variable Text",
    "Segoe UI", sans-serif;

  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(1rem, 4vw, 2.25rem);

  --section-space: clamp(5rem, 9vw, 7.5rem);
  --section-space-small: clamp(3.75rem, 7vw, 5.5rem);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;

  --radius-small: 0.5rem;
  --radius-button: 1.125rem;
  --radius-card: 1.25rem;
  --radius-large: 2rem;
  --radius-pill: 999px;

  --shadow-soft: 0 0.75rem 2.5rem rgba(62, 58, 55, 0.07);
  --shadow-medium: 0 1.5rem 4rem rgba(62, 58, 55, 0.12);
  --transition: 220ms ease;

  /* Ilustraciones botánicas vectoriales integradas. */
  --draba-sprig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 420'%3E%3Cg fill='none' stroke='%2366755C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M128 410C122 328 134 248 128 164C125 117 132 75 151 28'/%3E%3Cpath d='M128 326C96 302 72 278 55 244'/%3E%3Cpath d='M130 276C165 250 187 220 199 184'/%3E%3Cpath d='M128 220C96 198 79 174 70 144'/%3E%3Cpath d='M131 166C160 143 177 116 184 83'/%3E%3C/g%3E%3Cg fill='%2387907A'%3E%3Cellipse cx='91' cy='288' rx='10' ry='24' transform='rotate(-48 91 288)'/%3E%3Cellipse cx='166' cy='246' rx='10' ry='25' transform='rotate(47 166 246)'/%3E%3Cellipse cx='94' cy='190' rx='9' ry='23' transform='rotate(-43 94 190)'/%3E%3Cellipse cx='158' cy='137' rx='9' ry='23' transform='rotate(41 158 137)'/%3E%3C/g%3E%3Cg fill='%23F7F4EE' stroke='%2366755C' stroke-width='1.3'%3E%3Ccircle cx='151' cy='26' r='12'/%3E%3Ccircle cx='139' cy='31' r='12'/%3E%3Ccircle cx='150' cy='40' r='12'/%3E%3Ccircle cx='162' cy='33' r='12'/%3E%3Ccircle cx='184' cy='80' r='10'/%3E%3Ccircle cx='174' cy='85' r='10'/%3E%3Ccircle cx='182' cy='94' r='10'/%3E%3Ccircle cx='192' cy='88' r='10'/%3E%3Ccircle cx='69' cy='142' r='9'/%3E%3Ccircle cx='60' cy='147' r='9'/%3E%3Ccircle cx='68' cy='155' r='9'/%3E%3Ccircle cx='77' cy='149' r='9'/%3E%3C/g%3E%3Cg fill='%23CFC6B6'%3E%3Ccircle cx='151' cy='33' r='4'/%3E%3Ccircle cx='183' cy='87' r='3.5'/%3E%3Ccircle cx='68' cy='149' r='3'/%3E%3C/g%3E%3C/svg%3E");

  --draba-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 150'%3E%3Cg fill='none' stroke='%2387907A' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8 142C52 120 77 88 91 42'/%3E%3Cpath d='M56 111C44 87 30 73 13 65'/%3E%3Cpath d='M77 78C105 75 128 61 146 39'/%3E%3C/g%3E%3Cg fill='%2366755C'%3E%3Cellipse cx='43' cy='98' rx='8' ry='18' transform='rotate(-42 43 98)'/%3E%3Cellipse cx='108' cy='66' rx='7' ry='17' transform='rotate(63 108 66)'/%3E%3C/g%3E%3Cg fill='%23F7F4EE' stroke='%2366755C' stroke-width='1'%3E%3Ccircle cx='91' cy='40' r='9'/%3E%3Ccircle cx='83' cy='44' r='9'/%3E%3Ccircle cx='91' cy='49' r='9'/%3E%3Ccircle cx='99' cy='44' r='9'/%3E%3C/g%3E%3Ccircle cx='91' cy='44' r='3' fill='%23CFC6B6'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------------
   3. BASE Y ACCESIBILIDAD
   ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(210, 170, 43, 0.045), transparent 20rem),
    radial-gradient(circle at 88% 70%, rgba(154, 122, 158, 0.05), transparent 24rem),
    var(--ivory-main);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.975rem + 0.12vw, 1.075rem);
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.022;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(62, 58, 55, 0.28) 8px),
    repeating-linear-gradient(90deg, transparent 0 11px, rgba(62, 58, 55, 0.12) 12px);
  background-size: 100% 100%;
  content: "";
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure,
blockquote {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--draba-dark);
  font-weight: 600;
  text-decoration-color: rgba(72, 84, 64, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--draba);
  text-decoration-color: currentColor;
}

address {
  font-style: normal;
}

ul,
ol {
  padding-left: 1.4rem;
}

li + li {
  margin-top: 0.5rem;
}

::selection {
  background: var(--draba);
  color: var(--ivory-main);
}

:focus-visible {
  outline: 3px solid var(--draba);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: var(--ivory-main);
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ----------------------------------------------------------------
   4. TIPOGRAFÍA Y RITMO
   ---------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 17ch;
  font-size: clamp(3.25rem, 7vw, 6.4rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
}

p {
  max-width: 70ch;
  margin: 0;
  overflow-wrap: break-word;
}

p + p {
  margin-top: 1.25rem;
}

h1 + p,
h2 + p,
h3 + p,
h4 + p {
  margin-top: 1.35rem;
}

p + h2,
ul + h2,
ol + h2 {
  margin-top: clamp(3.75rem, 8vw, 6rem);
}

p + h3,
ul + h3,
ol + h3 {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.lead {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: clamp(1.075rem, 1rem + 0.45vw, 1.35rem);
  line-height: 1.8;
}

.eyebrow {
  max-width: none;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 0.68rem + 0.18vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 {
  margin-top: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.text-link::after {
  content: "→";
  transition: transform var(--transition);
}

.text-link:hover::after {
  transform: translateX(0.3rem);
}

/* ----------------------------------------------------------------
   5. CONTENEDORES Y SECCIONES
   ---------------------------------------------------------------- */

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container-narrow));
  margin-inline: auto;
}

.section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
}

.section:nth-of-type(even)::before {
  position: absolute;
  top: 2rem;
  right: max(1rem, calc((100vw - var(--container)) / 2));
  width: clamp(7rem, 13vw, 11rem);
  aspect-ratio: 1.2;
  opacity: 0.12;
  background: var(--draba-corner) center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.section > .container,
.section > .container-narrow {
  position: relative;
  z-index: 1;
}

.section-compact {
  padding-block: var(--section-space-small);
}

.section-dark {
  background:
    radial-gradient(circle at 88% 18%, rgba(210, 170, 43, 0.08), transparent 21rem),
    var(--forest);
  color: var(--ivory-main);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--ivory-main);
}

.section-dark p,
.section-dark li {
  color: rgba(247, 244, 238, 0.84);
}

.section-dark .eyebrow,
.section-dark a:not(.button) {
  color: var(--sage-light);
}

.section-accent {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--lavender);
  color: var(--ivory-main);
}

.section-accent h1,
.section-accent h2,
.section-accent h3,
.section-accent h4 {
  color: var(--ivory-main);
}

.section-accent .eyebrow {
  color: var(--forest-deep);
}

.section-accent p {
  color: rgba(247, 244, 238, 0.9);
}

.section-accent .button {
  border-color: var(--forest-deep);
  background: var(--forest-deep);
}

.section-accent .button:hover {
  border-color: var(--mustard);
  background: var(--mustard);
  color: var(--forest-deep);
}

.section-sage {
  background: var(--draba);
  color: var(--ivory-main);
}

.section-sage h1,
.section-sage h2,
.section-sage h3,
.section-sage h4,
.section-sage a {
  color: var(--ivory-main);
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.7fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.content-column,
.sidebar-column {
  min-width: 0;
}

.content-column > * + * {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.sidebar-column {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.card-grid,
.resources-grid,
.services-grid,
.values-grid,
.content-grid,
.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.card-grid,
.resources-grid,
.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ----------------------------------------------------------------
   6. CABECERA Y MENÚ COMPARTIDO
   Compatible con assets/js/menu.js
   ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(62, 58, 55, 0.12);
  background: rgba(247, 244, 238, 0.955);
  backdrop-filter: blur(18px);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.98);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  width: clamp(3.75rem, 6vw, 4.8rem);
  height: clamp(3.75rem, 6vw, 4.8rem);
  flex: 0 0 auto;
  object-fit: contain;
  font-size: 0;
}

.brand-text {
  min-width: 0;
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text span {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.4vw, 1.25rem);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation li {
  margin: 0;
}

.main-navigation ul a {
  display: block;
  padding: 0.75rem 0.58rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.main-navigation ul a:hover,
.main-navigation ul a[aria-current="page"] {
  color: var(--draba-dark);
}

.main-navigation ul a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 0.13rem;
  text-underline-offset: 0.4rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
}

.language-switcher a {
  color: var(--ink-soft);
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  color: var(--draba-dark);
}

.menu-toggle {
  display: none;
}

.mobile-menu-heading,
.mobile-menu-close {
  display: none;
}

.mobile-menu-sections {
  display: none;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 990;
  border: 0;
  background: rgba(62, 58, 55, 0.56);
  backdrop-filter: blur(4px);
  cursor: default;
}

.menu-backdrop[hidden] {
  display: none;
}

/* ----------------------------------------------------------------
   7. BOTONES
   ---------------------------------------------------------------- */

.button,
button.button {
  min-height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-button);
  background: var(--ink);
  color: var(--ivory-main);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition), border-color var(--transition),
    color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.button:hover {
  border-color: var(--mustard);
  background: var(--mustard);
  color: var(--forest-deep);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory-main);
}

.button-light {
  border-color: var(--card);
  background: var(--card);
  color: var(--ink);
}

.button-small {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.button-group > .button + .button {
  margin-left: 0;
}

.menu-orientation-button {
  border-color: var(--mustard);
  background: var(--mustard);
  color: var(--forest-deep);
}

.menu-orientation-button:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--ivory-main);
}

/* ----------------------------------------------------------------
   8. HERO Y CABECERAS
   ---------------------------------------------------------------- */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8.5rem);
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(154, 122, 158, 0.055) 72% 100%),
    var(--ivory-main);
}

.hero::before,
.page-hero::before {
  position: absolute;
  width: min(38vw, 34rem);
  aspect-ratio: 1;
  top: -18rem;
  right: -9rem;
  border: 1px solid rgba(102, 117, 92, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  position: absolute;
  right: clamp(-4rem, -2vw, -1rem);
  bottom: -5rem;
  width: clamp(11rem, 22vw, 18rem);
  height: clamp(20rem, 42vw, 32rem);
  opacity: 0.17;
  background: var(--draba-sprig) center bottom / contain no-repeat;
  content: "";
  pointer-events: none;
}

.hero-grid,
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.78fr);
  gap: clamp(4rem, 9vw, 8rem);
  align-items: center;
}

.hero-content::before,
.page-hero-content::before {
  width: clamp(4.5rem, 9vw, 7.5rem);
  height: 0.55rem;
  display: block;
  order: -1;
  margin-bottom: -0.5rem;
  opacity: 0.9;
  background: var(--mustard);
  clip-path: polygon(0 25%, 96% 0, 100% 65%, 7% 100%);
  content: "";
}

.hero-content h1 em,
.page-hero-content h1 em,
h1 .accent,
h2 .accent {
  color: var(--lavender-dark);
  font-weight: 600;
}

.hero-content,
.page-hero-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.4rem, 3vw, 2.15rem);
}

.hero-content > *,
.page-hero-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.hero-content .button-group,
.page-hero-content .button-group {
  margin-top: 0.8rem !important;
}

.hero-content .button + .button,
.page-hero-content .button + .button {
  margin-left: 0.25rem;
}

.hero-content .button-group + p,
.page-hero-content .button-group + p,
.hero-content .button-group + .hero-note,
.page-hero-content .button-group + .hero-note {
  margin-top: 0.75rem !important;
}

.hero-media,
.page-hero-media {
  position: relative;
  min-height: clamp(25rem, 46vw, 39rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(154, 122, 158, 0.85), rgba(207, 198, 182, 0.9));
  clip-path: polygon(7% 3%, 96% 0, 100% 88%, 88% 100%, 3% 94%, 0 12%);
  box-shadow: var(--shadow-medium);
}

.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.04);
}

.hero-media figcaption,
.page-hero-media figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-small);
  background: rgba(62, 58, 55, 0.82);
  color: var(--ivory-main);
  font-size: 0.77rem;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

.hero-media::after,
.page-hero-media::after {
  position: absolute;
  right: -3%;
  bottom: 1%;
  width: 45%;
  height: 8%;
  opacity: 0.95;
  background: var(--mustard);
  clip-path: polygon(2% 30%, 100% 0, 96% 80%, 0 100%);
  content: "";
  pointer-events: none;
}

.hero-points {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  margin: 0;
  padding-left: 1.45rem;
  color: var(--ink-soft);
}

.hero-points li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--draba);
  content: "";
}

/* ----------------------------------------------------------------
   9. TARJETAS Y BLOQUES
   ---------------------------------------------------------------- */

.card,
.service-card,
.resource-card,
.value-card,
.contact-card,
.info-card,
.step-card {
  min-width: 0;
  height: 100%;
  padding: clamp(1.5rem, 3.5vw, 2.35rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.34), transparent 48%),
    var(--card);
  box-shadow: var(--shadow-soft);
}

.card,
.service-card,
.resource-card,
.value-card,
.contact-card,
.info-card,
.step-card {
  position: relative;
}

.card::after,
.service-card::after,
.resource-card::after,
.value-card::after,
.contact-card::after,
.info-card::after,
.step-card::after {
  position: absolute;
  right: -1.25rem;
  bottom: -1.25rem;
  width: 7.5rem;
  aspect-ratio: 1.2;
  opacity: 0.075;
  background: var(--draba-corner) center / contain no-repeat;
  content: "";
  pointer-events: none;
}

.card > *,
.service-card > *,
.resource-card > *,
.value-card > *,
.contact-card > *,
.info-card > *,
.step-card > * {
  position: relative;
  z-index: 1;
}

.card > * + *,
.service-card > * + *,
.resource-card > * + *,
.value-card > * + *,
.contact-card > * + *,
.info-card > * + *,
.step-card > * + * {
  margin-top: 1.1rem;
}

.card,
.service-card,
.resource-card {
  transition:
    border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.card:hover,
.service-card:hover,
.resource-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
}

.card:nth-child(3n + 1),
.service-card:nth-child(3n + 1),
.resource-card:nth-child(3n + 1) {
  border-top: 0.32rem solid var(--mustard);
}

.card:nth-child(3n + 2),
.service-card:nth-child(3n + 2),
.resource-card:nth-child(3n + 2) {
  border-top: 0.32rem solid var(--lavender);
}

.card:nth-child(3n),
.service-card:nth-child(3n),
.resource-card:nth-child(3n) {
  border-top: 0.32rem solid var(--draba);
}

.card-number,
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--stone-light);
  color: var(--draba-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-card-highlighted {
  border-color: var(--sage);
  background: var(--ivory-secondary);
}

.contact-secondary-image {
  min-height: 16rem;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--stone-light);
}

.contact-secondary-image img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.notice {
  margin-block: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.35rem, 3vw, 1.9rem);
  border-left: 0.28rem solid var(--draba);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--ivory-secondary);
}

.notice-important {
  border-left-color: var(--ink);
  background: var(--stone-light);
}

.notice > * + * {
  margin-top: 1rem;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.callout > div {
  max-width: 50rem;
}

.quote-block {
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: var(--radius-large);
  background: var(--forest);
  color: var(--ivory-main);
  box-shadow: var(--shadow-medium);
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.quote-block cite {
  display: block;
  margin-top: 1.75rem;
  color: var(--sage-light);
  font-style: normal;
}

/* ----------------------------------------------------------------
   10. ACORDEONES
   ---------------------------------------------------------------- */

.accordion {
  display: grid;
  gap: 1rem;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}

.accordion-trigger {
  width: 100%;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger::after {
  flex: 0 0 auto;
  color: var(--draba);
  content: "+";
  font-size: 1.65rem;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
}

.accordion-panel {
  padding: 0 1.4rem 1.5rem;
}

.accordion-panel[hidden] {
  display: none;
}

/* ----------------------------------------------------------------
   11. FORMULARIOS
   ---------------------------------------------------------------- */

.contact-form,
.orientation-form,
.form-card {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.35rem, 4vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  background:
    linear-gradient(160deg, rgba(210, 170, 43, 0.035), transparent 32%),
    var(--card);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.15rem);
  margin-bottom: 2rem;
}

.form-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--ivory-main);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field textarea {
  min-height: 11rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--draba);
  box-shadow: 0 0 0 4px rgba(102, 117, 92, 0.15);
  outline: none;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.checkbox-field {
  display: grid !important;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.8rem !important;
  align-items: start;
  font-weight: 400 !important;
}

.checkbox-field input {
  width: 1.15rem;
  height: 1.15rem;
  min-height: auto;
  margin-top: 0.25rem;
  accent-color: var(--draba);
}

.form-field-hidden {
  position: absolute;
  left: -9999px;
}

.field-help,
.form-privacy-summary {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.field-error {
  min-height: 1.25rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-status {
  margin-top: 1.25rem;
  border-radius: var(--radius-small);
  font-weight: 600;
}

.form-status.is-success {
  padding: 1rem;
  background: rgba(102, 117, 92, 0.16);
  color: var(--success);
}

.form-status.is-error {
  padding: 1rem;
  background: rgba(141, 65, 71, 0.12);
  color: var(--danger);
}

.form-privacy-summary {
  margin-top: 1.6rem;
}

/* ----------------------------------------------------------------
   12. RECURSOS, LEGALES Y EMERGENCIAS
   ---------------------------------------------------------------- */

.legal-content {
  max-width: var(--container-narrow);
}

.legal-content > * + * {
  margin-top: 1.25rem;
}

.legal-content h2 {
  margin-top: clamp(4rem, 9vw, 6rem);
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-content h3 {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.resource-list {
  display: grid;
  gap: 1.35rem;
  margin: 2.25rem 0;
  padding: 0;
  list-style: none;
}

.resource-list li,
.resource-list article {
  margin: 0;
}

.emergency-block {
  margin-block: 2.25rem;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  border-radius: var(--radius-large);
  background: var(--ink);
  color: var(--ivory-main);
}

.emergency-block > * + * {
  margin-top: 1rem;
}

.emergency-block h2,
.emergency-block h3,
.emergency-block a {
  color: var(--ivory-main);
}

/* ----------------------------------------------------------------
   13. IMÁGENES PENDIENTES
   ---------------------------------------------------------------- */

.image-placeholder,
[data-image-placeholder].is-placeholder {
  position: relative;
  min-height: 17rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--sage);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(154, 122, 158, 0.28), rgba(210, 170, 43, 0.3)),
    var(--ivory-secondary);
  color: var(--ink);
  text-align: center;
}

.image-placeholder::after {
  max-width: 24rem;
  padding: 1.25rem;
  content: attr(data-placeholder-label);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
}

/* ----------------------------------------------------------------
   14. COOKIES
   ---------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 3000;
  width: min(calc(100% - 2rem), 54rem);
  margin-inline: auto;
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(247, 244, 238, 0.2);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--ivory-main);
  box-shadow: var(--shadow-medium);
}

.cookie-banner h2,
.cookie-banner h3,
.cookie-banner a {
  color: var(--ivory-main);
}

.cookie-banner > * + * {
  margin-top: 1rem;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(62, 58, 55, 0.74);
}

.cookie-preferences[hidden],
.cookie-banner[hidden] {
  display: none;
}

.cookie-dialog {
  width: min(100%, 44rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  border-radius: var(--radius-large);
  background: var(--card);
  box-shadow: var(--shadow-medium);
}

/* ----------------------------------------------------------------
   15. PIE DE PÁGINA
   ---------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4.5rem, 9vw, 7rem);
  background: var(--forest-deep);
  color: rgba(247, 244, 238, 0.82);
}

.site-footer::before {
  position: absolute;
  right: clamp(-4rem, 2vw, 2rem);
  bottom: -6rem;
  width: clamp(11rem, 24vw, 20rem);
  height: clamp(20rem, 45vw, 34rem);
  opacity: 0.13;
  filter: brightness(1.7);
  background: var(--draba-sprig) center bottom / contain no-repeat;
  content: "";
  pointer-events: none;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  grid-template-columns: 1.35fr repeat(3, minmax(0, 0.8fr));
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-brand {
  max-width: 23rem;
}

.brand-footer,
.site-footer a {
  color: var(--ivory-main);
}

.site-footer a:hover {
  color: var(--sage-light);
}

.footer-heading {
  margin-bottom: 1.25rem;
  color: var(--sage-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.7rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(247, 244, 238, 0.14);
  color: rgba(247, 244, 238, 0.58);
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

/* ----------------------------------------------------------------
   16. PÁGINA 404 Y ANIMACIONES
   ---------------------------------------------------------------- */

.error-page {
  min-height: 70dvh;
  display: grid;
  place-items: center;
  text-align: center;
}

.error-page h1,
.error-page p {
  margin-inline: auto;
}

.error-code {
  color: var(--sage);
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------
   17. MENÚ LATERAL: TABLET Y MÓVIL
   ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .site-header {
    min-height: 5.75rem;
    background: var(--ivory-main);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header-inner {
    min-height: 5.75rem;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .brand {
    max-width: 100%;
  }

  .brand-logo {
    width: 3.7rem;
    height: 3.7rem;
    flex-basis: 3.7rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 1010;
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    width: 1.45rem;
    height: 1.5px;
    margin: 0.19rem 0;
    border-radius: var(--radius-pill);
    background: var(--ink);
    transition: opacity var(--transition), transform var(--transition);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .main-navigation {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1100;
    width: min(88vw, 27rem);
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding:
      calc(1.4rem + env(safe-area-inset-top))
      1.5rem
      calc(2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    background:
      linear-gradient(155deg, transparent 0 72%, rgba(154, 122, 158, 0.08) 72%),
      var(--ivory-main);
    box-shadow: -1.5rem 0 4rem rgba(62, 58, 55, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(105%);
    transition:
      transform 280ms ease, opacity 220ms ease, visibility 220ms ease;
  }

  .main-navigation.is-open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-menu-heading {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--forest);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .mobile-menu-close {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-menu-close span {
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1;
  }

  .main-navigation ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0 0 1.5rem;
    padding: 0;
  }

  /* La navegación horizontal se sustituye por los grupos completos. */
  .main-navigation > ul {
    display: none;
  }

  .main-navigation .mobile-menu-sections {
    display: grid;
    gap: 2.25rem;
    padding: 0.25rem 0 2rem;
  }

  .main-navigation .mobile-menu-group {
    position: relative;
    padding: 1.35rem 1.15rem 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
  }

  .main-navigation .mobile-menu-group::after {
    position: absolute;
    right: -1.5rem;
    bottom: -2.5rem;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(102, 117, 92, 0.16);
    border-radius: 50%;
    content: "";
    pointer-events: none;
  }

  .main-navigation .mobile-menu-group h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.75rem;
    color: var(--draba-dark);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .main-navigation .mobile-menu-group ul {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin: 0;
  }

  .main-navigation .mobile-menu-group ul a {
    min-height: 3.25rem;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
    font-weight: 600;
    line-height: 1.35;
  }

  .main-navigation .mobile-menu-group ul a::after {
    font-size: 0.9rem;
  }

  .main-navigation .mobile-menu-group-support {
    border-color: rgba(102, 117, 92, 0.42);
    background:
      linear-gradient(145deg, rgba(102, 117, 92, 0.09), transparent 64%),
      var(--card);
  }

  .main-navigation .emergency-menu-link {
    color: var(--forest-deep);
  }

  .main-navigation .emergency-menu-link::after {
    color: var(--mustard);
    content: "☎";
  }

  .menu-cookie-settings {
    position: relative;
    z-index: 1;
    min-height: 2.9rem;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--draba);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--draba-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-cookie-settings:hover,
  .menu-cookie-settings:focus-visible {
    background: var(--draba);
    color: var(--ivory-main);
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation ul a {
    width: 100%;
    min-height: 4.35rem;
    display: flex;
    align-items: center;
    padding: 1rem 0.2rem;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 5vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none;
    white-space: normal;
  }

  .main-navigation ul a::after {
    margin-left: auto;
    padding-left: 1rem;
    color: var(--sage);
    content: "→";
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
  }

  .main-navigation ul a[aria-current="page"] {
    color: var(--draba-dark);
    text-decoration: none;
  }

  .main-navigation ul a[aria-current="page"]::before {
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.7rem;
    border-radius: 50%;
    background: var(--mustard);
    content: "";
  }

  .main-navigation .language-switcher {
    order: 2;
    justify-content: flex-start;
    margin-top: auto;
    padding: 1.15rem 0.2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }

  .main-navigation > .button,
  .menu-orientation-button {
    order: 3;
    width: 100%;
    min-height: 3.6rem;
    margin-top: 1.25rem;
  }

  .main-navigation > .menu-orientation-button {
    display: none;
  }

  .card-grid,
  .resources-grid,
  .services-grid,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------------
   18. MÓVIL
   ---------------------------------------------------------------- */

@media (max-width: 760px) {
  :root {
    --gutter: 1rem;
    --section-space: 5rem;
    --section-space-small: 4rem;
  }

  html {
    scroll-padding-top: 5.35rem;
  }

  body {
    font-size: 1rem;
    line-height: 1.78;
  }

  .site-header,
  .header-inner {
    min-height: 5.35rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .brand {
    max-width: calc(100% - 3.8rem);
    gap: 0.65rem;
  }

  .brand-logo {
    width: 3rem;
    height: 3rem;
    flex-basis: 3rem;
  }

  .brand-text strong {
    max-width: 12rem;
    font-size: 1.25rem;
  }

  .brand-text span {
    display: none;
  }

  .menu-toggle {
    width: 3rem;
    height: 3rem;
  }

  h1 {
    max-width: 19ch;
    font-size: clamp(3rem, 14vw, 4.25rem);
    line-height: 1;
  }

  h2 {
    max-width: 24ch;
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 1.06;
  }

  h3 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .lead {
    font-size: 1.05rem;
    line-height: 1.85;
  }

  .hero,
  .page-hero {
    padding-block: 5rem;
  }

  .hero-grid,
  .page-hero-grid,
  .two-column-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .hero-content,
  .page-hero-content {
    gap: 1.75rem;
  }

  .hero-content .button-group,
  .page-hero-content .button-group {
    width: 100%;
    gap: 1.25rem;
    margin-top: 0.6rem !important;
  }

  .hero-content .button + .button,
  .page-hero-content .button + .button,
  .button-group > .button + .button {
    margin-top: 0 !important;
    margin-left: 0 !important;
  }

  .hero-content .button-group + p,
  .page-hero-content .button-group + p,
  .hero-content .button-group + .hero-note,
  .page-hero-content .button-group + .hero-note {
    margin-top: 1rem !important;
  }

  .hero-content .button-group .button,
  .page-hero-content .button-group .button {
    width: 100%;
    min-height: 3.65rem;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hero-media,
  .page-hero-media {
    width: 100%;
    min-height: clamp(20rem, 110vw, 29rem);
    border-radius: var(--radius-large);
  }

  .hero::after,
  .page-hero::after {
    right: -4.5rem;
    bottom: 0;
    width: 11rem;
    height: 21rem;
    opacity: 0.1;
  }

  .section:nth-of-type(even)::before {
    top: 1rem;
    right: -2rem;
    width: 8rem;
    opacity: 0.085;
  }

  .card-grid,
  .resources-grid,
  .services-grid,
  .values-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-field-full {
    grid-column: auto;
  }

  .callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-group {
    align-items: stretch;
    flex-direction: column;
  }

  .button-group .button {
    width: 100%;
  }

  .content-column > * + * {
    margin-top: 1.9rem;
  }

  .card-grid,
  .resources-grid,
  .services-grid,
  .values-grid {
    gap: 1.75rem;
  }

  .contact-form,
  .orientation-form,
  .form-card {
    padding: 1.2rem;
    border-radius: var(--radius-card);
  }

  .quote-block {
    padding: 1.75rem;
    border-radius: var(--radius-card);
  }

  .quote-block blockquote {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
    line-height: 1.25;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    width: auto;
  }

  .cookie-banner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner-actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 0.85rem;
  }

  .main-navigation {
    width: 100%;
    padding-inline: 1.15rem;
  }

  .brand-text strong {
    max-width: 9.5rem;
    font-size: 1.1rem;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 3.55rem);
  }

  h2 {
    font-size: clamp(2.15rem, 10.5vw, 2.85rem);
  }

  .hero-media,
  .page-hero-media {
    min-height: 18rem;
  }

  .card,
  .service-card,
  .resource-card,
  .value-card,
  .contact-card,
  .info-card,
  .step-card {
    padding: 1.25rem;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }
}

/* ----------------------------------------------------------------
   19. DIRECCIÓN BOTÁNICA REFORZADA · REVISIÓN PATRICIA
   Draba protagonista, collage editorial y respiración entre acciones.
   ---------------------------------------------------------------- */

/* Separación consistente aunque el HTML no utilice .button-group. */
.button-group,
.hero-actions,
.page-actions,
.cta-actions,
.form-actions,
.card-actions {
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
  row-gap: clamp(1.35rem, 2.8vw, 2rem);
}

.button + .button {
  margin-inline-start: clamp(1.1rem, 2vw, 1.65rem);
}

.hero-content .button + .button,
.page-hero-content .button + .button {
  margin-left: clamp(1.1rem, 2vw, 1.65rem);
}

/* Fondo de herbario: visible, orgánico y sin aspecto de plantilla. */
body {
  background:
    var(--draba-corner) left -2rem top 13rem / clamp(11rem, 22vw, 19rem) auto no-repeat,
    var(--draba-sprig) right -4rem top 48rem / clamp(13rem, 25vw, 22rem) auto no-repeat,
    radial-gradient(circle at 14% 12%, rgba(210, 170, 43, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 64%, rgba(154, 122, 158, 0.13), transparent 30rem),
    var(--ivory-main);
}

.hero,
.page-hero {
  background-image:
    var(--draba-sprig),
    var(--draba-corner),
    radial-gradient(circle at 82% 26%, rgba(210, 170, 43, 0.18), transparent 16rem),
    linear-gradient(110deg, transparent 0 64%, rgba(154, 122, 158, 0.13) 64% 100%);
  background-position:
    right clamp(-4rem, -4vw, -1.5rem) bottom -4rem,
    left -1.5rem bottom -1rem,
    center,
    center;
  background-repeat: no-repeat;
  background-size:
    clamp(15rem, 31vw, 29rem) auto,
    clamp(9rem, 18vw, 15rem) auto,
    auto,
    auto;
}

.hero::before,
.page-hero::before {
  width: clamp(9rem, 18vw, 17rem);
  height: clamp(15rem, 30vw, 27rem);
  top: 9%;
  right: clamp(2%, 4vw, 7%);
  border: 0;
  border-radius: 46% 54% 42% 58% / 56% 38% 62% 44%;
  background: rgba(154, 122, 158, 0.28);
  clip-path: polygon(8% 5%, 91% 0, 100% 82%, 72% 100%, 0 87%);
  transform: rotate(-5deg);
}

.hero::after,
.page-hero::after {
  width: clamp(8rem, 16vw, 15rem);
  height: clamp(3rem, 7vw, 6rem);
  right: clamp(5%, 10vw, 14%);
  bottom: 8%;
  background: var(--mustard);
  clip-path: polygon(0 38%, 12% 12%, 38% 25%, 55% 0, 78% 19%, 100% 8%, 91% 79%, 63% 68%, 42% 100%, 17% 73%);
  opacity: 0.9;
  transform: rotate(-3deg);
}

/* Flores acompañando títulos, no como adorno aislado. */
.section-heading h2::after,
.content-column > h2::after,
.prose > h2::after {
  width: clamp(4.5rem, 8vw, 7rem);
  height: 3.5rem;
  display: inline-block;
  margin-left: 0.7rem;
  vertical-align: middle;
  background: var(--draba-corner) center / contain no-repeat;
  content: "";
}

/* Tarjetas como pequeñas láminas botánicas editoriales. */
.card,
.service-card,
.resource-card,
.value-card,
.contact-card,
.info-card,
.step-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(102, 117, 92, 0.32);
  background-image:
    var(--draba-corner),
    linear-gradient(145deg, rgba(252, 251, 248, 0.98), rgba(238, 232, 222, 0.9));
  background-position: right -1.1rem bottom -0.8rem, center;
  background-repeat: no-repeat;
  background-size: clamp(6rem, 11vw, 9rem) auto, auto;
  box-shadow: 0 1.1rem 3rem rgba(62, 58, 55, 0.09);
}

.card:nth-child(3n + 1),
.service-card:nth-child(3n + 1),
.resource-card:nth-child(3n + 1) {
  border-top: 0.38rem solid var(--mustard);
}

.card:nth-child(3n + 2),
.service-card:nth-child(3n + 2),
.resource-card:nth-child(3n + 2) {
  border-top: 0.38rem solid var(--lavender);
}

.card:nth-child(3n),
.service-card:nth-child(3n),
.resource-card:nth-child(3n) {
  border-top: 0.38rem solid var(--draba);
}

.image-slot,
.hero-media,
.page-hero-media,
.card-media {
  background-image:
    var(--draba-sprig),
    linear-gradient(145deg, rgba(154, 122, 158, 0.48), rgba(210, 170, 43, 0.32));
  background-position: center bottom -2rem, center;
  background-repeat: no-repeat;
  background-size: min(70%, 22rem) auto, auto;
}

/* El panel móvil mantiene la misma identidad de herbario. */
@media (max-width: 900px) {
  .main-navigation {
    background-image:
      var(--draba-sprig),
      radial-gradient(circle at 85% 80%, rgba(210, 170, 43, 0.17), transparent 13rem),
      linear-gradient(155deg, transparent 0 69%, rgba(154, 122, 158, 0.13) 69%);
    background-position: right -4.5rem bottom -5rem, center, center;
    background-repeat: no-repeat;
    background-size: 15rem auto, auto, auto;
    background-color: var(--ivory-main);
  }

  .main-navigation .mobile-menu-sections {
    gap: 2.75rem;
  }

  .main-navigation .mobile-menu-group {
    padding: 1.5rem 1.25rem 1.4rem;
  }

  .button-group,
  .hero-actions,
  .page-actions,
  .cta-actions,
  .form-actions,
  .card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem !important;
  }

  .button + .button,
  .hero-content .button + .button,
  .page-hero-content .button + .button {
    margin-top: 1.5rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .button-group .button + .button,
  .hero-actions .button + .button,
  .page-actions .button + .button,
  .cta-actions .button + .button,
  .form-actions .button + .button,
  .card-actions .button + .button {
    margin-top: 0 !important;
  }
}

@media (max-width: 640px) {
  .hero,
  .page-hero {
    background-position:
      right -5rem bottom -3rem,
      left -3rem top 1rem,
      center,
      center;
    background-size: 17rem auto, 9rem auto, auto, auto;
  }

  .section-heading h2::after,
  .content-column > h2::after,
  .prose > h2::after {
    width: 4.5rem;
    height: 2.8rem;
    margin-left: 0.25rem;
  }
}

/* ----------------------------------------------------------------
   HERO INTEGRADO · TEXTO E IMAGEN EN UNA SOLA COMPOSICIÓN
   El corte real a una columna se reserva para móvil.
   ---------------------------------------------------------------- */

@media (min-width: 761px) {
  .hero-home {
    padding-block: clamp(2.75rem, 5vw, 4.75rem);
  }

  .hero-home > .hero-content.container {
    position: relative;
    z-index: 3;
    width: min(100% - (2 * var(--gutter)), 1320px);
    max-width: 1320px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(25rem, 0.98fr);
    align-items: center;
    gap: 0;
    padding-block: 0;
    transform: none;
  }

  .hero-home > .hero-content.container::before {
    display: none;
  }

  .hero-home .hero-copy {
    position: relative;
    z-index: 4;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(1.25rem, 2vw, 1.75rem);
    padding-block: 2rem;
    transform: translateY(clamp(1.5rem, 3vw, 3rem));
  }

  .hero-home .hero-copy > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero-home .hero-copy h1 {
    max-width: 9.5ch;
  }

  .hero-home .hero-description {
    max-width: 45rem;
  }

  .hero-home .hero-actions {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 1.35rem;
    margin-top: 0.35rem !important;
  }

  .hero-home .hero-actions .button + .button {
    margin: 0 !important;
  }

  .hero-home .hero-media {
    position: relative;
    z-index: 2;
    width: calc(100% + clamp(3rem, 6vw, 6rem));
    min-height: clamp(34rem, 47vw, 43rem);
    margin-left: clamp(-5rem, -5vw, -2.75rem);
    transform: translateY(clamp(-3rem, -3vw, -1.5rem));
  }
}

/* Portátiles con escalado de Windows: conservar las dos columnas. */
@media (min-width: 761px) and (max-width: 1080px) {
  .hero-home > .hero-content.container {
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.92fr);
  }

  .hero-home .hero-copy {
    gap: 1.35rem;
    transform: translateY(2rem);
  }

  .hero-home .hero-media {
    width: calc(100% + 3.5rem);
    min-height: clamp(30rem, 52vw, 36rem);
    margin-left: -2.5rem;
    transform: translateY(-2rem);
  }
}

@media (max-width: 760px) {
  .hero-home > .hero-content.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3.25rem;
  }

  .hero-home .hero-copy,
  .hero-home .hero-media {
    width: 100%;
    margin: 0;
    transform: none;
  }

  .hero-home .hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-home .hero-media {
    min-height: clamp(23rem, 112vw, 34rem);
  }
}

/* ----------------------------------------------------------------
   20. CABECERA AISLADA V2
   Sistema independiente: no hereda el menú anterior.
   ---------------------------------------------------------------- */

.idb-header,
.idb-header *,
.idb-menu-backdrop {
  box-sizing: border-box;
}

.idb-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 244, 238, 0.97);
  color: var(--ink);
}

.idb-header-inner {
  width: min(100% - (2 * var(--gutter)), var(--container));
  min-height: 6.35rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-inline: auto;
}

.idb-brand {
  min-width: 12.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.idb-brand-mark {
  width: 3.75rem;
  height: 3.75rem;
  flex: 0 0 3.75rem;
}

.idb-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.idb-brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  white-space: nowrap;
}

.idb-brand-copy > span {
  margin-top: 0.45rem;
  color: var(--draba-dark);
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.idb-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.3vw, 1.25rem);
  margin-left: auto;
}

.idb-primary-links,
.idb-legal-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.idb-primary-links a {
  display: block;
  padding: 0.7rem 0.48rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.74rem, 0.78vw, 0.88rem);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.idb-primary-links a:hover,
.idb-primary-links a[aria-current="page"] {
  color: var(--draba-dark);
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 0.14rem;
  text-underline-offset: 0.42rem;
}

.idb-language {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
}

.idb-language a {
  color: var(--ink-soft);
  text-decoration: none;
}

.idb-language a[aria-current="page"] {
  color: var(--draba-dark);
}

.idb-orientation {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-button);
  background: var(--mustard);
  color: var(--forest-deep);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.idb-menu-toggle,
.idb-nav-head,
.idb-mobile-lower {
  display: none;
}

.idb-menu-backdrop[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .idb-header-inner {
    min-height: 5.8rem;
    justify-content: space-between;
  }

  .idb-brand-mark {
    width: 3.45rem;
    height: 3.45rem;
    flex-basis: 3.45rem;
  }

  .idb-brand-copy strong {
    font-size: 1.3rem;
  }

  .idb-menu-toggle {
    width: 3.35rem;
    height: 3.35rem;
    display: grid;
    place-content: center;
    gap: 0.32rem;
    flex: 0 0 3.35rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    cursor: pointer;
  }

  .idb-menu-toggle span {
    width: 1.45rem;
    height: 2px;
    display: block;
    border-radius: 99px;
    background: var(--ink);
  }

  .idb-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1301;
    width: min(92vw, 27rem);
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(1.25rem + env(safe-area-inset-top)) 1.4rem
      calc(1.5rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-left: 1px solid var(--border);
    background:
      var(--draba-sprig) right -5rem bottom -6rem / 16rem auto no-repeat,
      var(--ivory-main);
    box-shadow: -1rem 0 3rem rgba(62, 58, 55, 0.2);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(105%);
    transition: transform 260ms ease, opacity 200ms ease, visibility 200ms ease;
  }

  .idb-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .idb-nav-head {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--draba-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .idb-menu-close {
    width: 2.8rem;
    height: 2.8rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    color: var(--ink);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
  }

  .idb-primary-links {
    display: grid;
    align-items: stretch;
    gap: 0;
    margin-top: 0.8rem;
  }

  .idb-primary-links a {
    min-height: 3.65rem;
    display: flex;
    align-items: center;
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    font-weight: 600;
    white-space: normal;
  }

  .idb-primary-links a::after {
    margin-left: auto;
    color: var(--sage);
    content: "→";
    font-family: var(--font-body);
    font-size: 0.9rem;
  }

  .idb-mobile-lower {
    display: block;
    margin-top: 2rem;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: rgba(252, 251, 248, 0.88);
  }

  .idb-mobile-lower > p {
    margin: 0 0 0.55rem;
    color: var(--draba-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .idb-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .idb-legal-links a {
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration-color: var(--sage);
    text-underline-offset: 0.25rem;
  }

  .idb-cookie-button {
    margin-top: 1rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--draba);
    border-radius: 999px;
    background: transparent;
    color: var(--draba-dark);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
  }

  .idb-language {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
  }

  .idb-orientation {
    width: 100%;
    margin-top: 1rem;
  }

  .idb-menu-backdrop {
    position: fixed;
    inset: 0;
    /* Debe quedar bajo .idb-header (1200). Si supera ese nivel,
       Safari desenfoca y bloquea también el panel lateral. */
    z-index: 1150;
    border: 0;
    background: rgba(38, 49, 39, 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  body.idb-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 420px) {
  .idb-brand {
    min-width: 0;
  }

  .idb-brand-copy strong {
    font-size: 1.1rem;
  }

  .idb-brand-copy > span {
    display: none;
  }

  .idb-nav {
    width: 100%;
  }
}

/* Hero real de index.html: integrado en PC y compacto en móvil. */
.page-home .hero-home > .hero-content.container::before {
  display: none !important;
}

@media (min-width: 769px) {
  .page-home .hero-home {
    padding-block: clamp(2.5rem, 4vw, 4rem) !important;
  }

  .page-home .hero-home > .hero-content.container {
    width: min(100% - (2 * var(--gutter)), 1320px) !important;
    max-width: 1320px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.02fr) minmax(24rem, 0.98fr) !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .page-home .hero-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.45rem;
    padding-block: 2rem;
    transform: translateY(2.25rem) !important;
  }

  .page-home .hero-copy > * {
    margin: 0 !important;
  }

  .page-home .hero-actions {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center;
    gap: 1.35rem !important;
  }

  .page-home .hero-actions .button {
    width: auto !important;
    margin: 0 !important;
  }

  .page-home .hero-home .hero-media {
    position: relative;
    z-index: 2;
    width: calc(100% + 4rem) !important;
    min-height: clamp(31rem, 45vw, 41rem) !important;
    margin: -2.5rem 0 0 -3.25rem !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .page-home .hero-home {
    padding-block: 3rem 0 !important;
  }

  .page-home .hero-home > .hero-content.container {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    transform: none !important;
  }

  .page-home .hero-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 1.45rem;
    transform: none !important;
  }

  .page-home .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.25rem !important;
  }

  .page-home .hero-actions .button {
    width: 100% !important;
    margin: 0 !important;
  }

  .page-home .hero-home .hero-media {
    width: calc(100% + (2 * var(--gutter))) !important;
    min-height: clamp(24rem, 112vw, 34rem) !important;
    margin: -0.25rem calc(-1 * var(--gutter)) 0 !important;
    transform: none !important;
    clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  }
}

/* Sistema botánico continuo: cada ilustración aparece completa. */
.page-home .hero-home {
  background:
    radial-gradient(circle at 82% 22%, rgba(154, 122, 158, 0.12), transparent 22rem),
    linear-gradient(115deg, var(--ivory-main) 0 63%, rgba(238, 232, 222, 0.72) 63% 100%) !important;
}

.page-home .hero-home::before {
  position: absolute !important;
  z-index: 1 !important;
  left: clamp(1rem, 3vw, 3rem) !important;
  bottom: 0.75rem !important;
  width: clamp(8rem, 13vw, 12rem) !important;
  height: clamp(14rem, 25vw, 22rem) !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--draba-sprig) center bottom / contain no-repeat !important;
  opacity: 0.3 !important;
  transform: rotate(-8deg) !important;
  content: "" !important;
  pointer-events: none !important;
}

.page-home .hero-home::after {
  position: absolute !important;
  z-index: 1 !important;
  top: clamp(1.5rem, 4vw, 4rem) !important;
  right: clamp(1rem, 2.5vw, 2.5rem) !important;
  bottom: auto !important;
  width: clamp(7rem, 11vw, 10rem) !important;
  height: clamp(6rem, 10vw, 9rem) !important;
  display: block !important;
  background: var(--draba-corner) center / contain no-repeat !important;
  opacity: 0.27 !important;
  transform: rotate(7deg) !important;
  content: "" !important;
  pointer-events: none !important;
}

.page-home .hero-home .hero-media,
.page-home .hero-home .image-slot {
  background: var(--stone-light) !important;
}

.page-home .hero-home .hero-media::after {
  right: -1% !important;
  bottom: 1.5rem !important;
  width: 42% !important;
  height: 4.5rem !important;
  display: block !important;
  background: rgba(210, 170, 43, 0.88) !important;
  clip-path: polygon(0 30%, 13% 12%, 38% 20%, 57% 0, 78% 18%, 100% 5%, 92% 78%, 66% 67%, 42% 100%, 16% 72%) !important;
}

.page-home .hero-home .hero-media img {
  display: block;
  filter: saturate(0.78) contrast(1.03) !important;
}

/* Recorrido floral por la portada: alternancia y misma escala visual. */
.page-home .section-introduction,
.page-home .services-overview,
.page-home .resources-preview,
.page-home .collaboration-preview,
.page-home .newsletter-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-home .section-introduction > .container,
.page-home .services-overview > .container,
.page-home .resources-preview > .container,
.page-home .collaboration-preview > .container,
.page-home .newsletter-section > .container {
  position: relative;
  z-index: 2;
}

.page-home .section-introduction::after,
.page-home .services-overview::after,
.page-home .resources-preview::after,
.page-home .collaboration-preview::after,
.page-home .newsletter-section::after {
  position: absolute;
  z-index: 1;
  width: clamp(9rem, 15vw, 15rem);
  height: clamp(16rem, 28vw, 25rem);
  background: var(--draba-sprig) center bottom / contain no-repeat;
  opacity: 0.17;
  content: "";
  pointer-events: none;
}

.page-home .section-introduction::after {
  right: clamp(1rem, 4vw, 4rem);
  bottom: 1.5rem;
  transform: rotate(8deg);
}

.page-home .services-overview::after {
  left: clamp(1rem, 3vw, 3rem);
  bottom: 2rem;
  transform: scaleX(-1) rotate(5deg);
}

.page-home .resources-preview::after {
  right: clamp(1rem, 5vw, 5rem);
  top: 2rem;
  transform: rotate(4deg);
}

.page-home .collaboration-preview::after {
  left: clamp(1rem, 4vw, 4rem);
  bottom: 1.5rem;
  transform: scaleX(-1) rotate(-7deg);
}

.page-home .newsletter-section::after {
  right: clamp(1rem, 4vw, 4rem);
  bottom: -1rem;
  transform: rotate(7deg);
}

/* Flor completa junto a títulos editoriales; nunca recortada. */
.page-home .section-heading h2::after,
.page-home .section-header h2::after,
.page-home .about-copy h2::after,
.page-home .collaboration-layout h2::after,
.page-home .newsletter-layout h2::after {
  width: clamp(3.5rem, 6vw, 5.5rem);
  height: clamp(2.8rem, 5vw, 4.5rem);
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  background: var(--draba-corner) center / contain no-repeat;
  opacity: 0.75;
  content: "";
}

@media (max-width: 768px) {
  .page-home .hero-home {
    background: var(--ivory-main) !important;
  }

  .page-home .hero-home::before {
    left: 0.4rem !important;
    bottom: 0.5rem !important;
    width: 7rem !important;
    height: 12rem !important;
    opacity: 0.2 !important;
  }

  .page-home .hero-home::after {
    top: auto !important;
    right: 0.5rem !important;
    bottom: 1rem !important;
    width: 5rem !important;
    height: 4.5rem !important;
    opacity: 0.2 !important;
  }

  .page-home .hero-home .hero-media::after {
    bottom: 0.75rem !important;
    width: 48% !important;
    height: 3.5rem !important;
  }

  .page-home .section-introduction::after,
  .page-home .services-overview::after,
  .page-home .resources-preview::after,
  .page-home .collaboration-preview::after,
  .page-home .newsletter-section::after {
    width: 6.5rem;
    height: 11rem;
    opacity: 0.11;
  }

  .page-home .section-introduction::after,
  .page-home .resources-preview::after,
  .page-home .newsletter-section::after {
    right: 0.4rem;
  }

  .page-home .services-overview::after,
  .page-home .collaboration-preview::after {
    left: 0.4rem;
  }

  .page-home .section-heading h2::after,
  .page-home .section-header h2::after,
  .page-home .about-copy h2::after,
  .page-home .collaboration-layout h2::after,
  .page-home .newsletter-layout h2::after {
    width: 3.3rem;
    height: 2.7rem;
    margin-left: 0.2rem;
  }
}

/* ----------------------------------------------------------------
   21. ACCESIBILIDAD, MOVIMIENTO E IMPRESIÓN
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: #8b857d;
  }

  .button,
  .form-field input,
  .form-field select,
  .form-field textarea {
    border-width: 2px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .button,
  .cookie-banner,
  .cookie-preferences,
  .menu-backdrop {
    display: none !important;
  }

  body {
    background: transparent;
    color: #000;
    font-size: 11pt;
  }

  body::before {
    display: none;
  }

  main,
  .section,
  .page-hero {
    padding: 0;
    background: transparent;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li {
    color: #000 !important;
  }
}

/* ================================================================
   INDEX — IMÁGENES REALES Y TARJETAS RESPONSIVE · 2026-07-14
   Estas reglas sustituyen los antiguos huecos decorativos vacíos.
   ================================================================ */

.page-home .service-card,
.page-home .resource-card {
  min-height: 0 !important;
}

.page-home .service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .service-card > * + *,
.page-home .resource-card > * + * {
  margin-top: 0;
}

.page-home .service-card .card-image {
  width: 100%;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  margin: 0 0 .35rem !important;
  overflow: hidden;
  border-radius: calc(var(--radius-card) * .72);
  background: var(--stone-light) !important;
}

.page-home .card-image img,
.page-home .resource-image img,
.page-home .about-media img,
.page-home .collaboration-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.page-home .service-card .card-link {
  margin-top: auto;
}

.page-home .about-media,
.page-home .collaboration-media {
  min-height: clamp(21rem, 38vw, 36rem);
  overflow: hidden;
  border-radius: var(--radius-card);
}

.page-home .about-media img {
  object-position: center;
}

.page-home .resource-card {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.page-home .resource-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: calc(var(--radius-card) * .65);
  background: var(--stone-light);
}

.page-home .resource-card a {
  margin-top: auto;
}

.page-home .collaboration-media img {
  object-position: center 58%;
}

@media (max-width: 760px) {
  .page-home .service-card {
    min-height: 0 !important;
    padding: 1.25rem !important;
  }

  .page-home .service-card .card-image {
    aspect-ratio: 5 / 4;
  }

  .page-home .about-media,
  .page-home .collaboration-media {
    min-height: 19rem;
  }

  .page-home .resource-image {
    aspect-ratio: 3 / 2;
  }
}

/* ================================================================
   PORTADA FINAL · COMPOSICIÓN APROBADA
   Ajuste conjunto de index CA/ES sobre los archivos reales.
   ================================================================ */

.page-home .keep-together {
  white-space: nowrap;
}

.page-home .hero-home {
  min-height: clamp(40rem, 72vh, 52rem);
  padding-block: 0 !important;
  background: var(--ivory-main) !important;
}

.page-home .hero-home > .hero-content.container {
  width: min(100% - (2 * var(--gutter)), 1380px) !important;
  max-width: 1380px !important;
  min-height: clamp(40rem, 72vh, 52rem);
  display: grid !important;
  grid-template-columns: minmax(0, .88fr) minmax(32rem, 1.12fr) !important;
  align-items: center !important;
  gap: clamp(1rem, 3vw, 3.5rem) !important;
  padding-block: clamp(2.5rem, 5vw, 5rem) !important;
  transform: none !important;
}

.page-home .hero-home > .hero-content.container::before {
  display: none !important;
}

.page-home .hero-copy {
  position: relative;
  z-index: 5;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem !important;
  padding: 0 !important;
  transform: none !important;
}

.page-home .hero-copy > * {
  margin: 0 !important;
}

.page-home .hero-copy h1 {
  max-width: none !important;
  color: var(--forest-deep);
  font-size: clamp(4.5rem, 6.7vw, 7.2rem) !important;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .86 !important;
}

.page-home .hero-copy .eyebrow {
  margin-bottom: .15rem !important;
}

.page-home .hero-description {
  max-width: 39rem !important;
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.page-home .hero-actions {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center;
  gap: 1.35rem !important;
  margin-top: .25rem !important;
}

.page-home .hero-actions .button,
.page-home .button-group .button,
.page-home .about-copy .button,
.page-home .collaboration-preview .button {
  width: auto !important;
  min-height: 3.35rem;
  margin: 0 !important;
  border-color: var(--lavender) !important;
  background: var(--lavender) !important;
  color: #fff !important;
}

.page-home .hero-actions .button:hover,
.page-home .button-group .button:hover,
.page-home .about-copy .button:hover,
.page-home .collaboration-preview .button:hover {
  border-color: var(--mustard) !important;
  background: var(--mustard) !important;
  color: var(--forest-deep) !important;
}

.page-home .confidential-note {
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: .9rem;
}

.page-home .hero-home .hero-media {
  position: relative;
  z-index: 3;
  width: calc(100% + clamp(2rem, 5vw, 5rem)) !important;
  height: clamp(36rem, 55vw, 49rem) !important;
  min-height: 0 !important;
  margin: 0 clamp(-4rem, -4vw, -2rem) 0 clamp(-2rem, -2vw, -.75rem) !important;
  overflow: hidden;
  border: 0 !important;
  clip-path: polygon(4% 3%, 96% 0, 100% 88%, 89% 100%, 2% 94%, 0 12%) !important;
  transform: none !important;
  box-shadow: none !important;
}

.page-home .hero-home .hero-media img {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  object-position: center 35%;
}

.page-home .hero-home::before {
  left: 1.5rem !important;
  bottom: 0 !important;
  width: clamp(7rem, 11vw, 11rem) !important;
  height: clamp(13rem, 22vw, 21rem) !important;
  opacity: .2 !important;
}

.page-home .hero-home::after {
  top: auto !important;
  right: 1.5rem !important;
  bottom: .5rem !important;
  width: 8rem !important;
  height: 7rem !important;
  opacity: .2 !important;
}

.page-home .services-overview,
.page-home .resources-preview {
  padding-block: clamp(4rem, 7vw, 6.5rem) !important;
}

.page-home .section-header {
  display: flex !important;
  justify-content: center !important;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

.page-home .section-header > div {
  width: min(100%, 64rem);
}

.page-home .section-header h2 {
  max-width: none !important;
}

.page-home .service-grid,
.page-home .resource-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(1.25rem, 2.5vw, 2rem) !important;
}

.page-home .service-card {
  min-height: 28rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.2rem) !important;
}

.page-home .service-card .card-image {
  min-height: 10rem;
  margin: -1rem -1rem 1.5rem auto;
  background: var(--draba-sprig) right bottom / contain no-repeat !important;
}

.page-home .service-card .card-link {
  margin-top: auto;
  color: var(--lavender-dark);
}

.page-home .about-preview .split-layout {
  align-items: stretch;
}

.page-home .about-media img {
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
}

.page-home .collaboration-layout {
  align-items: center;
}

.page-home .collaboration-layout > div:first-child {
  max-width: 54rem;
}

.page-home .site-footer {
  font-size: .76rem !important;
  line-height: 1.5;
}

.page-home .site-footer h2,
.page-home .footer-heading {
  font-size: .74rem !important;
}

.page-home .site-footer a,
.page-home .site-footer p,
.page-home .footer-bottom p {
  font-size: .74rem !important;
}

@media (max-width: 900px) {
  .page-home .hero-home > .hero-content.container {
    grid-template-columns: minmax(0, .95fr) minmax(24rem, 1.05fr) !important;
    gap: .5rem !important;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(3.7rem, 8vw, 5.5rem) !important;
  }

  .page-home .hero-home .hero-media {
    width: calc(100% + 2rem) !important;
    height: clamp(31rem, 58vw, 39rem) !important;
    margin-left: -1rem !important;
  }
}

@media (max-width: 760px) {
  .page-home .hero-home {
    min-height: auto;
  }

  .page-home .hero-home > .hero-content.container {
    min-height: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding-block: 3.25rem 0 !important;
  }

  .page-home .hero-copy {
    width: 100%;
    gap: 1.35rem !important;
  }

  .page-home .hero-copy h1 {
    font-size: clamp(3.45rem, 15vw, 5rem) !important;
    line-height: .9 !important;
  }

  .page-home .hero-actions {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.15rem !important;
  }

  .page-home .hero-actions .button {
    width: 100% !important;
  }

  .page-home .hero-home .hero-media {
    width: calc(100% + (2 * var(--gutter))) !important;
    height: clamp(28rem, 118vw, 38rem) !important;
    margin: .25rem calc(-1 * var(--gutter)) 0 !important;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%) !important;
  }

  .page-home .service-grid,
  .page-home .resource-grid {
    grid-template-columns: 1fr !important;
  }

  .page-home .service-card {
    min-height: 24rem;
  }

  .page-home .section-header {
    text-align: center !important;
  }

  .page-home .collaboration-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   CORRECCIÓN FINAL INDEX · 2026-07-14
   Debe permanecer al final: elimina huecos antiguos e integra imágenes.
   ================================================================ */

.page-home .service-card,
.page-home .resource-card {
  min-height: 0 !important;
}

.page-home .service-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.page-home .service-card .card-image {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  margin: 0 0 .4rem !important;
  overflow: hidden !important;
  border-radius: 1.2rem !important;
}

.page-home .card-image img,
.page-home .resource-image img,
.page-home .about-media img,
.page-home .collaboration-media img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.page-home .service-card .card-link,
.page-home .resource-card > a {
  margin-top: auto !important;
}

.page-home .about-media,
.page-home .collaboration-media {
  position: relative !important;
  inset: auto !important;
  min-height: clamp(21rem, 38vw, 36rem) !important;
  overflow: hidden !important;
  border-radius: var(--radius-card) !important;
}

.page-home .resource-card {
  display: flex !important;
  flex-direction: column !important;
  gap: .85rem !important;
}

.page-home .resource-image {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  border-radius: 1rem !important;
}

.page-home .collaboration-media img {
  object-position: center 58% !important;
}

@media (max-width: 760px) {
  .page-home .service-card {
    min-height: 0 !important;
    padding: 1.25rem !important;
  }

  .page-home .service-card .card-image {
    aspect-ratio: 5 / 4 !important;
  }

  .page-home .about-media,
  .page-home .collaboration-media {
    min-height: 22rem !important;
  }
}
