 :root{
  /* Fondo rojo */
  --bg:#7f0b13;          /* rojo profundo */
  --card:#8f1119;

  /* Texto */
  --text:#ffffff;
  --muted:#ffd6da;

   /* Amarillo seguridad */
  --primary:#facc15;     /* amarillo intenso */
  --primary2:#fde047;    /* amarillo claro */
  --accent:#f59e0b;      /* amarillo/naranja */
  --danger:#b91c1c;
  
    /* Texto botones */
  --btn-text:#000000;

  /* UI */
  --border:rgba(255,255,255,.22);
  --shadow:0 18px 45px rgba(0,0,0,.45);
  --radius:18px;
  
  
  .high-contrast{
  --bg:#000;
  --card:#000;
  --text:#fff;
  --muted:#fff;
  --border:#fff;
}

}


    *{box-sizing:border-box}
    body{
       margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(255,255,255,.18), transparent 55%),
    radial-gradient(1000px 700px at 90% 0%, rgba(0,0,0,.25), transparent 50%),
    linear-gradient(180deg, #9f0d18, var(--bg));
    }
    a{color:inherit; text-decoration:none}
    .container{max-width:1120px; margin:0 auto; padding:0 18px}
    header{
      position:sticky; top:0; z-index:30;
      backdrop-filter: blur(10px);
      background: rgba(7,11,20,.65);
      border-bottom:1px solid var(--border);
    }
    .nav{
      display:flex; align-items:center; justify-content:space-between;
      padding:14px 0;
      gap:14px;
    }
    .brand{
      display:flex; align-items:center; gap:10px;
      font-weight:800; letter-spacing:.2px;
    }
    .logo{
      width:40px; height:40px; border-radius:14px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      box-shadow:0 10px 25px rgba(32,201,151,.25);
      position:relative;
    }
    .logo:after{
      content:"";
      position:absolute; inset:10px;
      border-radius:12px;
      background: rgba(0,0,0,.18);
      border:1px solid rgba(255,255,255,.18);
    }
    nav ul{list-style:none; display:flex; gap:18px; margin:0; padding:0}
    nav a{color:var(--muted); font-weight:600}
    nav a:hover{color:var(--text)}
    .btn{
      display:inline-flex; align-items:center; justify-content:center;
      gap:10px;
      padding:12px 16px;
      border-radius:14px;
      border:1px solid var(--border);
      background: rgba(255,255,255,.06);
      color:var(--text);
      font-weight:700;
      cursor:pointer;
      transition:.18s ease;
    }
    .btn:hover{transform:translateY(-1px); background: rgba(255,255,255,.1)}
   
  .btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border: 0;
  color: var(--btn-text);
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(250,204,21,.45);
}

