/* Web pública de Júpery: estática, sin dependencias externas (ni fuentes, ni scripts de terceros, ni cookies). */
:root {
    --azul: #0b4a86;
    --azul-oscuro: #083762;
    --azul-claro: #e8f0f9;
    --naranja: #f28a1c;
    --naranja-oscuro: #d9730a;
    --fondo: #ffffff;
    --fondo-suave: #f5f8fc;
    --texto: #1b2733;
    --texto-suave: #55657a;
    --borde: #d9e2ee;
    --sombra: 0 6px 24px rgb(11 74 134 / .10);
    --radio: 16px;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --azul: #5fa2e6;
        --azul-oscuro: #0b4a86;
        --azul-claro: #14263a;
        --fondo: #0e1621;
        --fondo-suave: #131e2c;
        --texto: #e7edf4;
        --texto-suave: #9fb0c3;
        --borde: #263548;
        --sombra: 0 6px 24px rgb(0 0 0 / .35);
    }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--texto); background: var(--fondo); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--azul); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.contenedor { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.icono { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--naranja); color: #1b1200; padding: .5rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.saltar:focus { left: 0; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--fondo) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.marca { display: flex; align-items: center; text-decoration: none; }
.marca img { height: 2.6rem; width: auto; border-radius: 6px; }
.menu { display: flex; align-items: center; gap: 1.5rem; }
.menu a { color: var(--texto); text-decoration: none; font-weight: 600; font-size: .98rem; }
.menu a:hover { color: var(--azul); }
.boton-menu { display: none; background: none; border: 1px solid var(--borde); border-radius: 10px; padding: .45rem; color: var(--texto); cursor: pointer; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; }
.boton:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.boton-naranja { background: var(--naranja); color: #1b1200; }
.boton-naranja:hover { background: var(--naranja-oscuro); }
.boton-azul { background: var(--azul-oscuro); color: #fff; }
.boton-borde { border-color: var(--azul); color: var(--azul); background: transparent; }
.boton-pequeno { padding: .5rem 1.1rem; font-size: .92rem; }

/* Portada */
.portada { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgb(242 138 28 / .35), transparent 60%), linear-gradient(135deg, #083762 0%, #0b4a86 55%, #1368b8 100%); }
.portada .contenedor { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 9vw, 6.5rem); align-items: center; }
.portada p.lema { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 40ch; opacity: .92; }
.portada .acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.portada .boton-borde { border-color: #fff; color: #fff; }
.etiqueta { display: inline-flex; align-items: center; gap: .5rem; background: rgb(255 255 255 / .14); padding: .35rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600; margin-bottom: 1.2rem; }
.destacados { display: grid; gap: .9rem; }
.destacado { display: flex; align-items: center; gap: 1rem; background: rgb(255 255 255 / .10); border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radio); padding: 1rem 1.2rem; backdrop-filter: blur(6px); }
.destacado .icono { width: 2rem; height: 2rem; color: var(--naranja); }
.destacado strong { display: block; font-size: 1.05rem; }
.destacado span { font-size: .93rem; opacity: .85; }
@media (min-width: 880px) { .portada .contenedor { grid-template-columns: 1.15fr .85fr; } }

/* Secciones */
section { padding-block: clamp(3rem, 7vw, 5rem); }
.suave { background: var(--fondo-suave); }
.encabezado { max-width: 46rem; margin-bottom: 2.2rem; }
.encabezado p { color: var(--texto-suave); font-size: 1.1rem; }
.sobretitulo { color: var(--naranja-oscuro); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6rem; display: block; }
.rejilla { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .rejilla-3 { grid-template-columns: repeat(3, 1fr); } .rejilla-2 { grid-template-columns: repeat(2, 1fr); } }
.tarjeta { background: var(--fondo); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.6rem; box-shadow: var(--sombra); }
.suave .tarjeta { background: var(--fondo); }
.tarjeta .circulo { width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center; background: var(--azul-claro); color: var(--azul); margin-bottom: 1rem; }
.tarjeta .circulo .icono { width: 1.7rem; height: 1.7rem; }
.tarjeta p { color: var(--texto-suave); margin-bottom: 0; }
.tarjeta ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--texto-suave); }

/* Pasos */
.pasos { counter-reset: paso; display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso { position: relative; padding: 1.6rem 1.6rem 1.6rem 1.6rem; border-radius: var(--radio); background: var(--fondo); border: 1px solid var(--borde); }
.paso::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--naranja); color: #1b1200; font-weight: 800; margin-bottom: .9rem; }
.paso p { color: var(--texto-suave); margin: 0; }

/* Tarifas */
.tarifas { display: grid; gap: .8rem; }
.tarifa { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; background: var(--fondo); border: 1px solid var(--borde); border-radius: 12px; }
.tarifa strong { font-size: 1.05rem; }
.tarifa small { display: block; color: var(--texto-suave); font-size: .88rem; }
.precio { font-size: 1.45rem; font-weight: 800; color: var(--azul); white-space: nowrap; }
.nota { color: var(--texto-suave); font-size: .92rem; margin-top: 1rem; }
.bloque-horario { display: flex; gap: 1rem; align-items: flex-start; }
.bloque-horario .circulo { flex: none; }

/* Contacto */
.contacto { background: linear-gradient(135deg, #083762, #0b4a86); color: #fff; }
.contacto h2 { color: #fff; }
.contacto .sobretitulo { color: var(--naranja); }
.vias { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 720px) { .vias { grid-template-columns: repeat(3, 1fr); } }
.via { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; background: rgb(255 255 255 / .10); border: 1px solid rgb(255 255 255 / .2); border-radius: var(--radio); color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
.via:hover { background: rgb(255 255 255 / .18); transform: translateY(-2px); }
.via .icono { width: 2rem; height: 2rem; color: var(--naranja); }
.via strong { display: block; font-size: 1.1rem; }
.via span { opacity: .85; font-size: .92rem; word-break: break-all; }

/* Pie */
.pie { background: var(--fondo-suave); border-top: 1px solid var(--borde); padding-block: 2.2rem; font-size: .95rem; color: var(--texto-suave); }
.pie .contenedor { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .pie .contenedor { grid-template-columns: 1.4fr 1fr 1fr; } }
.pie h3 { font-size: 1rem; color: var(--texto); }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.pie a { color: var(--texto-suave); }
.pie a:hover { color: var(--azul); }
.redes { display: flex; gap: .7rem; margin-top: .6rem; }
.redes a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--borde); color: var(--texto-suave); }
.redes a:hover { color: var(--azul); border-color: var(--azul); }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--borde); padding-top: 1rem; font-size: .88rem; }

/* Páginas de texto (legal) */
.texto { max-width: 52rem; padding-block: 3rem 4rem; }
.texto h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.texto h2 { font-size: 1.3rem; margin-top: 2rem; }
.texto .miga { font-size: .92rem; color: var(--texto-suave); margin-bottom: 1.2rem; }

/* Móvil */
@media (max-width: 779px) {
    .boton-menu { display: inline-grid; }
    .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--fondo); border-bottom: 1px solid var(--borde); padding: .5rem 1rem 1rem; display: none; }
    .menu.abierto { display: flex; }
    .menu a { padding: .8rem .2rem; border-bottom: 1px solid var(--borde); }
    .menu a.boton { margin-top: .8rem; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Formulario «Pide tu aviso» */
.rejilla-formulario { align-items: start; }
@media (min-width: 900px) { .rejilla-formulario { grid-template-columns: 1.6fr 1fr; } }
.formulario .campos { display: grid; gap: 1rem; }
@media (min-width: 640px) { .formulario .campos { grid-template-columns: 1fr 1fr; } .formulario .campo.ancho { grid-column: 1 / -1; } }
.campo label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .3rem; }
.campo input, .campo select, .campo textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid var(--borde); border-radius: 10px; background: var(--fondo); color: var(--texto); min-height: 2.9rem; }
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 3px solid color-mix(in srgb, var(--naranja) 55%, transparent); outline-offset: 1px; border-color: var(--naranja); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acepto { display: flex; gap: .6rem; align-items: flex-start; margin: 1.2rem 0; font-size: .95rem; }
.acepto input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--naranja); flex: none; }
.formulario .boton { width: 100%; }
.formulario .boton[disabled] { opacity: .6; cursor: wait; }
.error-form { color: #dc2626; }
.lateral { display: grid; gap: .8rem; justify-items: start; }
.lateral .boton { width: 100%; }
