:root{
  --bg:#F6FBFA;
  --card:#FFFFFF;
  --card-soft:#F0F7F8;

  --txt:#0F2A3F;
  --muted:#5E7E8A;

  --ok:#2EC9B0;
  --warn:#FFB703;
  --bad:#FF6B6B;

  --accent:#40C8D8;
  --accent2:#FFB27F;

  --line:rgba(15,42,63,0.14);
  --shadow:0 8px 26px rgba(15,42,63,0.12);
  --radius:16px;
}

*{
  box-sizing:border-box;
}


:root {
  --wix-font-stack: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wix-font-weight-regular: 400;
  --wix-font-weight-medium: 500;
  --wix-font-weight-bold: 700;
  --wix-font-weight-xbold: 800;
}

html, body {
  font-family: var(--wix-font-stack);
  font-weight: var(--wix-font-weight-regular);

  /* 🔑 Ajustes finos tipo Wix */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body{
  margin:0;
 
  background:
    radial-gradient(1200px 700px at 30% -10%, #E0F7F9 0%, var(--bg) 60%);
  color:var(--txt);
}

.app{
  max-width:980px;
  margin:0 auto;
  padding:16px 16px 88px;
}

/* ================= TOP BAR ================= */

.topbar{
 padding-top: 10px;
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    z-index: 3;
    min-height: 120px;
}

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

.title{
  font-weight:900;
  display:flex;
  align-items:center;
  gap:10px;
}

.pill{
  font-size:12px;
  color:var(--muted);
  padding:6px 10px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.6);
}

/* ================= STEP BAR ================= */

.stepbar{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.stepdot{
  flex:1;
  height:6px;
  border-radius:999px;
  background:rgba(15,42,63,0.12);
  overflow:hidden;
}

.stepdot>i{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#2db1cb 0%,#40C8D8 100%);
  border-radius:999px;
  transition:width .25s ease;
}

/* ================= GRID ================= */

.grid{
  display:grid;
  gap:12px;
}

@media (min-width:860px){
  .grid.two{
    grid-template-columns:1.1fr 0.9fr;
  }
}

/* ================= CARD ================= */

.card{
  background:var(--card);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  padding:14px;
}

.card h2{
  margin:0 0 10px;
  font-size:18px;
}

.sub{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  margin-top:-2px;
}

/* ================= BUTTONS ================= */

.btnrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

button{
  border:1px solid var(--line);
  padding:12px 14px;
  font-weight:800;
  cursor:pointer;
  color:var(--txt);
  background:var(--card-soft);
  transition:transform .06s ease, background .15s ease, box-shadow .15s ease;
}

button:hover{
  box-shadow:var(--shadow);
}

button:active{
  transform:scale(0.97);
}

button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.primary{
      background: linear-gradient(180deg, #90cf42 0%, #51d529 100%);
    border: none;
    color: #ffffff;
    min-width: 180px;
}

.ghost{
  background:rgba(255,255,255,0.8);
}

.danger{
  background:rgba(255,107,107,0.15);
  border:1px solid rgba(255,107,107,0.35);
  color:#8C1D1D;
}

.mini{
  padding:8px 10px;
  border-radius:12px;
  font-size:13px;
}

/* ================= FORMS ================= */

.field{
  display:grid;
  gap:8px;
  margin-top:10px;
}

label{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
}

input{
  width:100%;
  padding:12px;
  border:1px solid var(--line);
  background:#FFFFFF;
  color:var(--txt);
  outline:none;
  font-size:14px;
  font-weight:700;
}

select{
  width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--txt);
    outline: none;
    font-size: 14px;
    font-weight: 700;
}

/* ================= DIVERS ================= */

.diver{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--card-soft);
  margin-top:8px;
}

.diver .name{
  font-weight:900;
}

.diver .meta{
  font-size:12px;
  color:var(--muted);
}

.badge{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border:1px solid var(--line);
  background:#FFFFFF;
  color:var(--muted);
  white-space:nowrap;
}

/* ================= CALENDAR ================= */

.calendar{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
  margin-top:12px;
}

.dow{
  font-size:11px;
  color:var(--muted);
  text-align:center;
  font-weight:900;
}

.day{
  user-select:none;
  text-align:center;
  padding:10px 0;
  border:1px solid var(--line);
  background:#FFFFFF;
  font-weight:900;
  cursor:pointer;
}

.day.muted{
  opacity:.4;
  cursor:default;
}

.day.selStart,
.day.selEnd{
  outline:2px solid rgba(46,201,176,0.9);
  background:rgba(46,201,176,0.18);
}

.day.inRange{
  background:rgba(64,200,216,0.12);
  border-color:rgba(64,200,216,0.35);
}

.day.selected{
  background:var(--ok);
  color:#04302C;
  font-weight:900;
}

.day.disabled {
  pointer-events: none;
  opacity: 0.35;
  cursor: not-allowed;
  background: #f2f2f2;
}

.day.disabled::after {
  content: "✕";
  font-size: 10px;
  position: absolute;
  top: 4px;
  right: 6px;
  color: #aaa;
}

/* ================= DATE BLOCK ================= */

.dateBlock{
  margin-top:12px;
  border:1px solid var(--line);
  overflow:hidden;
  background:#FFFFFF;
}

.dateHead{
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:var(--card-soft);
  border-bottom:1px solid var(--line);
  cursor:pointer;
}

.dateHead .d{
  font-weight:900;
}

.dateHead .right{
  display:flex;
  align-items:center;
  gap:10px;
}

.dateHead .toggle{
  font-size:18px;
  font-weight:900;
  line-height:1;
  user-select:none;
}

/* ================= SERVICES ================= */

.svc{
  padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    background-color: #32bdd43b;
}

.svc:last-child{
  border-bottom:0;
}

.svc .t{
      font-weight: 900;
      font-size: 12px;
      color: #949494;
}

.svc .desc{
  font-size:12px;
  color:var(--muted);
}

.check{
  width:22px;
  height:22px;
  border-radius:8px;
  border:1px solid var(--line);
  background:#FFFFFF;
  display:grid;
  place-items:center;
  font-weight:900;
  color:transparent;
}

.svc.active .check{
  background:rgba(46,201,176,0.22);
  border-color:rgba(46,201,176,0.55);
  color:var(--ok);
}

/* ================= WHO ================= */

.who{
  padding:10px 12px 12px;
  border-top:1px solid var(--line);
  background:var(--card-soft);
  display:none;
}

.svc.active + .who{
  display:block;
}

.whoGrid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.chip{
  user-select:none;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#FFFFFF;
  font-weight:900;
  cursor:pointer;
  font-size:13px;
}

.chip.on{
  background:rgba(64,200,216,0.18);
  border-color:rgba(64,200,216,0.45);
}

/* ================= FOOTER ================= */

.footerNav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  padding:10px 12px;
  z-index:20;
}

