/* 
  =============================================================
  ARCHIVO: styles.css
  DESCRIPCIÓN: Hoja de estilos principal de la landing page.
  Controla los colores, la estructura visual, la barra de 
  navegación, el logo y las animaciones generales.
  =============================================================
*/

/* ===== GLOBAL: Reseteos básicos y colores de fondo/fuente ===== */
body {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* NAVBAR: Estilos para la barra superior usando efecto cristal (backdrop-filter) */
.navbar {
  background: rgba(10, 10, 10, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 30px;
  transition: all 0.3s ease;
}

/* LOGO: Estilo tipo "cortina". El logo descuelga del navbar hacia la sección Hero */
.navbar-brand img.logo {
  height: 180px;
  margin-top: -10px; /* Toca el borde superior */
  margin-bottom: -100px; /* Cuelga hacia el hero sin agrandar el navbar */
  filter: drop-shadow(0px 15px 25px rgba(0,0,0,0.8));
  border-radius: 0 0 16px 16px;
  position: relative;
  z-index: 1100;
  transition: all 0.3s ease;
}

.nav-link {
  color: #ccc !important;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #0d6efd !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #0d6efd;
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* HERO: Sección principal que ocupa el 100% del alto de la ventana (100vh) */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(10,10,10,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-content p {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #bbb;
  margin-bottom: 40px;
}

/* BLOQUES DE CATEGORÍAS: Estilos para las tarjetas de producto que inyecta JS */
.category-section {
  padding: 80px 0;
  background: #0a0a0a;
}

.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: 30px;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.category-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.category-overlay h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.category-overlay p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 20px;
}

.category-overlay .btn-outline {
  align-self: flex-start;
  color: #fff;
  border: 2px solid #0d6efd;
  background: rgba(14, 165, 233, 0.1);
  padding: 8px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.category-overlay .btn-outline:hover {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

/* BOTONES GLOBALES: Estilos unificados para botones primarios (azul) */
.btn-primary {
  background: #0d6efd;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
  color: #fff;
}

/* ABOUT */
.about {
  background: linear-gradient(135deg, #111, #1a1a1a);
  position: relative;
  overflow: hidden;
}
.about::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(14,165,233,0.05) 0%, transparent 60%);
  z-index: 0;
}
.about .container {
  position: relative;
  z-index: 1;
}

/* REVIEWS */
.review-card {
  background: rgba(31, 42, 54, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease;
  height: 100%;
  text-align: left;
}
.review-card:hover {
  transform: translateY(-5px);
  background: rgba(31, 42, 54, 0.8);
}
.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #0284c7, #0d6efd);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><pattern id="p" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.2)"/></pattern><rect width="100%" height="100%" fill="url(%23p)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}
.cta .container {
  position: relative;
  z-index: 2;
}

/* FOOTER */
.footer {
  background: #050505;
  padding: 40px;
  text-align: center;
  border-top: 1px solid #111;
}

/* WHATSAPP: Botón fijo en la esquina inferior derecha */
.whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}
.whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
}

/* EFECTOS HOVER (UTILS) */
.hover-zoom-container {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-origin: top left;
}
.hover-zoom-container:hover {
  transform: scale(2.5);
  z-index: 100 !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8) !important;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(10, 10, 10, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.1);
  }
}

/* MARCAS (PASARELA MARQUEE) */
.marquee-content {
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-item {
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.brand-item:hover {
  opacity: 1;
  color: #0d6efd !important;
  transform: scale(1.1);
}

/* ========================================
   CLASES UTILITARIAS (Reemplazan estilos inline)
   ======================================== */

/* SECCIONES */
.marquee-section {
  background-color: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 100px !important;
  margin-bottom: -1px;
}

.hero-content-wrapper {
  padding-top: 40px;
}

/* HERO TEXTO */
.hero-title-primary {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-title-secondary {
  color: #0d6efd;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.hero-divider {
  width: 4px;
  height: 50px;
  background-color: #0d6efd;
  margin-right: 20px;
}

.hero-description {
  max-width: 500px;
  opacity: 0.9;
}

.hero-cta-button {
  font-size: 1.1rem;
  background-color: #0d6efd;
  border: none;
  letter-spacing: 0.5px;
}

/* INFO BAR */
.info-bar {
  background-color: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 850px;
}

.icon-primary {
  color: #0d6efd;
}

.info-title {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.info-subtitle {
  opacity: 0.7;
  font-size: 0.85rem;
}

/* CATÁLOGO */
.catalog-title {
  text-transform: uppercase;
}

.catalog-description {
  max-width: 700px;
}

/* CONTACTO */
.contact-image-container {
  background-color: rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 10;
}

/* IFRAME */
.map-container {
  background-color: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-iframe {
  border: 0;
}

/* FOOTER */
.footer-text {
  opacity: 0.6;
}

/* REVIEW CARDS */
.review-opacity {
  opacity: 0.8;
}