/* ==========================================================================
   PLANTOSA — Hoja de estilos principal
   Estructura:
   1. Tokens (colores, tipografía, espaciado)
   2. Base / reset
   3. Layout (section, container, row/col, grid)
   4. Componentes (header, nav, botones, eyebrow, títulos, media, footer…)
   5. Páginas (home, identidad, coscafé, aroma, doreña, recetas, contacto, noticias)
   Breakpoints: 1119px · 1023px · 767px · 479px
   ========================================================================== */

/* 1. TOKENS
   ========================================================================== */
:root {
  /* Marca */
  --c-green: #144233;          /* verde Plantosa */
  --c-green-dark: #0D2B21;     /* titulares */
  --c-black: #06130F;
  --c-mint: #E8F8F3;
  --c-emerald: #2A8868;
  --c-yellow: #FDB81C;
  --c-gold-dark: #B37E02;
  --c-brown-dark: #4F3801;
  --c-cream: #FFFAEF;
  --c-gold: #BE9B60;
  --c-sand: #F2E5B3;
  --c-bg: #F1F1F1;
  --c-text: #000;
  --c-white: #fff;

  /* Coscafé */
  --c-coscafe-yellow: #FEDD00;
  --c-coscafe-brown: #4E3629;

  /* Doreña */
  --c-dorena-bg: #f5e8d8;
  --c-dorena-blue: #0056b7;
  --c-dorena-navy: #003ca8;

  /* Aroma */
  --c-aroma-tan: #d19e67;
  --c-aroma-red: #af3135;
  --c-aroma-wine: #600a11;
  --c-aroma-crimson: #9f2425;
  --c-aroma-cream: #f0dcb3;

  /* Tipografía */
  --font-sans: "Raleway", sans-serif;
  --font-serif: "PT Serif", serif;
  --font-alt: "PT Sans", sans-serif;
  --font-caption: "Montserrat", sans-serif;

  --text-xs: clamp(1.2rem, calc(0.1912045889vw + 1.1388145315rem), 1.4rem);
  --text-s: clamp(1.3rem, calc(0.2868068834vw + 1.2082217973rem), 1.6rem);
  --text-m: clamp(1.6rem, calc(0.1912045889vw + 1.5388145315rem), 1.8rem);
  --text-l: clamp(1.92rem, calc(0.4583173996vw + 1.7733384321rem), 2.3994rem);
  --text-xl: clamp(2.304rem, calc(0.8550671128vw + 2.0303785239rem), 3.1984002rem);
  --text-xxl: clamp(2.7648rem, calc(1.4327604843vw + 2.306316645rem), 4.2634674666rem);

  --type-ratio: 1.33;
  --h6: 1.8rem;
  --h5: calc(var(--h6) * var(--type-ratio));
  --h4: calc(var(--h5) * var(--type-ratio));
  --h3: calc(var(--h4) * var(--type-ratio));
  --h2-scale: calc(var(--h3) * var(--type-ratio));
  --h1: calc(var(--h2-scale) * var(--type-ratio));
  --h2: var(--text-xl);

  /* Espaciado */
  --space-xs: clamp(1.0666666667rem, calc(0.2549394519vw + 0.9850860421rem), 1.3333333333rem);
  --space-s: clamp(1.6rem, calc(0.3824091778vw + 1.4776290631rem), 2rem);
  --space-m: clamp(2.4rem, calc(0.5736137667vw + 2.2164435946rem), 3rem);
  --space-l: clamp(3.1992rem, calc(1.2435946463vw + 2.8012497132rem), 4.5rem);
  --space-xl: clamp(4.2645336rem, calc(2.3761629063vw + 3.50416147rem), 6.75rem);
  --section-space-s: clamp(4.8rem, calc(3.0592734226vw + 3.8210325048rem), 8rem);
  --section-space-l: clamp(9.5976rem, calc(8.0328871893vw + 7.0270760994rem), 18rem);

  --width-m: calc((136.6 * 0.4) * 1rem);
  --width-l: calc((136.6 * 0.6) * 1rem);

  /* Layout */
  --container: 1366px;
  --section-py: var(--section-space-s);
  --section-px: 20px;
  --gap: var(--space-l);

  /* Efectos */
  --shadow: 5px 20px 75px 0px #00000025;
  --radius: 10px;
  --duration: 300ms;

  /* Íconos (máscaras) */
  --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'/%3E%3C/svg%3E");
  --icon-send: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z'/%3E%3C/svg%3E");
  --icon-external: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z'/%3E%3C/svg%3E");
  --icon-basket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17z'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  :root { --type-ratio: 1.26; }
}
@media (max-width: 479px) {
  :root { --type-ratio: 1.2; }
}

/* 2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 60px;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--text-m);
  font-weight: 500;
  line-height: 1.4em;
  letter-spacing: 1px;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--c-green-dark);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p { margin: 1em 0; }

a {
  color: var(--c-black);
  font-weight: 600;
}

img, video { max-width: 100%; height: auto; }
img { display: block; border-style: none; }
figure { margin: 0; }

button, input, textarea, select {
  font: inherit;
  letter-spacing: inherit;
}

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

/* Texto enriquecido */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose > :last-child li:last-child > p { margin-bottom: 0; }
.prose :is(h1, h2, h3, h4, h5, h6) { margin-block: revert; }
.prose > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }

/* 3. LAYOUT
   ========================================================================== */
.section {
  position: relative;
  width: 100%;
  background-position: center center;
  background-size: cover;
}

/* Capa de color sobre fondos (usa --overlay y --overlay-opacity) */
.section--overlay::before,
.col--overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay, transparent);
  background-size: var(--overlay-size, auto);
  background-position: var(--overlay-position, 0 0);
  background-repeat: var(--overlay-repeat, repeat);
  opacity: var(--overlay-opacity, 1);
  mix-blend-mode: var(--overlay-blend, normal);
  pointer-events: none;
}

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
  text-align: left;
}
.container--full { max-width: 100%; }
.container--flush { padding: 0; }
.container--center { align-items: center; text-align: center; }

/* Filas y columnas */
.row {
  --n: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--gap);
  width: 100%;
  max-width: 100%;
}
.col {
  --w: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: calc(var(--w) - var(--gap) * ((var(--n) - 1) / var(--n)));
  text-align: left;
  background-size: cover;
}
.col > * { position: relative; }

