/* =========================
   styles.css (COMPLETO)
   ========================= */

/* ==========================================================
   VARIABLES (paleta + tamaños)
   ========================================================== */
:root{
  --bg:#05070b;
  --bg2:#07131f;

  --text:#f2f4f7;
  --muted:#b1bac6;

  --primary:#d4ad44;
  --primaryHi:#f1cf6a;
  --secondary:#53939e;
  --accent:#2a599b;

  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.12);
  --shadow:0 20px 60px rgba(0,0,0,.45);
  --radius:18px;
  --max:1120px;

  --wa:#25D366;
}

/* ==========================================================
   BASE + FONDO FIJO GLOBAL (sin ::before/::after)
   ========================================================== */
*{box-sizing:border-box}
html{scroll-behavior:smooth; background:var(--bg);}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  min-height:100vh;

  /* Fondo fijo + overlays (imagen al final) */
  background-image:
    radial-gradient(1200px 700px at 10% 10%, rgba(212,173,68,.18), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(83,147,158,.14), transparent 60%),
    linear-gradient(180deg, rgba(5,7,11,.92), rgba(7,19,31,.92)),
    url("../img/fondo_nuevo.jpeg");

  background-size: auto, auto, auto, cover;
  background-position: 10% 10%, 90% 20%, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  background-color: var(--bg);
}

a{color:inherit; text-decoration:none}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.mt{margin-top:18px}

/* ==========================================================
   HEADER
   ========================================================== */
.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(5,7,11,.62);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0}

.brand{display:flex; align-items:center; gap:12px}
.brand__logo{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight:800;
  color:#120c02;
}
.brand__img{height:38px; width:auto; display:block;}
.brand__name{display:block; font-weight:800; letter-spacing:.3px}
.brand__tag{display:block; font-size:.85rem; color:var(--muted)}

.nav{display:flex; gap:18px; align-items:center}
.nav a{opacity:.9}
.nav a:hover{opacity:1}
.nav__cta{
  padding:10px 14px; border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
}

.burger{display:none; background:transparent; border:0; padding:10px; cursor:pointer}
.burger span{display:block; width:22px; height:2px; background:var(--text); margin:5px 0; border-radius:2px}

/* ==========================================================
   HERO
   ========================================================== */
.hero{padding:64px 0 20px; position:relative; overflow:hidden;}
.hero__grid{
  display:grid; gap:26px;
  grid-template-columns: 1.4fr .9fr;
  align-items:stretch;
}

/* Si tu HTML aún tiene <div class="hero__bg">, lo ocultamos */
.hero__bg{ display:none; }

.hero__right{
  display:flex;
  flex-direction:column;
  gap:14px;
}

/* Banner (portada) */
.hero__media{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  box-shadow:0 22px 60px rgba(0,0,0,.45);
}
.hero__media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

.pill{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--muted);
  font-size:.9rem;
}
h1{font-size:clamp(2rem, 3.4vw, 3.2rem); line-height:1.05; margin:14px 0}
.hero__actions{display:flex; gap:12px; margin:18px 0 10px; flex-wrap:wrap}

.hero__stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
  margin-top:18px;
}
.stat{
  padding:14px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
}
.stat__big{display:block; font-weight:800; font-size:1.25rem}
.stat__small{display:block; color:var(--muted); font-size:.9rem}

/* ==========================================================
   CONTENEDOR "GLASS"
   ========================================================== */
.glass{
  padding:18px;
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow);
}
.glass--soft{
  box-shadow:none;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
}

.list{display:flex; flex-direction:column; gap:12px; margin:14px 0}
.list__item{display:flex; gap:10px; align-items:flex-start}
.dot{
  width:10px; height:10px; border-radius:999px;
  background:rgba(212,173,68,.95);
  margin-top:6px;
}
.miniLink{display:inline-block; margin-top:6px; color:rgba(241,207,106,.95)}
.miniLink:hover{text-decoration:underline}

/* ==========================================================
   BOTONES
   ========================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  transition:.2s ease;
  font-weight:700;
}
.btn:hover{transform:translateY(-1px); border-color:rgba(255,255,255,.2)}
.btn--primary{
  border:0;
  background: linear-gradient(135deg, var(--primary), var(--primaryHi));
  color:#1a1406;
}
.btn--ghost{background:rgba(255,255,255,.05)}
.btn--full{width:100%}

/* ==========================================================
   SECCIONES
   ========================================================== */
