:root {
    --bg1: #071023;
    --bg2: #0b1b34;
    --glass: rgba(255, 255, 255, .08);
    --glassBorder: rgba(255, 255, 255, .14);
    --soft: rgba(255, 255, 255, .76);
}

html,


body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

h1,
h2,
h3 {
    font-weight: 600;
}

p,
label,
input,
textarea {
    font-weight: 400;
}

.small,
.badge,
.pill {
    font-weight: 300;
}

.privacy-text {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}


.bg-wrap {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    background:
        /* Gradientes encima (overlay) */
        radial-gradient(1100px 600px at 15% 10%, rgba(13, 202, 240, .28), transparent 60%),
        radial-gradient(900px 500px at 85% 30%, rgba(111, 66, 193, .22), transparent 60%),
        radial-gradient(1000px 650px at 40% 100%, rgba(25, 135, 84, .14), transparent 62%),

        /* Capa oscura de legibilidad */
        linear-gradient(rgba(7, 16, 35, 0.80),
            rgba(7, 16, 35, 0.90)),

        /* Imagen de fondo */
        url("/img/bg_wrap.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.text-white-75 {
    color: var(--soft) !important;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(13, 202, 240, .18);
    border: 1px solid rgba(13, 202, 240, .3);
    color: #fff;
}

.center-screen {
    min-height: 100vh;
    /* ocupa toda la pantalla */
    display: flex;
    align-items: center;
    /* centra vertical */
    justify-content: center;
    /* centra horizontal */
    padding: 24px;
}

.text-box {
    max-width: 1200px;
    /* ancho legible */
    text-align: center;
    /* texto centrado */
    font-size: 1.1 rem;
    /* típico legal */
    line-height: 1.6;
    color: var(--muted);
}


.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .9);
    font-size: .9rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .20);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .82);
    font-size: .85rem;
}

.glass {
    background: var(--glass);
    border: 1px solid var(--glassBorder);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem .95rem;
    border-radius: 1.15rem;
    background: rgba(0, 0, 0, .20);
    border: 1px solid rgba(255, 255, 255, .10);
}

.feature-card i {
    font-size: 1.15rem;
    opacity: .9;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: rgba(13, 202, 240, .15);
    border: 1px solid rgba(13, 202, 240, .25);
    color: rgba(255, 255, 255, .9);
    font-size: .8rem;
}

.form-control,
.form-select {
    background: rgba(0, 0, 0, .18) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, .55);
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 .25rem rgba(13, 202, 240, .15) !important;
}

.hover-white:hover {
    color: #fff !important;
}

/* Waves */
.wave {
    position: absolute;
    left: 0;
    width: 100%;
    fill: rgba(255, 255, 255, .06);
    z-index: 0;
    pointer-events: none;
}

.wave-top {
    top: 0;
    height: 220px;
}

.wave-bottom {
    bottom: 0;
    height: 260px;
    fill: rgba(255, 255, 255, .05);
}

/* Blobs */
.blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(45px);
    opacity: .55;
    z-index: 0;
    pointer-events: none;
}

.b1 {
    width: 420px;
    height: 420px;
    left: -160px;
    top: 18%;
    background: rgba(13, 202, 240, .42);
}

.b2 {
    width: 460px;
    height: 460px;
    right: -190px;
    top: 10%;
    background: rgba(111, 66, 193, .35);
}

.b3 {
    width: 520px;
    height: 520px;
    left: 20%;
    bottom: -260px;
    background: rgba(25, 135, 84, .20);
}

/* Keep content above decorations */
header,
main {
    position: relative;
    z-index: 1;
}

/* ========================= */
/*   POPUP MÁS PEQUEÑO       */
/* ========================= */

/* ========================= */
/*   OVERLAY GENERAL         */
/* ========================= */

/* Popup principal en la esquina inferior derecha */
/* Base para TODOS los overlays (aviso + configuración) */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* AVISO principal en esquina inferior derecha */
#cookie-overlay {
    inset: auto;
    /* anulamos el inset:0 */
    bottom: 20px;
    right: 20px;
    left: auto;
    top: auto;
    background: none;
    /* sin oscurecer la pantalla para el aviso */
    align-items: flex-end;
    justify-content: flex-end;
}





/* ========================= */
/*   POPUP REDUCIDO          */
/* ========================= */