@media (max-width: 1119px) {
  .row:not(.row--stack-md):not(.row--stack-sm):not(.row--stack-xs) { flex-direction: column; }
  .row:not(.row--stack-md):not(.row--stack-sm):not(.row--stack-xs) > .col { width: 100%; }
}
@media (max-width: 1023px) {
  .row--stack-md { flex-direction: column; }
  .row--stack-md > .col { width: 100%; }
}
@media (max-width: 767px) {
  .row--stack-sm { flex-direction: column; }
  .row--stack-sm > .col { width: 100%; }
}
@media (max-width: 479px) {
  .row--stack-xs { flex-direction: column; }
  .row--stack-xs > .col { width: 100%; }
}

.row--single { --n: 1; }
.row--single > .col { --w: 100%; }

/* Rejilla simple */
.grid {
  --per-row: 3;
  display: grid;
  grid-template-columns: repeat(var(--per-row), minmax(0, 1fr));
  gap: var(--gap);
  width: 100%;
}

/* Visibilidad por dispositivo */
@media (min-width: 768px) { .only-mobile { display: none !important; } }
@media (max-width: 767px) { .only-desktop { display: none !important; } }

/* 4. COMPONENTES
   ========================================================================== */

/* 4.1 Header ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  background: var(--c-white);
  box-shadow: var(--shadow);
  transition: transform var(--duration) ease-in-out, opacity var(--duration) ease-in-out,
    box-shadow var(--duration) ease-in-out;
}
.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--c-gold);
}
.site-header.is-hidden {
  opacity: 0;
  box-shadow: none;
  pointer-events: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
}
.site-header__logo {
  display: flex;
  width: 220px;
  opacity: 0.9;
  transition: all var(--duration) ease;
}
.site-header__logo:hover { opacity: 1; transform: scale(1.1); }
.site-header__logo img { width: 100%; height: auto; }

/* 4.2 Navegación ---------------------------------------------------------- */
.nav { position: relative; }
.nav__toggle { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item--cta { margin-left: 15px; }
.nav__link {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: var(--c-text);
  font-size: var(--text-m);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--duration) ease, background-color var(--duration) ease;
}
.nav__item:hover > .nav__link,
.nav__item:hover > .nav__toggle-row > .nav__link { color: var(--c-green-dark); }

.nav__toggle-row { display: flex; align-items: stretch; }
.nav__toggle-row .nav__link { padding-right: 0; }
.nav__arrow {
  display: block;
  align-self: stretch;
  padding: 8px 16px 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav__arrow::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  background-color: var(--c-text);
  -webkit-mask: var(--icon-chevron) center / 100% no-repeat;
  mask: var(--icon-chevron) center / 100% no-repeat;
  transition: transform var(--duration) ease, background-color var(--duration) ease;
}
.nav__item.is-open .nav__arrow::after { transform: rotate(-180deg); }