.footerInner{
  max-width:980px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.hint{
  color:var(--muted);
  font-size:1px;
  font-weight:800;
}

/* ================= STEPS ================= */

.step{
  display:none;
}

.step.active{
  display:block;
}

.note{
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}

.oktxt{
  color:var(--ok);
  font-weight:900;
}

/* ================= USERS ================= */

.usersIcon{
  position:relative;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid var(--line);
  background:#FFFFFF;
  cursor:pointer;
}

.usersBadge{
  position:absolute;
  top:-6px;
  left:-6px;
  background:var(--ok);
  color:#053A36;
  font-size:12px;
  font-weight:900;
  padding:2px 7px;
  border-radius:999px;
}

.usersModal{
  position:fixed;
  inset:0;
  background:rgba(15,42,63,0.35);
  backdrop-filter:blur(6px);
  z-index:50;
  display:flex;
}

.usersModal.hidden{
  display:none;
}

.usersPanel{
  width:360px;
  background:#FFFFFF;
  border-right:1px solid var(--line);
  padding:14px;
}

.userRow{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:10px;
  border-radius:14px;
  background:var(--card-soft);
  margin-bottom:8px;
}


/* ================= LAYERS ================= */

#bg3d{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;

  z-index: 0;              /* 👈 fondo real */
  pointer-events: none;    /* 👈 NO intercepta clicks */

  background: transparent;
}

