:root {
  --primary: #4A90E2;
  --light: #EAF3FC;
  --accent: #F5A623;
  --text: #6B6B6B;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

body {
  padding-top: 72px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}


.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary);
}

.logo img {
  width: 32px;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.menu-toggle {
  display: none;
}

/* HERO */
.hero {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 52px;
  color: var(--primary);
}

.hero img {
  width: 100%;
  border-radius: 16px;
}

/* SECCIONES */
.section {
  padding: 80px 0;
  scroll-margin-top: 90px;
}

.bg-light {
  background: var(--light);
}

.section-title {
  font-size: 36px;
  margin-bottom: 48px;
  text-align: center;
}

/* GRIDS */
.grid {
  display: grid;
  gap: 24px;
}

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* CARDS */
.card,
.product-card,
.benefit-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.product-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

/* BOTONES */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
}

/* CTA */
.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

/* FOOTER */
.footer {
  background: #f9f9f9;
  padding: 48px 0;
  text-align: center;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 14px;
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid,
  .grid-5,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    background: none;
    font-size: 24px;
    border: none;
  }

  .hero h1 {
    font-size: 34px;
  }
}


/* MOBILE MENU */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 72px;
    right: 0;
    background: var(--white);
    flex-direction: column;
    width: 100%;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-open {
    display: flex !important;
  }
}


/* HEADER ANIMACIONES */
.header {
  transition: all 0.3s ease;
}

.logo {
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

/* LINKS NAV */
.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* MICROANIMACIONES CARDS */
.card,
.product-card,
.benefit-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover,
.product-card:hover,
.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* IMAGEN PRODUCTOS */
.product-card img {
  transition: transform 0.4s ease;
}

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

.btn-primary,
.btn-secondary {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}


.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes */
.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-left.active,
.reveal-right.active {
  transform: translateX(0);
}


/* HERO MOBILE FIX */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }

  .hero-grid {
    display: flex;
    flex-direction: column-reverse; /* imagen arriba */
    gap: 32px;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  /* Anulamos animaciones laterales en mobile */
  .reveal-left,
  .reveal-right {
    transform: translateY(40px);
  }

  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero .reveal {
    transition-duration: 0.6s;
  }
}

@media (max-width: 768px) {
  .hero-image img {
    max-width: 90%;
    margin: 0 auto;
  }
}

/* PRODUCT PAGE FIX DESKTOP */
.product-page .hero-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.product-page .hero-image img {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.product-page .hero-text {
  max-width: 520px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  text-align: center;
}

.footer-social {
 display: flex;
  justify-content: center;  /* centra los íconos */
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 16px;
}

.footer-social img {
  width: 28px;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.1);
  opacity: 1;
}

.footer-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer .btn-primary {
  background: var(--accent);
}

.footer .btn-primary:hover {
  background: #e6951c;
}