/* Submenú (Marcas) */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  width: 460px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--duration) ease, transform var(--duration) ease, visibility var(--duration) ease;
}
.nav__dropdown::before { /* puente para el hover */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav__dropdown::after { /* flecha */
  content: "";
  position: absolute;
  top: -6px;
  left: 59px;
  width: 12px;
  height: 12px;
  background: var(--c-bg);
  border-top-left-radius: 3px;
  transform: rotate(45deg);
}
@media (min-width: 1024px) {
  .nav__item--dropdown:focus-within > .nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}
.nav__item.is-open > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav__dropdown-body {
  position: relative;
  z-index: 1;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-yellow);
  border-radius: 8px;
  box-shadow: 0 50px 100px -20px #32325d40, 0 30px 60px -30px #0000004d;
  overflow: hidden;
}
.nav__sublist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: var(--space-xs);
  list-style: none;
}
.nav__sublink {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--c-green-dark);
  font-size: 0.875em;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color var(--duration) ease;
}
.nav__sublink:hover { background-color: #F2E5B361; }
.nav__sublink-icon {
  display: block;
  flex-shrink: 0;
  align-self: flex-start;
  width: 104px;
  margin-right: 16px;
  padding: 12px;
  border-radius: 6px;
  overflow: hidden;
}
.nav__sublink-icon img { width: 100%; height: auto; }
.nav__sublink-text {
  display: block;
  color: var(--c-green-dark);
  font-size: calc(var(--text-m) * 0.875);
  font-weight: 600;
  text-transform: uppercase;
}
.nav__sublink-desc {
  display: block;
  color: var(--c-text);
  font-family: var(--font-alt);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6em;
  letter-spacing: 0;
}

/* Navegación móvil */
@media (max-width: 1023px) {
  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav__toggle-icon {
    position: relative;
    display: block;
    width: 32px;
    height: calc(3px * 3 + 6px * 2);
  }
  .nav__toggle-lines,
  .nav__toggle-lines::before,
  .nav__toggle-lines::after {
    position: absolute;
    left: 0;
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--c-green);
    transition: transform 0.2s ease, background-color 0.2s ease, top 0.2s ease, opacity 0.2s ease;
  }
  .nav__toggle-lines { top: 50%; margin-top: -1.5px; }
  .nav__toggle-lines::before,
  .nav__toggle-lines::after { content: ""; }
  .nav__toggle-lines::before { top: -9px; }
  .nav__toggle-lines::after { top: 9px; }
  .nav.is-open .nav__toggle-lines { background-color: transparent; }
  .nav.is-open .nav__toggle-lines::before { top: 0; transform: rotate(45deg); background-color: var(--c-emerald); }
  .nav.is-open .nav__toggle-lines::after { top: 0; transform: rotate(-45deg); background-color: var(--c-emerald); }

  .nav__list {
    position: absolute;
    top: 60px;
    right: -20px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100vw;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background-color: var(--c-mint);
  }
  .nav.is-open .nav__list { display: flex; }
  .nav__item {
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid #5BFFC8;
  }
  .nav__item:last-child { border-bottom: 1px solid #5BFFC8; }
  .nav__link {
    justify-content: space-between;
    width: 100%;
    padding: 20px;
    background-color: var(--c-mint);
    color: var(--c-green-dark);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    text-transform: none;
  }
  .nav__link:hover,
  .nav__item:hover > .nav__link { background-color: var(--c-sand); }
  .nav__link[aria-current="page"] { color: var(--c-gold-dark); }
  .nav__toggle-row { width: 100%; }
  .nav__toggle-row .nav__link { flex: 1; padding-right: 20px; }
  .nav__arrow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
  }
  .nav__arrow::after { width: 20px; height: 20px; background-color: var(--c-green-dark); }
  .nav__toggle-row { position: relative; }

  .nav__dropdown,
  .nav__item.is-open > .nav__dropdown {
    position: static;
    width: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__dropdown { display: none; }
  .nav__item.is-open > .nav__dropdown { display: block; }
  .nav__dropdown::before,
  .nav__dropdown::after { display: none; }
  .nav__dropdown-body {
    border-top: 1px solid #5BFFC8;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--c-mint);
  }
  .nav__sublist { gap: 0; padding: 0; }
  .nav__sublist li + li { border-top: 1px solid #5BFFC8; }
  .nav__sublink { padding: 12px 30px; border-radius: 0; }
  .nav__sublink:hover { background-color: var(--c-sand); }
  .nav__sublink-icon,
  .nav__sublink-desc { display: none; }
  .nav__sublink-text { font-size: 1.6rem; font-weight: 700; text-transform: none; }
  .nav__item--cta { margin-left: 0; padding: 10px 15px; }
  .nav__item--cta .btn { width: 100%; }
}

/* 4.3 Botones -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: var(--text-m);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  transition: all var(--duration) ease-in-out;
}
.btn--icon::after {
  content: "";
  display: block;
  width: 0.9em;
  height: 0.9em;
  margin: 0 4px;
  background-color: currentColor;
  -webkit-mask: var(--icon) 0 0 / 100% 100% no-repeat;
  mask: var(--icon) 0 0 / 100% 100% no-repeat;
  transition: transform var(--duration) ease-in-out, background-color var(--duration) ease-in-out;
}

.btn--primary {
  background: var(--c-yellow);
  color: var(--c-black);
}
.btn--primary:hover {
  background: var(--c-gold-dark);
  color: var(--c-cream);
}

.btn--outline {
  --icon: var(--icon-arrow-right);
  border: 2px solid var(--c-green);
  background: var(--c-bg);
  color: var(--c-green);
  letter-spacing: 2px;
}
.btn--outline:hover {
  border-color: var(--c-gold);
  background: var(--c-gold);
  color: var(--c-white);
}

.btn--coscafe {
  --icon: var(--icon-external);
  border-color: var(--c-coscafe-brown);
  background: var(--c-coscafe-yellow);
  color: var(--c-coscafe-brown);
  font-weight: 700;
  box-shadow: 5px 20px 55px 0px #00000042;
}
.btn--coscafe:hover { background: var(--c-yellow); color: var(--c-coscafe-brown); }

/* 4.4 Eyebrow (línea + etiqueta) ------------------------------------------ */
.eyebrow {
  --eyebrow-color: var(--c-gold);
  --eyebrow-size: 2px;
  display: flex;
  align-items: center;
  width: 150px;
  max-width: 100%;
  font-weight: 600;
  text-transform: uppercase;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 100%;
  border-top: var(--eyebrow-size) solid var(--eyebrow-color);
}
.eyebrow__label { flex-shrink: 0; margin-right: 16px; }
.eyebrow--center::before {
  content: "";
  display: block;
  width: 100%;
  border-top: var(--eyebrow-size) solid var(--eyebrow-color);
}
.eyebrow--center .eyebrow__label { margin: 0 16px; }

/* Línea divisoria simple */
.rule {
  width: 100%;
  border: 0;
  border-top: 2px solid var(--rule-color, var(--c-gold));
  margin: 0;
}

/* 4.5 Título dual --------------------------------------------------------- */
.dual-title { max-width: 100%; line-height: 1.2; }
.dual-title__strong { font-weight: 800; }
.dual-title__accent {
  color: var(--c-gold);
  font-family: var(--font-serif);
  font-style: italic;
}

/* 4.6 Media ---------------------------------------------------------------- */
.media { position: relative; display: flex; flex-direction: column; max-width: 100%; }
.media--rounded { border-radius: var(--radius); overflow: hidden; }
.media--shadow { box-shadow: var(--shadow); }

/* Video embebido (YouTube con carga diferida) */
.video {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.video--rounded { border-radius: var(--radius); box-shadow: var(--shadow); }
.video__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}
.video__frame > iframe,
.video__frame > video,
.video__frame > .yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.yt {
  display: block;
  padding: 0;
  border: 0;
  background-color: #000;
  background-position: center;
  background-size: cover;
  cursor: pointer;
}
.yt::before { /* degradado superior como el reproductor */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0) 100%);
}
.yt__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z' fill='red'/%3E%3Cpath d='M45 24 27 14v20' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: grayscale(100%);
  transition: filter 0.1s cubic-bezier(0, 0, 0.2, 1);
}
.yt:hover .yt__play,
.yt:focus-visible .yt__play { filter: none; }

/* 4.7 Tarjeta con ícono ---------------------------------------------------- */
.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: 0px 0px 40px 0px #00000021;
  text-align: center;
}
.icon-card__icon { display: flex; width: 60px; height: 60px; }
.icon-card__icon svg { width: 100%; height: 100%; fill: var(--c-gold); }
.icon-card__title { margin-bottom: 10px; color: var(--c-gold-dark); font-size: var(--h4); }
.icon-card__text { font-size: var(--text-s); }

/* 4.8 Redes sociales ------------------------------------------------------- */
.social {
  --social-bg: var(--c-green);
  --social-fill: #fff;
  --social-size: 24px;
  --social-pad: 10px;
  --social-radius: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  width: max-content;
  max-width: 100%;
}
.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--social-pad);
  border-radius: var(--social-radius);
  background-color: var(--social-bg);
  transition: all var(--duration) ease;
}
.social__link:hover { transform: scale(1.1); opacity: 0.8; }
.social__link svg { width: var(--social-size); height: var(--social-size); fill: var(--social-fill); }

