:root {
  --bg-primary: #040811;
  --bg-secondary: rgba(20, 27, 45, 0.4); /* Glassmorphism */
  --accent: #FACC15; /* Amarillo de Rescate */
  --accent-hover: #EAB308;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* 🌟 Efecto Fondo Dinámico (Mesh Gradient) */
.bg-mesh {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 40% 40%, rgba(250, 204, 21, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 60%, rgba(45, 183, 242, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(239, 68, 68, 0.02) 0%, transparent 40%);
  animation: mesh-glow 15s ease infinite alternate;
}

@keyframes mesh-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(5deg); }
}

/* 🌟 Marquesina Infinita */
.marquee {
  background: var(--accent);
  color: #000;
  padding: 10px 0;
  font-weight: 800;
  font-size: 0.9rem;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid #000;
  white-space: nowrap; /* Ajuste para móvil: Evita que baje de línea */
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-content span {
  display: inline-block;
  padding-right: 50px;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(4, 8, 17, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent);
}

.btn-whatsapp {
  background: var(--accent);
  color: #000;
  padding: 0.8rem 1.4rem;
  border-radius: 50px; /* Redondo Premium */
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(250, 204, 21, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-whatsapp:hover {
  background: var(--accent-hover);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 8rem 1rem 7rem;
  background-image: linear-gradient(rgba(4, 8, 17, 0.7), rgba(4, 8, 17, 0.95)), url('https://images.unsplash.com/photo-1542385262-cdf06b2f08db?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 60%, var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.btn-hero {
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
  color: #000;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(250, 204, 21, 0.2);
  transition: all 0.3s;
}

.btn-hero:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(250, 204, 21, 0.3);
}

/* 🌟 Tarjetas de Catálogo Glassmorphic */
.catalog {
  padding: 3rem 5% 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.catalog-title {
  margin-bottom: 3rem;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.catalog-title span {
  color: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(250, 204, 21, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #DC2626;
  color: white;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 800;
  z-index: 10;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
  transition: transform 0.3s;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.card .specs {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2rem;
}

.price-tag .discount {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
}

.price-tag .original {
  text-decoration: line-through;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.btn-buy {
  display: block;
  text-align: center;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-buy:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* 🌟 Sección de Blog / Consejos */
.blog-section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.blog-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.btn-readmore {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-readmore:hover {
  text-decoration: underline;
}

/* 🌟 Footer */
footer {
  text-align: center;
  padding: 4rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: 5rem;
}

.footer-credit {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-credit a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* 🌟 Sección SEO / Contenido */
.seo-section {
  padding: 5rem 5%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.seo-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-weight: 900;
}
.seo-section h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #fff;
}
.seo-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.seo-section strong {
  color: var(--text-primary);
}

.modal-content {
  background: #0d1222;
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  border: 1px solid rgba(250, 204, 21, 0.15);
  position: relative;
  box-shadow: 0 10px 40px rgba(250, 204, 21, 0.05);
  animation: modal-enter 0.3s ease;
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-secondary); }
.form-group input { 
  width: 100%; padding: 12px; border-radius: 8px; background: #050810; 
  border: 1px solid rgba(255,255,255,0.08); color: #fff; font-size: 1rem;
}

.btn-submit {
  width: 100%; background: var(--accent); color: #000;
  border: none; padding: 14px; border-radius: 8px;
  font-weight: 800; cursor: pointer; font-size: 1.1rem;
  margin-top: 1rem;
}

.close-btn { position: absolute; top: 1.5rem; right: 1.5rem; cursor: pointer; font-size: 1.4rem; color: var(--text-secondary); }
