/* =========================================================
   Aire Acondicionado Murcia - estilos de toda la web
   Idea visual: el calor de Murcia fuera (cabecera azul petróleo
   profundo) y el aire fresco dentro (lamas de split en verde agua).
   El naranja se reserva SOLO para llamar.
   Mobile-first: primero el móvil, luego pantallas grandes.
   ========================================================= */

/* Fuente Archivo (licencia SIL Open Font License), alojada en la propia web */
@font-face {
  font-family: "Archivo";
  src: url("../fuentes/archivo-latin.woff2") format("woff2");
  font-weight: 500 800; font-stretch: 100% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --petroleo: #0e2a3b;      /* fondo de cabecera y bloques oscuros */
  --petroleo-2: #163d52;
  --agua: #1f7a8c;          /* aire fresco: detalles, enlaces */
  --agua-claro: #e3f1ef;    /* fondos suaves */
  --llamar: #e4572e;        /* solo botones de llamar */
  --llamar-oscuro: #c4441f;
  --texto: #1b2a33;
  --texto-suave: #52616b;
  --borde: #d5e3e3;
  --blanco: #ffffff;
  --ancho: 1120px;
  --titulos: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--blanco);
  padding-bottom: 78px; /* hueco para la barra fija de llamar en móvil */
}

img { max-width: 100%; height: auto; }
a { color: var(--agua); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--llamar); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--titulos);
  font-stretch: 112%;
  line-height: 1.12;
  color: var(--petroleo);
  letter-spacing: -0.01em;
}
h1 { font-size: 1.72rem; font-weight: 800; margin: 0 0 .7rem; }
h2 { font-size: 1.55rem; font-weight: 750; margin: 2.4rem 0 .9rem; }
h3 { font-size: 1.12rem; font-weight: 700; margin: 1.4rem 0 .35rem; font-stretch: 105%; }
p, li { max-width: 68ch; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }

.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 100; }