/* 4.9 Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 6px solid var(--c-gold);
  background-color: var(--c-green);
}
.site-footer__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--gap);
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-m);
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: calc(50% - var(--gap) / 2);
}
.site-footer__col--start { align-items: flex-start; text-align: left; }
.site-footer__col--end { align-items: flex-end; text-align: right; }
.site-footer__copy { color: var(--c-cream); }
.site-footer__credit {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  color: var(--c-gold);
  text-decoration: none;
}
.site-footer__credit img { width: 110px; height: auto; opacity: 0.3; }

@media (max-width: 1119px) {
  .site-footer__inner { flex-direction: column; }
  .site-footer__col { width: 100%; }
}
@media (max-width: 767px) {
  .site-footer__col--start,
  .site-footer__col--end { align-items: center; text-align: center; }
  .site-footer__credit img { width: 80px; }
}

/* 4.10 Volver arriba ------------------------------------------------------- */
.to-top {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 0 10px 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity var(--duration) ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top__ring {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 10px;
  fill: none;
  overflow: visible;
}
.to-top__ring path {
  stroke-width: 4;
  stroke-linecap: round;
  transition: all 200ms linear;
}
.to-top__ring .to-top__track { stroke: var(--c-gold-dark); }
.to-top__ring .to-top__progress { stroke: var(--c-yellow); }
.to-top__icon { display: flex; color: var(--c-green); transition: all 0.2s ease; }
.to-top__icon svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 767px) { .to-top { margin: 0 0 5px 5px; } }

/* 4.11 Animaciones de entrada ---------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="down"] { transform: translateY(-60px); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* 4.12 Lightbox ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) ease, visibility var(--duration) ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
}
.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.45);
  color: #999;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__btn:hover { color: #fff; }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute;
  top: 18px;
  left: 20px;
  color: #999;
  font-size: 16px;
}
@media (max-width: 767px) {
  .lightbox__img { max-width: 100vw; }
}

/* 5. PÁGINAS
   ========================================================================== */

/* 5.1 HOME ----------------------------------------------------------------- */
.home-hero { background-color: var(--c-coscafe-yellow); }
.home-hero .video__frame--portrait { padding-top: 177.7777777778%; }

