:root{
  --bg:#0b1220;
  --text:#ffffff;
  --muted:rgba(255,255,255,.78);
  --line:rgba(255,255,255,.12);

  /* Paleta ámbar */
  --accent:#f59e0b;
  --accent2:#fb923c;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 650px at 20% 12%, rgba(245,158,11,.22), transparent 55%),
    radial-gradient(900px 650px at 88% 18%, rgba(251,146,60,.20), transparent 55%),
    radial-gradient(800px 600px at 55% 90%, rgba(120,68,0,.25), transparent 60%),
    #070b14;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.container{ width:min(1100px, 92%); margin:0 auto; }

/* ===== TOPBAR ===== */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,11,20,.65);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px;
  border:1px solid rgba(245,158,11,.35);
  border-radius:999px;
  background: rgba(245,158,11,.10);
  font-size:14px;
}
.nav{ display:flex; gap:14px; font-weight:600; font-size:14px; }
.nav a{ opacity:.9; }
.nav a:hover{ opacity:1; }

.bolt{
  display:inline-block;
  margin-right:8px;
  filter: drop-shadow(0 0 10px rgba(245,158,11,.55));
}

/* ===== HERO (oscuro y sin vacío) ===== */
.hero{
  min-height: calc(100vh - 56px); /* ocupa casi toda la pantalla (resta la topbar) */
  display:flex;
  align-items:center;
  padding:56px 0 40px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:26px;
  align-items:center;
}

.hero h1{ font-size:44px; line-height:1.05; margin:0 0 12px; }
.lead{ color:var(--muted); font-size:16px; line-height:1.6; }

.hero__cta{ display:flex; gap:12px; margin:18px 0 14px; flex-wrap:wrap; }
.hero__bullets{ margin:0; padding-left:18px; color:var(--muted); line-height:1.8; }

/* Imagen del hero a la derecha (bonita, sin deformar) */
.hero__media{
  position:relative;
  border-radius:26px;
  overflow:hidden;
  border:1px solid rgba(245,158,11,.20);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.hero__media img{
  width:100%;
  aspect-ratio: 4/3;
  object-fit:cover;
}
.hero__media::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(400px 300px at 20% 20%, rgba(245,158,11,.15), transparent 65%),
    radial-gradient(500px 380px at 85% 30%, rgba(251,146,60,.14), transparent 65%);
  pointer-events:none;
}

/* ===== SECTIONS ===== */
.section{ padding:54px 0; }
.section__head{ margin-bottom:18px; text-align:center; }
.section__head h2{ margin:0 0 8px; font-size:34px; }
.section__head p{ margin:0; }

/* ===== BOTONES ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(245,158,11,.25);
  font-weight:800;
  cursor:pointer;
}
.btn--primary{
  background: linear-gradient(135deg, rgba(245,158,11,.95), rgba(251,146,60,.85));
  border-color: transparent;
  color:#1b1206;
}
.btn--ghost{ background: rgba(255,255,255,.04); }
.btn--full{ width:100%; }

/* ===== GRID ===== */
.grid{ display:grid; gap:18px; }