.cookie-popup,
.cookie-settings-popup {
    background: linear-gradient(to right, #1a357c, #3c6cf0);
    max-width: 420px;
    width: 92%;
    padding: 18px 20px;
    border-radius: 8px;
    font-family: system-ui;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ========================= */
/*   TEXTOS REDUCIDOS        */
/* ========================= */

.cookie-popup h2,
.cookie-settings-popup h2 {
    font-size: 17px;
    margin-bottom: 10px;
}

.cookie-popup p,
.cookie-settings-popup p {
    font-size: 13px;
    line-height: 1.35;
}

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

.btn-primary,
.btn-outline,
.btn-link {
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.btn-outline {
    background: #fff;
    color: #1a73e8;
    border-color: #1a73e8;
}

.btn-link {
    color: #1a73e8;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* ========================= */
/* SWITCHES REDUCIDOS        */
/* ========================= */

.switch {
    position: relative;
    width: 40px;
    height: 20px;
    display: inline-block;
}

.switch input {
    opacity: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 20px;
    transition: .3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}

input:checked+.slider {
    background: #1a73e8;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* ========================= */
/* BLOQUES Y ACCIONES        */
/* ========================= */

.cookie-block {
    margin-bottom: 18px;
}

.cookie-settings-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.full {
    width: 100%;
    padding: 8px 0 !important;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border-radius: 50%;
    padding: 12px 15px;
    font-size: 18px;
    transition: opacity 0.3s ease;
}



#whatsapp-chat {
    position: fixed;
    bottom: 80px;
    right: 20px;
    /* <-- Aquí está el cambio */
    z-index: 9999;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none !important;
}

#whatsapp-chat:hover {
    background-color: #1ebe5d;
}





/* Botón flotante para abrir el widget */
#accessibility-toggle {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 9999;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 12px;
    font-size: 14px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Panel de accesibilidad (oculto por defecto, se abrirá con JS) */
#accessibility-widget {
  display: none;
  /* <-- Solo esta línea para ocultarlo al inicio */
  position: fixed;
  bottom: 200px;
  right: 20px;
  z-index: 10000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  gap: 6px;
  font-family: sans-serif;
}

/* Estilo para botones del widget */
#accessibility-widget button {
  background: #007acc;
  color: white;
  border: none;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#accessibility-widget button:hover {
  background: #005f99;
}

/* Accesibilidad visual */
.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

.high-contrast a {
  color: #0ff !important;
}

.grayscale {
  filter: grayscale(100%);
}

/* =========================
   COOKIES (estilo biofy)
   ========================= */

.cookie-box {
  width: min(520px, calc(100vw - 40px));
  background: rgba(36, 53, 109, 0.92);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  color: rgba(255, 255, 255, .92);
}

.cookie-box-wide {
  width: min(640px, calc(100vw - 40px));
}

.cookie-title {
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 10px;
}

.cookie-text {
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
  line-height: 1.35;
  margin: 0 0 10px 0;
}

.cookie-text-small {
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cookie-actions-right {
  justify-content: flex-end;
}

.cookie-btn {
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .85rem;
  cursor: pointer;
}

.cookie-btn:hover {
  background: rgba(76, 101, 183, 0.92);
  
  color: #fff;
}

.cookie-btn-primary {
  border-color: rgba(246, 161, 45, 0.85);
  background: rgba(246, 161, 45, 0.18);
}

.cookie-link {
  color: #f6a12d;
  text-decoration: none;
  font-size: .85rem;
  border-bottom: 1px solid rgba(246, 161, 45, .35);
  padding-bottom: 1px;
}

.cookie-link:hover {
  color: #fff;
  border-bottom-color: rgba(76, 101, 183, 0.92);
}

/* Preferencias */
.cookie-pref {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}

.cookie-pref-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-pref-name {
  font-weight: 800;
  font-size: .92rem;
}

.cookie-pref-desc {
  margin-top: 8px;
  font-size: .85rem;
  color: rgba(255, 255, 255, .75);
}

/* Switch */
.cookie-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.cookie-switch input {
  display: none;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  background: rgba(76, 101, 183, 0.92);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
}

.cookie-slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}

.cookie-switch input:checked+.cookie-slider {
  background: rgba(246, 161, 45, .35);
  border-color: rgba(246, 161, 45, .55);
}

.cookie-switch input:checked+.cookie-slider::after {
  transform: translateX(20px);
}

/* Botón gestionar consentimiento */
#cookie-manage-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99998;
  display: none;
  border: 1px solid rgba(255, 255, 255, .18);
  background: none;
  color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .8rem;
  cursor: pointer;
}

#cookie-manage-consent:hover {
  background: rgba(76, 101, 183, 0.92);
  border-color: rgba(246, 161, 45, 0.45);
}

/* Responsive */
@media (max-width: 480px) {
  #cookie-overlay {
    right: 12px;
    bottom: 12px;
  }

  #cookie-manage-consent {
    right: 12px;
    bottom: 12px;
  }
}

