/* =========================================================
   CAUCHOFLEX — Hoja de estilos
   Fábrica argentina de tejos de playa y cubeteras de goma
   ========================================================= */

:root {
  --navy: #0d2a47;
  --navy-2: #143a63;
  --ink: #17232e;
  --muted: #5b6b7a;
  --line: #e6e0d6;
  --sand: #fbf7f0;
  --sand-2: #f3ecdf;
  --white: #ffffff;
  --coral: #ff4d3a;
  --coral-dark: #e23a28;
  --sun: #ffc531;
  --sea: #1aa6d6;
  --leaf: #27b36c;
  --wa: #25d366;
  --wa-dark: #1cb257;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 42, 71, .10);
  --shadow-lg: 0 24px 60px rgba(13, 42, 71, .16);
  --container: 1180px;
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-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: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--navy { background: var(--navy); color: #d9e4f0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--white { background: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #b8c8da; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; border-radius: 2px; }
.section--navy .eyebrow { color: var(--sun); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--wa { background: var(--wa); color: #06341a; box-shadow: 0 8px 20px rgba(37, 211, 102, .30); }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }

.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 77, 58, .30); }
.btn--coral:hover { background: var(--coral-dark); }

.btn--ghost { background: transparent; border-color: rgba(13, 42, 71, .18); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); background: var(--white); }
.section--navy .btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.section--navy .btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.btn--sm { padding: 11px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(13, 42, 71, .06); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--navy); }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo span em { font-style: normal; color: var(--coral); }

.nav__list { display: flex; gap: 6px; }
.nav__link { display: block; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--navy); transition: background .15s; }
.nav__link:hover { background: var(--sand-2); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__phone { font-weight: 700; color: var(--navy); font-size: .95rem; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--white);
  place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 90% 10%, rgba(26, 166, 214, .14), transparent 60%),
    radial-gradient(40% 40% at 10% 90%, rgba(255, 197, 49, .18), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(39, 179, 108, .2); }

.hero h1 strong { color: var(--coral); }
.hero__lead { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 560px; }
.hero__lead b { color: var(--ink); }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.hero__trust svg { width: 18px; height: 18px; color: var(--leaf); flex: none; }

.hero__media { position: relative; }
.hero__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px;
  background: var(--white); box-shadow: var(--shadow-lg);
}
.hero__disc { position: absolute; border-radius: 50%; z-index: -1; opacity: .9; }
.hero__disc--1 { width: 120px; height: 120px; background: var(--sun); top: -30px; right: -20px; }
.hero__disc--2 { width: 80px; height: 80px; background: var(--sea); bottom: 30px; left: -30px; }
.hero__disc--3 { width: 50px; height: 50px; background: var(--leaf); bottom: -16px; right: 60px; }

.hero__price-tag {
  position: absolute; left: 20px; bottom: 20px; background: var(--white); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); display: grid; gap: 2px;
}
.hero__price-tag small { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero__price-tag strong { font-size: 1.45rem; color: var(--navy); letter-spacing: -.02em; }
.hero__price-tag span { font-size: .8rem; color: var(--muted); }

/* ---------- Barra de confianza ---------- */
.trustbar { background: var(--navy); color: #fff; padding: 18px 0; }
.trustbar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; }
.trustbar li { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
.trustbar svg { width: 20px; height: 20px; color: var(--sun); flex: none; }

/* ---------- Productos ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.product {
  position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product__media { position: relative; aspect-ratio: 16 / 10; background: var(--sand-2); overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__media--placeholder { display: grid; place-items: center; background: linear-gradient(135deg, #e7f6fd, #f3ecdf); }
.product__media--placeholder svg { width: 46%; height: auto; }
.product__tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--coral); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.product__tag--sea { background: var(--sea); }
.product__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.product__body h3 { font-size: 1.5rem; }
.product__body p { color: var(--muted); }
.product__features { display: flex; flex-wrap: wrap; gap: 8px; }
.product__features li { font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--sand-2); color: var(--navy); }

.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.price strong { font-size: 2rem; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.price span { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price-note { font-size: .8rem; color: var(--muted); }

.product__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* Otros productos */
.others { margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px; align-items: center; }
.others h3 { font-size: 1.35rem; }
.others p { color: var(--muted); margin-top: 8px; }
.others ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.others li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sand); font-weight: 600; font-size: .95rem; color: var(--navy); }
.others li svg { width: 22px; height: 22px; flex: none; color: var(--sea); }