/* ===== SERVICIOS ===== */
.cards{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card{
  padding:20px;
  border-radius:18px;
  border:1px solid rgba(11,18,32,.12);
  background:#fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(245,158,11,.75);
  box-shadow: 0 22px 60px rgba(0,0,0,.15);
}
.card h3{ margin:0 0 8px; color:#0b1220; }
.card p{ margin:0; color: rgba(11,18,32,.70); line-height:1.55; }

/* ===== GALERÍA (título SOLO al hover) ===== */
.gallery{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shot{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(11,18,32,.12);
  background:#fff;
  min-height: 210px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.shot img{
  width:100%;
  height:260px;
  object-fit:cover;
  transition: transform .25s ease, filter .25s ease;
}

/* Overlay más oscuro */
.shot::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    0deg,
    rgba(0,0,0,.85),
    rgba(0,0,0,.15) 60%
  );
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease;
}

/* Texto más claro y legible */
.shot figcaption{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;

  color:#ffffff;
  font-weight:900;
  font-size:17px;
  letter-spacing:.3px;

  /*background: rgba(0,0,0,.45);   /* 🔥 fondo para contraste */
  padding:0;
  border-radius:0;

  text-shadow: 0 2px 6px rgba(0,0,0,.9),
    0 6px 18px rgba(0,0,0,.8);

  opacity:0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

.shot:hover{
  transform: translateY(-3px);
  border-color: rgba(245,158,11,.75);
  box-shadow: 0 22px 60px rgba(0,0,0,.15);
}
.shot:hover img{
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1.05);
}
.shot:hover::after{ opacity:.1; }      /* ✅ aparece overlay */
.shot:hover figcaption{
  opacity:1;                              /* ✅ aparece texto */
  transform: translateY(0);
}

/* ===== TESTIMONIOS (en blanco y bien cuadriculado) ===== */
.testimonials{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote{
  position:relative;
  padding:18px;
  border:1px solid rgba(11,18,32,.12);
  border-radius:18px;
  background:#fff;
}
.quote::after{
  content:"”";
  position:absolute;
  right:18px;
  top:8px;
  font-size:72px;
  color:rgba(11,18,32,.10);
  font-family:Georgia, serif;
}
.quoteTop{
  display:flex; align-items:center; gap:12px;
  margin-bottom:10px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(245,158,11,.18);
}
.quote h4{ margin:0 0 4px; color:#0b1220; }
.stars{
  display:flex; gap:2px;
  color: rgba(245,158,11,.95);
  font-size:14px;
  line-height:1;
}
.quote p{ margin:0; color: rgba(11,18,32,.70); line-height:1.55; }

/* ===== SECCIONES BLANCAS (Servicios/Galería/Testimonios) ===== */
.section--light{
  background:#ffffff;
  color:#0b1220;
}
.section--light .section__head h2{ color:#8a3b12; }
.section--light .section__head p{ color: rgba(11,18,32,.65); }

/* ===== CONTACTO (oscuro como antes) ===== */
.section--dark{
  background: rgba(0,0,0,.20);
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.10);
  color:#fff;
}
.section--dark h2{ color:#fff; }
.section--dark .muted{ color: rgba(255,255,255,.75); }

.contact{ display:flex; justify-content:center; }
.contact__box{
  width:min(760px, 100%);
  padding:24px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.contact__items{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
  margin:16px 0;
}
.contact__item{
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background: rgba(0,0,0,.14);
}
.label{ display:block; font-size:12px; color:rgba(255,255,255,.70); margin-bottom:4px; }

/* ===== FOOTER ===== */
.footer{
  padding:24px 0;
  background: rgba(0,0,0,.18);
  border-top:1px solid var(--line);
}
.footer__inner{
  display:grid;
  gap:18px;
  grid-template-columns: 1.2fr .9fr 1fr .9fr;
  align-items:start;
}
.footerTitle{ font-weight:900; margin:0 0 10px; }
.footer p{ margin:0; color:rgba(255,255,255,.72); line-height:1.55; }
.footerList{ margin:0; padding-left:16px; color:rgba(255,255,255,.82); line-height:1.9; }
.footerList li{ color:rgba(255,255,255,.80); }
.footerSmall{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  color:rgba(255,255,255,.65);
  font-size:13px;
}

/* Mapa mini en footer (más chico) */
.mapCard{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  display:inline-block;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mapCard:hover{
  transform: translateY(-2px);
  border-color: rgba(245,158,11,.55);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.mapCard img{
  width: 160px;       /* ✅ tamaño del mapa (ajusta si quieres 140/180) */
  height: auto;
  display:block;
}
.mapCaption{
  padding:10px 12px;
  color:rgba(255,255,255,.78);
  font-size:13px;
}

/* ===== WHATSAPP flotante (circular + latido) ===== */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:62px;
  height:62px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#25D366;
  color:#fff;
  text-decoration:none;
  z-index:999;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  animation: wa-pulse 1.6s infinite;
}
.wa-float svg{ width:30px; height:30px; }
.wa-float:hover{ transform: scale(1.05); }

@keyframes wa-pulse{
  0%{
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  70%{
    transform: scale(1.10);
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100%{
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .hero{
    min-height:auto;
    padding:70px 0 35px;
  }
  .hero__grid{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:1fr 1fr; }
  .gallery{ grid-template-columns:1fr 1fr; }
  .testimonials{ grid-template-columns:1fr; }
  .footer__inner{ grid-template-columns:1fr; }
}
@media (max-width: 520px){
  .cards,.gallery{ grid-template-columns:1fr; }
  .contact__items{ grid-template-columns:1fr; }
  .hero h1{ font-size:34px; }
}
/* ✅ FIX: evita la franja blanca / scroll lateral en móvil */
html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ✅ por si algún contenedor se “pasa” del ancho */
.hero__grid, .grid, .footer__inner, .contact__box{
  min-width: 0;
}
/* ===== TOPBAR MOBILE FIX ===== */
@media (max-width: 520px){
  .topbar__inner{
    gap:10px;
    padding:10px 0;
    align-items:center;
  }

  /* Badge más compacto */
  .badge{
    padding:6px 10px;
    font-size:12px;
    gap:8px;
    white-space:nowrap;
    flex:0 0 auto;
  }

  /* Menú horizontal con scroll (no se rompe ni se sale) */
  .nav{
    flex:1 1 auto;
    overflow-x:auto;
    overflow-y:hidden;
    white-space:nowrap;
    gap:12px;
    padding-bottom:6px; /* espacio para que no tape el scroll */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .nav::-webkit-scrollbar{ display:none; } /* Chrome/Safari */

  .nav a{
    font-size:13px;
    flex:0 0 auto;
  }
}