/* luzdescuento — estilos comunes a todas las páginas.
   Paleta y tipografía de la marca (Figma de luzdescuento):
   petróleo #00222b · verde #006e3d · menta #00f48a · Montserrat. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fuentes/montserrat-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fuentes/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fuentes/montserrat-latin-700-normal.woff2") format("woff2");
}

:root {
  --petroleo: #00222b;
  --petroleo-2: #0a3540;
  --verde: #006e3d;
  --menta: #00f48a;
  --menta-sombra: #00b866;
  --menta-suave: #d6fdea;
  --fondo: #f3f6f5;
  --papel: #ffffff;
  --texto: #00222b;
  --gris: #4c5f64;
  --gris-claro: #b7c6ca;
  --linea: #d5dfdd;
  --fuente: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 1rem/1.6 var(--fuente);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .pie :focus-visible, .cierre :focus-visible { outline-color: var(--menta); }

.contenedor { width: min(100% - 2rem, 70rem); margin-inline: auto; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font: 700 1.05rem/1.2 var(--fuente); letter-spacing: -0.005em;
  text-align: center; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 10px; padding: 0.95rem 1.4rem;
  transition: transform 0.08s, box-shadow 0.08s, background-color 0.15s;
}
.boton svg { width: 1.2rem; height: 1.2rem; flex: none; }
.boton--llamar { background: var(--menta); color: var(--petroleo); box-shadow: 0 3px 0 var(--menta-sombra); }
.boton--llamar:hover { background: #4dffb0; }
.boton--llamar:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--menta-sombra); }
.boton--linea { background: transparent; color: var(--petroleo); box-shadow: inset 0 0 0 2px var(--petroleo); }
.boton--linea:hover { background: var(--menta-suave); }
.boton--pequeno { font-size: 0.95rem; padding: 0.6rem 1rem; }

/* ---------- Cabecera ---------- */
.cabecera { background: var(--papel); border-bottom: 1px solid var(--linea); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.logo { display: block; flex: none; text-decoration: none; }
.logo img { height: clamp(1.1rem, 5.6vw, 1.35rem); width: auto; }
.cabecera-nav { display: flex; align-items: center; gap: 1.25rem; }
.cabecera-nav > a:not(.boton) { font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.cabecera-nav > a:not(.boton):hover,
.cabecera-nav > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--menta); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.cabecera .boton--llamar { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--petroleo); color: #fff; padding-block: 2.5rem 3rem; }
.hero::before {
  content: ""; position: absolute; width: 34rem; height: 34rem; right: -14rem; top: -12rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 244, 138, 0.16), transparent);
  pointer-events: none;
}
.hero .contenedor { position: relative; display: grid; gap: 2rem; }
.etiqueta { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--menta); }
.hero h1 { margin-top: 0.75rem; font-size: clamp(2rem, 8vw, 3.5rem); max-width: 17ch; }
.hero-sub { margin-top: 1rem; max-width: 36rem; font-size: 1.08rem; color: #c3d2d6; }
.hero-acciones { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: stretch; gap: 0.85rem; text-align: center; }
/* En móvil, la llamada es la acción principal: botones a todo el ancho y más altos. */
.hero-acciones .boton, .cierre .boton, .barra-llamar .boton { width: 100%; font-size: 1.25rem; padding: 1.2rem 1.5rem; border-radius: 12px; }
.hero-acciones .boton svg, .cierre .boton svg, .barra-llamar .boton svg { width: 1.45rem; height: 1.45rem; }
.hero-tel { font-size: 0.95rem; color: #c3d2d6; }
.hero-tel a { color: #fff; font-weight: 700; white-space: nowrap; text-decoration-color: var(--menta); text-underline-offset: 4px; }
.ventajas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ventajas li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.7rem; align-items: center; font-weight: 600; }
.ventajas li::before {
  content: ""; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--menta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300222b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}
.hero-simbolo { display: none; }

/* ---------- Bloques ---------- */
.bloque { padding-block: 3rem; }
.bloque--blanco { background: var(--papel); }
.bloque h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); max-width: 22ch; }
.entrada { margin-top: 0.75rem; color: var(--gris); max-width: 40rem; font-size: 1.02rem; }

/* Servicios */
.servicios { display: grid; gap: 1rem; margin-top: 1.75rem; }
.servicio { background: var(--papel); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 6rem 1fr; border: 1px solid var(--linea); }
.servicio .dibujo { display: grid; place-items: center; background: var(--menta-suave); }
.servicio .dibujo svg { width: 3.8rem; height: 3.8rem; }
.servicio.gas .dibujo { background: #d9ebe2; }
.servicio.solar .dibujo { background: #e6f5dc; }
.servicio .cuerpo { padding: 1.1rem 1.1rem 1.25rem; }
.servicio h3 { font-size: 1.25rem; }
.servicio ul { margin: 0.55rem 0 0; padding-left: 1.1rem; color: var(--gris); font-size: 0.95rem; }
.servicio li + li { margin-top: 0.3rem; }
.servicio li::marker { color: var(--verde); }

/* Pasos */
.pasos { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: paso; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.9rem; align-items: start; }
.pasos li::before {
  content: counter(paso); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--petroleo); color: var(--menta); font: 700 1.15rem/1 var(--fuente);
}
.pasos h3 { font-size: 1.1rem; line-height: 1.25; padding-top: 0.15rem; }
.pasos p { color: var(--gris); font-size: 0.95rem; margin-top: 0.25rem; }

/* Llamada final */
.cierre { background: var(--petroleo); color: #fff; padding-block: 3rem; }
.cierre .contenedor { display: grid; gap: 1.5rem; }
.cierre h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); max-width: 20ch; }
.cierre p { color: #c3d2d6; max-width: 36rem; margin-top: 0.6rem; }
.cierre + .pie, main + .pie { border-top: 1px solid var(--petroleo-2); }

/* Texto corrido: quiénes somos y legales */
.texto { max-width: 46rem; }
.texto h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.texto h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.texto h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.texto p, .texto ul, .texto dl { margin-top: 0.85rem; }
.texto ul { padding-left: 1.2rem; }
.texto li + li { margin-top: 0.35rem; }
.texto li::marker { color: var(--verde); }
.texto a { color: var(--verde); font-weight: 600; }
/* Datos de empresa: en móvil, etiqueta encima del valor; en escritorio, dos columnas. */
.datos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; background: var(--papel); border: 1px solid var(--linea); border-radius: 12px; padding: 1.1rem 1.25rem; }
.datos dt { font-weight: 600; }
.datos dt:not(:first-child) { margin-top: 0.6rem; }
.datos dd { margin: 0; color: var(--gris); overflow-wrap: anywhere; }
.actualizado { color: var(--gris); font-size: 0.9rem; }