#app{
  position:relative;
  z-index:10;
}

/* ================= COLLAPSIBLE ================= */

.dateBlock .dateContent{
  overflow:hidden;
  transition:max-height 0.35s ease, opacity 0.25s ease;
}

.dateBlock.collapsed .dateContent{
  max-height:0;
  opacity:0;
  pointer-events:none;
}

.dateBlock:not(.collapsed) .dateContent{
  max-height:2000px;
  opacity:1;
}


#diversList{
  transition:max-height .35s ease, opacity .25s ease;
}

#diversList.collapsed{
  max-height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
}


.container{
  max-width:980px;
  margin:0 auto;
  padding:0 16px;
}



/* ================= HERO BANNER ================= */

.heroBanner{
  position: relative;
  width: 100%;
  height: 320px; /* 🔑 responsive real */
  overflow: hidden;
    z-index: 6;

  background:
    linear-gradient(
      180deg,
      rgba(15,42,63,0.25) 0%,
      rgba(15,42,63,0.05) 35%,
      rgba(15,42,63,0.00) 100%
    ),
    url("https://aldorareservations.online/Views/Default/img/aldora/aldora_new_3.jpg")
      no-repeat center center;

  background-size: cover;
  background-color: var(--accent);
}


/* 📱 MÓVIL */
@media (max-width: 640px){
  .heroBanner{
    height: clamp(200px, 34vh, 300px);
    padding-top: 10px;
  }
}

/* 📱📐 TABLET */
@media (min-width: 641px) and (max-width: 1024px){
  .heroBanner{
    height: 180px;
  }
}

/* 🖥️ DESKTOP GRANDE */
@media (min-width: 1200px){
  .heroBanner{
    height: 320px;
  }
}

.heroHeader{
  position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    z-index: 1000;
    padding-bottom: 10px;
    padding-top: 10px;
    background: transparent;
}

.heroHeader.is-fixed{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
    padding-bottom: 10px;
    padding-top: 10px;
  background:#010b15c7;
  backdrop-filter:blur(14px);
  box-shadow:0 8px 26px rgba(15,42,63,0.18);
}

.heroHeader.is-fixed .title,
.heroHeader.is-fixed button,
.heroHeader.is-fixed .usersIcon{
  color:var(--txt);
}

.heroHeader.is-fixed .pill{
  background:var(--card-soft);
  color:var(--muted);
  border-color:var(--line);
}

.heroHeader .title,
.heroHeader button,
.heroHeader .usersIcon{
  color:#ffffff;
}

.heroHeader .pill{
  background:rgba(255,255,255,0.18);
  color:#ffffff;
  border-color:rgba(255,255,255,0.35);
}


@media (max-width:640px){
  .heroBanner{
            height:280px;
  }
}


:root{
  --fixedHeaderH: 0px; /* se setea por JS */
}

/* cuando el header esté fixed, la topbar sticky se pega debajo */
body.has-fixed-header .topbar{
  top: var(--fixedHeaderH);
}



/* ================================
   CHIP — BUZOS (STEP 3)
================================ */

/* ================================
   CHIP BASE (NO SELECCIONADO)
================================ */

.chip{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;

  background: rgba(255,107,107,0.12);
  color: #8c1d1d;

  border: 1px solid rgba(255,107,107,0.45);
  transition: all 0.2s ease;
}

/* ❌ TACHE POR DEFECTO */
.chip::before{
  content: "✕";
  margin-right: 6px;
  font-weight: 900;
}

/* ✨ HOVER */
.chip:hover{
  background: rgba(255,107,107,0.2);
}

/* ================================
   CHIP SELECCIONADO
================================ */

.chip.on{
     background: #3cbe208c;
    color: #3b8b51;
    border-color: #1fb6a1;
    box-shadow: 0 4px 10px rgb(140 140 140 / 35%);
}

/* ✅ PALOMITA CUANDO ESTÁ ON */
.chip.on::before{
  content: "✓";
  color: #07131c;
}




/* ================================
   DATE HEAD — EXPAND / COLLAPSE
================================ */

/* Estado normal (cerrado) */
.dateHead{
  padding: 10px 12px;
  cursor: pointer;

  background: rgba(255,255,255,0.06);
  color: #8f8f8f;

  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.25s ease;
}

