/* Conforma Legal — estilos del sitio. Fuente propia (fonts/), sin Google Fonts ni CDN. */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/SchibstedGrotesk-Variable.woff2') format('woff2');
}

:root {
  --petroleo: #0E4D52;
  --petroleo-oscuro: #0A3A3E;
  --petroleo-noche: #062A2D;
  --ambar: #F0B429;
  --ambar-oscuro: #d99c12;
  --texto: #15262a;
  --texto-suave: #4a5a5c;
  --fondo-suave: #f3f6f5;
  --fondo-ambar-suave: #FBF0D4;
  --borde: #dde4e3;
  --fuente: 'Schibsted Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ancho-maximo: 1140px;
  --radio: 14px;
  --sombra: 0 18px 44px rgba(6, 42, 45, .12);
  --curva: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 84px; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--fuente);
  font-size: 17px;
  color: var(--texto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--petroleo); }

.envoltorio {
  width: 100%;
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 800; color: var(--petroleo); margin: 0 0 14px 0; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 14px 0; }

.antetitulo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--petroleo); margin-bottom: 16px;
}
.antetitulo::before { content: ''; width: 28px; height: 3px; border-radius: 2px; background: var(--ambar); }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--fuente); font-weight: 800; font-size: 16px; text-decoration: none; text-align: center; line-height: 1.25;
  padding: 15px 26px; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s var(--curva), box-shadow .2s var(--curva), background .2s, color .2s, border-color .2s;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton-principal { background: var(--ambar); color: var(--petroleo-noche); box-shadow: 0 8px 22px rgba(240, 180, 41, .28); }
