/* =========================================================
   Aviso de cookies — Vanessa Henao
   ========================================================= */

.vh-cookies {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, calc(100% + 2rem));
  width: min(720px, calc(100% - 2rem));
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.35s ease;
}
.vh-cookies.vh-cookies-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.vh-cookies.vh-cookies-salida {
  transform: translate(-50%, 1rem);
  opacity: 0;
}

.vh-cookies-card {
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: var(--radio-card);
  background: var(--bg, #FCF9F4);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  box-shadow: var(--sombra-3, 0 22px 60px rgba(0, 0, 0, 0.18)), 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--text, #2b2018);
}

/* Cabecera con icono */
.vh-cookies-cuerpo { display: grid; gap: 0.9rem; }
.vh-cookies-icono {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  display: inline-flex;
  padding: 0.55rem;
  border-radius: var(--radio-pildora);
  background: rgba(141, 160, 127, 0.20);
  color: var(--primary, #A9744B);
}
.vh-cookies-card { position: relative; }

.vh-cookies h3 {
  padding-right: 3rem;
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.vh-cookies p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-soft, #5b4a3a);
}
.vh-cookies a {
  color: var(--primary, #A9744B);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.vh-cookies-botones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
}
.vh-cookies-cfg {
  background: none;
  border: none;
  padding: 0.4rem 0.2rem;
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--text-soft, #5b4a3a);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.vh-cookies-cfg:hover { color: var(--primary, #A9744B); }

/* ---------- Panel de preferencias ---------- */
.vh-cookies-panel { display: grid; gap: 0.7rem; }
.vh-cookies-panel[hidden] { display: none; }

.vh-cookies-panel-titulo {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.vh-cookies-panel-intro {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: var(--text-soft, #5b4a3a);
}

.vh-cookies-op {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 0.7rem;
  background: var(--surface, rgba(0,0,0,0.02));
  cursor: pointer;
  transition: border-color 0.2s;
}
.vh-cookies-op:hover { border-color: var(--primary-soft, rgba(200, 170, 132, 0.5)); }
.vh-cookies-op > span:first-child { display: flex; flex-direction: column; gap: 0.15rem; }
.vh-cookies-op strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #2b2018);
}
.vh-cookies-op small {
  font-size: var(--t-xs);
  color: var(--text-soft, #7a6a5c);
  line-height: 1.45;
}
.vh-cookies-op input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary, #A9744B);
}
.vh-cookies-op-fija { cursor: not-allowed; }
.vh-cookies-fija {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--primary, #A9744B);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radio-pildora);
  background: var(--primary-soft, rgba(200, 170, 132, 0.18));
}

.vh-cookies-panel-botones {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

/* ---------- Layout más ancho en desktop ---------- */
@media (min-width: 720px) {
  .vh-cookies-card { padding: 1.6rem 1.8rem; }
  .vh-cookies-cuerpo {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.8rem 2rem;
  }
  .vh-cookies-cuerpo h3 { grid-column: 1 / -1; padding-right: 3.5rem; }
  .vh-cookies-cuerpo p { grid-column: 1 / -1; }
  .vh-cookies-botones { grid-column: 1 / -1; }
}
