/* Familia Serrano — landing. Mobile first. */
:root {
  --navy: #17324D;
  --navy-2: #0f2438;
  --teal: #22A6A1;
  --teal-ink: #137a76;      /* turquesa con contraste AA para texto y botones */
  --teal-soft: #e3f5f4;
  --yellow: #F2B84B;
  --yellow-soft: #fdf1d8;
  --paper: #F5F7F5;
  --white: #fff;
  --ink: #17324D;
  --muted: #4d6275;
  --line: #e2e8ec;
  --wa: #128C4B;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23, 50, 77, .06), 0 8px 24px rgba(23, 50, 77, .08);
  --wrap: 1160px;
  --gutter: 16px;
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--sm { width: 1em; height: 1em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--teal { background: var(--teal-ink); color: #fff; box-shadow: 0 6px 16px rgba(19, 122, 118, .25); }
.btn--teal:hover { background: #106966; }
.btn--wa { background: var(--wa); color: #fff; font-size: 1.15rem; border-radius: 999px; padding-inline: 1.5em; box-shadow: 0 6px 16px rgba(18, 140, 75, .28); }
.btn--wa:hover { background: #0f7a41; }
.btn--wa .ico { width: 1.5em; height: 1.5em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 700; color: var(--navy); text-decoration: none;
  border-bottom: 2px solid var(--yellow); padding-block: 2px;
}
.link-arrow:hover { color: var(--teal-ink); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.top.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(23, 50, 77, .06); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 56px; width: auto; }

.menu-btn {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
}
.menu-btn .ico { width: 24px; height: 24px; }

.nav {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px);
  display: none; flex-direction: column; gap: 2px;
  padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.nav.is-open { display: flex; }
.nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--navy); }
.nav a:hover { background: var(--teal-soft); }
.nav .nav__cta { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; background: var(--wa); color: #fff; justify-content: center; }
.nav .nav__cta:hover { background: #0f7a41; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 100% 0%, var(--teal-soft) 0%, rgba(227, 245, 244, 0) 60%),
    linear-gradient(180deg, var(--paper), #fff);
  padding-top: 28px;
  overflow: hidden;
}
.hero__in { position: relative; z-index: 1; display: grid; gap: 24px; align-items: center; }
.kicker {
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink);
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2rem, 8.2vw, 3.6rem);
  line-height: 1.05; font-weight: 900; letter-spacing: -.02em;
}
.hero h1 span { display: block; }
.lead { margin-top: 16px; font-size: clamp(1.05rem, 3.6vw, 1.3rem); color: var(--muted); }
.hero__ctas { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__badges { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__badges li {
  display: inline-flex; align-items: center; gap: .45em;
  padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 700; color: var(--navy);
}
.hero__badges .ico { color: var(--teal-ink); }
.hero__photo { display: block; position: relative; margin-top: 28px; }
.hero__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.hero__wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20c240-26 480-26 720 0s480 26 720 0v20H0Z' fill='%23ffffff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Secciones ---------- */
.sec { padding-block: 48px; }
.sec--tight { padding-block: 24px; }
.sec__title {
  text-align: center;
  font-size: clamp(1.5rem, 5.4vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.15;
  margin-bottom: 26px;
}

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 50, 77, .06), 0 16px 32px rgba(23, 50, 77, .12); }
.cat__art {
  position: relative; height: 110px; overflow: hidden;
  background: var(--tint, var(--teal-soft));
}
.cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat:hover .cat__img { transform: scale(1.04); }
.cat__ico {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; margin: -30px auto 0;
  display: grid; place-items: center;
  background: var(--icon-bg, var(--teal-ink)); color: #fff;
  border: 4px solid #fff; box-shadow: 0 6px 14px rgba(23, 50, 77, .18);
}
.cat__ico .ico { width: 26px; height: 26px; }
.cat h3 { margin-top: 8px; font-size: 1.15rem; font-weight: 800; }
.cat p { padding: 6px 14px 18px; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.cat--limpieza { --tint: #e3f5f4; --icon-bg: var(--teal-ink); }
.cat--higiene  { --tint: #eaf0f6; --icon-bg: var(--navy); }
.cat--hogar    { --tint: #fdf1d8; --icon-bg: #c98a12; }
.cat--piscinas { --tint: #dcf3f6; --icon-bg: #1a8fb0; }

/* Pagos */
.pays { display: grid; gap: 12px; }
.pay {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pay h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.25; }
.pay__ico {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--teal-ink); color: #fff;
}
.pay__ico .ico { width: 30px; height: 30px; }
/* Logo oficial de Mercado Pago: sin editar, sobre blanco; el SVG ya incluye el área de protección */
.pay--mp { padding-block: 6px; }
.pay__logo { height: 84px; width: auto; }
.pay--hot { background: var(--yellow); border-color: var(--yellow); }
.pay__ico--cash { background: rgba(23, 50, 77, .12); color: var(--navy); }
.pay__pre, .pay__post { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.pay__big { font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; }

/* Envíos */
.ship {
  position: relative; margin-top: 24px;
  padding-block: 48px 110px;
  background: linear-gradient(180deg, #eaf7f6 0%, #e3f5f4 100%);
}
.ship__rule {
  display: flex; align-items: center; gap: 12px;
  width: fit-content; max-width: 100%; margin: 0 auto;
  padding: 14px 22px; border-radius: 14px; background: #d2eeec;
  font-weight: 700; line-height: 1.35;
}
.ship__rule .ico { width: 32px; height: 32px; color: var(--navy); }
.ship__sub { text-align: center; margin: 16px 0 20px; color: var(--muted); }
.days { display: grid; gap: 12px; }
.day {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.day__ico { width: 40px; height: 40px; color: var(--teal-ink); }
.day h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.day__time { font-weight: 700; font-size: 1.05rem; }
.day__zone { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.ship__note {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  margin-top: 20px; font-weight: 700; color: var(--navy);
}
.ship__note .ico { color: var(--teal-ink); }
.ship__wave { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; }
.ship__wave svg { width: 100%; height: 100%; }

/* Ubicación */
.loc { display: grid; gap: 24px; align-items: center; }
.loc__title { font-size: clamp(1.6rem, 5.6vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.loc__place { margin-top: 6px; font-size: 1.2rem; font-weight: 700; }
.loc__code { display: flex; align-items: center; gap: 8px; margin: 6px 0 20px; color: var(--muted); }
.loc__code .ico { color: var(--teal-ink); }
.loc__photo { position: relative; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.loc__photo img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.loc__photo figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(23, 50, 77, .82); color: #fff; font-size: .85rem; font-weight: 700;
}
.loc__map {
  position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; background: var(--teal-soft);
  border: 4px solid #fff; outline: 1px solid var(--line);
}
.loc__map iframe { width: 100%; height: 100%; border: 0; }

/* Contacto */
.contact {
  display: grid; gap: 20px;
  padding: 24px 20px; border-radius: 20px;
  background: linear-gradient(135deg, #eaf7f6, #f2f8fb);
  border: 1px solid var(--line);
}
.contact h2 { font-size: clamp(1.6rem, 5.6vw, 2.2rem); font-weight: 800; line-height: 1.1; }
.contact__main p { margin: 6px 0 18px; color: var(--muted); }
.contact__mails { display: grid; gap: 10px; }
.contact__mails a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere;
}
.contact__mails a:hover { border-color: var(--teal); }
.contact__mails .ico { color: var(--teal-ink); width: 22px; height: 22px; }

/* Próximamente */
.soon {
  position: relative; overflow: hidden;
  display: grid; gap: 16px; align-items: center;
  padding: 26px 22px; border-radius: 20px;
  background: var(--navy); color: #fff;
}
.soon::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 260px; height: 140px;
  border-radius: 50%; border-top: 14px solid var(--teal); transform: rotate(-12deg); opacity: .8;
}
.soon__tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--yellow); color: var(--navy);
  font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
}
.soon h2 { margin-top: 12px; font-size: clamp(1.5rem, 5.4vw, 2.2rem); font-weight: 800; line-height: 1.1; }
.soon p:last-child { margin-top: 8px; color: #c9d6e2; }
.soon__art { width: 130px; justify-self: end; position: relative; z-index: 1; }

/* Footer */
.foot { margin-top: 32px; padding-block: 36px 96px; text-align: center; background: linear-gradient(180deg, #fff, var(--teal-soft)); }
.foot__in { display: grid; justify-items: center; gap: 6px; }
.foot img { height: 84px; width: auto; margin-bottom: 6px; }
.foot p { color: var(--muted); font-weight: 600; }
.foot__copy { font-size: .85rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(18, 140, 75, .4);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .ico { width: 32px; height: 32px; }

/* ---------- ≥ 560px ---------- */
@media (min-width: 560px) {
  .pays { grid-template-columns: 1fr 1fr; }
  .pay--hot { grid-column: 1 / -1; }
  .cat__art { height: 130px; }
  .contact__mails a { font-size: 1.02rem; }
  .loc__map { aspect-ratio: 16 / 10; }
}

/* ---------- ≥ 820px ---------- */
@media (min-width: 820px) {
  :root { --gutter: 24px; }
  .top__in { min-height: 88px; }
  .brand img { height: 68px; }
  .menu-btn { display: none; }
  .nav {
    position: static; display: flex; flex-direction: row; align-items: center; gap: 4px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav a { padding: 10px 12px; }
  .nav .nav__cta { margin: 0 0 0 8px; padding: 10px 16px; }


  .sec { padding-block: 64px; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .cat__art { height: 150px; }
  .cat p { padding-inline: 18px; }

  .pays { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .pay--hot { grid-column: auto; }
  .pay { flex-direction: column; justify-content: center; text-align: center; padding: 26px 20px; min-height: 180px; }
  .pay--hot { flex-direction: row; text-align: left; }
  .pay--mp { padding: 0; }
  .pay__logo { height: 178px; }

  .days { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ship { padding-block: 64px 130px; }
  .ship__wave { height: 110px; }

  .loc { grid-template-columns: .8fr 1.2fr; grid-template-areas: "txt photo" "map map"; gap: 32px 48px; }
  .loc__txt { grid-area: txt; }
  .loc__photo { grid-area: photo; }
  .loc__map { grid-area: map; aspect-ratio: auto; height: 340px; }
  .contact { grid-template-columns: 1fr 1fr; align-items: center; padding: 34px 36px; gap: 32px; }
  .contact__mails { border-left: 1px solid var(--line); padding-left: 32px; }
  .soon { grid-template-columns: 1fr auto; padding: 34px 40px; }
  .soon__art { width: 170px; }

  .wa-float { width: 62px; height: 62px; right: 24px; bottom: 24px; }
  .foot { padding-bottom: 48px; }
}

/* Hero, tablet: foto enmarcada debajo del texto */
@media (min-width: 560px) and (max-width: 1023px) {
  .hero { padding-bottom: 56px; }
  .hero__photo { max-width: 720px; margin: 32px auto 0; padding-inline: var(--gutter); }
  .hero__photo img { border-radius: 20px; box-shadow: var(--shadow); }
}

/* Hero, escritorio: foto a la derecha, texto sobre el fondo claro */
@media (min-width: 1024px) {
  .hero {
    display: flex; align-items: center;
    min-height: clamp(520px, 46vw, 680px);
    padding-block: 64px 88px;
    background: var(--paper);
  }
  .hero__in { grid-template-columns: minmax(0, 560px); }
  .hero__txt { max-width: calc(50vw - var(--gutter)); }
  .hero h1 { font-size: clamp(2.6rem, 4.3vw, 3.6rem); }
  .hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; margin: 0; }
  .hero__photo img { height: 100%; aspect-ratio: auto; object-position: 75% 55%; }
  /* fundido del borde izquierdo de la foto hacia el fondo */
  .hero__photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--paper) 0%, rgba(245, 247, 245, .6) 14%, rgba(245, 247, 245, 0) 32%);
  }
  .hero__wave { height: 40px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .hero__photo { width: 54%; }
  .hero__photo img { object-position: 80% 55%; }
}

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