/* styles.css - simple responsive styles for NMAPERU landing page */
:root{
  --brand:#0a58ca;
  --accent:#f6c84c;
  --muted:#6b7280;
  --bg:#f4f6fb;
  --maxw:1100px;
  --radius:10px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:#111}
.container{max-width:var(--maxw);margin:0 auto;padding:24px}
.site-header{background:var(--brand);color:#fff;padding:14px 0;position:sticky;top:0;z-index:50}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;gap:12px;align-items:center}
.logo{width:64px;height:64px}
.brand h1{font-size:1rem;margin:0}
.ruc{margin:0;font-size:0.85rem;opacity:0.9}
.nav a{color:#fff;margin:0 10px;text-decoration:none}
.nav .btn{background:var(--accent);color:#111;padding:8px 12px;border-radius:8px;text-decoration:none;font-weight:600}
.hero{padding:48px 0;background:linear-gradient(90deg, rgba(10,88,202,0.06), rgba(246,200,76,0.03))}
.hero-inner{display:flex;gap:30px;align-items:center;justify-content:space-between}
.hero-text h2{font-size:1.8rem;margin:0 0 12px}
.hero-text p{margin:0 0 18px;color:var(--muted)}
.cta{background:var(--brand);color:#fff;padding:10px 16px;border-radius:8px;text-decoration:none}
.hero-image img{width:360px;max-width:45vw}
.servicios h3,.marcas h3,.productos h3,.contacto h3{font-size:1.4rem;margin:24px 0}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:#fff;padding:18px;border-radius:var(--radius);box-shadow:0 6px 18px rgba(15,23,42,0.06)}
.marcas-logos{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:12px 0}
.marcas-logos img{height:48px}
.product{background:#fff;padding:14px;border-radius:12px;text-align:center}
.product img{width:100px;height:100px;display:block;margin:0 auto 12px}
.center{text-align:center}
.btn-outline{display:inline-block;padding:10px 14px;border-radius:8px;border:2px solid var(--brand);text-decoration:none;color:var(--brand);font-weight:600}
.contact-grid{display:grid;grid-template-columns:1fr 360px;gap:24px;align-items:start}
.contact-form{background:#fff;padding:18px;border-radius:12px;box-shadow:0 6px 18px rgba(15,23,42,0.06)}
.contact-form label{display:block;margin-bottom:8px;font-size:0.9rem}
.contact-form input,.contact-form textarea{width:100%;padding:10px;border:1px solid #e5e7eb;border-radius:8px;margin-top:6px}
.hint{font-size:0.85rem;color:var(--muted)}
.contact-info{background:#fff;padding:18px;border-radius:12px;box-shadow:0 6px 18px rgba(15,23,42,0.06)}
.map-placeholder{height:160px;background:#eef2ff;border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--muted);margin-top:10px}
.site-footer{background:#071042;color:#fff;padding:18px 0;margin-top:28px}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:0.9rem}

/* Botón flotante de WhatsApp */
.whatsapp-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  z-index: 10000; /* por encima de popups (9999) */
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover{
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.whatsapp-float svg{
  width: 28px;
  height: 28px;
  display:block;
  fill: currentColor;
}

/* (Opcional) Ocultar en pantallas muy pequeñas si estorba */
/*
@media (max-width: 360px){
  .whatsapp-float{ right: 12px; bottom: 12px; width: 50px; height: 50px; }
  .whatsapp-float svg{ width: 24px; height: 24px; }
}
*/



/* Responsive */
@media(max-width:900px){
  .hero-inner{flex-direction:column;text-align:center}
  .hero-image img{max-width:260px}
  .grid{grid-template-columns:repeat(1,1fr)}
  .contact-grid{grid-template-columns:1fr}
  .nav{display:none}
}

#popup-inicio,
.overlay,
.modal {
  display: none !important;
}



/* Efecto hover */
.product img {
  width: 100%;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.product img:hover {
  transform: scale(1.1);
}

/* Popup */
.popup {
  display: none; 
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.popup-contenido {
  margin: auto;
  padding: 20px;
  max-width: 80%;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.popup img {
  max-width: 100%;
  height: auto;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.cerrar:hover {
  color: #ccc;
}
/* Productos Destacados */
.product img {
  width: 250px;          /* ancho fijo */
  height: 250px;         /* alto fijo */
  object-fit: cover;     /* recorte automático sin deformar */
  border-radius: 10px;   /* esquinas suaves */
  display: block;
  margin: 0 auto 10px;   /* centrado y espacio debajo */
  transition: transform 0.3s ease;
}

/* Efecto hover opcional */
.product img:hover {
  transform: scale(1.05);
}

/* Popup Cotizar: ancho un poco mayor para el formulario */
#popupQuote .popup-content {
  max-width: 560px;
  width: 92vw;
  text-align: left;
}
#popupQuote form label {
  display: block;
  margin-bottom: 10px;
}
#popupQuote input, 
#popupQuote textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-top: 4px;
}