/* Nuestras marcas */
.home-brands {
  background-image: url("../img/top-view-of-wooden-spoon-and-canvas-bag-of-coffee-beans.webp");
  background-size: cover;
  background-repeat: no-repeat;
  --overlay: var(--c-black);
  --overlay-opacity: 0.7;
}
.home-brands .container { gap: var(--space-l); }
.home-brands, .home-brands * { color: var(--c-bg); }
.home-brands h3 { color: var(--c-sand); }
.home-brands__intro { --n: 1; }
.home-brands__intro .col {
  --w: 100%;
  gap: var(--space-m);
  align-items: center;
  text-align: center;
}
.home-brands__lead { width: var(--width-l); max-width: 100%; font-size: 1.6rem; }
.home-brands__card {
  --n: 3;
  padding: var(--space-m);
  border: 1px solid var(--c-gold);
  border-bottom: 0;
  border-radius: 20px;
  background-color: #FFFFFFCF;
  box-shadow: var(--shadow);
}
.home-brands__card .col {
  --w: 33.33%;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home-brands__card .col:nth-child(1) { gap: 1rem; }
.home-brands__card .col:nth-child(2) { flex-direction: row; flex-wrap: wrap; }
.home-brands__card .col:nth-child(3) { --w: 33.34%; }
.home-brands__logo { display: block; width: 300px; max-width: 100%; }
.home-brands__logo img { width: 100%; }
.home-brands__logo--dorena { width: 280px; }
.home-brands__more { font-size: 1.2rem; font-weight: 500; text-transform: uppercase; }

@media (max-width: 767px) {
  .home-brands .container { align-items: center; text-align: center; }
  .home-brands__card { width: 80%; }
}
@media (max-width: 479px) {
  .home-brands__lead { font-size: 1.5rem; }
}

/* Banner Coscafé 70 años */
.home-coscafe {
  background-image: url("../img/shape-divider-coscafe.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0.89% 31%;
  --overlay: var(--c-bg);
  --overlay-opacity: 0.8;
}
.home-coscafe .col--media { --w: 69.95%; background-color: #fff; }
.home-coscafe .col--text { --w: 30.05%; gap: var(--space-s); justify-content: center; }
.home-coscafe__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.home-coscafe__badge { width: 100px; }
.home-coscafe__logo { width: 270px; max-width: 100%; }
@media (max-width: 767px) {
  .home-coscafe .col--text { align-items: center; text-align: center; }
}

/* Bloques Identidad / Recetas */
.home-feature {
  background-image: url("../img/lineal-para-fondo-claro-horizontal.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0 -50%;
  --overlay: var(--c-bg);
  --overlay-opacity: 0.9;
}
.home-feature .col--text { gap: var(--space-s); justify-content: center; }
.home-feature--identity .col--text { --w: 32%; }
.home-feature--identity .col--media { --w: 68%; }
.home-feature--recipes .col--text { --w: 30.05%; }
.home-feature--recipes .col--media { --w: 69.95%; }

/* 5.2 IDENTIDAD ------------------------------------------------------------ */
.id-dark {
  background-image: url("../img/manos-sosteniendo-granos-de-cafe.webp");
  --overlay: var(--c-green);
  --overlay-opacity: 0.8;
}
.id-dark .container { gap: var(--space-xl); }
.id-hero__head { --n: 1; }
.id-hero__head .col { --w: 100%; gap: 2rem; align-items: center; text-align: center; }
.id-hero__logo { width: 250px; }
.id-hero__title { color: var(--c-dorena-bg); font-size: 4rem; }

.id-split .col--text { gap: var(--space-m); justify-content: center; }
.id-split .col--text :is(h1, h2, h3, h4, h5, h6) { color: var(--c-gold); }
.id-split__kicker { font-size: var(--text-s); text-transform: uppercase; }
.id-split__lead { color: var(--c-bg); font-size: var(--text-l); line-height: 3.8rem; }
.id-split__body { color: var(--c-bg); font-weight: 300; }
.id-split__photo img { object-fit: cover; aspect-ratio: 4 / 3; }

.id-team__photos { position: relative; }
.id-team__inset {
  position: absolute;
  left: -30px;
  bottom: -30px;
  width: 180px;
}
.id-team__inset img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

@media (max-width: 767px) {
  .id-hero__title { font-size: 3rem; }
  .id-team__inset { display: none; }
}
@media (max-width: 479px) {
  .id-hero__logo { width: 150px; }
  .id-hero__title { font-size: 2rem; }
  .id-split__lead { font-size: 1.8rem; line-height: 1.8em; }
}

/* Política de calidad */
.id-quality {
  background-color: var(--c-black);
  background-image: url("../img/lineal-para-fondo-claro-horizontal.png");
}
.id-quality .col:first-child { --w: 32.62%; justify-content: center; }
.id-quality .col:last-child { --w: 67.38%; }
.id-quality__title {
  color: var(--c-yellow);
  font-size: var(--text-xl);
  font-weight: 300;
  text-transform: uppercase;
}
.id-quality__text {
  color: var(--c-mint);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.4em;
  text-shadow: 2px 2px 5px #0006;
}
@media (max-width: 767px) {
  .id-quality .container { padding-left: var(--space-m); padding-right: var(--space-m); }
  .id-quality .col { align-items: center; text-align: center; }
  .id-quality__text { font-size: 1.6rem; }
}
@media (max-width: 479px) {
  .id-quality__text { font-size: 1.8rem; }
}

/* Historia */
.id-history {
  background-image: url("../img/perfil-de-taza-sobre-granos-de-cafe.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left top;
  background-attachment: fixed;
  --overlay: var(--c-yellow);
  --overlay-opacity: 0.7;
}
.id-history .container { gap: var(--space-l); }
.id-panel {
  gap: var(--space-m);
  padding: var(--space-l);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.id-panel--sand { --overlay: var(--c-sand); --overlay-opacity: 0.7; }
.id-panel--green { --overlay: var(--c-green); --overlay-opacity: 0.2; }
.id-panel--deep { --overlay: var(--c-green); --overlay-opacity: 0.7; }
.id-panel--gold { --overlay: #FDB81C9E; --overlay-opacity: 0.7; }
.id-panel--green {
  justify-content: center;
  border-top: 1px solid #FFFAEF14;
  border-left: 1px solid #F2E5B326;
  border-right: 1px solid var(--c-emerald);
}
.id-history__title { color: var(--c-green); }
.id-history__quote {
  color: var(--c-mint);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.4em;
  text-shadow: 2px 2px 5px #0006;
}
@media (max-width: 479px) {
  .id-history__title { font-size: 2.6rem; }
  .id-history__quote { font-size: 1.8rem; }
}

/* Galería tipo mosaico */
.gallery {
  --columns: 3;
  --gallery-gap: var(--space-m);
  display: flex;
  gap: var(--gallery-gap);
  width: 100%;
}
.gallery__column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--gallery-gap);
  min-width: 0;
}
.gallery:not(.is-ready) { display: block; columns: var(--columns); column-gap: var(--gallery-gap); }
.gallery:not(.is-ready) .gallery__item { margin-bottom: var(--gallery-gap); break-inside: avoid; }
.gallery__item {
  display: block;
  border-radius: 0.5rem;
  box-shadow: 5px 10px 20px -5px #00000040;
  overflow: hidden;
}
.gallery__item img { width: 100%; transition: transform var(--duration) ease; }
.gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 1119px) { .gallery { --gallery-gap: 10px; } }
@media (max-width: 1023px) { .gallery { --columns: 2; --gallery-gap: var(--space-l); } }
@media (max-width: 479px) { .gallery { --columns: 1; } }

/* Misión, visión y valores */
.id-values {
  background-image: url("../img/lineal-para-fondo-claro-horizontal.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 10% -20%;
  --overlay: var(--c-cream);
  --overlay-opacity: 0.8;
}
.id-values .row { --n: 3; }
.id-values .col { --w: 33.33%; }
.id-values .col:last-child {
  --w: 33.34%;
  gap: var(--space-s);
  padding: var(--space-s);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.id-values__title { color: var(--c-gold); }
.id-values__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.id-values__list li {
  width: 100%;
  padding: var(--space-xs);
  color: var(--c-brown-dark);
  font-size: var(--text-l);
  font-weight: 800;
  transition: background-color var(--duration) ease;
}
.id-values__list li:hover { background-color: var(--c-sand); }

/* Premio ASI */
.id-award { background-color: var(--c-bg); }
.id-award .col:first-child { --w: 48.53%; gap: var(--space-m); align-items: center; text-align: center; }
.id-award .col:last-child { --w: 51.47%; gap: var(--space-m); justify-content: center; }
.id-award__logo { width: 300px; }

/* Noticias */
.id-news { background-color: var(--c-cream); }
.id-news__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
  width: 100%;
  text-align: center;
}
.id-news .eyebrow {
  --eyebrow-color: var(--c-gold-dark);
  width: 100%;
  color: var(--c-green);
  font-size: var(--text-xl);
  letter-spacing: 5px;
}

.post-grid {
  --per-row: 2;
  display: grid;
  grid-template-columns: repeat(var(--per-row), minmax(0, 1fr));
  gap: var(--space-m);
  width: 100%;
  margin-bottom: 64px;
}
.post-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--c-sand);
  border-radius: 20px;
  background-color: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}
.post-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 60%;
}
.post-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.post-card__title { margin-bottom: 28px; font-size: calc(var(--text-m) * 1.25); }
.post-card__title a { color: var(--c-green-dark); text-decoration: none; }
.post-card__excerpt { margin: 0 0 36px; font-size: calc(var(--text-m) * 0.875); }
.post-card .btn { margin-top: auto; }
@media (max-width: 1119px) { .post-grid { --per-row: 3; } }
@media (max-width: 1023px) { .post-grid { --per-row: 2; } }
@media (max-width: 767px) { .post-grid { --per-row: 1; } }

/* 5.3 COSCAFÉ -------------------------------------------------------------- */
.coscafe-heading {
  color: var(--c-coscafe-brown);
  text-transform: uppercase;
  border-bottom: 3px solid var(--c-coscafe-yellow);
}

.coscafe-intro { background-color: var(--c-mint); }
.coscafe-intro .col:first-child { --w: 35%; gap: 3rem; }
.coscafe-intro .col:last-child {
  --w: 65%;
  gap: 2rem;
  padding: var(--space-s);
  border-radius: var(--radius);
  background-color: var(--c-bg);
  box-shadow: var(--shadow);
}
.coscafe-intro__photo {
  border-radius: var(--radius);
  border-bottom: 6px solid var(--c-coscafe-yellow);
  overflow: hidden;
}
.coscafe-intro__photo img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Bloque logo + texto bajo el video (Coscafé y Aroma) */
.brand-note {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-s);
}
.brand-note__logo { width: 30%; }
.brand-note__text { width: 65%; }
@media (max-width: 767px) {
  .coscafe-intro .col:last-child { padding: 0; }
  .brand-note { flex-direction: column; gap: var(--space-m); }
  .brand-note__logo { width: 80%; }
  .brand-note__text { width: 100%; }
}

.coscafe-manifesto {
  background-color: var(--c-cream);
  --overlay: url("../img/lineal-masa-para-fondo-claro-horizontal.png");
  --overlay-opacity: 0.2;
}
.coscafe-manifesto .col:first-child { gap: var(--space-m); }
.coscafe-manifesto .col:last-child { gap: 1rem; align-items: flex-end; justify-content: flex-end; text-align: right; }

.coscafe-profile {
  z-index: 1;
  background-color: #fff;
  background-image: url("../img/coffee-beans-corner.webp");
  background-size: 170px auto;
  background-repeat: no-repeat;
  background-position: left bottom;
  box-shadow: var(--shadow);
}
.coscafe-profile .container { justify-content: center; padding-bottom: var(--section-space-l); }
.coscafe-profile .col:first-child { --w: 50.03%; gap: var(--space-m); justify-content: center; }
.coscafe-profile .col:last-child { --w: 49.97%; align-items: flex-end; justify-content: flex-end; text-align: right; }
.coscafe-profile__text p,
.text-lg p { font-size: 2.2rem; line-height: 1.4em; }
.coscafe-profile__cup { will-change: transform; }
@media (max-width: 767px) {
  .coscafe-profile__cup { border-radius: 50%; overflow: hidden; }
}

/* Catálogo de productos */
.catalog { background-color: #fff; }
.catalog .container { gap: var(--space-xl); }
.catalog__head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.catalog__badge { width: 100px; height: auto; }
.catalog .col { align-items: center; text-align: center; }
.catalog .row--3 { --n: 3; }
.catalog .row--3 > .col { --w: 33.33%; }
.catalog .row--3 > .col:last-child { --w: 33.34%; }
.catalog .row--4 { --n: 4; }
.catalog .row--4 > .col { --w: 25%; }
.catalog .row--2 { --n: 2; }
.catalog .row--2 > .col { --w: 50%; }
.product__img { height: 300px; width: auto; }
.product__name { margin: 0; }
@media (max-width: 767px) {
  .catalog__head .coscafe-heading { width: 80%; text-align: center; }
  .catalog__badge { width: 70px; }
}
@media (max-width: 479px) {
  .catalog__badge { width: 60px; }
}

.coscafe-split .col--text { gap: var(--space-s); justify-content: center; }
.coscafe-split__title {
  color: var(--c-coscafe-brown);
  font-size: var(--text-xl);
  border-bottom: 3px solid var(--c-coscafe-yellow);
}
.coscafe-combi {
  background-color: var(--c-coscafe-brown);
  --overlay: url("../img/product-shot-de-empaques-de-coscafe.webp");
  --overlay-size: cover;
  --overlay-repeat: no-repeat;
  --overlay-position: center bottom;
  --overlay-blend: multiply;
}
.coscafe-combi .col--text { gap: var(--space-m); justify-content: center; }
.coscafe-combi .coscafe-heading { color: var(--c-bg); }
.coscafe-combi p { color: var(--c-bg); }
.coscafe-house { background-color: #fff; }
.coscafe-house .col--text { gap: var(--space-m); justify-content: center; }
.coscafe-house__photo { border-radius: 8px; overflow: hidden; }
.coscafe-house__photo img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 767px) {
  .coscafe-combi .container,
  .coscafe-house .container { padding-top: 40px; padding-bottom: 40px; }
}
.coscafe-stripe {
  background-color: #fff;
  background-image: url("../img/franja-amarilla-coscafe.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 0 -60%;
}
.coscafe-stripe .container { height: 300px; }

/* 5.4 AROMA ---------------------------------------------------------------- */
.aroma-hero {
  background-color: var(--c-aroma-tan);
  --overlay: url("../img/lineal-para-fondo-claro-horizontal.png");
  --overlay-opacity: 0.2;
}
.aroma-hero .container,
.aroma-history .container { align-items: center; text-align: center; justify-content: center; }
.aroma-hero .col:first-child { --w: 38.27%; gap: var(--space-l); justify-content: center; }
.aroma-hero .col:last-child { --w: 61.73%; }
.aroma-hero__lead {
  width: var(--width-m);
  max-width: 100%;
  color: var(--c-aroma-wine);
  font-size: var(--text-xl);
  line-height: 4rem;
}
.aroma-hero .social { --social-bg: var(--c-aroma-crimson); --social-fill: var(--c-aroma-cream); }
.aroma-shadow { box-shadow: var(--shadow); }

.aroma-history { background-color: var(--c-aroma-red); }
.aroma-history .col:first-child { gap: var(--space-l); justify-content: center; }
.aroma-history__title { color: var(--c-aroma-cream); font-weight: 800; letter-spacing: 2px; }
.aroma-history__text { color: var(--c-bg); font-size: var(--text-l); line-height: 3.5rem; }

.aroma-mobile-cover { display: none; }
@media (max-width: 479px) {
  .aroma-mobile-cover {
    display: flex;
    width: 100vw;
    max-width: 100vw;
    box-shadow: 5px 20px 75px 0px #00000040;
  }
  .aroma-mobile-cover img { width: 100%; aspect-ratio: 4 / 3; transform: scale(1.01) translateZ(0); transform-origin: 58.87% 100%; }
  .aroma-hero .container,
  .aroma-history .container { gap: var(--space-m); max-width: 100%; padding-top: 0; }
}
@media (max-width: 767px) {
  .aroma-hero .col:first-child,
  .aroma-history .col:first-child,
  .aroma-gallery .col:first-child { order: 2; }
  .aroma-hero .col:last-child,
  .aroma-history .col:last-child,
  .aroma-gallery .col:last-child { order: 1; }
  .aroma-hero__cover { aspect-ratio: 4 / 3; object-fit: cover; object-position: 100% 50%; }
}

.aroma-gallery { background-color: var(--c-mint); }
.aroma-gallery .col:first-child { --w: 29%; gap: 3rem; }
.aroma-gallery .col:first-child img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0%; }
.aroma-gallery .col:last-child {
  --w: 71%;
  gap: 2rem;
  padding: var(--space-s);
  border-radius: var(--radius);
  background-color: var(--c-bg);
  box-shadow: var(--shadow);
}
@media (max-width: 767px) {
  .aroma-gallery .col:last-child { padding: 0; }
  .aroma-gallery .brand-note__logo { width: 100%; }
}
.aroma-catalog__title { color: var(--c-coscafe-brown); font-weight: 600; text-transform: uppercase; }
@media (max-width: 767px) { .aroma-catalog__title { width: 80%; } }

/* 5.5 DOREÑA --------------------------------------------------------------- */
.dorena { background-color: var(--c-dorena-bg); }
.dorena .container { gap: var(--space-xl); }
.dorena-top { --n: 3; }
.dorena-top .col:nth-child(1) {
  --w: 33.33%;
  gap: var(--space-m);
  align-items: center;
  justify-content: center;
  padding: var(--space-m);
  border-radius: var(--space-m);
  background-color: var(--c-dorena-navy);
  text-align: center;
}
.dorena-top .col:nth-child(2) { --w: 33.33%; gap: var(--space-m); }
.dorena-top .col:nth-child(3) {
  --w: 33.34%;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  border-radius: var(--space-m);
  background-image: url("../img/hojas-derechas.webp");
  background-size: 150px auto;
  background-repeat: no-repeat;
  background-position: right top;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dorena-top__logo { width: 150px; }
.dorena-top__logo img { aspect-ratio: 1 / 1; object-fit: cover; }
.dorena-light { color: var(--c-bg); text-align: center; }
.dorena-buy {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: var(--space-s);
  border-radius: var(--space-m);
  background-color: var(--c-dorena-blue);
}
.btn--dorena {
  --icon: var(--icon-basket);
  display: flex;
  width: 100%;
  background: var(--c-bg);
  color: var(--c-dorena-blue);
  font-weight: 500;
  text-transform: none;
}
.btn--dorena:hover { background: var(--c-gold); color: var(--c-bg); }
.dorena-buy__store { width: 100px; padding: var(--space-xs); }
.dorena-top__quote { padding: var(--space-s); text-align: center; }

.dorena-welcome { --per-row: 3; }
.dorena-welcome__intro { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dorena-welcome__title {
  color: var(--c-dorena-blue);
  font-size: var(--text-l);
  font-weight: 700;
  text-align: center;
}
.dorena-welcome__year img { aspect-ratio: 1 / 1; object-fit: cover; }
.dorena-welcome__year figcaption {
  margin: 0;
  padding: 16px;
  font-family: var(--font-caption);
  text-align: center;
}
.dorena-welcome .video { grid-column: span 2; border-radius: var(--space-m); box-shadow: var(--shadow); }

.dorena-story { --per-row: 3; }
.dorena-story__logo {
  border: 2px solid var(--c-bg);
  border-radius: var(--space-m);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dorena-story__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-m);
  padding: var(--space-m);
  text-align: center;
}
.dorena-story__title { color: var(--c-dorena-navy); }
.dorena-story__text > div:first-child { display: flex; flex-direction: column; align-items: center; width: 100%; }
.dorena-story__lead { font-weight: 800; }
.dorena-welcome__year { position: relative; }
.dorena-welcome__year figcaption { position: absolute; left: 0; right: 0; bottom: 0; }
.dorena-story__why {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-s);
  padding: var(--space-m);
  border-radius: var(--space-m);
  background-color: var(--c-dorena-blue);
  background-image: url("../img/blue-bg.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left bottom;
}
@media (max-width: 1023px) {
  .dorena-welcome, .dorena-story { --per-row: 2; }
}
@media (max-width: 767px) {
  .dorena-welcome, .dorena-story { --per-row: 1; }
  .dorena-welcome .video { grid-column: auto; }
  .dorena-welcome__title { font-size: var(--text-xxl); }
}

/* 5.6 RECETAS -------------------------------------------------------------- */
.recipes-hero {
  background-image: url("../img/coffee-paper-1.webp");
  background-size: cover;
}
.recipes-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/divider-recetas.svg") left bottom / 100% 320px no-repeat;
  pointer-events: none;
}
.recipes-hero .container { z-index: 1; }
.recipes-hero__title { color: var(--c-sand); text-shadow: 5px 3px 5px #14423385; }
.recipes-hero__brand { color: var(--c-coscafe-yellow); }
@media (max-width: 767px) {
  .recipes-hero::after { background-size: 200% 100%; }
}

.recipe--alt { background-color: var(--c-cream); }
.recipe .col--text { gap: var(--space-s); justify-content: center; }
.recipe__title { color: var(--c-coscafe-brown); }
.recipe__rule { width: 100px; }
.recipe .prose h4 { font-size: var(--text-l); }
@media (max-width: 767px) {
  .recipe--reverse .col--media { order: -1; }
}

/* 5.7 CONTACTO ------------------------------------------------------------- */
.contact-hero {
  background-image: url("../img/costales.webp");
  --overlay: var(--c-green);
  --overlay-opacity: 0.4;
}
.contact-hero__title { color: var(--c-cream); }

.contact {
  background-image: url("../img/coffee-beans.webp");
  background-size: cover;
  --overlay: var(--c-gold);
  --overlay-opacity: 0.5;
}
.contact .container { justify-content: center; }
.contact .col:last-child { justify-content: flex-start; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background-color: var(--c-cream);
}
.contact-card__title { color: var(--c-green); }
.contact-card__intro { color: var(--c-emerald); }
.contact-card__items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-s);
  width: 100%;
  margin: 14px 0;
}
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.contact-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}
.contact-item__icon { display: flex; flex-shrink: 0; width: 28px; height: 28px; }
.contact-item__icon svg { width: 100%; height: 100%; fill: var(--c-gold); }
.contact-item__title { margin-bottom: 14px; color: var(--c-emerald); font-size: var(--h5); }
.contact-item__text { color: var(--c-emerald); font-size: var(--text-m); font-weight: 700; }
.contact-card .rule { --rule-color: var(--c-sand); }
.contact-card .rule--thin { --rule-color: var(--c-gold); border-top-width: 1px; }
.contact-card .social {
  --social-bg: var(--c-mint);
  --social-fill: var(--c-gold-dark);
  --social-size: 28px;
  --social-pad: 14px;
  gap: 14px;
}
@media (max-width: 1119px) {
  .contact-item { width: 47%; }
  .contact-item--address { width: 49%; }
}
@media (max-width: 1023px) {
  .contact-item,
  .contact-item--address { width: 30%; }
}
@media (max-width: 767px) {
  .contact-card { align-items: center; text-align: center; }
  .contact-item,
  .contact-item--address { width: 100%; }
}
@media (max-width: 479px) {
  .contact-item__text { font-size: 1.2rem; }
}

