/* =========================================================
   NUESTRO MUNDO KINDER
   Estilos generales del sitio público
   ========================================================= */


/* =========================================================
   RESET Y VARIABLES
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fcfcfc;
  --text: #2e2118;
  --muted: #6f5745;
  --border: #eadfd3;
  --accent: #e54122;
  --accent-dark: #c92f15;
  --white: #ffffff;
  --panel: #fffdfa;
  --green: #277a45;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding: 24px 18px 40px;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.home-page,
body.error-page {
  padding-top: 28px;
}

body.lightbox-open {
  overflow: hidden;
}


/* =========================================================
   CONTENEDORES
   ========================================================= */

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.error-page .container {
  max-width: 900px;
}


/* =========================================================
   TOPBAR / LOGOS
   ========================================================= */

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
}

.collections-page .topbar {
  justify-content: space-between;
  margin-bottom: 34px;
}

.collection-page .topbar {
  justify-content: space-between;
  margin-bottom: 26px;
}

.error-page .topbar {
  justify-content: center;
  margin-bottom: 34px;
}

.logo {
  display: block;
  height: auto;
}

.home-page .logo {
  width: min(340px, 82vw);
  margin: 0 auto 20px;
}

.error-page .logo {
  width: min(300px, 78vw);
}

.mini-logo {
  display: block;
  width: 180px;
  max-width: 48vw;
  height: auto;
}


/* =========================================================
   BOTÓN VOLVER
   ========================================================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  transition: transform .2s ease, border-color .2s ease;
}

.back-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
  display: inline-block;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--white);
  color: var(--accent);
  font-weight: bold;
  text-transform: uppercase;
}

.home-page .badge {
  margin: 0 auto 22px;
  padding: 10px 22px;
  font-size: .82rem;
  letter-spacing: 1.8px;
}

.collections-page .badge,
.collection-page .badge {
  margin-bottom: 16px;
  padding: 9px 16px;
  font-size: .78rem;
  letter-spacing: 1.6px;
}


/* =========================================================
   HOME - HERO
   ========================================================= */

.home-page .hero {
  text-align: center;
  padding: 10px 0 34px;
}

.home-page h1 {
  max-width: 840px;
  margin: 0 auto 18px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -1px;
}

.home-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.home-hero-actions .button-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-width: 220px;
  padding: 12px 22px;
  border-radius: 999px;
}

.home-hero-count {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}

.home-hero-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: .88rem;
}

.subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
}


/* =========================================================
   COLECCIONES - HERO
   ========================================================= */

.collections-page .hero {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.collections-page h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -1px;
}

.collections-page .hero p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}


/* =========================================================
   COLECCIONES - FILTROS
   ========================================================= */

.collection-filters {
  margin-bottom: 26px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  align-items: end;
}

.filter-select-group {
  min-width: 0;
}

.filter-select-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: bold;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.filter-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.filter-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.filters-clear {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.filters-clear a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: bold;
}

.filters-clear a:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* =========================================================
   DETALLE DE COLECCIÓN - HERO
   ========================================================= */

.collection-page .hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 36px;
  align-items: start;
  padding: 30px 30px 118px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
}

.collection-page h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -1px;
}

.hero-image {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  background: transparent;
}

.collection-page .collection-badge {
  align-self: flex-start;
  margin: -6px 0 0;
}

.hero-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: zoom-in;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  transition: transform .25s ease;
}

.hero-copy {
  align-self: start;
  padding-top: 40px;
}

.hero-image-button:hover img {
  transform: scale(1.01);
}

.intro {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}


/* =========================================================
   PANELES
   ========================================================= */