.btn-primary:hover{
  filter: brightness(1.05) saturate(1.1);
  transform: translateY(-1px);
}

    
	
	.btn-outline{
  background: transparent;
  border: 2px solid var(--primary);
  color: #000;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}


    .hero{padding:64px 0 22px}
    .hero-grid{
      display:grid;
      grid-template-columns: 1.2fr .8fr;
      gap:22px;
      align-items:stretch;
    }
    .hero h1{
      font-size: clamp(30px, 3.7vw, 52px);
      line-height:1.05;
      margin:0 0 12px 0;
    }
    .hero p{margin:0 0 18px 0; color:var(--muted); font-size: 16px; line-height:1.6}
    .pill{
      display:inline-flex; gap:8px; align-items:center;
      padding:8px 12px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.06);
      color:var(--muted);
      font-weight:700;
      margin-bottom:14px;
      width:fit-content;
    }
    .pill b{color:var(--text)}
    .cards{
      display:grid;
      grid-template-columns: repeat(3, 1fr);
      gap:14px;
      margin-top:18px;
    }
    .card{
      background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding:16px;
      box-shadow: var(--shadow);
    }
    .card h3{margin:0 0 8px 0; font-size:16px}
    .card p{margin:0; color:var(--muted); line-height:1.6; font-size:14px}
    .hero-aside{
      border-radius: 26px;
  border:1px solid var(--border);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(239,68,68,.35), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  padding:18px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 360px;
    }
    .stat{
      display:flex; align-items:baseline; gap:10px; margin:0 0 10px 0
    }
    .stat .num{font-size:34px; font-weight:900}
    .stat .lbl{color:var(--muted); font-weight:700}
    .checklist{margin:12px 0 0 0; padding:0; list-style:none; display:grid; gap:10px}
    .checklist li{
      display:flex; gap:10px; align-items:flex-start;
      color:var(--muted);
    }
    .dot{
       width:10px;
  height:10px;
  border-radius:999px;
  margin-top:6px;
  background: linear-gradient(135deg, var(--accent), var(--primary2));
  box-shadow: 0 10px 18px rgba(239,68,68,.35);
  flex:0 0 auto;
    }

    section{padding:44px 0}
    .section-title{display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:16px}
    .section-title h2{margin:0; font-size:26px}
    .section-title p{margin:0; color:var(--muted); max-width:640px}

    .grid-2{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:14px;
    }

    .service{
      display:flex; gap:12px;
      padding:16px;
      border-radius: var(--radius);
      border:1px solid var(--border);
      background: rgba(255,255,255,.05);
    }
   .icon{
  width:44px;
  height:44px;
  border-radius:16px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border:1px solid rgba(0,0,0,.25);
  color:#000;
  font-weight:900;
}

    .service h4{margin:0 0 6px 0}
    .service p{margin:0; color:var(--muted); line-height:1.6; font-size:14px}

    .contact-wrap{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:16px;
      align-items:start;
    }
    form{
      background: rgba(255,255,255,.05);
      border:1px solid var(--border);
      border-radius: var(--radius);
      padding:18px;
      box-shadow: var(--shadow);
    }
    label{display:block; font-weight:800; margin:10px 0 6px}
    input, select, textarea{
      width:100%;
      padding:12px 12px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,.16);
      background: rgba(0,0,0,.22);
      color:var(--text);
      outline:none;
    }
    textarea{min-height:120px; resize:vertical}
    .alert{
      padding:12px 14px;
      border-radius:14px;
      margin-bottom:12px;
      font-weight:800;
      border:1px solid var(--border);
      background: rgba(255,255,255,.06);
    }
    .alert.ok{border-color: rgba(32,201,151,.35); color: #b9ffe9}
    .alert.bad{border-color: rgba(255,92,122,.35); color: #ffd0da}
    .mini{
      color:var(--muted); font-size:13px; line-height:1.6;
      background: rgba(255,255,255,.04);
      border:1px solid var(--border);
      padding:16px;
      border-radius: var(--radius);
    }
    footer{
      padding:24px 0 34px;
      border-top:1px solid var(--border);
      color:var(--muted);
    }

    .float-wa{
      position:fixed;
      right:16px;
      bottom:16px;
      z-index:40;
      display:flex;
      align-items:center;
      gap:10px;
      padding:12px 14px;
      border-radius:999px;
      background: linear-gradient(135deg, #25D366, #2dd4bf);
      color:#052017;
      font-weight:900;
      box-shadow: 0 18px 45px rgba(37,211,102,.25);
      border:0;
    }

    @media (max-width: 920px){
      .hero-grid{grid-template-columns:1fr}
      nav ul{display:none}
      .cards{grid-template-columns:1fr}
      .grid-2{grid-template-columns:1fr}
      .contact-wrap{grid-template-columns:1fr}
      .hero{padding-top:34px}
    }
	.logo-img{
  height:48px;
  max-width:160px;
  object-fit:contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.35));
}

/* ------------------------------------
   HEADER RESPONSIVE (MOBILE FRIENDLY)
------------------------------------ */

/* Desktop OK (no tocamos nada) */

/* Mobile adjustments */
@media (max-width: 768px) {

  .nav{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .brand{
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .brand-text{
    text-align: center;
  }

  .brand-title{
    font-size: 16px;
    font-weight: 800;
  }

  .brand-sub{
    font-size: 12px;
    color: var(--muted);
  }

  /* Ocultar menú clásico en mobile */
  .nav-menu{
    display: none;
  }

  /* Botones uno debajo del otro */
  .nav-actions{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav-actions .btn{
    width: 100%;
    justify-content: center;
  }

  /* Logo más pequeño */
  .logo-img{
    height: 42px;
    max-width: 140px;
    margin: 0 auto;
  }
}
.hero-slider{
  position: relative;
  overflow: hidden;
}

.slider{
  display: flex;
  width: 100%;
  transition: transform 1.2s ease-in-out;
}

.slide{
  flex: 0 0 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

.slide::before{
  content:"";
  position:absolute;
  inset:0;
 /* background: linear-gradient(
    to bottom,
    rgba(0,0,0,.40),
    rgba(0,0,0,.20)
  );*/
  z-index: 1;
}

.slide-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

.slide-content{
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  animation: fadeUp .9s ease both;
}

.slide-content h2{ font-size: clamp(26px, 4vw, 48px); font-weight: 900; margin-bottom: 14px; color: #ecfdf5; } .slide-content p{ font-size: clamp(14px, 2.2vw, 18px); margin-bottom: 22px; color: #d1fae5; }
/* ANIMACIÓN */
@keyframes fadeUp{
  from{
    opacity:0;
    transform: translateY(30px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/* DOTS */
.slider-dots{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dots .dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}

.slider-dots .dot.active{
  background: #84cc16;
}

/* FONDOS POR SLIDE */
.slide-1{
  background: #000;
}

.slide-2{
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.25)),
    url("https://clean-ambiental.com/img/slider/pozos-1320x519.jpg") center/cover no-repeat;
}

.slide-3{
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.25)),
    url("https://clean-ambiental.com/img/slider/sisterna.jpg") center/cover no-repeat;
}

/* MOBILE */
@media (max-width: 768px){
  .slide{
    min-height: 320px;
    padding: 28px 16px;
  }

  /* Ocultar video en móviles */
  .slide-video{
    display:none;
  }
}

/* ------------------------------------
   GALERÍA - NUESTROS TRABAJOS
------------------------------------ */
.gallery-section{
  padding: 60px 0;
}

.gallery-section .section-title{
  text-align:center;
  margin-bottom: 24px;
}

.gallery-section h2{
  font-size: 28px;
  margin-bottom: 8px;
}

.gallery-section p{
  color: var(--muted);
}

/* Carrusel */
.gallery-wrapper{
  position: relative;
  overflow: hidden;
}

.gallery-track{
  display: flex;
  gap: 14px;
  transition: transform .5s ease;
}

.gallery-track img{
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  transition: transform .3s ease;
}

.gallery-track img:hover{
  transform: scale(1.04);
}

/* Botones */
.gallery-btn{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  color:#fff;
  border:none;
  width:36px;
  height:36px;
  border-radius:50%;
  cursor:pointer;
  z-index:5;
}

.gallery-btn.prev{ left:6px; }
.gallery-btn.next{ right:6px; }

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.lightbox img{
  max-width:90%;
  max-height:90%;
  border-radius:12px;
}

.lightbox-close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:32px;
  color:#fff;
  cursor:pointer;
}

/* Mobile */
@media (max-width:768px){
  .gallery-track img{
    width: 220px;
    height: 150px;
  }
}
<!-- ====== FELIZ AÑO 2026: Confetti + Estrellas + Fuegos Artificiales ====== -->

  #nyCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
  }
  #nyBanner {
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    text-align: center;
    padding: 14px 22px;
    border-radius: 18px;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,.35);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  #nyBanner h1{
    margin: 0;
    font-size: clamp(26px, 4vw, 52px);
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  #nyBanner p{
    margin: 6px 0 0;
    opacity: .9;
    font-size: clamp(12px, 1.4vw, 16px);
  }
  
  /* ==========================
   APP BOTTOM NAV (MOBILE)
========================== */

.app-nav{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(7,11,20,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: none;
  z-index: 999;
}

.app-nav{
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.app-nav-item{
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}

.app-nav-item span{
  font-size: 20px;
}

.app-nav-item:hover{
  color: var(--text);
}

/* Botón central tipo APP */
.app-nav-main{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #000;
  box-shadow: 0 14px 32px rgba(250,204,21,.45);
  border: none;
}

.app-nav-main span{
  font-size: 22px;
}


/* ==========================
   SOLO MOBILE
========================== */
@media (max-width: 768px){

  /* Ocultamos header grande */
  header{
    position: sticky;
    top: 0;
  }

  /* Activamos app nav */
  .app-nav{
    display: flex;
  }

  /* Espacio inferior para que no tape contenido */
  body{
    padding-bottom: 88px;
  }

  /* WhatsApp flotante fuera */
  .float-wa{
    display:none;
  }
}
/* ==========================
   APP NAV SCROLL HORIZONTAL
========================== */

.app-nav{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(7,11,20,.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  z-index: 999;
  display: none;
}

/* Track scroll */
.app-nav-track{
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Ocultar scrollbar feo */
.app-nav-track::-webkit-scrollbar{
  height: 6px;
}
.app-nav-track::-webkit-scrollbar-thumb{
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--accent)
  );
  border-radius: 999px;
}
.app-nav-track::-webkit-scrollbar-track{
  background: transparent;
}

/* Items */
.app-nav-item{
  flex: 0 0 auto;
  min-width: 72px;
  scroll-snap-align: center;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.app-nav-item span{
  font-size: 20px;
}

.app-nav-item:hover{
  color: var(--text);
  background: rgba(255,255,255,.08);
}

/* BOTÓN PRINCIPAL */
.app-nav-main{
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary2)
  );
  color: #052017;
  box-shadow: 0 14px 32px rgba(32,201,151,.35);
  border: none;
}

.app-nav-main span{
  font-size: 22px;
}

/* ==========================
   SOLO MOBILE
========================== */
@media (max-width: 768px){
  .app-nav{
    display: block;
  }

  body{
    padding-bottom: 96px;
  }

  .float-wa{
    display:none;
  }
}

/* ==========================
   WHATSAPP FLOAT APP (FAB)
========================== */

.wa-fab{
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom));
  right: 16px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #25D366, #2dd4bf);
  color: #052017;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(37,211,102,.35);
  z-index: 1001;
  transition: transform .2s ease, box-shadow .2s ease;
}