/* Formulario */
.form-card {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  padding: 56px 28px;
  border-radius: var(--radius);
  box-shadow: 5px 20px 75px 0px #0000004D;
}
@media (max-width: 1023px) { .form-card { position: relative; } }
.form {
  display: grid;
  gap: 16px;
  color: #374151;
}
.form__field { display: flex; flex-direction: column; }
.form__input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--c-green);
  border-radius: 5px;
  background-color: #E8F8F3F5;
  box-shadow: var(--shadow);
  color: #000;
  font-size: var(--text-m);
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  outline: none;
  transition: border-color var(--duration) ease;
}
.form__input::placeholder { color: #787E8B; }
.form__input:focus { border-color: var(--c-gold); }
textarea.form__input { height: 100px; line-height: 1.4; resize: vertical; }
.form__footer { display: flex; justify-content: flex-start; }
.form__submit { --icon: var(--icon-send); box-shadow: var(--shadow); }

/* 5.8 NOTICIAS (detalle) --------------------------------------------------- */
.article { background-color: #F2F2F2; }
.article .container { align-items: center; text-align: center; }
.article-hero {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 60px 0;
}
.article-hero__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 45%;
  padding: min(max(1.4rem, calc(1.4rem + ((1vw - 0.32rem) * 0.75))), 2rem);
  border: 1px solid #F1F1F199;
  background-color: #FFFFFF7D;
  box-shadow: 5px 20px 75px -20px #00000025;
  text-align: left;
}
.article-hero__title { font-size: var(--text-xxl); }
.article-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 32px;
  padding: 16px;
  border: 1px solid #C7C7C7;
  font-size: 0.8438rem;
  line-height: 1.264rem;
}
.article-meta__item { color: var(--c-text); }
.article-meta__author { color: var(--c-green); }
.article-meta__item:not(:last-child) { padding-right: 8px; border-right: 1px solid #C7C7C7; }
.article-hero__excerpt { font-weight: 700; }
.article-hero__excerpt p { margin: 1em 0; }
.article-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 70%;
  background-color: var(--c-green);
}
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.article-body { width: 100%; max-width: var(--container); }
.article-body .row { --gap: 64px; margin-top: 60px; }
.article-body .col:first-child { --w: 70.06%; }
.article-body .col:last-child {
  --w: 29.94%;
  gap: 32px;
  border: 1px solid #E0E0E0;
  border-radius: 2px;
  background-color: var(--c-mint);
  box-shadow: 5px 20px 75px 0px #00000003;
}
.article-content {
  width: 960px;
  max-width: 100%;
  font-size: var(--text-m);
  line-height: 1.6em;
  text-align: left;
}
.article-content :is(h1, h2, h3, h4, h5, h6) { margin-block: revert; }
.article-content img { height: auto; }
.article-content figcaption { margin: 0.5em 0 1em; }
.article-content hr { margin: 0.5em 0; border: 0; border-top: 2px solid #808080; }
.article-content .text-medium { font-size: 20px; }
.article-content .text-large { font-size: 2.1rem; }
.article-content figure { margin: 1em 0; }
.article-content blockquote { margin: 1em 40px; }
.article-content a { color: var(--c-black); }
.article-aside__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  padding: min(max(1.68rem, calc(1.68rem + ((1vw - 0.32rem) * 0.9))), 2.4rem)
    min(max(1.12rem, calc(1.12rem + ((1vw - 0.32rem) * 0.6))), 1.6rem);
  background-color: #F2F2F2;
}
.article-aside__title { font-size: var(--text-l); }
.article-aside__box--follow { gap: 8px; }
.article-aside__brands { display: flex; flex-direction: column; gap: 0; width: 100%; }
.article-aside__label {
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid #C7C7C7;
  color: var(--c-green-dark);
  font-size: 2rem;
  font-weight: 700;
  line-height: 3rem;
}
.article-aside .social {
  --social-bg: var(--c-gold-dark);
  --social-radius: 0;
  gap: 7px;
  margin-top: 16px;
}
@media (min-width: 1200px) {
  .article-body .col:last-child { position: sticky; top: 32px; height: fit-content; }
}

