/* =====================================================================
   Refrigeración La Paz · estilos
   Sobrio, claro y legible. Mobile-first.
   ===================================================================== */

:root {
  --azul: #1F5FA8;
  --azul-osc: #174A85;
  --azul-claro: #E8F0FA;
  --sol: #F2A93B;
  --sol-osc: #A86400;          /* versión oscura del sol, para texto (contraste AA) */
  --texto: #26313D;
  --texto-suave: #4F5B67;
  --fondo: #FFFFFF;
  --gris: #F4F6F9;
  --borde: #DCE2EA;
  --wa: #1E8E4A;               /* verde WhatsApp oscurecido: texto blanco legible */
  --wa-osc: #187A3F;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(20,40,70,.06), 0 6px 20px rgba(20,40,70,.07);
  --f-titulo: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-texto: "Inter", 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(--f-texto);
  font-size: 18px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
}
img { max-width: 100%; display: block; }
a { color: var(--azul); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sol);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.2; color: #1B2632; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.05rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.saltar:focus { top: 12px; }

.eyebrow {
  font-family: var(--f-titulo); font-weight: 600; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--azul);
  margin-bottom: .6em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 58px; padding: 14px 26px;
  font-family: var(--f-titulo); font-weight: 600; font-size: 1.08rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border-radius: 12px; border: 2px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 4px 14px rgba(30,142,74,.25); }
