*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, Helvetica, sans-serif;
}

html{
  -webkit-text-size-adjust:100%;
}

body{
  background:#ffffff;
  overflow-x:hidden;
}

/* ================= LOADER ================= */

#loaderOverlay{
  position:fixed;
  inset:0;
  background:#ffffff;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  z-index:9999;
  transition:1s;
}

.logoRow{
  display:flex;
  gap:40px;
  margin-bottom:20px;
}

.loader{
  position:relative;
  width:80px;
  height:80px;
}

.loader svg{
  width:100%;
  height:100%;
}

.loader path,
.loader circle{
  fill:none;
  stroke:#000;
  stroke-width:6px;
  stroke-dasharray:220;
  stroke-dashoffset:220;
  animation:draw 1.4s linear infinite;
}

.dot{
  position:absolute;
  width:8px;
  height:8px;
  background:#002b5c;
  border-radius:50%;
  animation:follow 1.4s linear infinite;
}

.loadingText{
  color:#000;
  font-size:22px;
  letter-spacing:4px;
  animation:fadeText 1.5s infinite;
}

@keyframes draw{
  to{stroke-dashoffset:0;}
}

@keyframes follow{
  0%{transform:translate(10px,70px);}
  33%{transform:translate(40px,20px);}
  66%{transform:translate(70px,70px);}
  100%{transform:translate(10px,70px);}
}

@keyframes fadeText{
  0%{opacity:0;}
  50%{opacity:1;}
  100%{opacity:0;}
}

#loaderOverlay.zoomOut{
  opacity:0;
  pointer-events:none;
}

/* ================= APP ================= */

.app{
  width:100%;
  min-height:100vh;
  display:flex;
  align-items:stretch;
  background:#ffffff;
}

/* ================= IZQUIERDA ================= */

.left{
  flex:1 1 auto;
  min-width:0;
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background:#dce4ef;
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
}

/* Fondo duplicado desenfocado */
.left::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("https://mdodentaltraining.org/wp-content/uploads/2026/03/PORTADA-MDO-2026-scaled.png");
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center center;
  transform:scale(1.12);
  filter:blur(22px) brightness(.72) saturate(115%);
  z-index:0;
}

/* Capa suave para que se vea más elegante */
.left::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.08) 0%,
      rgba(255,255,255,.04) 18%,
      rgba(6,20,44,.12) 45%,
      rgba(6,20,44,.20) 72%,
      rgba(6,20,44,.28) 100%
    );
  z-index:1;
}

.left img{
  position:relative;
  z-index:2;
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  object-position:center top;
  transform:translateY(50px);
  pointer-events:none;
  filter:drop-shadow(0 18px 36px rgba(0,0,0,.16));
}

/* ================= REDES SOBRE EL FONDO ================= */

.social-glass{
  position:absolute;
  z-index:3;
  left:50%;
  transform:translateX(-50%);
  bottom:12px;
  background:rgba(0, 0, 0, 0.35);
  border-radius:30px;
  padding:5px 14px;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:0 10px 22px rgba(0,0,0,.12);
}

.social-container{
  display:flex;
  gap:18px;
}

.social-card{
  position:relative;
  width:44px;
  height:44px;
  background:#f1f1f1;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  text-decoration:none;
  cursor:pointer;
  transition:all .25s ease;
  transform:scale(.9);
}

.social-card i{
  font-size:16px;
  color:#000;
}

.tooltip{
  position:absolute;
  top:-42px;
  background:#000000;
  color:#ffffff;
  padding:6px 12px;
  border-radius:20px;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transition:.25s;
  white-space:nowrap;
}

.tooltip::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:50%;
  transform:translateX(-50%);
  border-width:6px 6px 0;
  border-style:solid;
  border-color:#000000 transparent transparent;
}

.social-card:hover{
  transform:scale(1.1);
}

.social-card:hover .tooltip{
  opacity:1;
  top:-52px;
}

.facebook:hover{
  background:#1877f2;
}
.facebook:hover i{
  color:#ffffff;
}

.tiktok:hover{
  background:#000000;
}
.tiktok:hover i{
  color:#ffffff;
}

.instagram:hover{
  background:#e1306c;
}
.instagram:hover i{
  color:#ffffff;
}

.whatsapp:hover{
  background:#25d366;
}
.whatsapp:hover i{
  color:#ffffff;
}

/* ================= DERECHA ================= */

