/* =========================================================
   Refri Mundo — estilos
   Paleta basada en el logo (azul marino) y la línea Dosivac
   (azul royal), con celeste hielo como fondo de apoyo.
   ========================================================= */

:root {
  --navy-900: #0b1f47;
  --navy-800: #0f2a5e;
  --navy: #12326f;          /* azul del logo */
  --royal: #1d4fbf;         /* azul Dosivac */
  --royal-600: #173f9c;
  --ice: #eef3fb;           /* celeste hielo */
  --ice-200: #dbe5f5;
  --ink: #16213a;
  --muted: #5a6680;
  --line: #dfe5ef;
  --white: #ffffff;
  --wa: #1fae57;            /* verde WhatsApp (tono sobrio) */
  --wa-600: #178f47;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 94, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 71, .18);
  --header-h: 72px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 3.8vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.icon { width: 1.2em; height: 1.2em; flex: none; }

.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: .8rem;
}
.eyebrow--light { color: #9fbcf2; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .9em 1.5em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .nav a:focus-visible, .nav-toggle:focus-visible, .wa-float:focus-visible {
  outline: 3px solid #8fb3ff;
  outline-offset: 3px;
}
.btn--wa { background: var(--wa); color: var(--white); box-shadow: 0 8px 20px rgba(31, 174, 87, .28); }
.btn--wa:hover { background: var(--wa-600); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn--sm { padding: .6em 1.1em; font-size: .88rem; }
.btn--lg { padding: 1em 1.9em; font-size: 1.05rem; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 42, 94, .06); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header__logo img { height: 42px; width: auto; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--royal);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav a:hover { color: var(--royal); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  margin-left: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(29, 79, 191, .55), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.hero::after {           /* silueta de montaña del logo, muy sutil */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to top, rgba(255, 255, 255, .04), transparent);
  clip-path: polygon(0 100%, 0 70%, 18% 35%, 30% 55%, 46% 10%, 60% 50%, 72% 30%, 88% 60%, 100% 40%, 100% 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero h1 { color: var(--white); }
.hero__lead { font-size: 1.1rem; color: #d3def5; max-width: 34em; }
.hero__lead strong { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- Franja de confianza ---------- */
.trust {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 22px;
}
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__icon { width: 36px; height: 36px; color: var(--royal); flex: none; }
.trust__item strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.trust__item span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--ice); }
.section--dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #d3def5;
}
.section--dark h2, .section--dark h3 { color: var(--white); }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section__head--light p:last-child { color: #c3d2ef; }

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 72px;
  align-items: center;
}
.about__text p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.about__media {
  margin: 0;
  background: linear-gradient(180deg, #f6f8fc, var(--ice));
  border-radius: var(--radius);
  padding: 20px;
  max-height: 520px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.about__media img { max-height: 480px; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 72px;
}
.value {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.value:hover { box-shadow: var(--shadow); border-color: var(--ice-200); transform: translateY(-2px); }
.value__icon {
  width: 46px; height: 46px;
  padding: 11px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--royal);
  margin-bottom: 16px;
}
.value h3 { margin-bottom: .35em; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Productos ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product__img {
  aspect-ratio: 4 / 4.2;
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product:first-child .product__img img { object-fit: contain; padding: 12px; mix-blend-mode: multiply; }
.product__body { padding: 22px 24px 26px; }
.product__body p { color: var(--muted); font-size: .94rem; margin: 0; }
.product--more {
  background: linear-gradient(160deg, var(--royal) 0%, var(--navy) 100%);
  color: #d9e4fb;
  justify-content: center;
}
.product--more .product__body { padding: 36px 30px; }
.product--more h3 { color: var(--white); font-size: 1.35rem; }
.product--more p { color: #d9e4fb; margin-bottom: 22px; }

/* ---------- Envíos ---------- */
.shipping {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.shipping__text p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4fbf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.shipping__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 260px;
  gap: 14px;
}
.shipping__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.shipping__gallery img:first-child { grid-column: 1 / -1; }

/* ---------- Postventa ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: none;
}
.step {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--royal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 18px;
}
.step p { margin: 0; color: #c3d2ef; }

/* ---------- Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.contact__main { padding: 56px; }
.contact__main p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.contact__phone {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 20px 0 26px;
  letter-spacing: -.01em;
}
.contact__phone:hover { color: var(--royal); }
.contact__hours { padding: 56px 48px; background: var(--navy); color: #d3def5; }
.contact__hours h3 { color: var(--white); display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.hours { margin: 0; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--white); font-weight: 600; }
.hours__closed { color: #9fb0d2 !important; font-weight: 500 !important; }
.contact__note { font-size: .9rem; color: #9fb0d2; margin: 22px 0 0; }

/* ---------- Pie ---------- */
.footer { background: var(--navy-900); color: #9fb0d2; padding: 56px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.footer__logo { height: 48px; width: auto; margin-bottom: 18px; }
.footer p { margin: 0 0 8px; font-size: .92rem; }
.footer__legal { margin-top: 20px !important; font-size: .8rem !important; color: #6f82a8; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.07); background: var(--wa-600); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { 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: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 36px; }
  .header__cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 42, 94, .1);
    padding: 8px 20px 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 88px; }
  .about, .shipping { grid-template-columns: 1fr; gap: 40px; }
  .about__media { max-height: 420px; }
  .about__media img { max-height: 380px; }
  .values { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .steps { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__main, .contact__hours { padding: 40px 32px; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header__cta { padding: .55em .9em; }
  .hero__actions .btn { width: 100%; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-left: 0; border-top: 1px solid var(--line); }
  .trust__item { padding: 18px 20px; }
  .values { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .product__img { aspect-ratio: 4 / 3.4; }
  .shipping__gallery { grid-template-rows: 180px 200px; }
  .contact__main, .contact__hours { padding: 32px 22px; }
  .contact__main .btn { width: 100%; }
  .section { padding: 64px 0; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
