/* --- 1. CONFIGURACIÓN GLOBAL Y VARIABLES --- */
:root {
  /* Colores */
  --bg-body: #080808;
  --bg-card: #141414;
  --bg-panel: #1a1a1a;
  --accent: #c5a059; /* Dorado Industrial */
  --accent-hover: #e5c070;
  --text-main: #ffffff;
  --text-dim: #888888;

  /* Tipografía */
  --font-head: "Kanit", sans-serif;
  --font-logo: "Archivo Black", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Layout */
  --radius-large: 16px;
  --radius-small: 8px;
  --container-w: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #080808 60%);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1.1;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Estado inicial */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: all 0.8s ease-out;
}

/* Cuando aparece */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- 2. UTILIDADES DE TEXTO RESPONSIVO --- */
.text-huge {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -1px;
}
.text-xl {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}
.text-accent {
  color: var(--accent);
}
.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  color: transparent;
}

/* --- 3. COMPONENTES UI GENERALES --- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-large);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #000;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(197, 160, 89, 0.4);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(197, 160, 89, 0.5);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.btn-dark:hover {
  background: white;
  color: black;
  transform: translateY(-4px);
}

.badge {
  background: var(--accent);
  color: black;
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: var(--font-head);
  display: inline-block;
  margin-bottom: 20px;
}

/* --- 4. NAVBAR & MENÚ RESPONSIVO --- */
header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  pointer-events: none;
}

.nav-dock {
  pointer-events: auto;
  max-width: var(--container-w);
  margin: 0 auto;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.logo {
  font-family: var(--font-logo);
  font-size: 1.6rem;
  letter-spacing: -1px;
  color: white;
}
.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  transition: all 0.3s ease-in-out;
}
.nav-link {
  color: #ccc;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
  padding: 8px 16px;
  border-radius: 8px;
}
.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* --- 5. HERO SECTION --- */
.hero {
  padding: 180px 0 100px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-text p {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 30px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat strong {
  display: block;
  font-size: 1.8rem;
  color: white;
  font-family: var(--font-head);
}
.stat span {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  height: 600px;
  background: #111;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: 1s;
}
.hero-visual:hover .hero-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.play-btn {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-size: 1rem;
  cursor: pointer;
}

/* --- 6. INFINITE MARQUEE --- */
.marquee-container {
  background: var(--accent);
  padding: 10px 0;
  margin: 50px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
}
.marquee-tag {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: black;
  margin: 0 20px;
  text-transform: uppercase;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%; /* Empieza fuera de pantalla */
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* --- 7. CATÁLOGO Y PRODUCTOS --- */
.catalog-section {
  padding: 80px 24px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-pill-container {
  background: #222;
  padding: 6px;
  border-radius: 50px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filter-pill {
  padding: 8px 16px;
  border-radius: 40px;
  background: transparent;
  color: #888;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.8rem;
}
.filter-pill.active {
  background: white;
  color: black;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-large);
  padding: 15px;
  border: 1px solid #222;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.8);
}

.p-image-box {
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  position: relative;
  margin-bottom: 15px;
}
.p-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.p-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.p-info .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
}

.p-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.btn-cart {
  padding: 12px 15px;
  font-size: 0.85rem;
  background: white;
  color: black;
  border: none;
  font-weight: 700;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: 0.2s;
}
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-small);
  background: #222;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.btn-icon:hover {
  color: var(--accent);
}

/* --- 8. BENTO GRID (Mayoristas) RESPONSIVO --- */
.bento-section {
  padding: 80px 0;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 250px 250px;
  gap: 20px;
}

.bento-box {
  background: var(--bg-panel);
  border-radius: var(--radius-large);
  padding: 25px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.box-large {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: linear-gradient(to bottom, #222, #111);
}
.box-wide {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.bento-icon {
  width: 50px;
  height: 50px;
  background: #000;
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 15px;
  border: 1px solid #333;
}
.box-wide .bento-icon {
  margin-bottom: 0;
}
.bento-box p {
  font-size: 0.9rem;
}
.bento-box .btn {
  margin-left: auto;
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* --- 9. FOOTER Y FORMULARIO CORREGIDO --- */
footer {
  border-top: 1px solid #222;
  padding: 60px 0 30px;
  background: #050505;
}
.footer-cta {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px;
  background: var(--bg-panel);
  border-radius: 30px;
  border: 1px solid #333;
}
.footer-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.footer-input,
.footer-textarea {
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #333;
  background: #000;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
}
.footer-textarea {
  grid-column: 1 / 3;
  resize: vertical;
  min-height: 100px;
}
.footer-submit-btn {
  grid-column: 1 / 3;
  width: 100%;
}

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  color: #777;
}
.footer-cols h4 {
  color: white;
  margin-bottom: 15px;
  font-family: var(--font-head);
  font-size: 1rem;
}
.social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}
.social-icon {
  font-size: 1.2rem;
  color: white;
  transition: color 0.2s;
}
.social-icon:hover {
  color: var(--accent);
}

.copyright-text {
  border-top: 1px solid #222;
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  color: #444;
  font-size: 0.85rem;
}

/* --- 10. MEDIA QUERIES (RESPONSIVIDAD) --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    height: 450px;
  }
  .hero-buttons {
    justify-content: center;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  /* Caja Grande ocupa 2 columnas */
  .box-large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  /* Las cajas normales 1 y 2 se posicionan debajo */
  .bento-box:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .bento-box:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  /* Caja Ancha se posiciona al final */
  .box-wide {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }

  .footer-cols {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-form {
    grid-template-columns: 1fr;
  } /* Formulario a una columna en tablet */
  .footer-textarea,
  .footer-submit-btn {
    grid-column: 1 / 2;
  }
}

/* Teléfono Móvil (max-width: 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  /* Navbar y Menú Hamburguesa */
  .nav-links {
    /* Estilos del menú móvil (oculto por defecto) */
    position: absolute;
    top: 70px; /* Debajo del nav-dock */
    left: 0;
    right: 0;
    background: var(--bg-body);
    border: 1px solid #333;
    flex-direction: column;
    padding: 20px 0;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-radius: 0;
  }
  .mobile-toggle {
    display: block;
  }

  /* Hero Móvil */
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }
  .hero-text {
    order: 2;
  }
  .hero-visual {
    order: 1;
    height: 350px;
    margin-bottom: 30px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  /* Catálogo Móvil */

  .filter-pill-container {
    display: flex;          /* De inline-flex → flex */
    justify-content: center;
    flex-wrap: wrap;        /* Permite saltos de línea */
    width: 100%;            /* Ocupa todo el ancho disponible */
    padding: 10px;          /* Respira mejor */
    box-sizing: border-box; /* Evita desbordes */
    border-radius: 20px;    /* Más compacto en móvil */
  }
  .filter-pill {
    font-size: 0.75rem;     /* Un pelín más chico */
    padding: 6px 14px;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .catalog-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Bento Grid Móvil (Una columna, apilado) */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-box {
    /* Se adapta para que la caja normal no se aplaste */
    min-height: 180px;
    aspect-ratio: auto;
  }
  .box-large,
  .box-wide,
  .bento-box:nth-child(2),
  .bento-box:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }
  .box-wide {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .box-wide .btn {
    margin: 15px 0 0 0 !important;
  }
  .text-xl {
    margin-top: 50px;
  }

  /* Footer Móvil */
  .footer-cols {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .col-brand .social-links {
    justify-content: center;
  }
  .footer-form {
    grid-template-columns: 1fr;
  }
}