.right{
  width:36%;
  max-width:560px;
  min-width:360px;
  background:#ffffff;
  padding:clamp(24px, 2.4vw, 42px) clamp(22px, 2vw, 36px);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:100vh;
}

.right h1{
  color:#000;
  margin-bottom:10px;
  font-size:clamp(22px, 2vw, 30px);
  line-height:1.2;
}

.subtitle{
  color:#000;
  margin-bottom:24px;
  font-size:14px;
  line-height:1.55;
}

.screen{
  width:min(100%, 520px);
  max-width:520px;
}

#introScreen,
#modalidadScreen,
#pagoScreen,
#resumenScreen{
  width:min(100%, 520px);
  max-width:520px;
}

/* ================= FORMULARIOS GENERALES ================= */

.form-personal,
.modalidad-form{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:10px;
}

.campo{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.campo label{
  font-size:14px;
  color:#000;
  line-height:1.45;
}

/* ===== CAMPOS DE TEXTO ===== */

.input-line{
  width:min(100%, 28ch);
  max-width:100%;
  background:transparent;
  border:none;
  border-bottom:2px solid #000;
  padding:8px 2px;
  font-size:14px;
  outline:none;
  transition:.3s;
  display:block;
}

.input-line:hover{
  border-bottom:2px solid #0052af;
}

.input-line:focus{
  border-bottom:2px solid #0052af;
  box-shadow:0 2px 12px rgba(0,82,175,0.27);
}

#nombreCompleto{
  width:min(100%, 34ch);
}

#telefono,
#whatsapp{
  width:min(100%, 18ch);
}

#fechaNacimiento{
  width:min(100%, 18ch);
}

#dni{
  width:min(100%, 12ch);
}

#correo{
  width:min(100%, 30ch);
}

#residencia{
  width:min(100%, 28ch);
}

#numeroCOP{
  width:min(100%, 16ch);
}

#montoMensual{
  width:min(100%, 14ch);
}

#verificationInput{
  width:min(100%, 26ch);
}

#textoFullDay{
  width:min(100%, 34ch);
}

.fecha-input{
  cursor:pointer;
  min-height:44px;
  appearance:none;
  -webkit-appearance:none;
  background:#fff;
  border:1px solid #d7dde6;
  border-radius:10px;
  padding:10px 12px;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.fecha-input:focus{
  border-color:#0052af;
  box-shadow:0 4px 16px rgba(0,82,175,.15);
}

/* ================= BOTONES PRINCIPALES ================= */

.send-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:fit-content;
  width:auto;
  max-width:100%;
  height:46px;
  padding:0 18px;
  border:2px solid #000;
  background:#000;
  color:#fff;
  letter-spacing:1px;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  margin-top:20px;
  border-radius:10px;
  transition:transform .2s ease, box-shadow .25s ease, border-color .25s ease;
  white-space:nowrap;
}

.send-btn span{
  position:relative;
  z-index:2;
  font-weight:600;
  font-size:13.5px;
  text-align:center;
}

.send-btn::after{
  content:"";
  position:absolute;
  inset:0;
  width:0;
  background:#0052af;
  transition:.35s ease;
  z-index:1;
}

.send-btn:hover::after{
  width:100%;
}

.send-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,0.12);
}

.send-btn:active{
  transform:scale(.98);
}

.secondary-btn{
  background:linear-gradient(135deg,#111,#2f2f2f);
  color:#fff;
  border-color:#111;
}

.secondary-btn:hover{
  box-shadow:0 12px 25px rgba(0,0,0,.14);
}

.secondary-btn:active{
  transform:scale(.98);
}

.mini-btn{
  min-width:140px;
  height:44px;
  margin-top:0;
  padding:0 14px;
}

/* ================= MODALIDAD / PAGO ================= */

.bloque-dinamico{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:4px;
}

.botones-categoria{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:6px;
  align-items:center;
  justify-content:flex-start;
}

.categoria-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:fit-content;
  width:auto;
  max-width:100%;
  padding:10px 13px;
  border-radius:10px;
  border:1.8px solid #cfd6df;
  background:#fff;
  color:#111;
  font-size:13px;
  font-weight:600;
  line-height:1.25;
  text-align:center;
  cursor:pointer;
  transition:all .25s ease;
  box-shadow:0 4px 14px rgba(0,0,0,.05);
  white-space:normal;
  flex:0 0 auto;
}

.categoria-btn:hover{
  transform:translateY(-1px);
  border-color:#0052af;
  color:#0052af;
}