.panel {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.home-page .panel {
  margin-top: 26px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
}

.home-page .panel-title {
  margin-bottom: 22px;
}

.panel-title .icon {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.panel-title h2 {
  margin: 0;
  color: inherit;
  font: inherit;
}

.counter {
  color: var(--muted);
  font-size: .95rem;
  white-space: nowrap;
}


/* =========================================================
   TARJETAS DE COLECCIONES
   ========================================================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/*
 * Masonry estable:
 * el JS conserva el orden real de las colecciones (izquierda a derecha)
 * y solamente calcula la posición vertical de cada tarjeta.
 */
.cards.is-masonry {
  position: relative;
  display: block;
}

.cards.is-masonry .card {
  position: absolute;
  margin: 0;
}

.card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid #ece3da;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4ede6;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}


/* HOME - Últimas colecciones: respetar la proporción real de la portada */
.home-page .card-image {
  aspect-ratio: auto;
  background: transparent;
}

.home-page .card-image img {
  width: 100%;
  height: auto;
  object-fit: initial;
}


/* HOME - Carrusel de previews en Últimas colecciones */
.home-card-carousel {
  position: relative;
  overflow: hidden;
  background: #f4ede6;
}

.home-card-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.home-card-slide.is-sizer {
  position: relative;
  inset: auto;
}

.home-card-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-card-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-card-slide.is-sizer img {
  width: 100%;
  height: auto;
}

.home-card-carousel .collection-number {
  z-index: 5;
}

.home-card-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  border: 1px solid rgba(234, 223, 211, .95);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  font: inherit;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .12);
  opacity: .22;
  transition: background .15s ease, color .15s ease, transform .15s ease, opacity .15s ease;
}

.home-card-carousel-arrow:hover {
  background: var(--white);
  color: var(--accent);
}

.home-card-carousel-prev {
  left: 9px;
}

.home-card-carousel-next {
  right: 9px;
}


@media (hover: hover) and (pointer: fine) {
  .home-card-carousel:hover .home-card-carousel-arrow,
  .home-card-carousel-arrow:focus-visible {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .home-card-carousel-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    border-color: rgba(234, 223, 211, .7);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 9px rgba(0, 0, 0, .12);
  }

  .home-card-carousel-arrow:active,
  .home-card-carousel-arrow:focus-visible {
    opacity: .65;
  }

  .home-card-carousel-prev {
    left: 7px;
  }

  .home-card-carousel-next {
    right: 7px;
  }
}

.collections-page .card:hover .card-image img {
  transform: scale(1.015);
}

.collection-number {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--accent);
  font-size: .75rem;
  font-weight: bold;
  letter-spacing: .8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.card-content {
  padding: 16px 16px 18px;
}

.card h2,
.card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text);
}

.card h2 span,
.card h3 span {
  color: var(--muted);
  font-weight: normal;
}

.card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.collections-page .card p {
  min-height: 46px;
}

.card-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.card-link:hover {
  color: var(--accent-dark);
}


/* =========================================================
   BOTONES
   ========================================================= */

.section-button {
  margin-top: 22px;
  text-align: center;
}

.button-outline,
.button-solid {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: transform .2s ease, opacity .2s ease;
}

.button-outline:hover,
.button-solid:hover {
  transform: translateY(-2px);
  opacity: .92;
}

.button-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: var(--white);
}

.button-solid {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #f44a23 0%, #df320f 100%);
  color: #fffaf0;
  cursor: pointer;
}


/* =========================================================
   FORMULARIO DE CONTACTO
   ========================================================= */

.contact-panel {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
}

.contact-info {
  display: flex;
  gap: 18px;
}

.contact-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #f4ede6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-copy h2 {
  margin-top: 5px;
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.contact-copy p {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
}

.contact-mail {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: bold;
}

.contact-mail:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #ddd3c7;
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229,65,34,.08);
}

