/* consent.css — Banner de cookies, identidad Verde Premium (#072413 + oro #dccbb3) */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: rgba(7, 36, 19, 0.97);
  border-top: 2px solid #dccbb3;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.35);
  font-family: var(--font-body, 'Montserrat', 'Oswald', sans-serif);
  color: #f2ede2;
}
.cookie-consent[hidden] { display: none; }
.cc-box {
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cc-title {
  font-family: 'Playfair Display', 'Cormorant Garamond', serif;
  color: #dccbb3;
  font-size: 1rem;
  margin: 0;
  white-space: nowrap;
}
.cc-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cfd8cd;
  flex: 1;
  min-width: 260px;
}
.cc-text a { color: #dccbb3; text-decoration: underline; }
.cc-buttons { display: flex; gap: 0.6rem; }
.cc-btn {
  cursor: pointer;
  border: 1px solid #dccbb3;
  background: transparent;
  color: #dccbb3;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: inherit;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.cc-btn:focus-visible { outline: 2px solid #f0e6d2; outline-offset: 2px; }
.cc-accept { background: #dccbb3; color: #072413; }
.cc-accept:hover { background: #f0e6d2; }
.cc-reject:hover { background: rgba(220, 203, 179, 0.15); }
/* Móvil: apilado ocupaba 199 px (24 % de la pantalla, 31 % en un iPhone SE) y tapaba el
   CTA principal de la portada. Medidas en px: el rem de la web es mayor del habitual.
   Aceptar y rechazar, en fila y del mismo tamaño. */
@media (max-width: 640px) {
  .cookie-consent {
    padding: 10px 12px;
    /* Opaco: con alfa 0.97 se leía la página detrás del aviso. */
    background: rgb(7, 36, 19);
  }
  .cc-box { flex-direction: column; align-items: stretch; text-align: left; gap: 8px; }
  /* El título sigue siendo el nombre accesible del aviso (aria-labelledby): se oculta a la
     vista sin sacarlo del árbol de accesibilidad. */
  .cc-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cc-text { font-size: 13px; line-height: 1.4; min-width: 0; }
  .cc-buttons { gap: 8px; }
  .cc-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 6px; font-size: 12px; }
}
/* Pantallas de 320 px: el texto parte en cinco líneas; se aprieta para no pasar de cuatro. */
@media (max-width: 340px) {
  .cookie-consent { padding: 8px 10px; }
  .cc-box { gap: 6px; }
  .cc-text { font-size: 12px; line-height: 1.35; }
}