.categoria-btn.activo{
  background:#0052af;
  border-color:#0052af;
  color:#fff;
  box-shadow:0 8px 18px rgba(0,82,175,.18);
}

.select-line,
.input-line.compacto,
#modalidadScreen input[type="text"],
#pagoScreen input[type="text"],
#pagoScreen input[type="number"],
#resumenScreen input[type="text"]{
  width:min(100%, 28ch);
  max-width:100%;
  background:transparent;
  border:none;
  border-bottom:2px solid #b9c1cc;
  padding:8px 4px;
  font-size:14px;
  outline:none;
  transition:border-color .25s ease, box-shadow .25s ease;
  border-radius:0;
  color:#000;
}

.select-line{
  background:#fff;
  border:1px solid #d7dde6;
  border-radius:10px;
  padding:12px 14px;
  width:min(100%, 34ch);
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.linea-activa{
  border-bottom:2px solid #0052af !important;
  box-shadow:0 6px 10px -10px rgba(0,82,175,.45);
}

.alerta-full-day,
.help-card{
  width:100%;
  max-width:420px;
  background:#fff4f4;
  border:1px solid #e3b1b1;
  color:#a54a4a;
  padding:12px 14px;
  border-radius:12px;
  font-size:13px;
  line-height:1.5;
}

.texto-ayuda{
  width:100%;
  max-width:420px;
  font-size:13px;
  color:#333;
  line-height:1.5;
}

.full-day-confirmacion{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  max-width:420px;
  font-size:13px;
}

.check-azul{
  width:18px;
  height:18px;
  accent-color:#0052af;
  cursor:pointer;
}

.botones-grado{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.grado-btn.activo{
  background:#0052af;
  border-color:#0052af;
  color:#fff;
}

.acciones-dobles{
  display:flex;
  gap:12px;
  margin-top:24px;
  flex-wrap:wrap;
  align-items:center;
}

/* ================= PAGO ================= */

.pago-note{
  margin-bottom:8px;
}

.pago-row{
  display:grid;
  grid-template-columns:120px minmax(140px, 200px);
  gap:14px;
  align-items:end;
}

.currency-box,
.amount-box{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.currency-select{
  width:100%;
  max-width:120px;
  height:46px;
  border:1px solid #d7dde6;
  border-radius:10px;
  padding:0 12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
  outline:none;
  font-size:14px;
}

.currency-select:focus{
  border-color:#0052af;
  box-shadow:0 4px 16px rgba(0,82,175,.15);
}

.amount-input{
  max-width:100%;
}

.mini-label{
  font-size:12px;
  color:#444;
  margin-bottom:2px;
}

.help-box{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  max-width:430px;
  background:#f7f9fc;
  border:1px solid #dde5f0;
  border-radius:12px;
  padding:14px;
}

.help-box p{
  font-size:13px;
  line-height:1.5;
  color:#2e2e2e;
}

.link-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  min-width:fit-content;
  max-width:100%;
  height:42px;
  padding:0 16px;
  background:#000;
  color:#fff;
  border-radius:10px;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  transition:.25s ease;
}

.link-action:hover{
  background:#0052af;
  transform:translateY(-1px);
}

.divider-blue{
  width:100%;
  max-width:420px;
  height:2px;
  background:#0052af;
  border-radius:999px;
  margin:6px 0 4px;
  opacity:.9;
}

/* ================= RESUMEN / ÉXITO ================= */

.submission-result{
  margin-top:28px;
}

.success-card{
  background:#f7fbff;
  border:1px solid #d7ebff;
  border-radius:16px;
  padding:24px 20px;
  text-align:center;
  width:100%;
  max-width:460px;
}

.success-card h2{
  font-size:clamp(22px, 2vw, 28px);
  line-height:1.35;
  color:#0052af;
  margin-top:14px;
}

.success-card p{
  margin-top:10px;
  color:#333;
  font-size:14px;
  line-height:1.55;
}

.check-container{
  display:flex;
  justify-content:center;
}

.checkmark{
  width:74px;
  height:74px;
  stroke:#0052af;
  stroke-width:3;
  fill:none;
}

.edit-box{
  margin-top:20px;
}

.edit-text{
  margin:16px 0 12px;
  color:#333;
  font-size:14px;
  line-height:1.5;
}

.edit-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

#advisorHelpResumen{
  margin-top:14px;
}

/* ================= LOADING BOTÓN ================= */

.loading-activo{
  background:#0052af;
  border-color:#0052af;
}

.btn-loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
  z-index:2;
}