.aviso-borrador {
  margin-top: 1.25rem; padding: 0.85rem 1rem; border-radius: 10px;
  background: #fff4cc; border-left: 5px solid #d9a400; color: #3d3100; font-size: 0.92rem;
}
.aviso-borrador strong { display: block; }

/* ---------- Tarjeta (página tras la firma) ---------- */
.pagina-tarjeta { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pagina-tarjeta .cabecera .contenedor { justify-content: center; }
.pagina-tarjeta main { flex: 1; display: grid; place-items: center; padding-block: 1.5rem 2rem; }
.tarjeta { background: var(--papel); border-radius: 16px; padding: 1.6rem 1.3rem 1.7rem; width: min(100% - 2rem, 27rem); box-shadow: 0 20px 40px -24px rgba(0, 34, 43, 0.45); }
.tarjeta h1 { font-size: 1.7rem; }
.tarjeta > p { color: var(--gris); margin-top: 0.6rem; }
.tarjeta .boton { width: 100%; margin-top: 1.25rem; font-size: 1.25rem; padding: 1.2rem 1.5rem; border-radius: 12px; }
.tarjeta .boton svg { width: 1.45rem; height: 1.45rem; }
.icono-ronda { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--petroleo); margin-bottom: 1rem; }
.icono-ronda svg { width: 1.9rem; height: 1.9rem; }
.numero { display: inline-block; margin-top: 1.1rem; font: 700 2.2rem/1 var(--fuente); letter-spacing: -0.02em; color: var(--petroleo); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.horario { font-size: 0.88rem; color: var(--gris); margin-top: 0.4rem; }
.rellamada { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--linea); }
.rellamada p { font-weight: 600; }
.rellamada .boton { margin-top: 0.75rem; }
.volver { display: inline-block; margin-top: 1.3rem; font-size: 0.9rem; color: var(--gris); }
.pie-minimo { text-align: center; font-size: 0.8rem; color: var(--gris); padding: 0 1rem 1.5rem; }
.pie-minimo a { color: var(--gris); }

/* ---------- Pie ---------- */
.pie { background: var(--petroleo); color: var(--gris-claro); font-size: 0.88rem; padding-block: 2.25rem; }
.pie .contenedor { display: grid; gap: 1.25rem; }
.pie img { height: 1.3rem; width: auto; margin-bottom: 1rem; }
.pie p + p { margin-top: 0.35rem; }
.pie strong { color: #fff; font-weight: 600; }
.pie nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.pie nav a { color: #fff; text-decoration-color: var(--menta); text-underline-offset: 4px; }

/* ---------- Barra de llamada fija (móvil) ---------- */
.barra-llamar {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--linea);
  box-shadow: 0 -8px 24px -16px rgba(0, 34, 43, 0.5);
}
body:has(.barra-llamar) .pie { padding-bottom: calc(2.25rem + 6rem); }

/* ---------- Escritorio ---------- */
@media (min-width: 48rem) {
  .logo img { height: 1.75rem; }
  .cabecera .boton--llamar { display: inline-flex; }
  .barra-llamar { display: none; }
  body:has(.barra-llamar) .pie { padding-bottom: 2.25rem; }

  .hero { padding-block: 4rem 4.5rem; }
  .hero-acciones { flex-direction: row; align-items: center; gap: 0.75rem 1.25rem; text-align: left; }
  .hero-acciones .boton, .cierre .boton { width: auto; font-size: 1.15rem; padding: 1.05rem 1.6rem; border-radius: 10px; }
  .hero-acciones .boton svg, .cierre .boton svg { width: 1.2rem; height: 1.2rem; }
  .hero .contenedor { grid-template-columns: 1.35fr 0.65fr; align-items: center; column-gap: 3rem; }
  .hero-simbolo { display: block; justify-self: center; width: min(100%, 15rem); opacity: 0.95; }
  .ventajas { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 2.5rem; }

  .bloque, .cierre { padding-block: 4.5rem; }
  .servicios { grid-template-columns: repeat(3, 1fr); }
  .servicio { grid-template-columns: 1fr; grid-template-rows: 8rem 1fr; }
  .servicio .dibujo svg { width: 4.8rem; height: 4.8rem; }
  .pasos { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; row-gap: 1.75rem; }
  .cierre .contenedor { grid-template-columns: 1fr auto; align-items: center; }
  .pie .contenedor { grid-template-columns: 1fr auto; align-items: start; }
  .tarjeta { padding: 2rem 1.9rem 2.1rem; }
  .datos { grid-template-columns: max-content minmax(0, 1fr); gap: 0.4rem 1.25rem; }
  .datos dt:not(:first-child) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
}