.btn-wa:hover { background: var(--wa-osc); }
.btn-tel { background: #fff; color: var(--azul); border-color: var(--azul); }
.btn-tel:hover { background: var(--azul-claro); }
.btn-claro { background: #fff; color: var(--azul-osc); }
.btn-claro:hover { background: var(--azul-claro); }
.btn-sm { min-height: 54px; font-size: 1rem; padding: 12px 20px; }

.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 1.6em 0 1em; }

.nota-confianza {
  font-size: .95rem; font-weight: 500; color: var(--texto-suave); margin: .2em 0 0; line-height: 1.5;
}
.nota-confianza svg { width: 20px; height: 20px; fill: var(--azul); vertical-align: -4px; margin-right: 2px; }
.nota-confianza.centro { text-align: center; margin-top: 1.8em; }

.link-sec { display: inline-block; margin-top: .9em; font-weight: 600; text-decoration: none; padding: 6px 0; }
.link-sec:hover { text-decoration: underline; }

/* ---------- Encabezado ---------- */
.top { background: #fff; border-bottom: 1px solid var(--borde); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.top-logo img { height: 50px; width: auto; }
.top-nav { display: none; }
.top-tel {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; color: var(--azul); padding: 10px 12px; border-radius: 10px;
  min-height: 48px;
}
.top-tel svg { width: 22px; height: 22px; fill: currentColor; }
.top-tel span { display: none; }
.top-tel:hover { background: var(--azul-claro); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(242,169,59,.12), transparent 60%),
    linear-gradient(180deg, #F7FAFD 0%, #EEF3F9 100%);
  padding: 40px 0 48px;
}
.hero-in { display: grid; gap: 32px; }
.hero-bajada {
  font-size: 1.15rem; font-weight: 600; color: var(--azul-osc);
  display: flex; flex-wrap: wrap; column-gap: .5em; row-gap: .1em;
}
.hero-bajada .sep { color: var(--sol); display: none; }
.hero-bajada { flex-direction: column; }
.hero-bajada > span:not(.sep)::before { content: "✓ "; color: var(--sol-osc); }
.hero-card {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 24px;
  border-top: 5px solid var(--sol);
}
.hero-card-zona {
  display: flex; gap: .5em; align-items: flex-start; margin: 1em 0 0;
  font-weight: 500; color: var(--texto-suave);
}
.hero-card-zona svg { width: 22px; height: 22px; flex: none; fill: var(--azul); margin-top: 2px; }

.estado { display: flex; align-items: center; gap: 10px; font-family: var(--f-titulo); font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; }
.estado-punto { width: 12px; height: 12px; border-radius: 50%; background: var(--borde); flex: none; }
.estado.abierto .estado-punto { background: #1E8E4A; box-shadow: 0 0 0 4px rgba(30,142,74,.15); }
.estado.abierto .estado-txt { color: #17733C; }
.estado.cerrado .estado-punto { background: #B8C2CE; }
.estado-claro { margin: 16px 0 0; }
.estado-claro .estado-txt:empty { display: none; }

.horarios { list-style: none; margin: 0; padding: 0; }
.horarios li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--borde);
}
.horarios li:last-child { border-bottom: 0; }
.horarios strong { font-weight: 600; white-space: nowrap; }
.horarios li.hoy { color: var(--azul-osc); }
.horarios li.hoy span::after { content: " (hoy)"; font-weight: 600; }

/* ---------- Barra de confianza ---------- */
.confianza { background: var(--azul); color: #fff; }
.confianza-lista {
  list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px;
}
.confianza-lista li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-titulo); font-weight: 600; font-size: .98rem; line-height: 1.25;
}
.confianza-lista li:last-child { grid-column: 1 / -1; }
.confianza-lista svg { width: 26px; height: 26px; flex: none; fill: var(--sol); }

/* ---------- Secciones ---------- */
.seccion { padding: 64px 0; }
.seccion-gris { background: var(--gris); }
.sec-head { max-width: 680px; margin: 0 0 32px; }
.sec-head p:last-child { color: var(--texto-suave); font-size: 1.08rem; }

/* ---------- Servicios ---------- */
.servicios { display: grid; gap: 20px; }
.serv {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 26px 24px; box-shadow: var(--sombra);
  display: flex; flex-direction: column; align-items: flex-start;
}
.serv-ico {
  width: 68px; height: 68px; border-radius: 16px; background: var(--azul-claro);
  display: grid; place-items: center; margin-bottom: 16px;
}
.serv-ico svg, .opcion svg {
  width: 42px; height: 42px; fill: none; stroke: var(--azul);
  stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.serv-lista { margin: 0 0 1em; padding-left: 1.2em; }
.serv-lista li { margin: .2em 0; }
.serv-lista li::marker { color: var(--sol); }
.serv-destacado {
  background: #FEF5E7; border-left: 4px solid var(--sol);
  padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 1rem; width: 100%;
}
.serv .btn { margin-top: auto; width: 100%; }

/* ---------- Diagnóstico ---------- */
.diag {
  background: #fff; border: 1px solid var(--borde); border-radius: 18px;
  box-shadow: var(--sombra); padding: 24px 20px; max-width: 860px;
}
.diag-pasos {
  list-style: none; display: flex; gap: 6px; margin: 0 0 24px; padding: 0;
  font-size: .9rem; font-weight: 600; color: var(--texto-suave);
}
.diag-pasos li { flex: 1; display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 4px solid var(--borde); }
.diag-pasos li span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--borde); color: var(--texto); font-size: .85rem; flex: none;
}
.diag-pasos li.activo, .diag-pasos li.hecho { color: var(--azul-osc); border-color: var(--azul); }
.diag-pasos li.activo span, .diag-pasos li.hecho span { background: var(--azul); color: #fff; }
.diag-pregunta { font-size: 1.35rem; outline: none; }
.diag-opciones { display: grid; gap: 12px; margin: 18px 0; }
.diag-equipos { grid-template-columns: 1fr; }
.opcion {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 64px; padding: 12px 18px; text-align: left;
  font: 600 1.1rem/1.25 var(--f-titulo); color: var(--texto);
  background: #fff; border: 2px solid var(--borde); border-radius: 12px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.opcion:hover { border-color: var(--azul); background: var(--azul-claro); }
.opcion.elegida { border-color: var(--azul); background: var(--azul-claro); }
.opcion svg { width: 38px; height: 38px; }
.diag-sintomas .opcion::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--azul); flex: none;
}
.volver {
  background: none; border: 0; padding: 10px 0; min-height: 48px; cursor: pointer;
  font: 600 1rem var(--f-texto); color: var(--azul); text-decoration: underline;
}
.diag-sub { font-weight: 600; margin-bottom: .4em; }
.diag-causas { margin: 0 0 1em; padding: 0; list-style: none; }
.diag-causas li {
  position: relative; padding: 12px 14px 12px 44px; margin-bottom: 10px;
  background: var(--gris); border-radius: 10px;
}
.diag-causas li::before {
  content: counter(list-item); position: absolute; left: 12px; top: 12px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--sol); color: #3A2600;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.diag-consejo { background: #FEF5E7; border-radius: 10px; padding: 12px 14px; font-size: 1rem; }
.diag-consejo strong { color: var(--sol-osc); }
.diag-final { border-top: 1px solid var(--borde); padding-top: 18px; margin-top: 8px; }
.diag-final .btn { width: 100%; margin-bottom: 12px; }
.diag-aviso { font-size: .9rem; color: var(--texto-suave); margin: 10px 0 0; }
.diag-noscript { font-weight: 600; }

/* ---------- Sobre José ---------- */
.jose { display: grid; gap: 32px; align-items: center; }
.jose-foto { width: 100%; aspect-ratio: 4 / 5; max-height: 300px; object-fit: cover; border-radius: 18px; }
.jose-foto-vacia {
  display: grid; place-items: center; align-content: center; gap: 14px;
  background: var(--azul-claro); border: 3px dashed #9DB6D6; color: var(--azul-osc);
  font-family: var(--f-titulo); font-weight: 700; text-align: center; letter-spacing: .06em;
}
.jose-foto-vacia img { width: 96px; height: 96px; opacity: .85; }
.jose-foto-vacia small { font-weight: 500; letter-spacing: 0; }
.jose-puntos { list-style: none; padding: 0; margin: 0 0 1.6em; }
.jose-puntos li { position: relative; padding: 6px 0 6px 34px; font-weight: 600; }
.jose-puntos li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Zona ---------- */
.zona { display: grid; gap: 32px; align-items: start; }
.zona-lista { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.zona-lista li {
  background: #fff; border: 1px solid var(--borde); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: 1rem;
}
.zona-lista li:first-child { background: var(--azul); color: #fff; border-color: var(--azul); }
.zona-nota { color: var(--texto-suave); }
.zona-mapa iframe {
  width: 100%; height: 340px; border: 0; border-radius: var(--radio);
  box-shadow: var(--sombra); background: #E5EAF0; display: block;
}

/* ---------- Contacto ---------- */
.contacto { display: grid; gap: 20px; align-items: start; }
.contacto-nota { margin: 18px 0 0; padding: 14px 16px; background: var(--gris); border-radius: 10px; font-size: 1rem; color: var(--texto-suave); }
.contacto-card {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 26px 24px; box-shadow: var(--sombra);
}
.contacto-lista { list-style: none; margin: 0; padding: 0; }
.contacto-lista li { padding: 10px 0; border-bottom: 1px solid var(--borde); display: grid; gap: 2px; }
.contacto-lista li:last-child { border-bottom: 0; }
.contacto-lista a { font-weight: 600; word-break: break-word; text-decoration: none; }
.contacto-lista a:hover { text-decoration: underline; }
.c-et { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texto-suave); font-weight: 600; }

/* ---------- Reseñas ---------- */
.seccion-azul { background: var(--azul); color: #fff; }
.resenas { text-align: center; max-width: 680px; }
.resenas h2 { color: #fff; }
.resenas p { font-size: 1.1rem; color: #E3ECF7; }
.estrellas { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.estrellas svg { width: 34px; height: 34px; fill: var(--sol); }

/* ---------- Preguntas frecuentes ---------- */
.faq-wrap { max-width: 860px; }
.faq details {
  border: 1px solid var(--borde); border-radius: 12px; margin-bottom: 12px; background: #fff;
}
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 56px 18px 20px; min-height: 60px;
  font: 600 1.1rem/1.35 var(--f-titulo); color: #1B2632;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--azul-claro); color: var(--azul);
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 600; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: #B9CBE3; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--texto-suave); }
.faq-cta { text-align: center; margin-top: 32px; }
.faq-cta > p:first-child { font-weight: 600; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.pie { background: #15283F; color: #CBD6E3; padding: 48px 0 110px; font-size: 1rem; }
.pie-in { display: grid; gap: 28px; }
.pie-marca img { height: 54px; width: auto; margin-bottom: 14px; }
.pie-datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie a { color: #fff; text-decoration: none; display: inline-block; padding: 4px 0; }
.pie a:hover { text-decoration: underline; }
.pie-base {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .9rem;
}
.firma { font-size: .78rem; opacity: .7; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none;
  min-width: 62px; height: 62px; padding: 0 17px; border-radius: 999px;
  font: 600 1.05rem var(--f-titulo);
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: background-color .2s, transform .2s;
}
.wa-flotante:hover { background: var(--wa-osc); transform: translateY(-2px); }
.wa-flotante svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.wa-flotante-txt { display: none; }

/* ---------- Aparición suave al scrollear ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .wa-flotante, .opcion { transition: none; }
}

/* =====================================================================
   Pantallas más grandes
   ===================================================================== */
@media (min-width: 480px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .top-tel span { display: inline; }
  .diag-equipos { grid-template-columns: repeat(3, 1fr); }
  .diag-equipos .opcion { flex-direction: column; justify-content: center; text-align: center; min-height: 120px; }
  .diag-equipos .opcion svg { width: 46px; height: 46px; }
}
@media (min-width: 700px) {
  .hero-bajada { flex-direction: row; }
  .hero-bajada > span:not(.sep)::before { content: none; }
  .hero-bajada .sep { display: inline; }
  .jose-foto { max-height: 460px; }
  .servicios { grid-template-columns: 1fr 1fr; }
  .confianza-lista { grid-template-columns: repeat(3, 1fr); }
  .confianza-lista li:last-child { grid-column: auto; }
  .diag { padding: 36px 40px; }
  .diag-sintomas { grid-template-columns: 1fr 1fr; }
  .contacto { grid-template-columns: 1fr 1.4fr; }
  .wa-flotante-txt { display: inline; }
  .pie-in { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 960px) {
  body { font-size: 18px; }
  .top-in { min-height: 88px; }
  .top-logo img { height: 58px; }
  .top-nav { display: flex; gap: 6px; margin-left: auto; }
  .top-nav a { text-decoration: none; color: var(--texto); font-weight: 500; padding: 10px 12px; border-radius: 8px; }
  .top-nav a:hover { background: var(--gris); color: var(--azul); }
  .hero { padding: 72px 0 80px; }
  .hero-in { grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center; }
  .confianza-lista { grid-template-columns: repeat(5, 1fr); padding-top: 22px; padding-bottom: 22px; }
  .seccion { padding: 88px 0; }
  .jose { grid-template-columns: 1fr 1.3fr; gap: 64px; }
  .zona { grid-template-columns: 1fr 1.2fr; gap: 48px; }
  .zona-mapa iframe { height: 400px; }
  .pie { padding-bottom: 48px; }
}
