*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:#0b0f1a;
  color:white;
  overflow-x:hidden;
}

img{
  max-width:100%;
}

/* NAVBAR */

nav{
  width:100%;
  height:80px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 8%;
  position:fixed;
  top:0;
  z-index:1000;
  background:rgba(0,0,0,0.4);
  backdrop-filter:blur(10px);
}

.logo{
  font-size:28px;
  font-weight:700;
  color:#00bfff;
}

nav ul{
  display:flex;
  list-style:none;
  gap:30px;
}

nav ul li a{
  text-decoration:none;
  color:white;
  transition:0.3s;
  font-weight:500;
}

nav ul li a:hover{
  color:#00bfff;
}

/* HERO */

.hero{
  /* Imagen del hero: version WebP mucho mas liviana.
     Antes pesaba 228 KB y se bajaba en TODAS las paginas. */
  --hero-img:url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=60&w=1400&auto=format');
  width:100%;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:120px 8%;
  background:
  linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
  var(--hero-img) center/cover;
}

.hero-content h1{
  font-size:65px;
  margin-bottom:20px;
}

.hero-content span{
  color:#00bfff;
}

.hero-content p{
  max-width:700px;
  margin:auto;
  font-size:20px;
  line-height:1.7;
  color:#dcdcdc;
}

/* BOTON */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin-top:30px;
  padding:15px 35px;
  background:#00bfff;
  color:#0b0f1a; /* texto oscuro: mejor contraste sobre el azul */
  text-decoration:none;
  border-radius:12px;
  transition:0.3s;
  font-weight:600;
}

.btn:hover{
  transform:scale(1.05);
  background:#0099cc;
  color:#0b0f1a;
}

/* SECTION */

section{
  padding:100px 8%;
}

.title{
  text-align:center;
  margin-bottom:60px;
}

.title h2{
  font-size:42px;
  color:#00bfff;
}

/* CARDS */

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
}

.card{
  background:#111827;
  padding:30px;
  border-radius:20px;
  transition:0.4s;
  border:1px solid rgba(255,255,255,0.08);
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 10px 25px rgba(0,191,255,0.3);
}

.card h3{
  margin-bottom:15px;
  color:#00bfff;
  font-size:24px;
}

.card p{
  color:#d5d5d5;
  line-height:1.7;
}

/* PRODUCTOS */

.product{
  cursor:pointer;
}

.product img{
  width:100%;
  border-radius:15px;
  margin-bottom:15px;
  height:200px;
  object-fit:cover;
}

.product-link{
  text-decoration:none;
  color:white;
}

/* CONTACT */

.contact{
  text-align:center;
}

.contact p{
  margin:15px 0;
  font-size:18px;
}

/* FOOTER */

footer{
  background:#05070d;
  text-align:center;
  padding:25px;
  color:#999;
}

/* RESPONSIVE */

@media(max-width:768px){

  /* NAVBAR */

  nav{
    flex-direction:column;
    height:auto;
    padding:15px;
  }

  .logo{
    font-size:24px;
    margin-bottom:10px;
  }

  nav ul{
    width:100%;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
  }

  nav ul li a{
    font-size:14px;
  }

  /* HERO */

  .hero{
    /* En celular la imagen se ve mas chica: bajamos una version
       de ~45 KB en lugar de una de 110 KB. */
    --hero-img:url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=55&w=800&auto=format');
    padding:160px 20px 80px;
  }

  .hero-content h1{
    font-size:38px;
    line-height:1.2;
  }

  .hero-content p{
    font-size:16px;
    margin-top:15px;
  }

  .btn{
    padding:12px 25px;
    font-size:14px;
  }

  /* SECTIONS */

  section{
    padding:70px 20px;
  }

  .title h2{
    font-size:32px;
  }

  /* CARDS */

  .cards{
    grid-template-columns:1fr;
  }

  .card{
    padding:20px;
  }

  .product img{
    height:180px;
  }

  /* CONTACTO */

  .contact p{
    font-size:16px;
  }

  /* FOOTER */

  footer{
    font-size:14px;
    padding:20px;
  }

}

/* ============================================================
   AMPLIACIONES (2026)
   Se agregan al final para no tocar los estilos que ya
   funcionaban. Mismo tema oscuro + azul #00bfff.
   ============================================================ */

/* ---------- Botón flotante de WhatsApp ---------- */

.wa-flotante{
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom, 0px));
  z-index:900;
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25d366;
  color:#fff;
  box-shadow:0 8px 22px rgba(0,0,0,0.45);
  transition:transform 0.2s, background 0.2s;
}

.wa-flotante:hover{
  background:#1ebe5a;
  transform:scale(1.07);
}

.wa-flotante:focus-visible{
  outline:3px solid #fff;
  outline-offset:2px;
}

/* No tapar el contenido del pie en celular */
@media(max-width:768px){
  .wa-flotante{
    right:14px;
    bottom:calc(14px + env(safe-area-inset-bottom, 0px));
    width:52px;
    height:52px;
  }
}

