:root {
  /* Ajusta aquí los colores corporativos */
  --brand-primary: #005A9C;
  --brand-primary-2: #4C9AFF;
  --brand-accent: #28A745;

  --bg0: #050a14;
  --bg1: #071a33;
  --glass: rgba(255, 255, 255, .08);
  --glass2: rgba(255, 255, 255, .12);
  --border: rgba(255, 255, 255, .14);

  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .70);
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  color: var(--text);
  background:
    /* Gradientes encima (overlay) */
    radial-gradient(1100px 600px at 15% 10%, #18243f, transparent 60%),
    radial-gradient(900px 500px at 85% 30%, #263651, transparent 60%),
    radial-gradient(1000px 650px at 40% 100%, #18243f, 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_construction.png");

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

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}




.nav-glass {
  background: rgba(0, 0, 0, .35);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(12px);
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 90, 156, .18);
  border: 1px solid rgba(0, 90, 156, .35);
}

.brand-text {
  font-weight: 900;
  letter-spacing: .2px;
}

.brand-dot {
  color: var(--brand-accent);
}

.hero {
  position: relative;
  padding: 64px 0 24px;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  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/bgroung.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(245, 239, 239, 0.14);
  color: #f6a12d;
}

@keyframes blinkFade {

  0%,
  100% {
    opacity: 1;
  }

  70% {
    opacity: 0.2;
  }
}

.tag-muted {
  color: var(--muted);
  font-size: .95rem;
}

.hero-title {
  font-weight: 900;
  letter-spacing: -.2px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  margin: 12px 0;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
}

.btn {

  color: #ffffff;
  border-color: #f6a12d;
}

.btn:hover {
  filter: brightness(1.04);
  color: #151b60;
  background-color: #f6a12d;
}


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

.kpi {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 12px 12px;
}

.kpi-value {
  font-weight: 900;
  font-size: 1.05rem;
}

.kpi-label {
  color: var(--muted);
  font-size: .85rem;
}

.countdown-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 14px 14px;
}

.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cd-box {
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
}

.cd-num {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .6px;
}

.cd-lbl {
  color: var(--muted);
  font-size: .78rem;
}

.hero-visual .visual-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.visual-head {
  padding: 14px 16px;
  background: rgba(0, 0, 0, .20);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(40, 167, 69, .14);
  border: 1px solid rgba(40, 167, 69, .22);
  color: rgba(255, 255, 255, .92);
  font-size: .82rem;
}

.visual-body {
  padding: 16px;
}

.step {
  display: flex;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  margin-bottom: 10px;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: #f6a12d;
  color: #ffffff;
}




.tagline {
  animation: blinkFade 1.8s ease-in-out infinite;
}


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

.trust-item {
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--muted);
  font-size: .9rem;
}

.section {
  padding: 56px 0;
}

.section-last {
  padding-bottom: 76px;
}

.section-head {
  margin-bottom: 16px;
}

.section-title {
  font-weight: 900;
  letter-spacing: -.2px;
  margin: 0;
}

.section-sub {
  color: var(--muted);
  margin: 6px 0 0;
}

.card-glass {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.svc-ico {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(76, 154, 255, .14);
  border: 1px solid rgba(76, 154, 255, .26);
}

.svc-ico i {
  font-size: 1.25rem;
}

.how-num {
  font-weight: 900;
  color: rgba(76, 154, 255, .95);
  font-size: 1.2rem;
}

.acc-glass .accordion-item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
}

.acc-glass .accordion-button {
  background: transparent;
  color: rgba(255, 255, 255, .92);
}

.acc-glass .accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(76, 154, 255, .20);
}

.acc-glass .accordion-button:not(.collapsed) {
  background: rgba(0, 0, 0, .18);
}

.hr-soft {
  border-color: rgba(255, 255, 255, .12);
}

.offcanvas-glass {
  background: rgba(10, 16, 35, .92);
  border-left: 1px solid rgba(255, 255, 255, .14);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.modal-glass {
  background: rgba(10, 16, 35, .92);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(40, 167, 69, .55);
  box-shadow: 0 0 0 .2rem rgba(40, 167, 69, .18);
  color: var(--text);
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}

.captcha-placeholder {
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .16);
  padding: 12px 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.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;
}


/* ========================= */
/*   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;
}







/* WIDGETS*/

#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 16px;
  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;
  }
}



/* Responsive */
@media (max-width: 576px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }

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

  .trust-bar {
    grid-template-columns: 1fr;
  }
}