.boton-principal:hover { background: #f6c043; box-shadow: 0 12px 28px rgba(240, 180, 41, .38); }
.boton-principal .flecha { transition: transform .2s var(--curva); }
.boton-principal:hover .flecha { transform: translateX(4px); }
.boton-secundario { background: transparent; border-color: var(--petroleo); color: var(--petroleo); }
.boton-secundario:hover { background: var(--petroleo); color: #fff; }
.boton-claro { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.boton-claro:hover { background: #fff; border-color: #fff; color: var(--petroleo); }
.boton-ancho { width: 100%; margin-top: 6px; }
.boton-pequeno { padding: 10px 18px; font-size: 14px; border-radius: 8px; }

/* Cabecera */
.cabecera {
  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;
  position: sticky; top: 0; z-index: 20;
  transition: box-shadow .25s, border-color .25s;
}
.cabecera.con-sombra { border-bottom-color: var(--borde); box-shadow: 0 6px 24px rgba(6, 42, 45, .08); }
.cabecera .envoltorio { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.cabecera .logo img { height: 36px; width: auto; }
.cabecera nav { display: flex; align-items: center; gap: 28px; }
.cabecera nav a.enlace-nav { position: relative; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--texto); padding: 6px 0; }
.cabecera nav a.enlace-nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ambar);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--curva);
}
.cabecera nav a.enlace-nav:hover::after { transform: scaleX(1); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--petroleo-noche); color: #fff;
  padding: 68px 0 128px;
}
.hero-fondo {
  position: absolute; inset: 0; z-index: -2;
  background: url('../img/foto-fachada.jpg') center right / cover no-repeat;
  opacity: .75;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 88% 12%, rgba(240, 180, 41, .16), transparent 60%),
    linear-gradient(100deg, var(--petroleo-noche) 0%, rgba(6, 42, 45, .95) 36%, rgba(6, 42, 45, .6) 66%, rgba(6, 42, 45, .32) 100%);
}
.hero-rejilla { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero-rejilla > * { min-width: 0; }
.hero .antetitulo { color: #cfe0e1; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .resalte { color: var(--ambar); position: relative; white-space: nowrap; }
.hero h1 .resalte::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.04em; height: .09em; border-radius: 3px; background: var(--ambar);
  transform: scaleX(0); transform-origin: left; animation: subrayar .7s var(--curva) .9s forwards;
}
.hero .apoyo { font-size: clamp(17px, 1.6vw, 20px); color: #d5e3e4; max-width: 34em; margin-bottom: 30px; }
.botones-hero { display: flex; gap: 14px; flex-wrap: wrap; }
.botones-hero .boton { padding-left: 22px; padding-right: 22px; }
.hero-garantias { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: #cfe0e1; }
.hero-garantias li { display: inline-flex; align-items: center; gap: 8px; }
.hero-garantias svg { width: 16px; height: 16px; color: var(--ambar); flex-shrink: 0; }

.hero-texto > * { animation: aparecer .8s var(--curva) backwards; }
.hero-texto > :nth-child(1) { animation-delay: .05s; }
.hero-texto > :nth-child(2) { animation-delay: .15s; }
.hero-texto > :nth-child(3) { animation-delay: .3s; }
.hero-texto > :nth-child(4) { animation-delay: .45s; }
.hero-texto > :nth-child(5) { animation-delay: .6s; }
.hero-fondo { animation: acercar 16s ease-out forwards; }
@keyframes acercar { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Checklist ilustrativo del hero */
.ficha {
  background: #fff; color: var(--texto); border-radius: 18px; padding: 24px 24px 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35); max-width: 440px; margin-left: auto; width: 100%;
  animation: flotar 7s ease-in-out 2.6s infinite;
}
.ficha-cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 6px; }
.ficha-titulo { font-weight: 800; font-size: 17px; color: var(--petroleo); white-space: nowrap; }
.ficha-etiqueta { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-suave); background: var(--fondo-suave); padding: 4px 8px; border-radius: 20px; white-space: nowrap; }
.ficha-progreso { height: 6px; border-radius: 6px; background: var(--fondo-suave); overflow: hidden; margin: 12px 0 8px; }
.ficha-progreso span { display: block; height: 100%; width: 60%; border-radius: 6px; background: linear-gradient(90deg, var(--petroleo), #1a7f86); transform: scaleX(0); transform-origin: left; animation: llenar 1.6s var(--curva) 1.1s forwards; }
.ficha ul { list-style: none; margin: 0; padding: 0; }
.ficha li {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--borde); font-size: 15px; font-weight: 600;
  opacity: 0; transform: translateY(10px); animation: aparecer .5s var(--curva) forwards;
}
.ficha li:nth-child(1) { animation-delay: .5s; }
.ficha li:nth-child(2) { animation-delay: .8s; }
.ficha li:nth-child(3) { animation-delay: 1.1s; }
.ficha li:nth-child(4) { animation-delay: 1.4s; }
.ficha li:nth-child(5) { animation-delay: 1.7s; }
.ficha .codigo { font-size: 12px; font-weight: 600; color: var(--texto-suave); display: block; line-height: 1.2; }
.ficha .nombre { flex: 1; min-width: 0; line-height: 1.25; }
.estado { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.estado svg { width: 14px; height: 14px; }
.estado.revision svg { width: 17px; height: 17px; }
.estado.lista { background: var(--petroleo); color: #fff; }
.estado.lista svg path { stroke-dasharray: 22; stroke-dashoffset: 22; animation: trazar .45s ease-out forwards; }
.ficha li:nth-child(1) .estado.lista svg path { animation-delay: .9s; }
.ficha li:nth-child(2) .estado.lista svg path { animation-delay: 1.2s; }
.ficha li:nth-child(3) .estado.lista svg path { animation-delay: 1.5s; }
.estado.revision { background: var(--fondo-ambar-suave); color: #b5790a; }
.estado.pendiente { background: var(--fondo-suave); border: 2px dashed #b9c6c5; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.chip.lista { background: #e2f0ef; color: var(--petroleo); }
.chip.revision { background: var(--fondo-ambar-suave); color: #8a5a00; }
.chip.pendiente { background: var(--fondo-suave); color: var(--texto-suave); }
.ficha-pie { margin: 12px 0 0; font-size: 12.5px; color: var(--texto-suave); }

/* Cifras */
.cifras { position: relative; z-index: 2; margin-top: -72px; padding: 0; }
.cifras-caja {
  background: #fff; border-radius: 18px; box-shadow: var(--sombra); border: 1px solid var(--borde);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.cifra { padding: 30px 30px 26px; border-left: 1px solid var(--borde); }
.cifra:first-child { border-left: 0; }
.cifra .numero { font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--petroleo); margin-bottom: 10px; }
.cifra .numero small { font-size: .46em; font-weight: 700; letter-spacing: 0; color: var(--texto-suave); }
.cifra .numero .ambar { color: var(--ambar-oscuro); }
.cifra p { margin: 0; color: var(--texto-suave); font-size: 15.5px; line-height: 1.45; }
.puntos { display: flex; gap: 8px; margin-bottom: 14px; }
.puntos span { width: 16px; height: 16px; border-radius: 50%; background: var(--borde); transition: transform .5s var(--curva), background .5s; }
.puntos span:first-child { background: var(--ambar); transform: scale(1.15); transition-delay: .7s; }
.js .cifras-caja:not(.visible) .puntos span:first-child { background: var(--borde); transform: scale(1); }
.barra { position: relative; height: 10px; border-radius: 10px; background: var(--fondo-suave); margin-bottom: 14px; }
.barra span { display: block; height: 100%; width: 56%; border-radius: 10px; background: linear-gradient(90deg, var(--ambar-oscuro), var(--ambar)); transform-origin: left; transition: transform 1.4s var(--curva) .5s; }
.js .cifras-caja:not(.visible) .barra span { transform: scaleX(0); }
.barra::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: var(--petroleo); border-radius: 2px; }
.ciclo { position: relative; display: flex; justify-content: space-between; align-items: center; height: 16px; margin-bottom: 14px; max-width: 220px; }
.ciclo::before { content: ''; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: var(--borde); }
.ciclo::after { content: ''; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: var(--petroleo); transform-origin: left; transition: transform 1.4s var(--curva) .6s; }
.js .cifras-caja:not(.visible) .ciclo::after { transform: scaleX(0); }
.ciclo span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--petroleo); box-shadow: 0 0 0 4px #fff; transition: background .4s; }
.ciclo span:nth-child(2) { transition-delay: 1.2s; }
.ciclo span:nth-child(3) { transition-delay: 1.9s; background: var(--ambar); }
.js .cifras-caja:not(.visible) .ciclo span:nth-child(n+2) { background: var(--borde); }
.cifras .fuente { margin: 14px 4px 0; font-size: 13px; color: var(--texto-suave); }

/* Secciones generales */
section { padding: 96px 0; }
section.fondo-claro { background: var(--fondo-suave); }
#problema { padding-top: 76px; }
section.fondo-oscuro { background: var(--petroleo-oscuro); color: #fff; }
section.fondo-oscuro h2, section.fondo-oscuro h3 { color: #fff; }
.cabecera-seccion { max-width: 720px; margin: 0 0 48px; }
.cabecera-seccion.centrada { margin-left: auto; margin-right: auto; text-align: center; }
.cabecera-seccion p { color: var(--texto-suave); font-size: 18px; margin: 0; }

/* Dos columnas con fotografía */
.dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.marco-foto { position: relative; border-radius: var(--radio); overflow: hidden; background: var(--petroleo); box-shadow: var(--sombra); aspect-ratio: 4 / 5; }
.marco-foto.apaisado { aspect-ratio: 5 / 4; }
.marco-foto.cuadrada { aspect-ratio: 1 / 1; }
.marco-foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); mix-blend-mode: screen; opacity: .9; transition: transform 1.6s var(--curva); }
.js .marco-foto:not(.visible) img { transform: scale(1.12); }
.marco-foto:hover img { transform: scale(1.04); }
.marco-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 42, 45, .55)); }
.marco-foto .pie-foto { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.35; }
.marco-foto .pie-foto::before { content: ''; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--ambar); margin-bottom: 12px; }

/* El problema */
.problema-lista { list-style: none; margin: 0; padding: 0; counter-reset: problema; }
.problema-lista li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 24px 0; border-top: 1px solid var(--borde); }
.problema-lista li:last-child { border-bottom: 1px solid var(--borde); }
.problema-lista .num { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ambar-oscuro); }
.problema-lista p { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--texto); }

