/* ── Variables (en sync con el sistema) ── */
:root {
  --brand:   #062a42;
  --accent:  #00aaff;
  --accent2: #0077cc;
  --bg:      #f0f4f8;
  --card:    #ffffff;
  --border:  #e2e8f0;
  --text:    #1a2b3c;
  --muted:   #6b7f91;
  --radius:  14px;
  --shadow:  0 8px 32px rgba(6,42,66,.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "DM Sans", "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ══════════════════
   HERO
══════════════════ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  background:
    linear-gradient(135deg, rgba(6,42,66,.88) 0%, rgba(0,119,204,.7) 100%),
    url('/img/banner-refrigerantes.jpg') center/cover no-repeat;
  overflow: hidden;
}

/* Patrón decorativo de fondo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Círculo decorativo */
.hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,170,255,.18), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-tag {
  display: inline-block;
  background: rgba(0,170,255,.2);
  border: 1px solid rgba(0,170,255,.4);
  color: #7dd3fc;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -.5px;
}

.hero p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 12px;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0,170,255,.4);
  transition: background .25s, transform .15s, box-shadow .25s;
  margin-top: 6px;
}
.hero-cta svg { width: 18px; height: 18px; }
.hero-cta:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,170,255,.45);
}

/* ══════════════════
   PRODUCTS SECTION
══════════════════ */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-tag {
  display: inline-block;
  background: rgba(0,170,255,.1);
  border: 1px solid rgba(0,170,255,.25);
  color: var(--accent2);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--brand);
  letter-spacing: -.5px;
}

.section-sub {
  color: var(--muted);
  font-size: .95rem;
  max-width: 400px;
}

/* ── Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Cards ── */
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(6,42,66,.16);
}

/* Imagen */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .card-img-wrap img {
  transform: scale(1.07);
}

/* Badge */
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(6,42,66,.3);
}
.card-badge--new {
  background: var(--accent2);
}

/* Contenido */
.product-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.product-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
  letter-spacing: -.2px;
}

.product-content p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.6;
}

.product-content button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(6,42,66,.2);
  transition: background .25s, transform .15s, box-shadow .25s;
  width: 100%;
  justify-content: center;
}
.product-content button svg { width: 16px; height: 16px; }
.product-content button:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,170,255,.3);
}

/* ── Footer ── */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 28px 50px;
  font-size: .85rem;
  line-height: 2;
}
footer a { color: var(--accent2); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding: 120px 24px 60px; }
  .hero h1 { font-size: 1.9rem; }
  .products-section { padding: 48px 20px 60px; }
  .products-grid { grid-template-columns: 1fr; }
}