
:root{
  --blue1:#0a1f92;
  --blue2:#382a82;
  --btn:#d7841c;
  --btn2:#c57113;
  --text:#ffffff;
  --muted:rgba(255,255,255,.86);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,var(--blue1),var(--blue2));
}

.wrap{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* HERO full width */
.hero{ width:100%; }
.hero-img{
  width:100%;
  height:auto;
  display:block;
}

/* botones abajo */
.actions{
  width:100%;
  display:flex;
  justify-content:center;
  gap:34px;
  flex-wrap:wrap;
  padding:26px 16px 10px;
  background:var(--blue1);
}

.btn{
  background:var(--btn);
  border:none;
  color:#fff;
  padding:14px 38px;
  border-radius:12px;
  font-weight:1000;
  font-size:15px;
  letter-spacing:.6px;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  transition:transform .15s ease, background .15s ease;
}
.btn:hover{ background:var(--btn2); transform:translateY(-1px); }

.footer{
  width:100%;
  text-align:center;
  padding:12px 16px 26px;
  background:var(--blue1);
  color:rgba(255,255,255,.75);
  font-size:14px;
}
.footer .dot{ margin:0 10px; opacity:.8; }

/* MODALS */
.modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
  padding:18px;
  z-index:50;
}
.modal.active{ display:grid; }

.modal-box{
  width:min(920px, 100%);
  background:rgba(10,31,146,.22);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  box-shadow:0 22px 70px rgba(0,0,0,.55);
  overflow:hidden;
  position:relative;
}

.modal-head{
  position:relative;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.modal-head h2{
  margin:0;
  text-align:center;
  font-weight:1000;
  letter-spacing:.4px;
}
.x{
  position:absolute;
  right:12px;
  top:12px;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.22);
  color:#fff;
  cursor:pointer;
}

.modal-body{
  padding:16px 18px;
  line-height:1.65;
  color:var(--muted);
}
.modal-body p{ margin:0 0 12px; }

.modal-actions{
  display:flex;
  justify-content:center;
  padding:14px 18px 18px;
  border-top:1px solid rgba(255,255,255,.10);
}

.field{
  width:100%;
  min-height:170px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.18);
  color:#fff;
  padding:14px;
  resize:vertical;
  outline:none;
}

.hint{ min-height:20px; margin-top:10px; }
.thanks{
  margin-top:12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.18);
  color:rgba(255,255,255,.88);
}

/* notebook */
.notebook .note{
  padding:12px 14px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.22);
  background:rgba(0,0,0,.14);
}
.paper{
  width:100%;
  min-height:230px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(transparent 0, transparent 28px, rgba(255,255,255,.08) 28px, rgba(255,255,255,.08) 29px) 0 0/100% 29px,
    rgba(0,0,0,.18);
  color:#fff;
  padding:16px;
  outline:none;
  resize:vertical;
  font-family: ui-rounded, "Trebuchet MS", system-ui;
  font-size:18px;
  line-height:29px;
}

/* overlay éxito centrado */
.success{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.78);
  padding:18px;
}
.success-card{
  width:min(680px, 100%);
  text-align:center;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(56,42,130,.25);
  padding:18px;
  color:#fff;
}
.success-card h3{ margin:0 0 8px; font-size:30px; }
.success-card p{ margin:0 0 14px; color:rgba(255,255,255,.86); }


/* ===== Overlay layout (botones encima del fondo, sin franja azul) ===== */
.wrap{ align-items:stretch; }

.hero{ width:100%; }
.hero-inner{
  position:relative;
  width:100%;
  min-height:100vh;
  overflow:hidden;
}
.hero-img{
  width:100%;
  height:100vh;
  object-fit:cover;
  display:block;
}

/* Botones flotando sobre la imagen */
.overlay-actions{
  position:absolute;
  left:50%;
  bottom:68px;
  transform:translateX(-50%);
  display:flex;
  gap:34px;
  flex-wrap:wrap;
  justify-content:center;
  padding:12px 14px;
  width:min(980px, calc(100% - 32px));
}

.btn{
  border-radius:12px;
}

/* Footer flotando, discreto */
.overlay-footer{
  position:absolute;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  padding:0 12px;
  color:rgba(255,255,255,.75);
  font-size:14px;
  text-shadow:0 2px 10px rgba(0,0,0,.55);
}
.overlay-footer .dot{ margin:0 6px; opacity:.85; }

/* Ajustes responsive */
@media (max-width: 720px){
  .overlay-actions{ bottom:86px; gap:14px; }
  .btn{ width:100%; max-width:520px; }
  .overlay-footer{ bottom:16px; font-size:13px; }
}


/* Fix: garantizar que hidden oculte overlays */
[hidden]{display:none !important;}


/* ===== Fondo con 2 imágenes (desktop + mobile) ===== */
html, body { height: 100%; }
body { margin: 0; background: #0a1f92; overflow-x: hidden; }

.hero-inner{
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg{
  position: absolute;
  inset: 0;
  background-image: url('assets/fondo_desktop.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.001);
}

.overlay-actions,
.overlay-footer{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.overlay-actions{
  bottom: 68px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 14px;
  width: min(980px, calc(100% - 32px));
}

.overlay-footer{
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 12px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

@media (max-width: 720px){
  .overlay-actions{ bottom: 86px; gap: 14px; }
  .btn{ width: 100%; max-width: 520px; }
  .overlay-footer{ bottom: 16px; font-size: 13px; }
}

@media (max-width: 520px){
  .hero-bg{
    background-image: url('assets/fondo_mobile.png');
    background-size: cover;
    background-position: center top;
  }
  .overlay-actions{ bottom: 62px; width: calc(100% - 28px); padding: 10px 10px; }
  .btn{ padding: 14px 18px; border-radius: 14px; font-size: 14px; }
}

@supports (padding: max(0px)){
  .overlay-actions{ padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .overlay-footer{ padding-bottom: max(0px, env(safe-area-inset-bottom)); }
}

.hero-img{display:none !important;}