/* Servicios */
.servicios-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.servicio-card {
  position: relative; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 32px 28px 30px; overflow: hidden;
  transition: transform .3s var(--curva), box-shadow .3s var(--curva), border-color .3s;
}
.servicio-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ambar); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--curva); }
.servicio-card:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: transparent; }
.servicio-card:hover::before, .servicio-card.visible::before { transform: scaleX(1); }
.servicio-card .icono { width: 52px; height: 52px; border-radius: 14px; background: var(--petroleo); color: var(--ambar); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.servicio-card .icono svg { width: 26px; height: 26px; }
.servicio-card .para-quien { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; background: var(--fondo-ambar-suave); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.servicio-card h3 { margin-bottom: 10px; font-size: 22px; }
.servicio-card p { margin: 0; color: var(--texto-suave); font-size: 16px; }
.nota-no-certifica {
  margin: 32px 0 0; display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--borde); border-left: 4px solid var(--ambar); border-radius: 10px; padding: 18px 22px;
  color: var(--texto); font-size: 16px;
}
.nota-no-certifica svg { width: 22px; height: 22px; color: var(--ambar-oscuro); flex-shrink: 0; margin-top: 2px; }

/* Cómo trabajamos */
.pasos-grid { position: relative; display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); }
.pasos-grid::before {
  content: ''; position: absolute; top: 27px; left: 28px; right: calc((100% - 64px) / 3 - 28px); height: 2px;
  background: var(--ambar);
  transform-origin: left; transition: transform 1.5s var(--curva) .25s;
}
.js .pasos-grid:not(.visible)::before { transform: scaleX(0); }
.paso { position: relative; }
.paso .num-paso {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--petroleo); color: var(--ambar);
  font-weight: 800; font-size: 22px; margin-bottom: 20px; box-shadow: 0 0 0 8px #fff;
}
.paso h3 { font-size: 22px; margin-bottom: 8px; }
.paso h3 .gratis { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; background: var(--fondo-ambar-suave); padding: 3px 9px; border-radius: 20px; vertical-align: middle; margin-left: 8px; }
.paso p { color: var(--texto-suave); margin: 0; max-width: 20em; }

