/* ============ VARIABLES ============ */
:root {
  --navy: #0056BC;
  --navy-light: #1A6FD4;
  --navy-lighter: #3A87DD;
  --white: #FFFFFF;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-300: #cbd3dd;
  --gray-500: #6b7787;
  --gray-700: #3a4453;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 86, 188, 0.12);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ FADE IN ============ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 86, 188, 0.35);
  background: var(--navy-light);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--lg { padding: 14px 26px; font-size: 0.95rem; }
.btn--sm { padding: 9px 16px; font-size: 0.8rem; }
.btn--full { width: 100%; }

/* ============ 1. TOP BAR ============ */
.topbar {
  background: var(--navy);
  color: var(--white);
}
.topbar p {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  padding: 8px 16px;
  letter-spacing: 0.2px;
}

/* ============ 2. HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.header.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 86, 188, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.3px;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 2px;
  flex-shrink: 0;
}
.logo-mark--footer {
  width: 30px;
  height: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav {
  display: none;
  align-items: center;
  gap: 26px;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width var(--transition);
}
.nav a:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
#btnPedirHeader { display: none; }

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}
.nav.is-open a { width: 100%; padding: 10px 0; }

/* ============ 3. HERO ============ */
.hero {
  padding: 48px 0 60px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.rotate-word {
  color: var(--navy);
  border-bottom: 4px solid var(--gray-300);
  display: inline-block;
  transition: opacity 0.3s ease;
}
.hero__subtitle {
  font-size: 1rem;
  color: var(--gray-700);
  max-width: 520px;
  margin: 0 0 26px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__collage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0 40px;
}
.collage__main {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.collage__float {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
}
.collage__float--1 {
  width: 110px;
  height: 110px;
  top: -10px;
  right: 10%;
  animation-delay: 0.3s;
}
.collage__float--2 {
  width: 100px;
  height: 100px;
  bottom: 20px;
  left: 4%;
  animation-delay: 1s;
}
.collage__badge {
  position: absolute;
  bottom: 0;
  right: 6%;
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  line-height: 1.1;
}
.collage__badge strong { display: block; font-size: 1.3rem; }
.collage__badge span { font-size: 0.7rem; opacity: 0.85; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ 4. BRANDS ============ */
.brands { padding: 34px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.brands__label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* ============ SECTIONS (shared) ============ */
.section { padding: 64px 0; }
.section--alt { background: var(--gray-50); }
.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--navy-lighter);
  margin-bottom: 10px;
}
.section__head h2 {
  font-size: 1.7rem;
  margin: 0 0 10px;
  font-weight: 800;
}
.section__head p {
  color: var(--gray-500);
  margin: 0;
}
.section__cta {
  text-align: center;
  margin-top: 36px;
}

/* ============ GRIDS / PRODUCT CARDS ============ */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
.grid--3, .grid--4 {
  grid-template-columns: 1fr;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.product-card__img-wrap {
  position: relative;
  overflow: hidden;
}
.product-card__img-wrap img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img-wrap img {
  transform: scale(1.06);
}
.product-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card__body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.product-card__body p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.85rem;
  flex: 1;
}
.product-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
}
.product-card__price span {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-left: 6px;
  text-decoration: line-through;
}

/* ============ CATEGORY CARDS ============ */
.cat-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card__body {
  padding: 20px;
  background: var(--white);
}
.cat-card__body h3 { margin: 0 0 6px; font-size: 1.1rem; }
.cat-card__body p { margin: 0 0 10px; color: var(--gray-500); font-size: 0.88rem; }
.cat-card__link { font-weight: 700; font-size: 0.85rem; color: var(--navy-lighter); }

/* ============ ZIGZAG BENEFITS ============ */
.zigzag {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding: 30px 0;
}
.zigzag + .zigzag { border-top: 1px solid var(--gray-100); }
.zigzag__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.zigzag__text h3 {
  font-size: 1.4rem;
  margin: 0 0 12px;
  font-weight: 800;
}
.zigzag__text p {
  color: var(--gray-700);
  margin: 0 0 16px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
  color: var(--white);
  opacity: 0.9;
}
.footer__col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--white); }
.logo--light { color: var(--white); margin-bottom: 12px; }
.footer__brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  max-width: 260px;
}
.footer__newsletter p { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin: 0 0 14px; }
#newsletterForm {
  display: flex;
  gap: 8px;
}
#newsletterForm input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.85rem;
}
#newsletterForm input::placeholder { color: rgba(255,255,255,0.5); }
#newsletterForm button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition);
}
#newsletterForm button:hover { transform: scale(1.08); }
.newsletter__msg {
  font-size: 0.8rem;
  color: #9fd6a8;
  min-height: 18px;
  margin: 10px 0 0;
}
.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.footer__social a:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 20px;
  text-align: center;
}
.footer__bottom p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,86,188,0.4);
  z-index: 90;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============ RESPONSIVE ============ */
@media (min-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.4rem; }
  #newsletterForm { max-width: 320px; }
}

@media (min-width: 860px) {
  .nav { display: flex; }
  #btnPedirHeader { display: inline-flex; }
  .menu-toggle { display: none; }

  .hero__inner {
    flex-direction: row;
    align-items: center;
  }
  .hero__text, .hero__collage { flex: 1; }
  .hero h1 { font-size: 2.8rem; }

  .zigzag {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .zigzag > * { flex: 1; }
  .zigzag--reverse { flex-direction: row-reverse; }

  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}

@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
