/* Aviso de cookies de Montilva Creations. [Claude 2026-12-02] Lo encola includes/consentimiento.php.
   Tarjeta fija abajo (no mueve el diseño: position fixed), «Rechazar» y «Aceptar» son el mismo botón (mismo tamaño,
   color y nivel). Usa los tokens oscuros de la web con valores de reserva. Mientras está abierto, el botón de WhatsApp
   sube por encima con transform (no con bottom: un transform no cuenta como salto de diseño). */
#mcf-consent[hidden],
#mcf-consent [hidden] { display: none !important; }
.mcf-consent__card {
  align-items: center;
  background: var(--surface, #1a2236);
  border: 1px solid var(--line-2, rgba(255, 255, 255, .16));
  border-radius: 12px;
  bottom: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  box-sizing: border-box;
  color: var(--ink, #f0f2f8);
  display: flex;
  font-family: var(--font-sans, system-ui, sans-serif);
  gap: 28px;
  left: 16px;
  margin: 0 auto;
  max-width: 920px;
  padding: 18px 24px;
  position: fixed;
  right: 16px;
  z-index: 99999;
}
.mcf-consent__card:focus { outline: none; }
.mcf-consent__texto { flex: 1; min-width: 0; }
.mcf-consent__card h2 {
  color: var(--ink, #f0f2f8) !important;
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
}
.mcf-consent__texto p {
  color: var(--ink-2, #bcc3d6);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.mcf-consent__texto p + p { margin-top: 6px; }
.mcf-consent__texto .mcf-consent__estado { color: var(--ink, #f0f2f8); font-weight: 600; }
.mcf-consent__card a {
  color: var(--ink, #f0f2f8);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.mcf-consent__actions { display: flex; flex: 0 0 auto; gap: 10px; }
/* Los dos botones de decisión son el mismo botón: ni color ni tamaño empujan hacia uno. */
.mcf-consent__card .mcf-consent__btn {
  background: var(--accent, #2a5fd8);
  border: 2px solid var(--accent, #2a5fd8);
  border-radius: 8px;
  box-shadow: none;
  color: var(--accent-ink, #fff);
  cursor: pointer;
  font: 700 14.5px/1 var(--font-sans, system-ui, sans-serif);
  letter-spacing: 0;
  margin: 0;
  min-height: 44px;
  min-width: 124px;
  padding: 12px 22px;
  text-transform: none;
}
.mcf-consent__card .mcf-consent__btn:hover,
.mcf-consent__card .mcf-consent__btn:focus {
  background: var(--accent-2, #1f4cb0);
  border-color: var(--accent-2, #1f4cb0);
  color: var(--accent-ink, #fff);
}
.mcf-consent__close {
  background: transparent;
  border: 0;
  color: var(--ink-2, #bcc3d6);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 6px 10px;
  position: absolute;
  right: 4px;
  top: 2px;
}
.mcf-consent__card .mcf-consent__close:hover,
.mcf-consent__card .mcf-consent__close:focus { background: transparent; color: var(--ink, #fff); }
.mcf-consent__card button:focus-visible,
.mcf-consent__card a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* El botón de WhatsApp sube por encima del aviso mientras está abierto. */
html.mcf-consent-abierto .mcf-wa { transform: translateY(calc(-1 * var(--mcf-consent-h, 0px))); }

@media (max-width: 760px) {
  .mcf-consent__card {
    bottom: 8px;
    display: block;
    left: 8px;
    padding: 12px 14px 12px;
    right: 8px;
  }
  .mcf-consent__card h2 { display: none; } /* en móvil, sin título: el aviso tapa menos */
  .mcf-consent__texto p { font-size: 13px; line-height: 1.4; }
  .mcf-consent__actions { gap: 8px; margin-top: 10px; }
  .mcf-consent__card .mcf-consent__btn { flex: 1 1 0; min-width: 0; padding: 12px 10px; }
  .mcf-consent__close { right: 0; top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .mcf-consent__card { animation: mcfConsentIn .25s ease-out; }
  @keyframes mcfConsentIn { from { opacity: 0; } to { opacity: 1; } }
}
/* Con la «×» a la vista, el texto deja sitio a su derecha. */
.mcf-consent__card--cerrable .mcf-consent__texto { padding-right: 26px; }

/* En ordenador, tarjeta compacta a la derecha: abajo al centro tapaba el botón principal de la portada. */
@media (min-width: 761px) {
  .mcf-consent__card { display: block; left: auto; margin: 0; max-width: 400px; right: 24px; }
  .mcf-consent__actions { margin-top: 14px; }
  .mcf-consent__card .mcf-consent__btn { flex: 1 1 0; }
}