.spinner{
  width:18px;
  height:18px;
  border:3px solid rgba(255,255,255,0.3);
  border-top:3px solid #fff;
  border-radius:50%;
  animation:spin .8s linear infinite;
}

.verification-loading{
  background:#0052af;
  border-color:#0052af;
  pointer-events:none;
}

.verification-loading-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
  z-index:2;
}

@keyframes spin{
  to{transform:rotate(360deg);}
}

/* ================= BLOQUEO ================= */

#lockScreen{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:40px 20px;
}

.lock-title{
  margin-bottom:25px;
  font-size:clamp(24px, 2vw, 32px);
}

.lock-text{
  line-height:1.6;
  font-size:18px;
}

.lock-id{
  margin-top:10px;
  font-size:20px;
  font-weight:600;
}

.lock-id-color{
  color:#0052af;
}

/* ================= IZQUIERDA FIJA EN LAPTOP ================= */

@media (min-width: 1024px){
  .app{
    align-items:flex-start;
  }

  .left{
    position:sticky;
    top:0;
    height:100vh;
    align-self:flex-start;
  }

  .right{
    min-height:auto;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px){
  .right{
    width:40%;
    min-width:320px;
    padding:28px 22px;
  }

  .left img{
    transform:translateY(18px);
  }

  .social-glass{
    bottom:14px;
  }

  .screen,
  #introScreen,
  #modalidadScreen,
  #pagoScreen,
  #resumenScreen{
    max-width:100%;
  }
}

@media (max-width: 900px){
  .app{
    flex-direction:column;
    align-items:stretch;
  }

  .left{
    width:100%;
    position:relative;
    min-height:unset;
    height:auto;
    aspect-ratio:16 / 9;
    max-height:380px;
    overflow:hidden;
  }

  .left::before{
    transform:scale(1.08);
    filter:blur(16px) brightness(.74) saturate(112%);
  }

  .left img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 18%;
    transform:none;
  }

  .social-glass{
    left:50%;
    transform:translateX(-50%);
    bottom:16px;
    padding:12px 16px;
  }

  .social-container{
    gap:12px;
  }

  .social-card{
    width:44px;
    height:44px;
  }

  .social-card i{
    font-size:16px;
  }

  .right{
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:auto;
    padding:22px 18px 28px;
  }

  .alerta-full-day,
  .texto-ayuda,
  .full-day-confirmacion,
  .help-box,
  .success-card{
    max-width:100%;
  }
}

@media (max-width: 768px){
  .acciones-dobles,
  .edit-row{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .pago-row{
    grid-template-columns:1fr;
  }

  .send-btn,
  .secondary-btn,
  .mini-btn{
    width:auto;
    min-width:fit-content;
    max-width:100%;
  }

  .link-action{
    width:fit-content;
    min-width:fit-content;
    max-width:100%;
  }

  .botones-categoria,
  .botones-grado{
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  .categoria-btn{
    flex:0 0 auto;
    width:auto;
    min-width:fit-content;
    max-width:100%;
    text-align:center;
    padding:9px 12px;
  }

  .currency-select{
    width:100%;
    max-width:160px;
  }

  .right h1{
    font-size:24px;
  }

  .subtitle{
    font-size:13px;
    line-height:1.5;
    margin-bottom:20px;
  }

  .campo label{
    font-size:13px;
  }
}

@media (max-width: 480px){
  .left{
    aspect-ratio:16 / 9;
    max-height:320px;
  }

  .left img{
    object-position:center 20%;
  }

  .social-glass{
    bottom:14px;
    padding:10px 14px;
  }

  .social-container{
    gap:10px;
  }

  .social-card{
    width:40px;
    height:40px;
  }

  .social-card i{
    font-size:15px;
  }

  .right{
    padding:18px 14px 24px;
  }

  .right h1{
    font-size:22px;
  }

  .subtitle{
    margin-bottom:18px;
  }

  .form-personal,
  .modalidad-form{
    gap:14px;
  }

  .send-btn{
    height:44px;
    padding:0 14px;
    width:auto;
    min-width:fit-content;
    max-width:100%;
  }

  .send-btn span{
    font-size:12.5px;
    letter-spacing:.3px;
  }

  .categoria-btn{
    width:auto;
    min-width:fit-content;
    max-width:100%;
    padding:9px 11px;
    font-size:12.5px;
    flex:0 0 auto;
  }

  #nombreCompleto,
  #correo,
  #residencia,
  #textoFullDay,
  .select-line,
  #verificationInput{
    width:100%;
  }
}