/* ---------- Cabecera ---------- */
.cabecera {
  background: var(--petroleo);
  position: sticky; top: 0; z-index: 50;
}
.cabecera .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 62px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--titulos); font-stretch: 115%;
  font-weight: 800; font-size: .95rem; color: #fff; text-decoration: none; line-height: 1.1;
}
.logo svg { flex: none; }
.logo-txt { display: block; }
.logo-txt > span { display: none; font-weight: 500; font-size: .74rem; color: #a9c6cf; font-stretch: 100%; }

.menu { display: none; }
.menu a { text-decoration: none; color: #d6e6ea; font-weight: 500; font-size: .96rem; }
.menu a:hover { color: #fff; }

.tel-cabecera {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--llamar); color: #fff; text-decoration: none;
  font-weight: 700; padding: 9px 14px; border-radius: 8px; font-size: .95rem;
  white-space: nowrap;
}
.tel-cabecera:hover { background: var(--llamar-oscuro); }
.tel-cabecera .num { display: none; }

/* ---------- Bloque principal (hero) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--petroleo);
  color: #e4eef1;
  padding: 30px 0 34px;
}
/* Lamas de aire: líneas que salen como de un split */
.hero::after {
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 70%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400' fill='none' stroke='%232b8a9b' stroke-width='2' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M600 40C470 40 430 90 300 90S120 50 0 70'/%3E%3Cpath d='M600 95C480 95 430 150 310 150S130 115 20 135'/%3E%3Cpath d='M600 150C490 150 440 210 320 210S150 180 60 200'/%3E%3Cpath d='M600 205C500 205 450 265 340 265S180 245 110 262'/%3E%3Cpath d='M600 260C510 260 470 315 370 315S230 305 170 318'/%3E%3C/svg%3E") right center / cover no-repeat;
  pointer-events: none; opacity: .5;
}
.hero .contenedor { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p.entradilla { font-size: 1.08rem; color: #c3d8de; margin: 0 0 1.4rem; }
.hero .migas, .hero .migas a { color: #9fbcc5; }

.boton-llamar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--llamar); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.2rem; padding: 15px 22px;
  border-radius: 10px;
  width: 100%; max-width: 400px;
  font-family: var(--titulos); font-stretch: 108%;
  box-shadow: 0 10px 24px -10px rgba(228, 87, 46, .7);
  transition: background .15s ease, transform .15s ease;
}
.logo-hero { display: block; width: 250px; height: auto; background: #fff; border-radius: 14px; padding: 6px 10px; margin: 0 0 18px; }
.sin-form { border-left: 4px solid var(--llamar); padding: 4px 0 4px 16px; margin: 8px 0 0; }
.sin-form p { margin: .3rem 0; }
.boton-llamar:hover { background: var(--llamar-oscuro); transform: translateY(-1px); }
.boton-llamar small { display: block; font-weight: 600; font-size: .9rem; opacity: .95; font-stretch: 100%; letter-spacing: .02em; }
.icono-tel { width: 24px; height: 24px; flex: none; }

.horario { font-size: .92rem; color: var(--texto-suave); margin: .6rem 0 0; }
.hero .horario { color: #9fbcc5; }

.lista-check { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.lista-check li { padding-left: 30px; position: relative; margin: .45rem 0; }
.lista-check li::before {
  content: ""; position: absolute; left: 2px; top: .42em;
  width: 14px; height: 8px; border-left: 3px solid var(--agua); border-bottom: 3px solid var(--agua);
  transform: rotate(-45deg);
}
.hero .lista-check li { color: #e4eef1; }
.hero .lista-check li::before { border-color: #5cc3c9; }

/* Franja de confianza bajo el hero */
.franja {
  background: var(--agua-claro); border-bottom: 1px solid var(--borde);
  font-size: .93rem; color: var(--petroleo);
}
.franja ul { list-style: none; margin: 0; padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.franja li { font-weight: 600; padding-left: 18px; position: relative; }
.franja li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--agua); }

/* ---------- Secciones ---------- */
.seccion { padding: 8px 0 28px; }
.seccion-alt { background: var(--agua-claro); padding: 8px 0 32px; margin-top: 28px; }

/* Razones / servicios: bloques con filete superior, sin sombras */
.tarjetas { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
.tarjeta {
  border-top: 3px solid var(--agua);
  padding: 14px 0 18px;
}
.tarjeta h3 { margin-top: 0; }
.tarjeta p { margin: 0 0 .4rem; color: var(--texto-suave); }
a.tarjeta { text-decoration: none; color: inherit; display: block; }
a.tarjeta:hover h3 { color: var(--agua); }
.tarjeta .mas { color: var(--agua); font-weight: 700; }

/* ---------- Tabla de precios ---------- */
.tabla-precios { width: 100%; border-collapse: collapse; background: #fff; font-size: .97rem; border-radius: 10px; overflow: hidden; }
.tabla-precios th, .tabla-precios td { border-bottom: 1px solid var(--borde); padding: 12px 12px; text-align: left; vertical-align: top; }
.tabla-precios th { background: var(--petroleo); color: #fff; font-weight: 600; }
.tabla-precios td.precio {
  white-space: nowrap; font-weight: 800; color: var(--petroleo);
  font-family: var(--titulos); font-stretch: 108%;
}
.tabla-scroll { overflow-x: auto; }
.nota { font-size: .9rem; color: var(--texto-suave); }

/* ---------- Pasos (secuencia real, por eso numerados) ---------- */
.pasos { counter-reset: paso; list-style: none; padding: 0; margin: 0; }
.pasos li { counter-increment: paso; position: relative; padding: 0 0 16px 50px; }
.pasos li::before {
  content: counter(paso); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--agua); color: var(--agua); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-family: var(--titulos);
}

/* ---------- Preguntas frecuentes ---------- */
.faq details { border-bottom: 1px solid var(--borde); }
.faq details:first-of-type { border-top: 1px solid var(--borde); }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 15px 34px 15px 0; list-style: none;
  color: var(--petroleo); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; font-weight: 400; color: var(--agua);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: var(--texto-suave); }

/* ---------- Llamada final ---------- */
.cta-final {
  background: var(--petroleo); color: #fff; border-radius: 14px;
  padding: 26px 20px; margin: 32px 0 8px; position: relative; overflow: hidden;
}
.cta-final h2 { color: #fff; margin-top: 0; }
.cta-final p { color: #c3d8de; }
.cta-final .horario { color: #9fbcc5; }

/* ---------- Migas de pan ---------- */
.migas { font-size: .86rem; color: var(--texto-suave); padding-top: 14px; }
.migas a { color: var(--texto-suave); }

/* ---------- Páginas de texto (legales, blog) ---------- */
.texto-legal, .articulo { max-width: 760px; padding-top: 12px; padding-bottom: 24px; }
.articulo p, .articulo li { font-size: 1.04rem; }
.articulo .fecha { color: var(--texto-suave); font-size: .9rem; }
.pendiente {
  background: #fff4d6; border: 1px dashed #c99a00; padding: 1px 6px; border-radius: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em;
}

/* ---------- Pie ---------- */
.pie { background: var(--petroleo); color: #a9c6cf; padding: 32px 0 20px; margin-top: 36px; font-size: .93rem; }
.pie a { color: #e4eef1; }
.pie h3 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.pie ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.pie li { margin: .3rem 0; }
.pie-columnas { display: grid; grid-template-columns: 1fr; gap: 6px; }
.pie-legal { border-top: 1px solid var(--petroleo-2); padding-top: 14px; margin-top: 8px; font-size: .85rem; }

/* ---------- Barra fija de llamar (solo móvil) ---------- */
.barra-llamar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--borde);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.barra-llamar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--llamar); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.1rem; padding: 13px; border-radius: 10px;
  font-family: var(--titulos);
}

/* ---------- Pantallas medianas y grandes ---------- */
@media (min-width: 720px) {
  h1 { font-size: 2.7rem; }
  h2 { font-size: 1.85rem; }
  .hero { padding: 54px 0 60px; }
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .franja ul { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .pie-columnas { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .logo-hero { width: 340px; }
  .logo { font-size: 1.02rem; }
  .logo-txt > span { display: block; }
  .cta-final { padding: 34px 36px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .barra-llamar { display: none; }
  .menu { display: flex; gap: 24px; }
  .tel-cabecera .num { display: inline; }
  .tel-cabecera .txt { display: none; }
  .tarjetas.tres { grid-template-columns: repeat(3, 1fr); }
  .hero-rejilla { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
  .hero .lista-check { border-left: 1px solid #2b5468; padding-left: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .boton-llamar { transition: none; }
}

/* ---------- Formulario "Pedir precio" ---------- */
.fp-dialogo {
  border: 0; border-radius: 16px; padding: 22px 18px 18px; width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px); overflow: auto; color: var(--texto);
}
.fp-dialogo::backdrop { background: rgba(14, 42, 59, .72); }
.fp-dialogo h2 { margin: 0 34px 10px 0; font-size: 1.4rem; }
.fp-cerrar {
  position: absolute; right: 10px; top: 8px; border: 0; background: none;
  font-size: 2rem; line-height: 1; color: var(--texto-suave); cursor: pointer; padding: 4px 10px;
}
.fp-fijo { max-width: 560px; }
.fp fieldset { border: 0; padding: 0; margin: 0; }
.fp legend { font-family: var(--titulos); font-weight: 750; font-size: 1.2rem; color: var(--petroleo); margin-bottom: 12px; }
.fp-progreso { font-size: .88rem; color: var(--texto-suave); margin: 0 0 6px; }
.fp-barra { height: 6px; background: var(--agua-claro); border-radius: 99px; margin-bottom: 18px; overflow: hidden; }
.fp-barra span { display: block; height: 100%; width: 25%; background: var(--agua); transition: width .2s ease; }
.fp-opciones { display: grid; gap: 10px; }
.fp-opcion {
  text-align: left; font: inherit; font-weight: 600; color: var(--petroleo);
  background: #fff; border: 2px solid var(--borde); border-radius: 10px; padding: 14px 16px; cursor: pointer;
}
.fp-opcion:hover, .fp-opcion:focus-visible { border-color: var(--agua); background: var(--agua-claro); outline: none; }
.fp label { display: block; font-weight: 600; margin: 0 0 12px; color: var(--petroleo); }
.fp input:not([type=checkbox]), .fp select {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400;
  padding: 12px; border: 2px solid var(--borde); border-radius: 10px; background: #fff; color: var(--texto);
}
.fp input:focus, .fp select:focus { border-color: var(--agua); outline: none; }
.fp-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: .95rem; }
.fp-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--agua); }
.fp-oculto { position: absolute; left: -9999px; }
.fp-error { color: #b3261e; font-weight: 600; margin: 4px 0 10px; }
.fp .boton-llamar { border: 0; cursor: pointer; max-width: none; }
.fp .boton-llamar:disabled { opacity: .7; cursor: wait; }
.fp-atras { margin-top: 14px; border: 0; background: none; color: var(--agua); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; }
.fp-hecho h3 { margin-top: 0; font-size: 1.4rem; }
@media (prefers-reduced-motion: reduce) { .fp-barra span { transition: none; } }

/* ---------- Calculadora visible ---------- */
.calc-caja { background: #fff; color: var(--texto); border-radius: 16px; padding: 20px 16px; margin-top: 26px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); }
.calc-caja.fp-fijo { box-shadow: none; border: 2px solid var(--borde); margin-top: 0; }
.calc-titulo { margin: 0 0 4px !important; font-size: 1.45rem; color: var(--petroleo) !important; }
.calc-sub { margin: 0 0 14px; color: var(--texto-suave); font-size: .95rem; }
.calc-grupo { border: 0; padding: 0; margin: 0 0 12px; }
.calc-grupo legend { font-weight: 700; color: var(--petroleo); font-size: .98rem; margin-bottom: 6px; padding: 0; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chips input { position: absolute; opacity: 0; pointer-events: none; }
.calc-chips label {
  display: inline-block; margin: 0; padding: 9px 14px; border: 2px solid var(--borde); border-radius: 99px;
  font-weight: 600; font-size: .95rem; color: var(--petroleo); cursor: pointer; background: #fff;
}
.calc-chips label:hover { border-color: var(--agua); }
.calc-chips input:checked + label { background: var(--petroleo); border-color: var(--petroleo); color: #fff; }
.calc-chips input:focus-visible + label { outline: 3px solid var(--llamar); outline-offset: 2px; }
.calc-precio { background: var(--agua-claro); border-radius: 10px; padding: 12px 14px; margin: 4px 0 12px; color: var(--petroleo); }
.calc-precio strong { font-family: var(--titulos); font-size: 1.15rem; }
.calc-paso { font-size: .93rem; color: var(--texto-suave); margin: 0 0 10px; }
.fp-datos { display: grid; gap: 0 12px; }
.calc .boton-llamar { width: 100%; max-width: none; border: 0; cursor: pointer; margin-top: 4px; }

/* Barra del móvil con dos botones */
.barra-llamar { display: flex; gap: 8px; }
.barra-llamar a { flex: 1; font-size: 1rem; padding: 13px 8px; }
.barra-llamar a.barra-calc { background: var(--petroleo); }

/* En móvil la calculadora va justo después del botón; las razones ya están en la franja */
@media (max-width: 959px) { .hero .lista-check { display: none; } }
@media (min-width: 720px) { .fp-datos { grid-template-columns: 1fr 1fr; } .fp-datos label:last-child { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  .hero-rejilla { align-items: start; grid-template-columns: 1.1fr 1fr; }
  .calc-caja { margin-top: 0; }
  .hero .lista-check { border-left: 0; padding-left: 0; }
  .barra-llamar { display: none; }
}
.calc-grupo + .calc-grupo { margin-top: 4px; }
