@import url('/assets/fonts/fonts.css');

/* ==========================================================================
   ALJURA — hoja de estilos principal
   Asociación para la Alfabetización Jurídica en Andalucía
   ========================================================================== */

:root {
  --wine: #8C4955;
  --wine-dark: #6E3843;
  --wine-darker: #542A33;
  --rose: #B87D7F;
  --rose-light: #D6ACAD;
  --steel: #B0B7BF;
  --sand: #FFBC7D;

  --ink: #2B2226;
  --ink-soft: #574A4F;
  --muted: #7A6E72;
  --line: #E6DEDF;
  --paper: #FFFFFF;
  --paper-alt: #FAF6F6;
  --paper-tint: #F3EAEB;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1180px;
  --wrap-narrow: 820px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(43, 34, 38, .09);
  --shadow-lg: 0 22px 60px rgba(43, 34, 38, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

/* --------------------------------------------------------------- reset -- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/*
 * Las imágenes se sirven dentro de <picture> para poder ofrecer WebP. El
 * envoltorio no debe crear una caja propia: con display:contents la <img>
 * participa directamente en el layout del contenedor (grid, flex, márgenes
 * automáticos) igual que si el <picture> no existiera.
 */
picture { display: contents; }

a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.65rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

strong, b { font-weight: 700; color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ------------------------------------------------------------- helpers -- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--alt { background: var(--paper-alt); }
.section--tint { background: var(--paper-tint); }

.section--wine {
  background: var(--wine);
  color: #fff;
}
.section--wine h1, .section--wine h2, .section--wine h3, .section--wine strong { color: #fff; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 .9rem;
}
.section--wine .eyebrow { color: var(--rose-light); }

.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.65; }

.text-center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wine);
  color: #fff;
  padding: .8rem 1.4rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* -------------------------------------------------------------- botones -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 2rem;
  border-radius: 100px;
  border: 2px solid var(--wine);
  background: var(--wine);
  color: #fff;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: #fff; }

.btn--light { background: #fff; border-color: #fff; color: var(--wine); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }

.btn--outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--wine); }

/* ------------------------------------------------------------- topbar --- */

.topbar {
  background: var(--wine-darker);
  color: #fff;
  font-size: .875rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  min-height: 40px;
}
.topbar__mail {
  margin-right: auto;
  color: #fff;
  text-decoration: none;
  opacity: .9;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.topbar__mail:hover { color: #fff; opacity: 1; text-decoration: underline; }

.social { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: currentColor;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.social a:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); color: currentColor; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wine);
  box-shadow: 0 2px 18px rgba(43, 34, 38, .14);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: block; flex: none; }
.brand img { width: 190px; }

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: .7rem 1rem;
  font-weight: 600;
  font-size: .98rem;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--rose-light);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; margin-inline: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 940px) {
  .brand img { width: 150px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wine-dark);
    border-top: 1px solid rgba(255, 255, 255, .14);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  .nav__link { padding: .95rem 1.25rem; border-radius: 0; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: rgba(255, 255, 255, .12); }
  .site-header__inner { position: relative; }
}

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(430px, 74vh, 660px);
  padding: clamp(3rem, 7vw, 6rem) 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(84, 42, 51, .78) 0%, rgba(140, 73, 85, .72) 100%);
}
.hero h1, .hero h2 { color: #fff; }
.hero__inner { position: relative; }

.hero__kicker {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0;
  color: #fff;
}

/* rotador de frases */
.rotator {
  font-family: var(--serif);
  font-size: clamp(1.35rem, .95rem + 1.8vw, 2.3rem);
  font-weight: 600;
  color: var(--rose-light);
  min-height: 2.6em;
  display: grid;
  place-items: center;
  margin: .4rem 0 0;
}
.rotator__item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.rotator__item.is-active { opacity: 1; transform: none; }
.rotator--static .rotator__item { position: static; opacity: 1; transform: none; }

/* El isotipo es granate; sobre el velo granate del hero lo pasamos a blanco. */
.hero__logo {
  width: clamp(110px, 16vw, 165px);
  margin: 2.5rem auto 0;
  filter: brightness(0) invert(1);
  opacity: .92;
}

/* cabecera de página interior */
.pagehead {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 38vh, 400px);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--wine);
}
.pagehead__media { position: absolute; inset: 0; z-index: -2; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(84, 42, 51, .8) 0%, rgba(140, 73, 85, .74) 100%);
}
.pagehead h1 { color: #fff; margin-bottom: .25em; }
.pagehead p { color: rgba(255, 255, 255, .9); max-width: 62ch; margin-inline: auto; }

/* --------------------------------------------------------------- grid --- */

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--top { align-items: start; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split--reverse .split__media { order: 2; }
@media (max-width: 700px) { .split--reverse .split__media { order: 0; } }

.media-stack { display: grid; gap: 1.25rem; }
.media-stack img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media-stack--duo { grid-template-columns: 1fr 1fr; }

/* -------------------------------------------------------------- cards --- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--rose-light); }
.card h3 { margin-bottom: .2em; }
.card p { color: var(--ink-soft); }
.card__link { margin-top: auto; padding-top: .6rem; font-weight: 700; font-size: .93rem; text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card__link::after { content: " →"; }

.card--plain { border: 0; padding: 0; background: none; }
.card--plain:hover { transform: none; box-shadow: none; }

/* tarjeta de noticia */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-tint); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.6rem 1.6rem 1.9rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wine);
  background: var(--paper-tint);
  padding: .3rem .7rem;
  border-radius: 100px;
}
.post-card__title { font-size: 1.25rem; margin: 0; line-height: 1.3; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--wine); }
.post-card__date { font-size: .85rem; color: var(--muted); margin: 0; }
.post-card__excerpt { font-size: .97rem; margin: 0; }
.post-card__more { margin-top: auto; padding-top: .8rem; font-weight: 700; font-size: .92rem; text-decoration: none; }
.post-card__more::after { content: " →"; }