/* Por qué nosotros */
.motivos-grid { display: grid; gap: 6px; grid-template-columns: 1fr; }
.motivo { display: flex; gap: 18px; align-items: flex-start; padding: 18px 18px; border-radius: 12px; transition: background .25s; }
.motivo:hover { background: #fff; }
.motivo .marca-check { width: 34px; height: 34px; border-radius: 50%; background: var(--ambar); color: var(--petroleo-noche); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.motivo .marca-check svg { width: 16px; height: 16px; }
.motivo p { margin: 0; color: var(--texto-suave); }
.motivo p strong { display: block; color: var(--texto); font-size: 18px; margin-bottom: 2px; }

/* Marcadores pendientes */
.marcador { color: #b5790a; background: var(--fondo-ambar-suave); padding: 1px 6px; border-radius: 4px; font-weight: 600; white-space: normal; display: inline-block; }

/* FAQ */
.faq-rejilla { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-rejilla .cabecera-seccion { position: sticky; top: 110px; margin-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--borde); }
.faq-item:first-child { border-top: 1px solid var(--borde); }
.faq-item summary { font-weight: 700; font-size: 18px; cursor: pointer; color: var(--petroleo); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; transition: color .2s; }
.faq-item summary:hover { color: var(--petroleo-noche); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  background: var(--fondo-ambar-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5a00' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s var(--curva), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--ambar); }
.faq-item p { margin: 0; padding: 0 46px 24px 0; color: var(--texto-suave); animation: aparecer .35s var(--curva); }

/* Cierre / formulario */
#diagnostico { position: relative; overflow: hidden; isolation: isolate; }
#diagnostico::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 420px at 8% 0%, rgba(240, 180, 41, .14), transparent 60%), radial-gradient(800px 500px at 100% 100%, rgba(26, 127, 134, .35), transparent 60%);
}
#diagnostico .antetitulo { color: #cfe0e1; }
#diagnostico .cabecera-seccion p { color: #cfe0e1; }
.cierre-grid { display: grid; gap: 40px; grid-template-columns: 1.15fr .85fr; align-items: start; }
.formulario-caja { background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 30px 70px rgba(0, 0, 0, .28); }
.formulario-caja, .formulario-caja label, .formulario-caja p:not(.nota-pendiente), .formulario-caja .campo-check { color: var(--texto); }
.campos-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 14px; }
.campo input, .campo select, .campo textarea {
  width: 100%; font-family: var(--fuente); font-size: 16px;
  padding: 12px 14px; border: 1.5px solid var(--borde); border-radius: 10px;
  background: #fbfcfc; color: var(--texto); transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--petroleo); background: #fff; box-shadow: 0 0 0 4px rgba(14, 77, 82, .12); }
.campo textarea { min-height: 96px; resize: vertical; }
.campo-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--texto-suave); margin-bottom: 18px; }
.campo-check label { font-weight: 400; }
.campo-check input { width: auto; margin-top: 4px; accent-color: var(--petroleo); }
.nota-pendiente { font-size: 13px; color: #8a5a00; background: var(--fondo-ambar-suave); border-radius: 8px; padding: 10px 14px; margin: 14px 0 0; display: none; }
.nota-pendiente.visible { display: block; animation: aparecer .35s var(--curva); }
.lateral-cierre { display: grid; gap: 24px; }
.reservar-llamada { position: sticky; top: 100px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 30px; }
.reservar-llamada h3 { color: #fff; font-size: 22px; }
.reservar-llamada p { color: #cfe0e1; }
.reservar-llamada a:not(.boton) { color: #fff; }
.reservar-llamada .nota-correo { font-size: 14px; margin: 18px 0 0; }
.que-sigue { list-style: none; margin: 0; padding: 0; counter-reset: sigue; }
.que-sigue li { counter-increment: sigue; display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; color: #e3eeee; border-top: 1px solid rgba(255, 255, 255, .14); }
.que-sigue li:first-child { border-top: 0; padding-top: 4px; }
.que-sigue li::before { content: counter(sigue); width: 26px; height: 26px; border-radius: 50%; background: var(--ambar); color: var(--petroleo-noche); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* Pie */
footer.pie { background: var(--petroleo-noche); color: #cfe0e1; padding: 44px 0 28px; font-size: 14.5px; }
footer.pie .logo-pie img { height: 30px; margin-bottom: 16px; }
footer.pie p { max-width: 60em; }
footer.pie a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
footer.pie .enlaces-pie { display: flex; gap: 22px; flex-wrap: wrap; margin: 16px 0; }
footer.pie .enlaces-pie a { text-decoration: none; font-weight: 600; }
footer.pie .enlaces-pie a:hover { text-decoration: underline; }
footer.pie .copyright { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9fb7b8; font-size: 13px; max-width: none; }

/* Páginas legales */
.pagina-legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.pagina-legal h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.pagina-legal .volver { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }
.pagina-legal h2 { font-size: 20px; margin-top: 32px; letter-spacing: -.01em; }
.pagina-legal p, .pagina-legal li { color: var(--texto-suave); font-size: 15px; }

/* Aparición al hacer scroll (solo si hay JavaScript) */
.js .revelar { opacity: 0; }
.js .revelar.visible { opacity: 1; animation: entrar .8s var(--curva) var(--retraso, 0s) backwards; }
.js .revelar.desde-izquierda.visible { animation-name: entrar-izquierda; }
.js .revelar.desde-derecha.visible { animation-name: entrar-derecha; }
.js .pasos-grid.revelar { opacity: 1; animation: none; }

@keyframes entrar { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes entrar-izquierda { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes entrar-derecha { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes llenar { to { transform: scaleX(1); } }
@keyframes subrayar { to { transform: scaleX(1); } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Tableta */
@media (max-width: 980px) {
  section { padding: 72px 0; }
  .hero { padding: 64px 0 120px; }
  .hero-rejilla { grid-template-columns: 1fr; gap: 44px; }
  .ficha { margin: 0 auto; }
  .dos-columnas, .faq-rejilla { grid-template-columns: 1fr; gap: 40px; }
  .faq-rejilla .cabecera-seccion { position: static; }
  .marco-foto, .marco-foto.apaisado, .marco-foto.cuadrada { aspect-ratio: 16 / 10; }
  .servicios-grid { grid-template-columns: 1fr; }
  .cierre-grid { grid-template-columns: 1fr; }
}

/* Móvil */
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .envoltorio { padding: 0 20px; }
  .cabecera nav a.enlace-nav { display: none; }
  .cabecera .logo img { height: 32px; }
  .hero { padding: 48px 0 104px; }
  .hero-fondo { opacity: .4; }
  .hero .antetitulo { font-size: 11.5px; letter-spacing: .08em; }
  .ficha { padding: 20px 18px 16px; }
  .chip { font-size: 11.5px; padding: 4px 8px; }
  .reservar-llamada { position: static; padding: 24px 20px; }
  .botones-hero { flex-direction: column; align-items: stretch; }
  .hero-garantias { flex-direction: column; gap: 8px; }
  .cifras-caja { grid-template-columns: 1fr; }
  .cifra { border-left: 0; border-top: 1px solid var(--borde); padding: 22px 24px; }
  .cifra:first-child { border-top: 0; }
  .cabecera-seccion { margin-bottom: 32px; }
  .problema-lista li { grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; }
  .problema-lista .num { font-size: 28px; }
  .problema-lista p { font-size: 17px; }
  .pasos-grid { grid-template-columns: 1fr; gap: 28px; }
  .pasos-grid::before { top: 28px; bottom: 60px; left: 27px; right: auto; width: 2px; height: auto; transform-origin: top; background: linear-gradient(180deg, var(--ambar), rgba(240, 180, 41, .25)); }
  .js .pasos-grid:not(.visible)::before { transform: scaleY(0); }
  .paso { display: grid; grid-template-columns: 56px 1fr; gap: 4px 18px; }
  .paso .num-paso { grid-row: span 2; margin-bottom: 0; }
  .paso h3 { align-self: end; margin: 6px 0 0; }
  .motivo { padding: 14px 0; }
  .formulario-caja { padding: 24px 20px; }
  .campos-dos { grid-template-columns: 1fr; }
  .faq-item p { padding-right: 0; }
}

/* Quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .revelar { opacity: 1; transform: none; }
}
