/* ==========================================================
   Refrigeración San Isidro — Landing
   Colores tomados del logo: rojo + gris oscuro
   ========================================================== */

:root {
  --red: #d9232d;
  --red-dark: #b51b24;
  --ink: #2a2a2c;
  --ink-soft: #55565a;
  --muted: #8a8b90;
  --bg: #ffffff;
  --bg-alt: #f3f3f4;
  --line: #e4e4e7;
  --dark: #1f1f21;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 25, 0.08);
  --container: 1140px;
  --header-h: 76px;
}

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

/* Fondo oscuro detrás del body: si Safari (iOS) rebota al final, se ve el color del footer y no blanco */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: #161618;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-soft); }

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

.accent { color: var(--red); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .8rem;
}
.eyebrow--light { color: #ff6b72; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo__mark {
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.05em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.logo__text small { font-size: .78rem; color: var(--ink-soft); }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: #b9b9bf; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  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(0,0,0,.04); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.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 {
  padding: 80px 0 90px;
  background:
    radial-gradient(circle at 85% 20%, rgba(217, 35, 45, .07), transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero__lead { font-size: 1.15rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: .92rem;
  color: var(--ink-soft);
}
.hero__badges strong { display: block; font-size: 1.3rem; color: var(--ink); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% center;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero__tag {
  position: absolute;
  left: -28px;
  bottom: 32px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 14px 34px rgba(20, 20, 25, .14);
  border-left: 4px solid var(--red);
}
.hero__tag-script {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--ink);
}
.hero__tag small { color: var(--ink-soft); font-size: .82rem; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2 { color: #fff; }
.section--dark p { color: #b9b9bf; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }

/* Cards de servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s;
}
.card:hover .card__img { transform: scale(1.04); }
.card__body { position: relative; padding: 22px 24px 26px; background: #fff; }
.card__body::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 14px;
}
.card p { margin: 0; font-size: .95rem; }

/* Íconos de línea en rojo */
.features__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Layout dividido */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Features */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.features li {
  display: flex;
  gap: 18px;
  background: #fff;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.features h3 { margin-bottom: .2rem; }
.features p { margin: 0; font-size: .95rem; }
.features__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(217, 35, 45, .08);
  display: grid;
  place-items: center;
}

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a, .contact-list strong { font-size: 1.1rem; font-weight: 600; color: #fff; }
.contact-list a:hover { color: #ff6b72; }

.form {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 16px;
}
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.form .is-invalid { border-color: var(--red); background: #fff5f5; }
.form__note { margin: 0; font-size: .82rem; text-align: center; color: var(--muted) !important; }

/* Footer */
.footer { background: #161618; padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; font-size: .85rem; color: #8a8b90; }
.footer__ig { display: inline-flex; align-items: center; gap: 8px; color: #b9b9bf; font-size: .9rem; transition: color .2s; }
.footer__ig:hover { color: #fff; }
.footer__ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__tag { left: 16px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }

  .hero { padding: 48px 0 64px; }
  .hero__inner,
  .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__media img { aspect-ratio: 4 / 3; }
  .hero__tag { bottom: 14px; left: 14px; padding: 10px 14px; }
  .hero__tag-script { font-size: 1.35rem; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .logo__text small { display: none; }
  .hero__actions .btn { width: 100%; }
  .form { padding: 24px; }
}