/* ✨ Hover */
.dateHead:hover{
  background: rgba(255,255,255,0.12);
}

/* ✅ ABIERTO (NO colapsado) */
.dateBlock:not(.collapsed) .dateHead{
     background: #152040;
    color: #ffffff;
    border-color: #2db1cb;
    box-shadow: 0 6px 14px rgb(0 177 255 / 35%);
}

/* Icono + / − */
.dateHead .toggle{
  font-weight: 900;
  font-size: 18px;
}

/* Icono en estado abierto */
.dateBlock:not(.collapsed) .dateHead .toggle{
  color: #f5f5f5;
}

#step4 .btnrow{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

#step4 .totalBox{
  margin-right:auto; /* empuja botones a la derecha */
  width: 100%;
}


/* =========================================
   CONFIRM CARD — STICKY DEFINITIVO
========================================= */




/* columna derecha */
.confirmColumn{
  position: sticky;
  top: var(--fixedHeaderH); /* heroHeader + topbar */
  align-self: flex-start;
}

/* la card NO se mueve */
.confirmCard{
  position: relative;
  width: 100%;
}

/* MUY IMPORTANTE: ningún padre debe cortar overflow */
#step4,
#step4 .grid,
.app{
  overflow: visible;
}

#step4 .btnrow{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

#step4 .totalBox{
  margin-right:auto; /* empuja botones a la derecha */
}




#step3,
#step3 .grid,
.app{
  overflow: visible;
}

#step3 .btnrow{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

#step3 .totalBox{
  margin-right:auto; /* empuja botones a la derecha */
}




/* ================= GUIDE ================= */

/* ================= GUIDE CONTENT ================= */

#guide{
  width: 100%;
  float: right;
  margin:10px auto 0;
  padding: 18px 14px 23px 100px; /* deja espacio para la imagen */
  max-width:980px;
  font-size:13px;
  color:#ffffff;
  background:#f0f7f82e;
      font-weight: initial;
  border-radius:10px;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:8px;
}

/* ================= GUIDE STATES ================= */

#guide.ok{
  background:rgba(46,201,176,.92);
  color:#053A36;
}

#guide.warn{
  background:rgba(255,183,3,.92);
}

#guide.info{
  background:rgba(224,247,249,.92);
  min-height: 100px;
}

.guide-icon{
  font-size:14px;
}

/* ================= GUIDE WRAPPER (AVATAR PERMANENTE) ================= */

.guide{
  position: relative; /* contexto del pseudo-elemento */
}

/* avatar SIEMPRE visible, sin depender del estado */
.guide::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:90px;
  height:90px;
  background-image:url("https://aldorareservations.online/Views/Default/img/aldora/icon_aldora_png.png");
  background-repeat:no-repeat;
  background-size:contain;
  background-position:left top;
  z-index:2;
  pointer-events:none;
}

/* contenido siempre debajo del avatar */
.guide > *{
  position: relative;
  z-index:1;
}




.langFlags{
  display:flex;
  gap:6px;
  margin-bottom:10px;
}

.langFlag{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:10px;
  padding:4px 6px;
  font-size:16px;
  cursor:pointer;
  opacity:.45;
  transition:.15s;
}

.langFlag.active{
  opacity:1;
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(64,200,216,.25);
}


/* ===============================
   OVERLAY
================================ */
#admin-popup{
  position: fixed;
  inset: 0;
  background: #3b99e1ad;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  align-items: flex-start;   /* 🔑 NO center */
  justify-content: center;

  padding: 16px;
  overflow-y: auto;          /* 🔑 el overlay puede scrollear */
  z-index: 99;
}