/* ---------- Paquetes y precios ---------- */

#precios{
  scroll-margin-top:100px;
}

.paquetes-nota{
  max-width:760px;
  margin:0 auto 40px;
  text-align:center;
  color:#d5d5d5;
  line-height:1.7;
  font-size:17px;
}

.paquetes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

.paquete{
  background:#111827;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;
  padding:26px;
  display:flex;
  flex-direction:column;
  transition:0.3s;
}

.paquete:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 28px rgba(0,191,255,0.22);
}

.paquete h3{
  color:#00bfff;
  font-size:21px;
  margin-bottom:6px;
}

.paquete-para{
  color:#9ca3af;
  font-size:14px;
  line-height:1.6;
  min-height:44px;
  margin-bottom:14px;
}

.paquete-precio{
  font-size:30px;
  font-weight:700;
  color:#fff;
  line-height:1.2;
}

.paquete-precio small{
  display:block;
  font-size:13px;
  font-weight:400;
  color:#9ca3af;
  margin-top:4px;
}

.paquete-mensual{
  margin-top:10px;
  font-size:13px;
  color:#ffd77a;
  line-height:1.5;
}

.paquete ul{
  list-style:none;
  margin:18px 0 22px;
  padding:0;
  flex:1;
}

.paquete li{
  position:relative;
  padding-left:24px;
  margin-bottom:9px;
  font-size:14.5px;
  line-height:1.5;
  color:#d5d5d5;
}

.paquete li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#00bfff;
  font-weight:700;
}

.paquete .btn{
  margin-top:auto;
  text-align:center;
  color:#0b0f1a;
}

.contact .btn{
  color:#0b0f1a;
}

/* ---------- Página de demostración de catálogo ---------- */

.demo-foto{
  width:100%;
  aspect-ratio: 4 / 3;
  max-height: 260px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#0e1526,#1f2937);
  overflow:hidden;
  border-radius:12px;
}

.demo-foto img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* En pantallas grandes las tarjetas se ensanchan; limitamos la altura de la imagen */
@media(min-width: 1024px){
  .demo-foto{
    max-height: 220px;
  }
}

.demo-acciones{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* ---------- Video "próximamente" ---------- */

.video-placeholder{
  width:100%;
  max-width:900px;
  max-height:480px;
  aspect-ratio:16 / 9;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:24px;
  text-align:center;
  background:linear-gradient(135deg,#111827,#0e1526);
  border:2px dashed rgba(0,191,255,0.35);
  border-radius:20px;
  color:#d5d5d5;
}

.video-icono{
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  border-radius:50%;
  background:rgba(0,191,255,0.18);
  color:#00bfff;
  font-size:24px;
  margin-bottom:6px;
}

.video-placeholder strong{
  color:#fff;
  font-size:18px;
}

.video-placeholder small{
  font-size:13.5px;
  color:#9ca3af;
}

/* ---------- Tarjeta de producto sin foto ---------- */

.producto-sin-foto{
  width:100%;
  height:200px;
  margin-bottom:15px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:58px;
  background:linear-gradient(135deg,#0f172a,#1e293b);
  border:1px dashed rgba(0,191,255,0.35);
}

@media(max-width:768px){
  .producto-sin-foto{
    height:180px;
  }

  .paquete{
    padding:22px;
  }

  /* La barra de navegación es más alta cuando se acomoda en dos filas */
  #precios{
    scroll-margin-top:130px;
  }
}

/* ---------- Grupos de servicios ---------- */

#servicios .cards{
  display:flex;
  flex-direction:column;
  gap:50px;
}

.grupo{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:30px;
}

.grupo-subtitulo{
  grid-column:1 / -1;
  margin:0;
  padding-left:12px;
  border-left:5px solid #00bfff;
  font-size:22px;
  color:#00bfff;
}

.grupo .product-link{
  display:block;
}

.grupo .card{
  height:100%;
}

@media(max-width:768px){
  #servicios .cards{
    gap:35px;
  }
  .grupo{
    grid-template-columns:1fr;
  }
}

/* ---------- Título del hero: control del tamaño en pantallas grandes ---------- */

.hero-content h1{
  font-size:clamp(34px,5vw,52px);
  line-height:1.2;
  max-width:900px;
  margin:0 auto 20px;
}

.hero-content h1 span{
  display:block;
  margin-top:14px;
  font-size:0.45em;
  font-weight:500;
}

/* ---------- Anclas: que el menú fijo no tape el inicio de cada sección ---------- */

section[id]{
  scroll-margin-top:100px;
}

@media(max-width:768px){
  section[id]{
    scroll-margin-top:150px;
  }
}

/* ---------- Contacto: teléfono y correo tocables ---------- */

.contact p a{
  color:#00bfff;
  text-decoration:none;
}

.contact p a:hover{
  text-decoration:underline;
}

/* ---------- Botones finales de servicios y productos ---------- */

.acciones{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-top:30px;
}

.acciones .btn{
  margin:0;
}