.form-note {
  margin-top: 2px;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

.form-status {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .95rem;
  line-height: 1.45;
}

.form-status.success {
  border: 1px solid #b8d8bd;
  background: #f1faf3;
  color: #285d31;
}

.form-status.error {
  border: 1px solid #e2b8ae;
  background: #fff5f2;
  color: #8b2f1d;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* =========================================================
   DETALLE DE COLECCIÓN - DATOS
   ========================================================= */

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.fact {
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}

.fact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: bold;
}

.fact-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.fact strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.fact-status.is-complete {
  color: #277a45;
}

.fact-status.is-without-cartina {
  color: #b87516;
}

.fact-status.is-incomplete {
  color: var(--accent-dark);
}

.fact > strong {
    display: block;
    margin-top: 4px;
}

.collection-tags {
    position: absolute;
    right: 30px;
    bottom: 30px;
    left: 30px;
    margin-top: 0;
}

.collection-tags-title {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.collection-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.collection-tag {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border: 2px solid #9ad08f;
    border-radius: 10px;
    background: #f1f8ee;
    color: #1f7a2e;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.collection-tag:hover {
  background: #e5f4e0;
  border-color: #78bd6c;
  transform: translateY(-1px);
}


/* =========================================================
   DETALLE DE COLECCIÓN - SECCIONES
   ========================================================= */

.section {
  margin-top: 28px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.section-head p {
  color: var(--muted);
  font-size: .98rem;
}


/* =========================================================
   DETALLE DE COLECCIÓN - RELACIONADAS
   ========================================================= */

.related-section {
  margin-top: 38px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.related-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

.related-card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f0ec;
}

.related-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.related-card-image:hover img {
  transform: scale(1.02);
}

.related-number {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--accent);
  font-size: .76rem;
  font-weight: bold;
}

.related-card-body {
  padding: 16px;
}

.related-card-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.related-card-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.related-card-body h3 span {
  color: var(--muted);
  font-weight: normal;
}

.related-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.related-card-link {
  color: var(--accent);
  font-size: .88rem;
  font-weight: bold;
  text-decoration: none;
}

.related-card-link:hover {
  color: var(--accent-dark);
}


/* =========================================================
   GALERÍA
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.figure-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid #ece3da;
  border-radius: 16px;
  background: var(--white);
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}

.figure-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.figure-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.figure-number {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-width: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  font-size: .78rem;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}


/* =========================================================
   CARTINA
   ========================================================= */

.cartina-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.cartina-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.cartina-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ece3da;
  border-radius: 18px;
  background: var(--white);
}

.notice {
  margin-top: 16px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
  text-align: center;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20,14,10,.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  object-fit: contain;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100000;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font-size: 1.45rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}


/* =========================================================
   ERROR 404
   ========================================================= */

.error-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 52px 34px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 26px;
}

.error-code {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 18px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--white);
  color: var(--accent);
  font-size: .82rem;
  font-weight: bold;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.error-page h1 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -1px;
}

.message {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: transform .2s ease, opacity .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  opacity: .92;
}