.article-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid #C7C7C7;
}
.article-nav__link {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  color: var(--c-text);
  text-decoration: none;
}
.article-nav__link--prev { text-align: left; }
.article-nav__link--next { margin-left: auto; text-align: right; }
.article-nav__content { display: flex; flex-direction: column; gap: 16px; }
.article-nav__link--next .article-nav__content { align-items: flex-end; }
.article-nav__title { max-width: 30ch; font-size: 18px; font-weight: 700; line-height: 1.2; }
.article-nav__label {
  color: var(--c-green);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.article-nav__icon { display: flex; margin-bottom: 3px; color: var(--c-green); }
.article-nav__icon svg { width: 24px; height: 24px; fill: currentColor; }

@media (max-width: 1119px) {
  .article-body { padding-right: min(max(1.4rem, calc(1.4rem + ((1vw - 0.32rem) * 0.75))), 2rem); padding-left: min(max(1.4rem, calc(1.4rem + ((1vw - 0.32rem) * 0.75))), 2rem); }
}
@media (max-width: 1023px) {
  .article-meta { gap: 16px; }
}
@media (max-width: 767px) {
  .article-hero { padding: 0; }
  .article-hero__card { width: 100%; }
  .article-hero__media { position: relative; width: 100%; }
  .article-body { padding-top: 24px; }
  .article-nav { flex-direction: column; gap: 24px; }
  .article-nav__link { width: 100%; }
}
@media (max-width: 479px) {
  .article-meta { display: none; }
}