/* ---------- Comerciantes / Distribuidores ---------- */
.dealers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.dealers__list { display: grid; gap: 12px; margin-top: 24px; }
.dealers__list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.dealers__list svg { width: 22px; height: 22px; flex: none; color: var(--sun); margin-top: 2px; }
.dealers__list strong { color: #fff; display: block; }
.dealers__list span { font-size: .93rem; color: #b8c8da; }

.dealers__card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.dealers__card h3 { font-size: 1.5rem; color: var(--navy); }
.dealers__card p { color: var(--muted); margin-top: 10px; }
.dealers__card .stack { display: grid; gap: 10px; margin-top: 22px; }
.dealers__card small { display: block; margin-top: 14px; color: var(--muted); font-size: .82rem; text-align: center; }

/* ---------- Por qué Cauchoflex ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.why__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--sand-2); color: var(--navy); }
.why__icon svg { width: 26px; height: 26px; }
.why__item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why__item p { color: var(--muted); font-size: .95rem; }
.why__item .num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: var(--coral); line-height: 1; margin-bottom: 8px; }

/* ---------- Cómo comprar ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .1em; color: var(--coral);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--coral); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.contact__info { display: grid; gap: 14px; margin-top: 26px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; }
.contact__info svg { width: 22px; height: 22px; flex: none; color: var(--coral); margin-top: 3px; }
.contact__info strong { display: block; color: var(--navy); }
.contact__info span { color: var(--muted); }

.contact__card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; text-align: center; box-shadow: var(--shadow-lg); }
.contact__card h3 { color: #fff; font-size: 1.6rem; }
.contact__card p { color: #b8c8da; margin: 12px 0 24px; }
.contact__card .stack { display: grid; gap: 10px; }
.contact__card .tel { display: block; margin-top: 18px; font-weight: 700; color: #fff; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: #0a1f36; color: #93a8bf; padding: 40px 0 28px; font-size: .92rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .logo { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; font-size: .85rem; }
.footer__bottom a { color: #b8c8da; }
.footer__bottom a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--wa); color: #06341a;
  font-weight: 800; box-shadow: 0 12px 30px rgba(37, 211, 102, .40);
  transition: transform .15s, background .15s, color .15s;
}
.wa-float:hover { transform: translateY(-2px); background: var(--wa-dark); color: #fff; }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Página de producto ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); }
.pdp__gallery { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.pdp__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pdp__thumbs img { aspect-ratio: 1; border-radius: 14px; }
.pdp__body h1 { margin-top: 8px; }
.pdp__lead { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.pdp__pricebox { margin-top: 26px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pdp__pricebox .price strong { font-size: 2.4rem; }
.pdp__pricebox .stack { display: grid; gap: 10px; margin-top: 18px; }
.pdp__specs { margin-top: 30px; display: grid; gap: 10px; }
.pdp__specs li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pdp__specs svg { width: 20px; height: 20px; color: var(--leaf); flex: none; margin-top: 3px; }
.pdp__specs strong { color: var(--navy); }
.pdp__text { margin-top: 30px; display: grid; gap: 14px; color: var(--muted); }
.pdp__text h2 { font-size: 1.4rem; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--navy); }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.error-page .code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; letter-spacing: -.05em; color: var(--coral); line-height: 1; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .others { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav__list {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; gap: 4px; padding: 12px; background: var(--white);
    border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__link { padding: 12px 16px; }
  .nav__toggle { display: grid; }
  .nav__phone { display: none; }
  .nav__actions .btn { padding: 11px 16px; font-size: .9rem; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__disc--1 { width: 80px; height: 80px; top: -20px; right: -10px; }
  .hero__disc--2 { width: 56px; height: 56px; left: -14px; }

  .products { grid-template-columns: 1fr; }
  .dealers__grid, .contact, .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; }
  .steps { grid-template-columns: 1fr; }
  .others ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .why { grid-template-columns: 1fr; }
  .others ul { grid-template-columns: 1fr; }
  .hero__ctas .btn, .product__ctas .btn { width: 100%; }
  .nav__actions .btn span { display: none; }
  .nav__actions .btn { padding: 11px; border-radius: 12px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .hero__price-tag { left: 12px; bottom: 12px; padding: 10px 12px; }
  .hero__price-tag strong { font-size: 1.2rem; }
}