/* --------------------------------------------------------- listado equipo */

.team-lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.team-lead__item { text-align: center; }
.team-lead__photo {
  width: 170px; height: 170px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}
.team-lead__role {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 .3rem;
}
.team-lead__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 0; }

.members { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.member {
  background: #fff;
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 10px rgba(43, 34, 38, .05);
}
.member__name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--wine); margin: 0 0 .35rem; }
.member__bio { font-size: .93rem; line-height: 1.6; margin: 0; color: var(--ink-soft); }

/* ------------------------------------------------------ bloques de acción */

.actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.actions li {
  position: relative;
  padding-left: 2.6rem;
  margin: 0;
}
.actions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 1.5rem;
  height: 2px;
  background: var(--rose);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.6rem; margin: 0; font-size: .97rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose);
}

/* ---------------------------------------------------- programas formación */

.programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.5rem; }

.program {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.program > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 3.2rem 1.4rem 1.6rem;
  position: relative;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wine);
  line-height: 1.35;
  transition: background .2s var(--ease);
}
.program > summary::-webkit-details-marker { display: none; }
.program > summary:hover { background: var(--paper-alt); }
.program > summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 1.75rem;
  width: 10px; height: 10px;
  border-right: 2px solid var(--rose);
  border-bottom: 2px solid var(--rose);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.program[open] > summary::after { transform: rotate(-135deg); top: 2rem; }
.program__body { padding: 0 1.6rem 1.6rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.program__target { font-size: .9rem; font-style: italic; color: var(--muted); margin: 0 0 .9rem; }

/* ------------------------------------------------------------- prensa ---- */

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.logos img {
  width: clamp(110px, 14vw, 165px);
  filter: grayscale(1);
  opacity: .55;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logos img:hover { filter: none; opacity: 1; }

/* -------------------------------------------------------------- article -- */

.article { font-size: 1.08rem; }
.article > h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.article > h3 { margin-top: 1.8em; color: var(--wine); }
.article > p > strong:only-child { color: var(--wine); }
.article__meta {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.article__figure { margin: 0 0 2.5rem; }
.article__figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.legal h2 { margin-top: 2em; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.legal h3 { margin-top: 1.6em; font-size: 1.15rem; color: var(--wine); }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 2rem; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--paper-alt); font-family: var(--sans); font-weight: 700; color: var(--ink); }
.legal .table-scroll { overflow-x: auto; }

/* ----------------------------------------------------------- formulario -- */

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field > label { font-weight: 700; font-size: .93rem; color: var(--ink); }
.field .req { color: var(--wine); }

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(140, 73, 85, .16);
}
.field textarea { min-height: 170px; resize: vertical; }
.field--error input, .field--error textarea { border-color: #C0392B; }
.field__error { font-size: .87rem; color: #C0392B; font-weight: 600; }

.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field--check input { width: 18px; height: 18px; margin-top: .3rem; accent-color: var(--wine); }
.field--check label { font-weight: 400; font-size: .92rem; line-height: 1.55; color: var(--ink-soft); }

/* trampa antispam: invisible para personas, visible para bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.alert {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  font-size: .97rem;
}
.alert--ok { background: #EDF7EE; border-color: #3E8E41; color: #24592A; }
.alert--error { background: #FBEDEC; border-color: #C0392B; color: #8C2A1F; }
.alert strong { color: inherit; }

/* --------------------------------------------------------------- cta ----- */

.cta {
  position: relative;
  text-align: center;
  color: #fff;
  background: var(--wine);
  overflow: hidden;
  isolation: isolate;
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(84, 42, 51, .84);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 60ch; margin-inline: auto; }
.cta .btn { margin-top: 1.6rem; }

/* ------------------------------------------------------------- valores --- */

.values {
  position: relative;
  background: var(--wine);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  overflow: hidden;
}
.values__mark {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 18vw, 260px);
  opacity: .1;
  pointer-events: none;
}
@media (max-width: 780px) { .values__mark { display: none; } }
.values h2 {
  color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: 0;
  line-height: 1.4;
}
.values em { font-style: normal; color: var(--rose-light); }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--wine-darker);
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  padding: clamp(2.8rem, 5vw, 4rem) 0;
}
.site-footer__logo { width: 175px; margin-bottom: 1.2rem; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer li { margin: 0; }
/* Los iconos sociales del pie mantienen su fila horizontal. */
.site-footer .social { display: flex; gap: .35rem; margin-top: 1.2rem; }
.site-footer .social a { text-decoration: none; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .87rem;
  color: rgba(255, 255, 255, .65);
}
.site-footer__bottom a { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------------- aviso de cookies ---- */

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 200;
  width: min(100% - 2rem, 640px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.6rem;
  display: none;
}
.cookie-bar.is-visible { display: block; }
.cookie-bar p { font-size: .92rem; line-height: 1.6; margin-bottom: 1rem; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cookie-bar .btn { padding: .7rem 1.5rem; font-size: .85rem; }

/* --------------------------------------------------------- error 404 ----- */

.error-page { text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; }
.error-page__code {
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  color: var(--paper-tint);
  line-height: 1;
  margin: 0;
}

/* ------------------------------------------------------------- reveal ---- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- print ---- */

@media print {
  .topbar, .site-header, .cookie-bar, .cta, .values, .site-footer__main { display: none; }
  body { color: #000; font-size: 11pt; }
  .hero, .pagehead { min-height: 0; color: #000; background: none; }
  .hero::after, .pagehead::after, .hero__media, .pagehead__media { display: none; }
  .hero h1, .pagehead h1 { color: #000; }
}
