:root {
  --azul: #153b55;
  --azul-profundo: #0d2c42;
  --azul-claro: #eaf4f5;
  --naranja: #ff6b35;
  --naranja-oscuro: #e9511e;
  --amarillo: #ffd166;
  --crema: #fffaf1;
  --blanco: #ffffff;
  --texto: #183142;
  --suave: #647681;
  --linea: #dce5e7;
  --sombra: 0 22px 65px rgba(22, 59, 82, 0.11);
  --radio: 24px;
  --fuente-texto: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --fuente-titulos: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--crema); color: var(--texto); font-family: var(--fuente-texto); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
.cabecera, main, footer { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.cabecera { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }

.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--azul-profundo); font-family: var(--fuente-titulos); font-size: 23px; font-weight: 800; letter-spacing: -0.8px; text-decoration: none; }
.marca > span > span { color: var(--naranja); }
.marca-icono { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--naranja); color: white; transform: rotate(-3deg); }
.marca-icono svg { width: 28px; }
.cabecera-estado { display: flex; align-items: center; gap: 9px; color: var(--suave); font-size: 13px; font-weight: 600; }
.cabecera-estado span { width: 8px; height: 8px; border-radius: 50%; background: #2db57a; box-shadow: 0 0 0 5px rgba(45, 181, 122, 0.12); }

.hero { position: relative; min-height: 440px; display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; overflow: hidden; margin-top: 8px; padding: 62px 64px 112px; border-radius: 34px; background: radial-gradient(circle at 72% 5%, rgba(255, 209, 102, 0.34), transparent 21%), linear-gradient(130deg, #dff1f0, #f2f4de 55%, #fee9c9); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: 0.22; background-image: radial-gradient(#1b5365 0.7px, transparent 0.7px); background-size: 17px 17px; mask-image: linear-gradient(90deg, black, transparent 72%); }
.hero-contenido { position: relative; z-index: 2; }
.sobrelinea { margin: 0 0 9px; color: var(--naranja-oscuro); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; }
h1, h2, h3 { font-family: var(--fuente-titulos); color: var(--azul-profundo); }
h1 { max-width: 610px; margin: 0; font-size: clamp(42px, 5.2vw, 67px); line-height: 1.03; letter-spacing: -3.1px; }
h1 em { color: var(--naranja); font-style: normal; }
.hero-texto { max-width: 575px; margin: 22px 0 0; color: #4d6978; font-size: 18px; line-height: 1.6; }
.ventajas { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: #3a5c6e; font-size: 13px; font-weight: 700; }
.ventajas b { width: 19px; height: 19px; display: inline-grid; place-items: center; margin-right: 4px; border-radius: 50%; background: white; color: #23a46d; }

.hero-ilustracion { position: absolute; right: 0; bottom: 0; width: 48%; height: 100%; overflow: hidden; }
.sol { position: absolute; top: 54px; right: 74px; width: 76px; height: 76px; border-radius: 50%; background: var(--amarillo); box-shadow: 0 0 0 15px rgba(255, 209, 102, 0.18); }
.nube { position: absolute; width: 74px; height: 18px; border-radius: 30px; background: rgba(255,255,255,.74); }
.nube::before, .nube::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.nube::before { left: 13px; width: 27px; height: 27px; }
.nube::after { right: 12px; width: 35px; height: 35px; }
.nube-uno { top: 105px; left: 74px; transform: scale(.8); }
.nube-dos { top: 150px; right: 30px; transform: scale(.6); }
.montana { position: absolute; bottom: 45px; width: 300px; height: 240px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.montana-uno { right: -54px; background: #80b9ac; }
.montana-dos { right: 190px; bottom: 33px; width: 250px; height: 190px; background: #b6d5bd; }
.carretera { position: absolute; right: -45px; bottom: -102px; width: 540px; height: 270px; border-radius: 50% 50% 0 0; background: var(--azul-profundo); transform: rotate(-8deg); }
.linea-carretera { position: absolute; top: 81px; left: -8px; width: 560px; height: 7px; background: repeating-linear-gradient(90deg, transparent 0 28px, #fff 28px 67px, transparent 67px 92px); }
.coche { position: absolute; top: 43px; left: 205px; width: 94px; height: 37px; border-radius: 24px 33px 9px 9px; background: var(--naranja); box-shadow: 0 9px 18px rgba(0,0,0,.18); }
.coche::before { content: ""; position: absolute; top: -24px; left: 23px; width: 52px; height: 31px; border-radius: 25px 30px 0 0; background: var(--naranja); transform: skew(13deg); }
.ventana { position: absolute; z-index: 1; top: -18px; left: 34px; width: 31px; height: 17px; border-radius: 17px 18px 2px 2px; background: #cce7e8; transform: skew(13deg); }
.rueda { position: absolute; bottom: -8px; width: 20px; height: 20px; border: 5px solid #183142; border-radius: 50%; background: #ccd5d7; }
.rueda-uno { left: 15px; }
.rueda-dos { right: 14px; }

.buscador { position: relative; z-index: 4; margin: -72px 34px 30px; padding: 28px 30px 24px; border: 1px solid rgba(255,255,255,.7); border-radius: var(--radio); background: rgba(255,255,255,.96); box-shadow: var(--sombra); backdrop-filter: blur(12px); }
.buscador-cabecera, .buscador-cabecera > div, .titulo-seccion, .cabecera-mapa, .cabecera-historial { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.buscador-cabecera > div, .titulo-seccion { justify-content: flex-start; }
.buscador-cabecera > p { color: var(--suave); font-size: 12px; }
.paso { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #fff0e7; color: var(--naranja-oscuro); font-family: var(--fuente-titulos); font-weight: 800; }
.buscador h2, .titulo-seccion h2, .cabecera-mapa h2, .cabecera-historial h2 { margin: 0; font-size: 24px; letter-spacing: -0.8px; }
.buscador .sobrelinea, .titulo-seccion .sobrelinea { margin-bottom: 3px; }
.aviso-proveedor-ruta { margin: 18px 0 0; padding: 11px 13px; border: 1px solid #cfe4e2; border-radius: 12px; background: #f1f8f6; color: #4b6873; font-size: 11px; line-height: 1.5; }
.aviso-proveedor-ruta strong { color: var(--azul); }
.aviso-proveedor-ruta a, .fuente-mapa a, .fuente-carburantes a { color: var(--naranja-oscuro); font-weight: 800; }

.ruta-campos { display: grid; grid-template-columns: 1fr 42px 1fr .72fr; align-items: end; gap: 12px; margin-top: 22px; }
label, legend { color: var(--azul); font-size: 12px; font-weight: 800; }
label > span:not(.input-icono):not(.control-personas) { float: right; color: var(--suave); font-size: 10px; font-weight: 600; }
input, select { width: 100%; height: 48px; margin-top: 7px; padding: 0 13px; border: 1px solid var(--linea); border-radius: 12px; background: #fbfcfc; color: var(--texto); font-size: 14px; font-weight: 600; }
input:focus, select:focus { outline: 3px solid rgba(255,107,53,.14); border-color: var(--naranja); }
.input-icono { position: relative; display: block; }
.campo-ruta-linea { display: flex; align-items: flex-end; gap: 8px; }
.campo-ruta-linea .input-icono { flex: 1; min-width: 0; }
.campo-ruta-linea .boton-punto-mapa { flex: 0 0 auto; height: 48px; margin-top: 7px; padding-inline: 9px; }
.input-icono input { padding-left: 43px; }
.input-icono svg { position: absolute; z-index: 1; left: 14px; top: 21px; width: 20px; fill: none; stroke: #2c9b72; stroke-width: 2; }
.destino-icono svg { stroke: var(--naranja); }
.sugerencias-ruta { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; right: 0; display: none; max-height: 280px; overflow-y: auto; padding: 7px; border: 1px solid var(--linea); border-radius: 14px; background: white; box-shadow: 0 18px 42px rgba(13,44,66,.16); }
.sugerencias-ruta.abiertas { display: block; }
.sugerencia-ruta { width: 100%; display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--texto); text-align: left; }
.sugerencia-ruta:hover, .sugerencia-ruta.activa { background: #fff3ed; }
.sugerencia-marca { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; margin-top: 1px; border-radius: 8px; background: #edf7f3; color: #2b9f78; }
.destino-icono .sugerencia-marca { background: #fff0e8; color: var(--naranja); }
.sugerencia-marca svg, .destino-icono .sugerencia-marca svg { position: static; width: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.sugerencia-texto { min-width: 0; }
.sugerencia-texto strong { display: block; overflow: hidden; color: var(--azul-profundo); font-family: var(--fuente-texto); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sugerencia-texto small { display: block; overflow: hidden; margin-top: 2px; color: var(--suave); font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sugerencia-cargando { display: block; padding: 11px; color: var(--suave); font-size: 11px; text-align: center; }
.intercambiar { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 5px; border: 1px solid var(--linea); border-radius: 50%; background: white; color: var(--azul); }
.intercambiar:hover { border-color: var(--naranja); color: var(--naranja); }
.intercambiar svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.paradas-ruta-bloque { margin-top: 12px; }
.paradas-ruta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.paradas-ruta:empty { display: none; }
.parada-ruta { padding: 12px; border: 1px solid #dbe8e6; border-radius: 14px; background: #f6faf9; }
.parada-icono svg { stroke: #7650c7; }
.boton-eliminar-parada { flex: 0 0 48px; width: 48px; height: 48px; margin-top: 7px; border: 1px solid #e1d8f4; border-radius: 12px; background: white; color: #7650c7; font-size: 22px; line-height: 1; }
.boton-eliminar-parada:hover { border-color: #7650c7; background: #f5f0ff; }
.boton-anadir-parada { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin-top: 10px; padding: 0 13px; border: 1px dashed #9cb7b3; border-radius: 11px; background: white; color: var(--azul); font-size: 11px; font-weight: 800; }
.boton-anadir-parada span { color: #7650c7; font-size: 18px; line-height: 1; }
.boton-anadir-parada:hover { border-color: #7650c7; background: #f8f5ff; color: #6040ac; }
.boton-principal { height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 21px; border: 0; border-radius: 12px; background: var(--naranja); color: white; font-size: 14px; font-weight: 800; box-shadow: 0 10px 22px rgba(255,107,53,.25); }
.boton-principal:hover { background: var(--naranja-oscuro); transform: translateY(-1px); }
.boton-principal:disabled { cursor: wait; opacity: .7; }
.boton-principal svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.estado-ruta { min-height: 18px; margin: 13px 0 0; color: #54707c; font-size: 12px; font-weight: 600; }

.calculadora { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; margin-top: 28px; }
.configuracion, .resultado, .mapa-seccion, .gasolineras-seccion, .historial { border: 1px solid #e2e9e9; border-radius: var(--radio); background: white; box-shadow: 0 14px 45px rgba(22,59,82,.07); }
.configuracion { padding: 30px; }
.bloque-coche { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 15px; border-radius: 16px; background: var(--azul-claro); }
.icono-coche { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: white; color: var(--azul); }
.icono-coche svg { width: 38px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bloque-coche strong { display: block; font-family: var(--fuente-titulos); color: var(--azul-profundo); }
.bloque-coche span { display: block; margin-top: 2px; color: var(--suave); font-size: 12px; }
.campos-coche, .campos-manuales { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 21px; }
.control-personas { height: 48px; display: grid; grid-template-columns: 42px 1fr 42px; margin-top: 7px; overflow: hidden; border: 1px solid var(--linea); border-radius: 12px; background: #fbfcfc; }
.control-personas input { height: 46px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; appearance: textfield; }
.control-personas input::-webkit-inner-spin-button { appearance: none; }
.control-personas button { border: 0; background: transparent; color: var(--naranja); font-size: 22px; font-weight: 700; }
.control-personas button:hover { background: #fff0e8; }
.precio-medio-ruta { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 11px 13px; border: 1px solid #cfe4dc; border-radius: 12px; background: #f1f8f5; color: #416c5d; font-size: 11px; font-weight: 600; line-height: 1.45; }
.precio-medio-ruta svg { flex: 0 0 22px; width: 22px; fill: none; stroke: #2b9f78; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.precio-medio-ruta.calculando { border-color: #f0d59e; background: #fff8e8; color: #806329; }
.precio-medio-ruta.calculando svg { stroke: #d89a25; }
.precio-medio-ruta.sin-datos { border-color: #e2e7e7; background: #f7f9f9; color: var(--suave); }
.precio-medio-ruta.sin-datos svg { stroke: #819297; }

.tipo-viaje { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin: 24px 0 0; padding: 0; border: 0; }
.tipo-viaje legend { margin-bottom: 8px; }
.tipo-viaje label { position: relative; }
.tipo-viaje input { position: absolute; opacity: 0; pointer-events: none; }
.tipo-viaje span { display: block; min-height: 68px; padding: 13px 15px; border: 1px solid var(--linea); border-radius: 13px; background: #fbfcfc; }
.tipo-viaje b { display: block; color: var(--azul); font-size: 13px; }
.tipo-viaje small { display: block; margin-top: 4px; color: var(--suave); font-size: 11px; font-weight: 500; }
.tipo-viaje input:checked + span { border-color: var(--naranja); background: #fff5ee; box-shadow: inset 0 0 0 1px var(--naranja); }
.tipo-viaje input:focus-visible + span { outline: 3px solid rgba(255,107,53,.18); }
.ajustes { margin-top: 22px; padding: 15px 17px; border: 1px dashed #cbd9dc; border-radius: 13px; background: #fcfdfd; }
.ajustes summary { color: var(--azul); font-size: 12px; font-weight: 800; }
.ajustes summary span { float: right; color: var(--suave); font-size: 10px; }
.ajustes > p { margin: 11px 0 0; color: var(--suave); font-size: 11px; line-height: 1.5; }

.resultado { position: sticky; top: 18px; overflow: hidden; padding: 32px; border: 0; background: linear-gradient(145deg, var(--azul-profundo), var(--azul)); color: white; box-shadow: 0 25px 55px rgba(13,44,66,.2); }
.resultado-fondo { position: absolute; right: -70px; top: -75px; width: 230px; height: 230px; border: 42px solid rgba(255,255,255,.035); border-radius: 50%; }
.resultado .sobrelinea { color: var(--amarillo); }
.resultado h2 { position: relative; margin: 0; color: white; font-size: 25px; letter-spacing: -1px; }
.total { position: relative; margin: 12px 0 0; font-family: var(--fuente-titulos); font-size: clamp(57px, 6vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -4px; }
.total small { margin-left: 6px; color: var(--amarillo); font-size: 27px; letter-spacing: 0; }
.resultado-contexto { min-height: 18px; margin: 8px 0 22px; color: rgba(255,255,255,.6); font-size: 12px; }
.coste-persona { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid rgba(255,209,102,.26); border-radius: 13px; background: rgba(255,209,102,.11); color: rgba(255,255,255,.76); font-size: 13px; }
.coste-persona strong { color: var(--amarillo); font-family: var(--fuente-titulos); font-size: 20px; }
.desglose { margin-top: 17px; }
.desglose > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 1px; color: rgba(255,255,255,.68); font-size: 13px; }
.desglose strong { color: white; }
.punto-color { width: 8px; height: 8px; display: inline-block; margin-right: 8px; border-radius: 50%; }
.punto-color.combustible { background: var(--naranja); }
.punto-color.peaje { background: #5bd2b0; }
.metricas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 14px; }
.metricas div { padding: 13px; border-radius: 12px; background: rgba(0,0,0,.13); }
.metricas small { display: block; color: rgba(255,255,255,.47); font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.metricas strong { display: block; margin-top: 4px; color: white; font-size: 14px; }
.acciones-resultado { display: grid; grid-template-columns: 1fr 48px; gap: 9px; margin-top: 20px; }
.boton-guardar, .boton-pdf { height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 800; }
.boton-guardar { border: 0; background: var(--amarillo); color: var(--azul-profundo); }
.boton-guardar:hover { background: #ffdc83; }
.boton-pdf { border: 1px solid rgba(255,255,255,.26); background: transparent; color: white; }
.boton-pdf:hover { background: rgba(255,255,255,.08); }
.boton-guardar svg, .boton-pdf svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mensaje-guardado { grid-column: 1/-1; min-height: 15px; margin: 0; color: rgba(255,255,255,.62); font-size: 11px; text-align: center; }

.mapa-seccion { overflow: hidden; margin-top: 24px; }
.cabecera-mapa { padding: 27px 30px 20px; }
.cabecera-mapa > div > p:last-child, .cabecera-historial > div > p:last-child { margin: 5px 0 0; color: var(--suave); font-size: 12px; }
.accion-calcular-mapa { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 30px 20px; padding: 16px 18px; border: 1px solid #f2d1c3; border-radius: 15px; background: #fff7f2; }
.accion-calcular-mapa > div { min-width: 0; }
.accion-calcular-mapa strong { color: var(--azul-profundo); font-family: var(--fuente-titulos); font-size: 14px; }
.accion-calcular-mapa .estado-ruta { margin: 4px 0 0; }
.accion-calcular-mapa .boton-principal { flex: 0 0 auto; min-width: 230px; }
.acciones-mapa { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.boton-punto-mapa { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--linea); border-radius: 10px; background: white; color: var(--azul); font-size: 10px; font-weight: 800; }
.boton-punto-mapa span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: #edf7f3; color: #2b9f78; font-size: 10px; }
.boton-punto-mapa.destino span { background: #fff0e8; color: var(--naranja); }
.boton-punto-mapa.parada span { background: #f0eafd; color: #7650c7; }
.boton-punto-mapa:hover, .boton-punto-mapa.activo { border-color: var(--naranja); background: #fff5ef; color: var(--naranja-oscuro); }
.leyenda-mapa { display: flex; align-items: center; gap: 8px; color: var(--suave); font-size: 11px; font-weight: 700; }
.leyenda-mapa i { width: 26px; height: 4px; border-radius: 3px; background: var(--naranja); }
.opcion-peajes-mapa { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--linea); border-radius: 11px; background: #f8fbfa; cursor: pointer; }
.opcion-peajes-mapa input { width: 17px; height: 17px; margin: 0; accent-color: #8b5cf6; }
.opcion-peajes-mapa b, .opcion-peajes-mapa small { display: block; line-height: 1.25; }
.opcion-peajes-mapa b { color: var(--azul); font-size: 10px; }
.opcion-peajes-mapa small { margin-top: 1px; color: var(--suave); font-size: 9px; font-weight: 600; }
.opcion-peajes-mapa:has(input:checked) { border-color: #b9a2ee; background: #f5f0ff; }
.opcion-peajes-mapa:has(input:disabled) { cursor: not-allowed; opacity: .58; }
#mapaRuta { height: 410px; position: relative; background: #e6f0ee; }
.mapa-vacio { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; color: #789097; text-align: center; }
.mapa-vacio svg { width: 52px; margin-bottom: 10px; fill: none; stroke: #9bb1b5; stroke-width: 1.5; }
.mapa-vacio strong { color: var(--azul); }
.mapa-vacio span { margin-top: 4px; font-size: 12px; }
.estado-mapa { margin: 0; padding: 11px 30px; background: #f4f8f7; color: var(--suave); font-size: 11px; }
.fuente-mapa { margin: 0; padding: 0 30px 14px; background: #f4f8f7; color: #70848b; font-size: 9px; line-height: 1.55; }

.gasolineras-seccion { margin-top: 24px; padding: 0; overflow: hidden; }
.gasolineras-seccion > summary { display: flex; align-items: center; gap: 15px; padding: 22px 26px; list-style: none; }
.gasolineras-seccion summary::-webkit-details-marker { display: none; }
.gasolineras-seccion summary > span:nth-child(2) { flex: 1; }
.gasolineras-seccion summary b { display: block; color: var(--azul-profundo); font-family: var(--fuente-titulos); }
.gasolineras-seccion summary small { display: block; margin-top: 3px; color: var(--suave); font-size: 11px; font-weight: 500; }
.gasolinera-icono { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #fff1e9; color: var(--naranja); }
.gasolinera-icono svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.abrir-detalle { width: 11px; height: 11px; border-right: 2px solid var(--azul); border-bottom: 2px solid var(--azul); transform: rotate(45deg); transition: .2s; }
.gasolineras-seccion[open] .abrir-detalle { transform: rotate(225deg); }
.contenido-gasolineras { padding: 0 26px 26px; border-top: 1px solid #edf1f1; }
.filtros-gasolineras { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-top: 19px; }
.filtros-gasolineras > p { margin: 0; color: var(--suave); font-size: 12px; }
.filtros-gasolineras > div { display: flex; gap: 10px; }
.filtros-gasolineras label { min-width: 130px; }
.filtros-gasolineras select { height: 40px; }
.opcion-todas-mapa { width: fit-content; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 12px; border: 1px solid var(--linea); border-radius: 11px; background: #f8fbfa; cursor: pointer; }
.opcion-todas-mapa input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--naranja); }
.opcion-todas-mapa > span { float: none !important; color: var(--texto) !important; font-size: 11px !important; }
.opcion-todas-mapa b { display: block; color: var(--azul); }
.opcion-todas-mapa small { display: block; margin-top: 2px; color: var(--suave); font-size: 10px; font-weight: 500; }
.opcion-todas-mapa:has(input:checked) { border-color: #f0b49e; background: #fff4ee; }
.lista-gasolineras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; }
.fuente-carburantes { margin: 17px 0 0; padding-top: 13px; border-top: 1px solid var(--linea); color: #70848b; font-size: 10px; line-height: 1.55; }
.gasolinera { padding: 16px; border: 1px solid var(--linea); border-radius: 14px; background: #fbfdfd; }
.gasolinera h3 { margin: 0; font-size: 14px; line-height: 1.3; }
.precio-carburante { display: block; margin: 10px 0 2px; color: var(--naranja-oscuro); font-family: var(--fuente-titulos); font-size: 24px; }
.gasolinera p { margin: 5px 0 0; color: var(--suave); font-size: 11px; line-height: 1.45; }
.boton-usar-precio { width: 100%; margin-top: 12px; padding: 8px; border: 1px solid #f0b49e; border-radius: 9px; background: white; color: var(--naranja-oscuro); font-size: 11px; font-weight: 800; }
.boton-usar-precio:hover { background: #fff3ed; }
.boton-mostrar-gasolineras { grid-column: 1 / -1; min-height: 44px; padding: 10px 16px; border: 1px dashed #b7c9cc; border-radius: 12px; background: #f5f9f8; color: var(--azul); font-size: 11px; font-weight: 800; }
.boton-mostrar-gasolineras:hover { border-color: var(--naranja); background: #fff5ef; color: var(--naranja-oscuro); }

.historial { margin-top: 24px; padding: 28px 30px; }
.boton-secundario { padding: 9px 13px; border: 1px solid var(--linea); border-radius: 10px; background: white; color: var(--azul); font-size: 11px; font-weight: 800; }
.lista-historial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.viaje-guardado { padding: 16px; border: 1px solid var(--linea); border-radius: 14px; background: #fbfdfd; }
.viaje-guardado h3 { margin: 0 0 5px; font-size: 14px; }
.viaje-guardado p { margin: 0; color: var(--suave); font-size: 11px; line-height: 1.5; }
.viaje-guardado strong { display: block; margin: 10px 0; color: var(--naranja-oscuro); font-family: var(--fuente-titulos); font-size: 20px; }
.acciones-viaje { display: flex; gap: 7px; }
.acciones-viaje button { flex: 1; padding: 7px; border: 1px solid var(--linea); border-radius: 8px; background: white; color: var(--azul); font-size: 10px; font-weight: 800; }
.historial-vacio { grid-column: 1/-1; margin: 0; padding: 18px; border-radius: 12px; background: #f5f8f7; color: var(--suave); font-size: 12px; text-align: center; }

.como-funciona { margin: 80px 0 65px; text-align: center; }
.como-funciona h2 { max-width: 550px; margin: 0 auto; font-size: 34px; letter-spacing: -1.4px; }
.como-funciona > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; text-align: left; }
.como-funciona article { position: relative; min-height: 180px; padding: 28px; overflow: hidden; border-radius: 20px; background: white; box-shadow: 0 12px 35px rgba(22,59,82,.06); }
.como-funciona article > span { position: absolute; right: 16px; top: -12px; color: #edf3f3; font-family: var(--fuente-titulos); font-size: 78px; font-weight: 800; }
.como-funciona h3 { position: relative; margin: 43px 0 6px; font-size: 17px; }
.como-funciona article p { position: relative; margin: 0; color: var(--suave); font-size: 13px; line-height: 1.5; }
footer { padding: 35px 0 45px; border-top: 1px solid #e5e4dd; text-align: center; }
.marca-footer { font-size: 19px; }
footer > p { margin: 8px 0 0; color: var(--suave); font-size: 12px; }
footer .aviso { max-width: 700px; margin: 13px auto 0; color: #879397; font-size: 10px; }
.enlaces-legales { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.enlaces-legales a { color: var(--azul); font-size: 11px; font-weight: 700; text-decoration: none; }
.enlaces-legales a:hover { color: var(--naranja-oscuro); text-decoration: underline; }
.aviso-datos { position: fixed; z-index: 1000; left: 50%; bottom: 18px; width: min(900px, calc(100% - 28px)); display: flex; align-items: center; gap: 24px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; background: #0d2c42; color: white; box-shadow: 0 18px 55px rgba(13,44,66,.28); transform: translateX(-50%); }
.aviso-datos[hidden] { display: none; }
.aviso-datos div { flex: 1; }
.aviso-datos strong { font-family: var(--fuente-titulos); font-size: 14px; }
.aviso-datos p { margin: 5px 0 3px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.5; }
.aviso-datos a { color: var(--amarillo); font-size: 11px; font-weight: 800; }
.aviso-datos button { flex: 0 0 auto; min-height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--amarillo); color: var(--azul-profundo); font-size: 11px; font-weight: 800; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-right: 46%; }
  .hero-ilustracion { width: 48%; }
  .ruta-campos { grid-template-columns: 1fr 38px 1fr; }
  .preferencia { grid-column: 1/-1; }
  .lista-gasolineras { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .cabecera, main, footer { width: min(100% - 24px, 1160px); }
  .cabecera-estado { display: none; }
  .hero { min-height: 540px; padding: 44px 28px 255px; border-radius: 25px; }
  .hero-ilustracion { width: 100%; height: 260px; }
  .montana-uno { right: -60px; }
  .montana-dos { right: 150px; }
  .carretera { right: -80px; }
  h1 { font-size: clamp(39px, 11vw, 54px); letter-spacing: -2.3px; }
  .hero-texto { font-size: 16px; }
  .buscador { margin: -38px 12px 22px; padding: 23px 20px; }
  .buscador-cabecera > p { display: none; }
  .ruta-campos { grid-template-columns: 1fr 36px; }
  .campo-ruta:first-child { grid-column: 1; }
  .intercambiar { grid-column: 2; grid-row: 1; }
  .campo-ruta:nth-of-type(2) { grid-column: 1/-1; }
  .preferencia { grid-column: 1/-1; }
  .paradas-ruta { grid-template-columns: 1fr; }
  .calculadora { grid-template-columns: 1fr; }
  .resultado { position: static; }
  .mapa-seccion + .resultado { margin-top: 24px; }
  .cabecera-mapa { align-items: start; flex-direction: column; }
  .accion-calcular-mapa { align-items: stretch; flex-direction: column; margin-inline: 20px; }
  .accion-calcular-mapa .boton-principal { width: 100%; min-width: 0; }
  .acciones-mapa { justify-content: flex-start; }
  .leyenda-mapa { display: none; }
  #mapaRuta { height: 330px; }
  .filtros-gasolineras { display: block; }
  .filtros-gasolineras > div { margin-top: 14px; }
  .lista-historial, .como-funciona > div { grid-template-columns: 1fr; }
  .como-funciona article { min-height: 145px; }
}

@media (max-width: 500px) {
  .ventajas { gap: 9px 14px; }
  .buscador-cabecera .paso { display: none; }
  .ruta-campos { display: block; }
  .ruta-campos > * { margin-top: 12px; }
  .intercambiar { display: none; }
  .configuracion, .resultado { padding: 23px 20px; }
  .campos-coche, .campos-manuales, .tipo-viaje, .metricas { grid-template-columns: 1fr; }
  .tipo-viaje { gap: 8px; }
  .tipo-viaje span { min-height: 60px; }
  .total { font-size: 60px; }
  .cabecera-mapa, .historial { padding: 23px 20px; }
  .estado-mapa { padding-inline: 20px; }
  .fuente-mapa { padding-inline: 20px; }
  .lista-gasolineras { grid-template-columns: 1fr; }
  .gasolineras-seccion > summary { padding: 19px; }
  .contenido-gasolineras { padding: 0 19px 19px; }
  .filtros-gasolineras > div { display: grid; grid-template-columns: 1fr 1fr; }
  .cabecera-historial { align-items: start; }
  .como-funciona { margin-top: 55px; }
  .como-funciona h2 { font-size: 29px; }
  .aviso-datos { align-items: stretch; flex-direction: column; gap: 12px; bottom: 10px; padding: 16px; }
  .aviso-datos button { width: 100%; }
}

@media print {
  @page { margin: 14mm; }
  body { background: white; }
  .cabecera, .hero, .buscador, .configuracion, .acciones-resultado, .mapa-seccion, .gasolineras-seccion, .historial, .como-funciona, footer { display: none !important; }
  main { width: 100%; }
  .calculadora { display: block; margin: 0; }
  .resultado { position: static; max-width: 620px; margin: auto; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
