/* =====================================================
   CONFECCIONES BLAZZA - ESTILO 2025 (PALETA NUEVA)
   ===================================================== */

/* ===== VARIABLES ===== */
:root {
  --principal: #0B4672;
  --secundario: #232F38;
  --complementario: #E1E1DF;
  --blanco: #ffffff;
  --gris: #6b7280;
  --radio: 0.6rem;
  --sombra: 0 3px 15px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --trans: 0.25s ease;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  color: var(--secundario);
  background: var(--complementario);
  line-height: 1.6;
}
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* ===============================
   CABECERA Y MENÚ
   =============================== */
.site-header {
  background: var(--blanco);
  box-shadow: var(--sombra);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo { height: 60px; width: auto; }
.title-area h1 { color: var(--principal); font-size: 1.5rem; margin-bottom: 0.2rem; }
.subtitle { color: var(--gris); font-size: 0.95rem; }

.header {
  text-align: center;       /* centra el logo */
  padding: 20px 0;          /* espacio arriba y abajo */
  background: var(--crema); /* opcional */
}


.logo-principal {
  width: 200px;  /* ajusta el tamaño a tu gusto (por defecto 100px–200px) */
  height: auto;      /* mantiene proporción */
  transition: 0.3s ease; /* suaviza el cambio si haces animaciones */
}



@media (max-width: 768px) {
  .logo-principal {
    width: 140px; /* tamaño menor en móvil */
  }
}

/* ===== MENÚ ===== */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--principal);
  font-weight: 600;
  transition: color 0.3s;
}
.site-nav a:hover, .site-nav a.active { color: var(--secundario); }

/* ===== MENÚ MÓVIL ===== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--principal);
  cursor: pointer;
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.show { display: block; }
  .site-nav ul { flex-direction: column; text-align: center; padding: 1rem 0; gap: 1rem; }
}


/* ===============================
   HERO SLIDER
   =============================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--blanco);
  transition: opacity 1s ease;
}
.slide.active { display: flex; animation: fadeIn 1s ease; }

.banner-content {
  background: rgba(0,0,0,0.45);
  padding: 2rem;
  border-radius: var(--radio);
  max-width: 700px;
  animation: scaleIn 0.8s ease;
}
.banner-content h2 { font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 0.8rem; }
.banner-content p { font-size: 1.1rem; color: #e5e7eb; margin-bottom: 1.5rem; }
.hero-slider .btn.primary {
  background: var(--blanco);
  color: var(--principal);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radio);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sombra);
  transition: transform .25s, background .25s;
}
.hero-slider .btn.primary:hover {
  background: var(--principal);
  color: var(--blanco);
  transform: translateY(-2px);
}
.hero-slider .prev, .hero-slider .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.4); color:#fff;
  font-size: 2rem; border: none; padding: 0.4rem 0.8rem;
  border-radius: 50%; cursor: pointer; transition: .3s;
}
.hero-slider .prev:hover, .hero-slider .next:hover {
  background: var(--principal); color: var(--blanco);
}
.hero-slider .prev { left: 20px; } .hero-slider .next { right: 20px; }

/* ===============================
   CATÁLOGO DE PRODUCTOS
   =============================== */
.catalog { text-align: center; margin: 3rem auto; }
.catalog h2 { color: var(--principal); font-size: 2rem; margin-bottom: 2rem; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product {
  background: var(--blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
}
.product img { width: 100%; height: 240px; object-fit: cover; }
.product h3 { font-size: 1.1rem; margin: 0.8rem 0 0.4rem; color: var(--secundario); }
.product:hover { transform: translateY(-4px); }
.product .btn.cotizar {
  background: var(--principal);
  color: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radio);
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: .25s;
}
.product .btn.cotizar:hover {
  background: var(--secundario);
  transform: scale(1.05);
}
.btn-load-more { text-align: center; margin-top: 1.5rem; }
.btn.secondary {
  background: var(--complementario);
  color: var(--secundario);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radio);
  font-weight: 600;
  cursor: pointer;
}
.btn.secondary:hover {
  background: var(--principal);
  color: var(--blanco);
}

/* ===============================
   POPUP DE COTIZACIÓN
   =============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(17,25,40,0.65);
  backdrop-filter: blur(6px);
  justify-content: center; align-items: center;
}
.modal-content {
  background: var(--blanco);
  padding: 2rem;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  max-width: 460px; width: 90%;
  position: relative;
}
.close-modal {
  position: absolute;
  right: 1rem; top: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--principal);
  cursor: pointer;
}
form label { display: block; font-weight: 600; margin: 0.8rem 0 0.3rem; }
form input, form select, form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--radio);
}

/* ===============================
   FOOTER
   =============================== */
.site-footer {
  background: var(--secundario);
  color: var(--blanco);
  padding: 3rem 0 1rem;
  font-size: 0.95rem;
}


footer a {
  color: inherit;       /* Usa el mismo color del texto padre */
  text-decoration: none; /* Elimina el subrayado */
}

footer a:hover {
  color: var(--azul-claro); /* Cambia el color al pasar el mouse (opcional) */
}
a {
  color: inherit;
  text-decoration: none;
}

.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 {
  color: var(--complementario);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--principal);
  display: inline-block;
  padding-bottom: 0.3rem;
}
.logo-foot { width: 140px; margin-bottom: 1rem; }
.foot-links { list-style: none; padding: 0; }
.foot-links li { margin-bottom: 0.4rem; }
.foot-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.foot-links a:hover { color: var(--principal); }

.social-icons { display: flex; gap: 0.7rem; margin: 0.8rem 0 1.2rem; }
.social-icons a {
  background: rgba(255,255,255,0.1);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: 0.3s;
}
.social-icons a:hover {
  background: var(--principal);
  transform: scale(1.1);
}

/* Íconos de pago */
.payments { margin-top: 0.5rem; }
.payments i {
  color: var(--complementario);
  margin-right: 0.6rem;
  transition: transform 0.2s, color 0.2s;
}
.payments i:hover {
  color: var(--principal);
  transform: scale(1.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ===============================
   WHATSAPP FLOTANTE
   =============================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  padding: 0.8rem;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  z-index: 100;
  transition: transform 0.2s;
}
.wa-float img { width: 40px; height: 40px; }
.wa-float:hover { transform: scale(1.1); }

/* ===============================
   ANIMACIONES
   =============================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-col, .catalog { text-align: center; }
  .hero-slider { height: 60vh; }
  .banner-content h2 { font-size: 1.6rem; }
}