.button-primary {
  background: var(--accent);
  color: #fffaf0;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 2px solid var(--accent);
  background: var(--white);
  color: var(--accent);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  position: relative;
  margin-top: 42px;
  padding: 32px 20px 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

footer::before {
  content: "🥚";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  background: var(--bg);
  font-size: 1.1rem;
}

footer strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.footer-slogan {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .95rem;
  font-style: italic;
}

.footer-links {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: .92rem;
  font-weight: bold;
}

.footer-links a,
.footer-links a:visited,
a.footer-links,
a.footer-links:visited {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover,
a.footer-links:hover {
  color: var(--accent-dark);
}


.footer-language {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 16px;
}

.footer-language strong {
  display: inline;
  margin: 0;
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
}

.footer-language .footer-links {
  margin-bottom: 0;
}

.footer-language .footer-separator {
  color: var(--muted);
}

.footer-legal {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 14px;
  border-top: 1px solid #f0e7de;
  color: #8d7a6a;
  font-size: .82rem;
  line-height: 1.6;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 980px) {

  .home-page .cards {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {

  .collection-page .hero {
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .collection-tags {
    position: static;
    margin-top: 22px;
  }

  .collection-page .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .collection-page .collection-badge {
    margin-top: 0;
  }
}

@media (max-width: 900px) {

  .collections-page .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 800px) {

  .related-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   RESPONSIVE - MÓVIL
   ========================================================= */

@media (max-width: 640px) {

  body,
  body.home-page,
  body.error-page {
    padding: 18px 13px 34px;
  }

  .home-page {
    padding: 20px 14px 34px;
  }

  .mini-logo {
    width: 145px;
  }

  .back-link {
    padding: 9px 12px;
    font-size: .9rem;
  }


  /* HOME */

  .home-page .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .home-page .subtitle {
    font-size: 1.08rem;
  }

  .home-hero-actions .button-solid {
    width: auto;
    min-width: 200px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
  }

  .contact-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }


  /* COLECCIONES */

  .collections-page .topbar {
    margin-bottom: 26px;
  }

  .collections-page .hero {
    margin-bottom: 26px;
  }

  .collections-page .hero p {
    font-size: 1.03rem;
  }

  .collections-page .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .collections-page .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .collections-page .cards {
    grid-template-columns: 1fr;
  }

  .collections-page .card p {
    min-height: 0;
  }
  
  .collection-filters {
    padding: 18px;
    border-radius: 18px;
  }

  .filter-option {
    padding: 8px 10px;
    font-size: .84rem;
  }
  
  .collections-empty {
    padding: 36px 20px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
  }


  /* DETALLE DE COLECCIÓN */

  .collection-page .topbar {
    margin-bottom: 18px;
  }

  .collection-page .hero,
  .collection-page .section {
    padding: 18px;
    border-radius: 18px;
  }

  .collection-page .hero {
    gap: 16px;
  }

  .collection-page h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 10vw, 3.4rem);
    line-height: 1.04;
  }

  .collection-page .intro {
    font-size: 1rem;
    line-height: 1.55;
  }

  .collection-page .facts {
    grid-template-columns: 1fr 1fr;
  }

  .collection-page .section-head {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .collection-page .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }


  /* ERROR */

  .error-panel {
    padding: 34px 20px;
    border-radius: 20px;
  }

  .error-page .message {
    font-size: 1.05rem;
  }

  .error-page .actions {
    flex-direction: column;
  }

  .error-page .button {
    width: 100%;
  }
}

/* =========================================================
   HOME - ESTILOS ESPECÍFICOS
   Migrado desde el PHP correspondiente
   ========================================================= */

.home-page .hero {
      padding-bottom: 20px;
    }

    .home-search {
      margin: 8px 0 30px;
      padding: 22px 24px;
      border: 1px solid var(--border, #eadfd3);
      border-radius: 20px;
      background: var(--panel, #fffdfa);
    }

    .home-search-title {
      margin: 0 0 6px;
      font-size: 1.05rem;
      color: var(--text, #2e2118);
    }

    .home-search-text {
      margin: 0 0 14px;
      color: var(--muted, #6f5745);
      font-size: .92rem;
      line-height: 1.5;
    }

    .home-search-form {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .home-search-input {
      flex: 1;
      min-width: 0;
      padding: 13px 15px;
      border: 1px solid #d9cbbd;
      border-radius: 12px;
      background: #fff;
      color: var(--text, #2e2118);
      font: inherit;
      outline: none;
    }

    .home-search-input:focus {
      border-color: var(--accent, #e54122);
      box-shadow: 0 0 0 3px rgba(229, 65, 34, .10);
    }

    .home-search-button {
      flex: 0 0 auto;
      padding: 13px 19px;
      border: 0;
      border-radius: 12px;
      background: var(--accent, #e54122);
      color: #fff;
      font: inherit;
      font-weight: bold;
      cursor: pointer;
    }

    .home-search-button:hover {
      background: var(--accent-dark, #c92f15);
    }

    .newsletter-panel {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
      gap: 28px;
      align-items: center;
    }

    .newsletter-info {
      display: flex;
      gap: 18px;
      align-items: center;
    }

    .newsletter-icon {
      flex: 0 0 auto;
      display: grid;
      place-items: center;
      width: 74px;
      height: 74px;
      border-radius: 50%;
      background: #f7efe8;
      color: var(--text, #2e2118);
    }

    .newsletter-icon svg,
    .contact-icon svg {
      width: 24px;
      height: 24px;
      display: block;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .newsletter-copy h2 {
      margin: 0 0 8px;
      font-size: 1.25rem;
      color: var(--text, #2e2118);
    }

    .newsletter-copy p {
      margin: 0;
      color: var(--muted, #6f5745);
      line-height: 1.6;
    }

    .newsletter-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .newsletter-fields {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      width: 100%;
    }

    .newsletter-fields input[type="email"] {
      width: 100%;
      min-width: 0;
      padding: 13px 15px;
      border: 1px solid #d9cbbd;
      border-radius: 12px;
      background: #fff;
      color: var(--text, #2e2118);
      font: inherit;
      outline: none;
    }

    .newsletter-fields .button-solid {
      width: auto;
      min-width: 145px;
      margin: 0;
      white-space: nowrap;
    }

    .newsletter-fields input[type="email"]:focus {
      border-color: var(--accent, #e54122);
      box-shadow: 0 0 0 3px rgba(229, 65, 34, .10);
    }

    .newsletter-note {
      color: var(--muted, #6f5745);
      font-size: .8rem;
      line-height: 1.45;
    }

    @media (max-width: 760px) {
      .newsletter-panel {
        grid-template-columns: 1fr;
        gap: 18px;
      }
    }

    @media (max-width: 640px) {
      .home-page .hero {
        padding-bottom: 14px;
      }

      .home-search {
        margin-top: 6px;
        padding: 18px;
      }

      .home-search-form {
        flex-direction: column;
        align-items: stretch;
      }

      .home-search-button {
        width: 100%;
      }

      .newsletter-fields {
        grid-template-columns: 1fr;
      }

      .newsletter-fields .button-solid {
        width: 100%;
        min-width: 0;
      }

      .contact-panel {
        gap: 12px;
      }

      .contact-info {
        gap: 12px;
      }

      .contact-copy p {
        margin-bottom: 0;
      }
    }

/* =========================================================
   COLECCIONES - BÚSQUEDA Y FILTROS
   Migrado desde el PHP correspondiente
   ========================================================= */

#resultados {
      scroll-margin-top: 16px;
    }

    .collection-search {
      grid-column: 1 / -1;
    }

    .collection-search-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
    }

    .collection-search-input {
      width: 100%;
      min-height: 48px;
      padding: 11px 14px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--white);
      color: var(--text);
      font: inherit;
    }

    .collection-search-input::placeholder {
      color: var(--muted);
      opacity: .75;
    }

    .collection-search-input:focus {
      outline: 2px solid var(--accent);
      outline-offset: 1px;
    }

    .collections-page .filter-select {
      min-height: 48px;
      height: 48px;
      padding-top: 0;
      padding-bottom: 0;
      border-radius: 10px;
      font: inherit;
    }

    @supports (-webkit-hyphens: none) {
      @media (hover: hover) and (pointer: fine) {
        .collections-page .filter-select {
          -webkit-appearance: none;
          appearance: none;
          padding-right: 38px;

          background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232e2118' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
          background-repeat: no-repeat;
          background-position: right 13px center;
          background-size: 12px;
        }
      }
    }

    .collection-search-button {
      min-height: 48px;
      padding: 0 22px;
      border: 0;
      border-radius: 10px;
      background: var(--accent);
      color: #fffaf0;
      font: inherit;
      font-weight: bold;
      cursor: pointer;
      transition: background .15s ease, transform .15s ease;
    }

    .collection-search-button:hover {
      background: var(--accent-dark);
      transform: translateY(-1px);
    }

    .collection-active-filters {
      margin-bottom: 0;
    }

    .collection-active-filters .collection-tags-list {
      align-items: flex-start;
      margin-bottom: 0;
    }

    .collection-active-filters .collection-tag-remove {
      margin-left: 8px;
      color: var(--accent);
    }

    .collection-active-filters .filters-clear-all {
      margin: 0 0 0 auto;
      text-decoration: none;
      align-self: flex-start;
    }

    @media (max-width: 640px) {
      .collection-search-row {
        grid-template-columns: 1fr;
      }

      .collection-search-button {
        width: 100%;
      }
    }

/* =========================================================
   DETALLE DE COLECCIÓN - INTERACCIONES, COMENTARIOS Y LIGHTBOX
   Migrado desde el PHP correspondiente
   ========================================================= */

/* Interacciones de la colección */
    .hero-image-button,
    .hero-image-button img {
      border-radius: 20px;
    }

    .hero-image-button {
      overflow: hidden;
    }

    .hero-engagement {
      margin-top: 0;
      padding-top: 0;
      background: transparent;
    }

    .engagement-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      width: 100%;
    }

    .engagement-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-width: 0;
      min-height: 44px;
      padding: 9px 10px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--white);
      color: var(--text);
      font: inherit;
      font-size: .88rem;
      font-weight: 700;
      line-height: 1.15;
      text-decoration: none;
      white-space: nowrap;
      cursor: pointer;
      transition: transform .15s ease, border-color .15s ease, background .15s ease;
    }

    .engagement-button:hover {
      transform: translateY(-1px);
      border-color: #e9aaa0;
      background: #fff8f6;
    }

    .engagement-button.is-active {
      border-color: #e9aaa0;
      background: #fff3f0;
      color: var(--accent-dark);
    }

    .engagement-button:disabled {
      opacity: .6;
      cursor: wait;
      transform: none;
    }

    .engagement-icon {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.2em;
      height: 1.2em;
      color: var(--accent);
      font-size: 1.2rem;
      line-height: 1;
      text-align: center;
      transform-origin: center;
    }

    .engagement-icon.is-liked {
      transform: scale(1.6);
    }

    .engagement-message {
      margin-top: 9px;
      color: var(--muted);
      font-size: .86rem;
      line-height: 1.4;
      text-align: center;
    }

    .engagement-message.is-error {
      color: var(--accent-dark);
    }

    /* Comentarios */
    .comments-section {
      scroll-margin-top: 22px;
    }

    .comments-wrap {
      width: 100%;
      max-width: none;
    }

    .comments-empty {
      margin: 0 0 24px;
      color: var(--muted);
      line-height: 1.6;
    }

    .comments-list {
      display: grid;
      gap: 12px;
      margin-bottom: 28px;
    }

    .comment-card {
      padding: 16px 18px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--white);
    }

    .comment-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 7px 12px;
      margin-bottom: 7px;
    }

    .comment-author {
      margin: 0;
      color: var(--text);
      font-size: inherit;
      line-height: inherit;
      font-weight: 700;
    }

    .comment-date {
      color: var(--muted);
      font-size: .82rem;
    }

    .comment-text {
      color: var(--text);
      line-height: 1.65;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }

    .comment-thread {
      display: grid;
      gap: 10px;
    }

    .comment-public-actions {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: 11px;
    }

    .comment-like-button,
    .comment-reply-toggle {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 28px;
      padding: 2px 0;
      border: 0;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: .84rem;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
    }

    .comment-like-button:hover,
    .comment-reply-toggle:hover {
      color: var(--accent);
    }

    .comment-like-button.is-active {
      color: var(--accent-dark);
    }

    .comment-like-button:disabled {
      opacity: .55;
      cursor: wait;
    }

    .comment-like-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.1em;
      color: var(--accent);
      font-size: 1.15rem;
      line-height: 1;
    }

    .comment-like-button.is-active .comment-like-icon {
      transform: scale(1.5);
    }

    .comment-like-count {
      min-width: 1ch;
      text-align: left;
    }

    .comment-admin-badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 7px;
      border: 1px solid #c7d7ef;
      border-radius: 999px;
      background: #eef4ff;
      color: #315b9a;
      font-size: .68rem;
      font-weight: 700;
      line-height: 1;
    }

    .comment-replies {
      display: grid;
      gap: 10px;
      margin-left: 34px;
      padding-left: 16px;
      border-left: 2px solid #eadfd3;
    }

    .comment-card.is-reply {
      background: #fffefe;
    }

    .comment-reply-form {
      margin-top: 14px;
      padding: 15px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: #fffaf7;
    }

    .comment-reply-form[hidden] {
      display: none !important;
    }

    .comment-reply-form h4 {
      margin: 0;
      color: var(--text);
      font-size: .96rem;
    }

    .comment-reply-note {
      margin: -3px 0 0;
      color: var(--muted);
      font-size: .82rem;
      line-height: 1.45;
    }

    .comment-reply-form textarea {
      min-height: 95px;
    }

    .comment-form-panel {
      padding: 22px;
      border: 1px solid var(--border);
      border-radius: 20px;
      background: var(--panel);
    }

    .comment-form-panel h3 {
      margin: 0 0 6px;
      font-size: 1.25rem;
    }

    .comment-form-panel > p {
      margin: 0 0 18px;
      color: var(--muted);
      line-height: 1.55;
    }

    .comment-form {
      display: grid;
      gap: 15px;
    }

    .comment-field {
      display: grid;
      gap: 7px;
    }

    .comment-field label {
      font-size: .9rem;
      font-weight: 700;
    }

    .comment-field input,
    .comment-field textarea {
      width: 100%;
      padding: 12px 13px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--white);
      color: var(--text);
      font: inherit;
      line-height: 1.5;
    }

    .comment-field textarea {
      min-height: 130px;
      resize: vertical;
    }

    .comment-field input:focus,
    .comment-field textarea:focus {
      outline: 2px solid rgba(229, 65, 34, .16);
      border-color: var(--accent);
    }

    .comment-submit {
      width: fit-content;
      min-height: 44px;
      padding: 10px 18px;
      border: 0;
      border-radius: 999px;
      background: var(--accent);
      color: var(--white);
      font: inherit;
      font-weight: 700;
      cursor: pointer;
    }

    .comment-submit:hover {
      background: var(--accent-dark);
    }

    .comment-submit:disabled {
      opacity: .65;
      cursor: wait;
    }

    .comment-form-message {
      margin: 0;
      font-size: .92rem;
      line-height: 1.5;
    }

    .comment-form-message.is-success {
      color: var(--green);
    }

    .comment-form-message.is-error {
      color: var(--accent-dark);
    }

    .comment-honeypot {
      position: absolute !important;
      left: -10000px !important;
      width: 1px !important;
      height: 1px !important;
      overflow: hidden !important;
    }

    /* Navegación entre imágenes del lightbox */
    .lightbox-nav {
      position: fixed;
      top: 50%;
      z-index: 100000;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      padding: 0 0 2px;
      border: 0;
      border-radius: 50%;
      background: var(--white);
      color: var(--text);
      font: inherit;
      font-size: 1.7rem;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      transform: translateY(-50%);
      box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
    }

    .lightbox-nav:hover {
      background: #fff8f6;
      color: var(--accent);
    }

    .lightbox-prev {
      left: 18px;
    }

    .lightbox-next {
      right: 18px;
    }

    .lightbox-counter {
      position: fixed;
      left: 50%;
      bottom: 18px;
      z-index: 100000;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .94);
      color: var(--text);
      font-size: .85rem;
      font-weight: 700;
      line-height: 1;
      transform: translateX(-50%);
      box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
    }

    .lightbox-nav[hidden],
    .lightbox-counter[hidden] {
      display: none !important;
    }


    /* Zoom 1:1 dentro del lightbox */
    .lightbox-image {
      cursor: zoom-in;
      transition: max-width .18s ease, max-height .18s ease;
    }

    .lightbox.is-zoomed {
      overflow: auto;
      align-items: flex-start;
      justify-content: flex-start;
    }

    .lightbox.is-zoomed .lightbox-image {
      width: auto;
      height: auto;
      max-width: none;
      max-height: none;
      margin: auto;
      cursor: zoom-out;
      flex: 0 0 auto;
    }

    @media (max-width: 560px) {
      .engagement-actions {
        gap: 7px;
      }

      .engagement-button {
        min-height: 42px;
        padding: 8px 6px;
        gap: 5px;
        font-size: .78rem;
      }

      .engagement-icon {
        font-size: 1.05rem;
      }

      .comment-form-panel {
        padding: 18px;
      }

      .comment-replies {
        margin-left: 10px;
        padding-left: 10px;
      }

      .comment-public-actions {
        gap: 14px;
      }

      .comment-reply-form {
        padding: 13px;
      }

      .lightbox-nav {
        width: 34px;
        height: 34px;
        font-size: 1.5rem;
      }

      .lightbox-prev {
        left: 8px;
      }

      .lightbox-next {
        right: 8px;
      }

      .lightbox-counter {
        bottom: 12px;
      }
    }

/* =========================================================
   NEWSLETTER - CONFIRMACIÓN Y BAJA
   Migrado desde confirmar.php y baja.php
   ========================================================= */

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

    .confirm-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 74px;
      height: 74px;
      margin: 0 auto 22px;
      border-radius: 50%;
      background: #f8efe9;
      color: var(--text, #2e2118);
    }

    .confirm-icon svg {
      width: 24px;
      height: 24px;
      display: block;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .confirm-form {
      margin: 26px 0 0;
    }

    .confirm-form + .actions {
      margin-top: 14px;
    }

    .confirm-form .button {
      border: 0;
      font: inherit;
      cursor: pointer;
    }

    .confirm-note {
      max-width: 620px;
      margin: 16px auto 0;
      color: var(--muted, #6f5745);
      font-size: .9rem;
      line-height: 1.6;
    }

    @media (max-width: 640px) {
      .confirm-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
      }

      .confirm-form .button {
        width: 100%;
      }
    }

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

    .unsubscribe-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 74px;
      height: 74px;
      margin: 0 auto 22px;
      border-radius: 50%;
      background: #f8efe9;
      color: var(--text, #2e2118);
    }

    .unsubscribe-icon svg {
      width: 24px;
      height: 24px;
      display: block;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .unsubscribe-confirm-actions {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      margin-top: 26px;
    }

    .unsubscribe-form {
      margin: 0;
    }

    .unsubscribe-confirm-actions .actions {
      margin: 0;
    }

    .unsubscribe-form .button {
      border: 0;
      font: inherit;
      cursor: pointer;
    }

    .unsubscribe-note {
      max-width: 620px;
      margin: 16px auto 0;
      color: var(--muted, #6f5745);
      font-size: .9rem;
      line-height: 1.6;
    }

    @media (max-width: 640px) {
      .unsubscribe-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 18px;
      }

      .unsubscribe-form .button {
        width: 100%;
      }
    }

/* =========================================================
   HOME - RESUMEN DEL ARCHIVO
   ========================================================= */

.archive-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

.archive-summary-item {
  min-width: 0;
  padding: 14px 20px;
  text-align: center;
}

.archive-summary-item + .archive-summary-item {
  border-left: 1px solid var(--border);
}

.archive-summary-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.archive-summary-value {
  display: block;
  color: var(--accent);
  font-size: .98rem;
  line-height: 1.35;
}

.archive-summary-value-pieces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 6px;
}

.archive-summary-separator {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 640px) {
  .archive-summary {
    grid-template-columns: 1fr;
  }

  .archive-summary-item {
    padding: 13px 16px;
  }

  .archive-summary-item + .archive-summary-item {
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}
