/* ===== VARIABLES ===== */
:root {
  --primary: #e63946;
  --secondary: #f4a261;
  --accent: #2a9d8f;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #6c757d;
  --card-bg: #ffffff;
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26, 26, 46, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
}

.logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: 1px;
}
.logo span { color: var(--secondary); margin-left: 6px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--secondary); }

.btn-stock {
  background: linear-gradient(135deg, var(--accent), #219a8e) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700 !important;
}
.btn-stock:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger { display: none; font-size: 1.5rem; color: white; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--darker) 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 5% 60px;
  gap: 40px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}

.hero-content { flex: 1; max-width: 600px; animation: fadeInLeft 0.8s ease; }

.badge {
  display: inline-block;
  background: rgba(244,162,97,0.2);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-content h1 span { color: var(--primary); }

.hero-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #c1121f);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(230,57,70,0.4);
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(230,57,70,0.5); }

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid var(--secondary);
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--secondary); color: var(--dark); }

/* HERO VISUAL */
.hero-visual {
  flex: 1;
  max-width: 420px;
  position: relative;
  height: 380px;
  animation: fadeInRight 0.8s ease;
}

.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 20px;
  padding: 20px 24px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.6;
}

.c1 { top: 0; left: 20px; animation: float 3s ease-in-out infinite; }
.c2 { top: 0; right: 0; animation: float 3s ease-in-out infinite 0.7s; }
.c3 { bottom: 30px; left: 0; animation: float 3s ease-in-out infinite 1.4s; }
.c4 { bottom: 30px; right: 30px; animation: float 3s ease-in-out infinite 2.1s; }
.floating-card { font-size: 2.5rem; }
.floating-card br { display: block; }
.floating-card { font-size: 0.85rem; line-height: 2; }

/* ===== STATS ===== */
.stats {
  background: var(--dark);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 5%;
}

.stat { text-align: center; }
.stat span {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.8rem;
  color: var(--secondary);
  display: block;
}
.stat p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ===== SECTIONS ===== */
.section { padding: 80px 5%; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 10px;
}
.section-header h2 span { color: var(--primary); }
.section-header p { color: var(--gray); font-size: 1.05rem; }

/* ===== PRODUCTOS ===== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.producto-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.producto-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }

.producto-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.producto-info { padding: 18px; }
.producto-info h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; color: var(--dark); }
.producto-info p { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }
.producto-precio {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.precio { font-size: 1.3rem; font-weight: 900; color: var(--primary); }
.stock-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  background: #d4edda;
  color: #155724;
}
.stock-badge.bajo { background: #fff3cd; color: #856404; }
.stock-badge.agotado { background: #f8d7da; color: #721c24; }

/* ===== OFERTAS ===== */
.ofertas-section { background: linear-gradient(135deg, #fff8f0, #fff0e0); }

.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.oferta-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}
.oferta-card:hover { transform: translateY(-4px); }

.oferta-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
}

.oferta-emoji { font-size: 3.5rem; margin-bottom: 12px; display: block; }
.oferta-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.oferta-card p { color: var(--gray); font-size: 0.85rem; margin-bottom: 16px; }
.precio-original { text-decoration: line-through; color: var(--gray); font-size: 0.95rem; }
.precio-oferta { font-size: 1.6rem; font-weight: 900; color: var(--primary); }

/* ===== CONTACTO ===== */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contacto-info { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  font-size: 1.3rem;
}
.info-card div strong { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.info-card div p { font-weight: 700; color: var(--dark); margin-top: 2px; }

.contacto-form {
  background: white;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.contacto-form h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; color: var(--dark); }
.contacto-form input,
.contacto-form textarea {
  width: 100%;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.contacto-form input:focus,
.contacto-form textarea:focus { border-color: var(--primary); }
.contacto-form textarea { resize: vertical; }
.contacto-form .btn-primary { width: 100%; font-size: 1rem; padding: 14px; }

/* ===== FOOTER ===== */
footer {
  background: var(--darker);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 40px 5%;
}
footer .logo { justify-content: center; margin-bottom: 12px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--secondary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--darker); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .contacto-grid { grid-template-columns: 1fr; }
}
