:root{
  --bg0:#050706;
  --bg1:#0b0f0e;          /* negro profundo */
  --g0:#2fbf9f;           /* verde */
  --g1:#78d9c7;           /* verde suave */
  --text:#eafff9;
  --muted:rgba(234,255,249,.72);
  --glass:rgba(255,255,255,.10);
  --glass2:rgba(255,255,255,.16);
  --stroke:rgba(255,255,255,.16);
  --shadow: 0 30px 95px rgba(0,0,0,.55);
  --radius: 24px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display:grid;
  place-items:center;
  padding: 24px 14px;
  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(47,191,159,.22), transparent 60%),
    radial-gradient(1000px 650px at 90% 25%, rgba(120,217,199,.14), transparent 58%),
    radial-gradient(900px 650px at 40% 110%, rgba(47,191,159,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 55%, var(--bg0) 100%);
  color: var(--text);
  overflow:hidden;
}

/* halos “premium” */
/* Ocultamos los halos decorativos para evitar manchas verdes sobre el video */
.halo{
  display: none;
}
.h1{ left:-160px; top:-160px; background: rgba(47,191,159,.22); }
.h2{ right:-190px; bottom:-210px; background: rgba(120,217,199,.16); }

/* patrón de puntos ultra tenue */
.dots{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .10;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px);
  background-size: 16px 16px;
  z-index: 0;
}

/* wrapper */
.wrap{
  width: min(980px, 100%);
  display:grid;
  place-items:center;
}

/* Card principal tipo glass */
.card{
  width: min(540px, 100%);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass2), var(--glass));
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
  z-index: 3;
}

/* Video de fondo fullscreen */
.bg-video{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  filter: brightness(0.82) contrast(0.98);
}

/* Capa overlay para oscurecer el video con tono verdoso */
.bg-overlay{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Overlay más sutil: menos oscuro para aclarar levemente el video */
  background: linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.52));
  mix-blend-mode: normal;
  backdrop-filter: none;
}

/* brillo diagonal */
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: linear-gradient(120deg, rgba(47,191,159,.22), rgba(255,255,255,0) 40%, rgba(120,217,199,.14));
  opacity:.55;
  pointer-events:none;
}

/* barra superior verde (corporativa) */
.topbar{
  position: relative;
  z-index: 1;
  padding: 18px 20px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(0,0,0,.18);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--g0), var(--g1));
  display:grid;
  place-items:center;
  box-shadow: 0 14px 40px rgba(47,191,159,.22);
  color:#052a23;
  font-weight:800;
  flex: 0 0 44px;
}

/* Imagen del logo en la cabecera (más grande y responsive) */
.brand-logo{
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 420px){
  .brand-logo{ width: 120px; }
}

.brand h1{
  margin:0;
  font-size: 16px;
  letter-spacing:.6px;
  line-height: 1.05;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.brand small{
  display:block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

/* mini sello notarial (decorativo) */
.seal{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.seal svg{ width: 18px; height: 18px; opacity:.9; }

/* cuerpo */
.body{
  position: relative;
  z-index: 1;
  padding: 22px 22px 20px;
}

.title{
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing:.2px;
}
.subtitle{
  margin: 0 0 18px;
  font-size: 12.8px;
  color: var(--muted);
}

.field{
  margin: 12px 0;
}
label{
  display:block;
  font-size: 15px;
  color: rgba(234,255,249,.82);
  margin-bottom: 6px;
  font-weight: 500;
}

.control{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,249,.18);
  background: rgba(0,0,0,.22);
  transition: .18s ease;
}
.control svg{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: .88;
}
input{
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
input::placeholder{ color: rgba(234,255,249,.55); }

.control:focus-within{
  border-color: rgba(47,191,159,.60);
  box-shadow: 0 0 0 4px rgba(47,191,159,.18);
  transform: translateY(-1px);
  background: rgba(0,0,0,.28);
}

.row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.check{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  color: rgba(234,255,249,.78);
  user-select:none;
}
.check input{
  width: 16px;
  height: 16px;
  accent-color: var(--g0);
}

a{
  color: rgba(120,217,199,.95);
  text-decoration:none;
  font-weight: 600;
  font-size: 12px;
}
a:hover{ text-decoration: underline; }

.btn{
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 12.5px 14px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #ffffff;
  background: #008382;
  box-shadow: 0 18px 52px rgba(0,131,130,0.26);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 64px rgba(0,131,130,0.35);
  filter: brightness(1.03);
}
.btn:active{ transform: translateY(0); }

.foot{
  margin-top: 14px;
  text-align:center;
  font-size: 11.5px;
  color: rgba(234,255,249,.60);
}

/* Responsive */
@media (max-width: 420px){
  .topbar{ padding: 16px 16px; }
  .body{ padding: 18px 16px 18px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}

/* ============================================ */
/* SweetAlert2 Custom Styling                  */
/* ============================================ */

.custom-swal.swal2-popup {
  background: rgba(255,255,255,0.78) !important;
  color: #052324 !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.26) !important;
  border-radius: 12px !important;
  width: 340px !important;
  padding: 0.9rem 1rem !important;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

/* Botones personalizados: verde y rojo */
.confirm-btn {
  background: #008382 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.confirm-btn:hover {
  background: #00a5a2 !important;
  transform: translateY(-1px);
}

.cancel-btn {
  background: #c0392b !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.cancel-btn:hover {
  background: #e74c3c !important;
  transform: translateY(-1px);
}

/* Titulo y contenido más compacto */
.swal2-title {
  font-size: 1rem !important;
  margin-bottom: 0.15rem !important;
}

.swal2-html-container {
  font-size: 0.88rem !important;
  color: #123 !important;
}

/* Toasts pequeños en la parte superior */
.swal2-toast {
  border-radius: 10px !important;
  min-width: 260px !important;
  max-width: 380px !important;
  padding: 0.55rem 0.8rem !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22) !important;
  font-size: 0.9rem !important;
}