/* ===============================
   CARD
================================ */
.admin-card{
  width: 100%;
  max-width: 420px;
  padding:16px;
  background: var(--card,#ffffff);
  color: var(--txt,#0f2a3f);

  
  box-shadow: 0 25px 80px rgba(0,0,0,0.45);

  display: flex;
  flex-direction: column;
  gap: 12px;

  max-height: calc(100vh - 32px); /* 🔑 viewport real */
  overflow-y: auto;               /* 🔑 scroll real */
}

/* ===============================
   HEAD
================================ */
.admin-card h3{
  margin:0 0 8px;
  font-size:1.1rem;
  text-align:center;
}

/* ===============================
   INPUTS
================================ */
.admin-card label{
  font-size:0.75rem;
  opacity:0.75;
  margin-top:4px;
}

.admin-card input,
.admin-card textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line,#d0d7de);
  font-size:14px;
  background:var(--card-soft,#f6fbfa);
  outline:none;
}

.admin-card input:focus,
.admin-card textarea:focus{
  border-color:var(--accent,#40c8d8);
}

.admin-card textarea{
  resize:none;
  min-height:80px;
}

/* ===============================
   ACTIONS
================================ */
.actions{
  position: sticky;
  bottom: -20px;

  background: var(--card,#ffffff);
  padding-top: 12px;
  padding-bottom: 12px;

  display: flex;
  gap: 12px;
}

.actions button{
  flex:1;
  padding:12px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
  border:none;
}

#adm-cancel{
  background:#e5e7eb;
  color:#111827;
}

#adm-ok{
  background:var(--accent,#40c8d8);
  color:white;
}

/* ===============================
   RESPONSIVE
================================ */


.courseBlock{
  margin-top: 16px;
    border-top: 2px dashed var(--line);
    padding-top: 8px;
    background-color: #a4ff267a;
}

.courseHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  font-weight:900;
  color:var(--accent);
  user-select:none;
}

.courseBlock.collapsed .courseContent{
  display:none;
}

.courseSvc{
  background:rgba(64,200,216,0.12);
  border-left:4px solid var(--accent);
}

/* CONTENEDOR GENERAL */
.stripe-wrapper{
  width:100%;
  display:flex;
  justify-content:center;
  
  box-sizing:border-box;
}

/* CONTENEDOR RESPONSIVE */
.stripe-container{
  width:100%;
  max-width:480px;        /* 💡 móvil + desktop perfecto */
  background:#ffffff;
  border-radius:16px;
  padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

/* FORM */
#payment-form{
  width:100%;
}

/* BOTÓN */
.stripe-submit{
  width:100%;
  background-color:#3f51b5;
  color:#ffffff;
  margin-top:20px;
  padding:14px;
  font-size:16px;
  border-radius:10px;
  border:none;
  display:none; /* se muestra después */
}

/* MENSAJES */
#payment-message{
  margin-top:12px;
  text-align:center;
}


/* ================================
   SERVICES BLOCK (STEP 3)
   — MISMO PATRÓN QUE COURSES
================================ */

.servicesBlock{
  margin-top: 16px;
  border-top: 2px dashed var(--line);
  padding-top: 8px;
  background-color: #e6f7fb; /* ligero azul, coherente con buceo */
}

.servicesHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  font-weight:900;
  color: var(--accent);
  user-select:none;
}

/* Colapsado real */
.servicesBlock.collapsed .servicesContent{
  display:none;
}

/* Mantener coherencia con .svc */
.servicesBlock .svc{
  background-color: #32bdd43b;
}


.step3Indicator{
  margin: 16px 0 12px;
  padding: 10px 0;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--txt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.servicesInfo{
  text-align: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

button.disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.3);
}


.adm-terms{
  width: 100%;
  box-sizing: border-box;
  background: rgba(166,166,166,0.14);
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
}

.adm-terms label{
  display: block;           /* ⬅️ CLAVE */
  width: 100%;
  cursor: pointer;
}

.adm-terms input{
  margin-right: 8px;
}

.adm-terms span{
  display: inline;          /* texto normal */
  white-space: normal;      /* ⬅️ permite saltos */
  word-break: normal;
  overflow-wrap: break-word;
}



/* =========================================
   BTN NEXT — LLAMAR ATENCIÓN CUANDO ACTIVO
========================================= */

@keyframes btnNextPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(64,200,216,0);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 10px 26px rgba(64,200,216,0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(64,200,216,0);
  }
}

#btnNext.attention {
  animation: btnNextPulse 1.2s ease-in-out infinite;
}

#btnNext.attention:active {
  transform: scale(1.02);
}
