/* =========================================================
   Maxiproductos — hoja de estilos principal
   ========================================================= */

:root {
  --brand: #0b6e4f;
  --brand-600: #095c42;
  --brand-50: #e8f5ef;
  --brand-100: #cfeadd;
  --accent: #e63946;
  --accent-50: #fdecee;
  --gold: #f4a261;
  --ink: #10221a;
  --text: #2d3b35;
  --muted: #5d6d66;
  --line: #e2ebe6;
  --bg: #f7faf8;
  --surface: #ffffff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 26, .06), 0 2px 8px rgba(16, 34, 26, .05);
  --shadow: 0 10px 30px -10px rgba(16, 34, 26, .18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 34, 26, .28);

  --container: 1180px;
  --header-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-600); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, #14a36f 100%);
  color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  box-shadow: 0 6px 16px -6px rgba(11, 110, 79, .6);
}
.brand span b { color: var(--accent); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .92rem; font-weight: 600;
  color: var(--text);
  text-transform: uppercase; letter-spacing: .06em;
}
.nav a:hover { color: var(--brand); background: var(--brand-50); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.nav .nav-cta { background: var(--accent); color: #fff; margin-left: 8px; }
.nav .nav-cta:hover,
.nav .nav-cta[aria-current="page"] { background: #c92f3b; color: #fff; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .3s ease, background .3s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 24px -10px rgba(230, 57, 70, .7); }
.btn-primary:hover { background: #c92f3b; color: #fff; }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -10px rgba(11, 110, 79, .7); }
.btn-brand:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media, .page-hero-media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 40, 29, .92) 0%, rgba(6, 40, 29, .7) 45%, rgba(6, 40, 29, .15) 100%);
}
.hero .container { padding-block: 80px; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #9ff0c9; }
.hero p.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.hero .eyebrow, .page-hero .eyebrow { color: #9ff0c9; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.hero-badges li {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: .88rem; font-weight: 600;
  backdrop-filter: blur(6px);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  padding: 110px 0 96px;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 620px; margin: 0; }
.breadcrumbs { display: flex; gap: 8px; font-size: .88rem; margin-bottom: 18px; color: rgba(255, 255, 255, .75); padding: 0; list-style: none; }
.breadcrumbs a { color: rgba(255, 255, 255, .9); }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-tint { background: linear-gradient(180deg, var(--brand-50) 0%, var(--bg) 100%); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head .eyebrow { justify-content: center; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.split-reverse { grid-template-columns: .9fr 1.1fr; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.is-accent { background: var(--accent-50); color: var(--accent); }

.product-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  color: inherit;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.product-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.product-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover figure img { transform: scale(1.06); }
.product-card .tag {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.product-card .body { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.6rem; font-family: var(--font-display); font-weight: 600; }
.product-card p { color: var(--muted); }
.link-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s ease; }
.product-card:hover .link-arrow svg { transform: translateX(4px); }

/* ---------- Media frame ---------- */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.media-frame.is-wide img { aspect-ratio: 4 / 3; }
.media-frame figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  padding: 14px 18px; border-radius: 14px; font-size: .92rem; font-weight: 600;
  box-shadow: var(--shadow);
}

.sticky-col { position: sticky; top: calc(var(--header-h) + 24px); }

.product-logo {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 32px;
}
.product-logo img {
  width: 88px; height: 88px; object-fit: cover; border-radius: 22px;
  box-shadow: var(--shadow); border: 4px solid #fff;
}
.product-logo strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.product-logo small { color: var(--muted); font-size: .95rem; }

/* ---------- Prose ---------- */
.prose p { font-size: 1.08rem; }
.prose p.lead-p { font-size: 1.25rem; color: var(--ink); font-weight: 500; line-height: 1.6; }
.prose strong { color: var(--ink); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: left; box-shadow: var(--shadow-sm);
}
.stat-value { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--brand); line-height: 1; margin-bottom: 10px; }
.stat-label { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Feature list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check-list li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  margin-top: 1px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  padding: 8px 16px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600);
  font-weight: 600; font-size: .92rem; border: 1px solid var(--brand-100);
}
.chips.is-accent li { background: var(--accent-50); color: #b42532; border-color: #f8cdd1; }

.flavor { display: inline-flex; align-items: center; gap: 8px; }
.flavor i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Dose panel ---------- */
.dose {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0;
}
.dose div {
  border-radius: var(--radius); padding: 22px 24px; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #13a36e 100%);
}
.dose div:nth-child(2) { background: linear-gradient(135deg, #1d3557 0%, #2f6690 100%); }
.dose b { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.dose span { font-size: .95rem; opacity: .9; }

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-50);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}
.callout p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 64px;
  background: linear-gradient(120deg, var(--brand) 0%, #0d8a62 55%, #17b37a 100%);
  color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 70%);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); color: inherit; }
.contact-card .card-icon { margin: 0; flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.contact-card strong { color: var(--ink); font-size: 1.1rem; word-break: break-word; }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 110, 79, .12);
}
.form-note { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1f17; color: rgba(255, 255, 255, .72); padding: 72px 0 0; margin-top: 0; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact { font-style: normal; display: grid; gap: 10px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center;
  font-size: .88rem;
}
.footer-legal p { margin: 0; }
.footer-original { font-size: .86rem; color: rgba(255, 255, 255, .55); margin-top: 18px; }
.disclaimer { font-size: .82rem; color: rgba(255, 255, 255, .5); max-width: 460px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-reverse { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sticky-col { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 48px; }
  .cta-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 16px 24px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; border-radius: 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }
  .section { padding: 72px 0; }
  .hero { min-height: auto; }
  .hero .container { padding-block: 72px; }
  .page-hero { padding: 80px 0 64px; }
  .card, .form { padding: 26px; }
  .cta-band { padding: 36px 26px; }
  .form-row, .dose { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 18px; }
  .stat-value { font-size: 2rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .product-card .body { padding: 24px; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

/* ---------- Utilidades ---------- */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.section-head.is-tight { margin-bottom: 40px; }