.wa-fab:hover{
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 24px 48px rgba(37,211,102,.45);
}




/* Desktop: usar el botón grande existente */
@media (min-width: 769px){
  .wa-fab{
    display: none;
  }
}
@keyframes pulse-alert {
  0% {
    box-shadow: 0 0 0 0 rgba(250,204,21,.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(250,204,21,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250,204,21,0);
  }
}

.btn-alert{
  animation: pulse-alert 1.8s infinite;
}

.btn-emergency{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px;
  border-radius:18px;
  font-size:16px;
  font-weight:900;
  color:#000;
  background: linear-gradient(135deg, #fde047, #facc15);
  box-shadow: 0 0 0 0 rgba(250,204,21,.6);
  animation: pulse-alert 1.5s infinite;
  text-transform: uppercase;
}

.service-extintor{
  border: 2px solid #facc15;
  background:
    linear-gradient(180deg, rgba(250,204,21,.18), rgba(255,255,255,.04));
}

.service-extintor .icon{
  background: linear-gradient(135deg, #fde047, #facc15);
  color:#000;
}


/* ==========================
   BRAND TIPO LOGO OFICIAL
========================== */

.brand-text{
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  background: #dc2626; /* rojo extintor */
  border-radius: 6px;
  overflow: hidden;
}

/* BLOQUE SUPERIOR */
.brand-title{
  background: #dc2626;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 8px 0px;
  letter-spacing: .6px;
}

/* BLOQUE INFERIOR */
.brand-sub{
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 18px 10px;
  letter-spacing: .4px;
  white-space: nowrap;
}

@media (max-width: 768px){
  .brand-title{
    font-size: 22px;
    padding: 8px 14px 6px;
  }

  .brand-sub{
    font-size: 10px;
    padding: 4px 14px 8px;
  }
}
/* ==========================
   PRODUCTOS
========================== */
/* ==========================
   PRODUCTOS - estilo Temu
========================== */

.product-card{
  background: rgba(255,255,255,.05);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
  text-align:center;
}

/* Contenedor del slider con tamaño fijo */
.product-slider{
  position:relative;
  overflow:hidden;
  border-radius:14px;
  cursor:pointer;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);

  /* Tamaño fijo tipo catálogo */
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen dentro del slider */
.product-slider img{
  width: 100%;
  height: 100%;
  object-fit: contain;  /* importante para que no estire */
  display:none;
}

/* Imagen visible */
.product-slider img.active{
  display:block;
}

/* ==========================
   GRID DE PRODUCTOS
========================== */

.products-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas */
  gap: 18px;
}

/* MÓVIL: 2 columnas */
@media (max-width: 768px){
  .products-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
.product-slider{
  height: 180px; /* más pequeño */
}
.product-card{
  padding: 12px;
}
/* ==========================
   TOPBAR
========================== */
/* ==========================
   TOPBAR
========================== */
.topbar{
  background: rgba(7,11,20,.75);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.topbar-left{
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-icon{
  font-size: 14px;
}

.topbar-text{
  font-weight: 700;
}

.topbar-right{
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-social{
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  transition: transform .2s ease, background .2s ease;
}

.topbar-social:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

/* MOBILE */
@media (max-width: 768px){
  .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .topbar-right{
    width: 100%;
    justify-content: flex-start;
  }
}



/* ==========================
   MODAL (DETALLES PRODUCTO)
========================== */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 18px;
}

.modal-backdrop.open{ display:flex; }

.modal-card{
  width: min(760px, 96vw);
  background: rgba(7,11,20,.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modal-title{
  font-weight: 900;
  font-size: 16px;
  margin: 0;
}

.modal-close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.modal-body{
  padding: 14px 16px 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  max-height: min(70vh, 520px);
  overflow: auto;
}