.section{padding:56px 0}
.section--alt{
  background: rgba(255,255,255,.03);
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.section--compact{padding:40px 0;}
.section__head{margin-bottom:18px}
.section__head h2{margin:0 0 6px; font-size:1.9rem}

/* ==========================================================
   SERVICIOS (cards)
   ========================================================== */
.cards{
  display:grid; gap:14px;
  grid-template-columns: repeat(3, 1fr);
}
.card{
  padding:18px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
}
.card h3{margin:0 0 8px}
.bullets{margin:10px 0 0; padding-left:18px; color:var(--muted)}
.bullets li{margin:6px 0}

/* ==========================================================
   NOSOTROS
   ========================================================== */
.twoCol{
  display:grid; gap:18px;
  grid-template-columns: 1.2fr .8fr;
  align-items:start;
}
.miniGrid{display:grid; gap:12px; grid-template-columns:1fr 1fr; margin-top:14px}
.miniCard{
  padding:16px; border-radius:var(--radius);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
}
.panel{
  padding:18px; border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
}
.kv{display:grid; gap:10px; margin-top:12px}
.kv div{display:flex; align-items:baseline; justify-content:space-between; gap:12px}
.kv span{color:var(--muted)}

/* ==========================================================
   VALORES
   ========================================================== */
.values{
  display:grid; gap:12px;
  grid-template-columns: repeat(5, 1fr);
}
.value{
  padding:14px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
}
.chip{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(212,173,68,.14);
  border:1px solid rgba(212,173,68,.28);
  font-weight:800;
  margin-bottom:8px;
}

/* ==========================================================
   COBERTURA
   ========================================================== */
.coverage{
  display:grid;
  gap:14px;
  grid-template-columns: 1.2fr .8fr;
  align-items:stretch;
}
.coverage__list{
  display:flex;
  flex-direction:column;
  height:100%;
}

.note{
  margin-top:14px; padding:14px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.04);
  border:1px dashed rgba(255,255,255,.14);
}
.note--pushBottom{ margin-top:auto; }

.coverage__card .glass{
  height:100%;
  display:flex;
  flex-direction:column;
}
.coverage__mapWrap{
  flex:1;
  display:grid;
  place-items:center;
  margin:12px 0;
}
.coverage__mapImg{
  width:100%;
  max-height:300px;
  object-fit:contain;
  display:block;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  background: rgba(0,0,0,.12);
  padding:10px;
}

/* --- Cobertura centrada y sin huecos --- */
#cobertura .coverage{
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}
#cobertura .coverage__list{ height:auto; }
#cobertura .coverage__card .glass{ height:auto; }
#cobertura .note--pushBottom{ margin-top:14px; }
#cobertura .coverage__mapImg{ max-height:260px; }

/* ==========================================================
   CONTACTO
   ========================================================== */
.contact{
  display:grid; gap:14px;
  grid-template-columns: 1fr 1fr;
}
.form{
  padding:18px;
  border-radius:var(--radius);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
}
label{display:block; margin-bottom:12px; font-weight:700}
input, textarea{
  width:100%;
  margin-top:8px;
  border-radius:14px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(5,7,11,.6);
  color:var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color:rgba(212,173,68,.55)}
.contact__info{display:flex; flex-direction:column; gap:12px}
.infoCard{
  padding:18px;
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
}
.infoRow{display:flex; gap:10px; align-items:flex-start; margin:12px 0}
.infoRow span{opacity:.9}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer{
  padding:26px 0;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.12);
}
.footer__inner{display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap}
.footer__brand{font-weight:900}

/* ==========================================================
   WHATSAPP
   ========================================================== */
.wa{
  position:fixed;
  right:18px;
  bottom:18px;
  width:56px;
  height:56px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, var(--wa), rgba(37,211,102,.75));
  color:#fff;
  box-shadow:var(--shadow);
  z-index:60;
  border:1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, filter .2s ease;
}
.wa:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.wa__icon{
  width:28px;
  height:28px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr 1fr}
  .twoCol{grid-template-columns:1fr}
  .values{grid-template-columns:1fr 1fr}
  .coverage{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .hero__media{ order:-1; }
}

@media (max-width: 720px){
  .nav{
    display:none; position:absolute; top:64px; right:20px; left:20px;
    flex-direction:column; gap:10px; padding:14px;
    border-radius:16px;
    background: rgba(5,7,11,.92);
    border:1px solid rgba(255,255,255,.12);
  }
  .nav.isOpen{display:flex}
  .burger{display:block}
  .hero{padding-top:40px}
  .cards{grid-template-columns:1fr}
  .hero__stats{grid-template-columns:1fr}
}

/* =========================
   LISTA (Cobertura)
   ========================= */
.provList{
  list-style:none;
  padding:0;
  margin:12px 0 0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px 14px;
}
.provList li{
  position:relative;
  padding:10px 12px 10px 38px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  font-weight:600;
}
.provList li::before{
  content:"";
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  border-radius:999px;
  background: rgba(212,173,68,.18);
  border:1px solid rgba(212,173,68,.45);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.provList li::after{
  content:"✓";
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-53%);
  font-size:13px;
  font-weight:900;
  color: rgba(241,207,106,.95);
}
@media (max-width: 720px){
  .provList{ grid-template-columns: 1fr; }
}
