/* ============================================================
   style_landing.css — landing de presentación (index.php)
   ============================================================ */
.ld { background: var(--fondo); }
.ld .acento { color: var(--teal); }
.ld h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.8px; color: var(--navy); line-height: 1.1; margin-bottom: 18px; }
.ld p { color: #1f3a4b; }
.ld-sec { padding: 68px 0; }
.ld-crema { background: var(--fondo); }
.ld-menta { background: #e6f3f2; padding: 52px 0; }

/* ---------- Hero ---------- */
.ld-hero {
    position: relative; color: #fff; background-color: #0b2536; overflow: hidden;
    min-height: clamp(460px, 34vw, 640px); display: flex; align-items: center;
}
.ld-hero-bg {
    position: absolute; inset: -9% 0; background-size: cover; background-position: right center;
    transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}
.ld-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 40, 52, .55) 0%, rgba(6, 40, 52, .32) 38%, rgba(6, 40, 52, 0) 62%); }
.ld-hero-luz { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--lx, 70%) var(--ly, 40%), rgba(19, 196, 163, .28), transparent 65%); opacity: 0; transition: opacity .4s; }
.ld-hero:hover .ld-hero-luz { opacity: 1; }
.ld-hero .acento { color: #b9fff0; text-shadow: 0 2px 14px rgba(0, 60, 70, .45); }
.ld-hero h1, .ld-hero p, .ld-hero-puntos li { text-shadow: 0 2px 12px rgba(0, 50, 60, .45); }
.ld-hero-in { position: relative; z-index: 1; padding: 36px 0 44px; }
.ld-logo img { height: 74px; width: auto; display: block; margin-bottom: 30px; }
.ld-hero-texto { max-width: 560px; }
.ld-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -1.2px; color: #fff; }
.ld-hero p { margin: 16px 0 26px; font-size: 1.15rem; color: #e1f0f6; }
.ld-hero-puntos { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 0 30px; padding: 0; }
.ld-hero-puntos li { display: flex; align-items: center; gap: 12px; padding-right: 26px; font-size: .9rem; color: #cfe3ec; }
.ld-hero-puntos li + li { padding: 0; }
.ld-hero-puntos span { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 37, 54, .55); border: 1.5px solid var(--teal); color: var(--teal); }
.ld-hero-puntos b { display: block; color: #fff; font: 700 .98rem var(--f-titulo); }
.ld-btn { font-size: 1rem; padding: 14px 28px; }

/* ---------- ¿De dónde nace? ---------- */
.ld-nace { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ld-nace p { margin: 0 0 14px; font-size: 1.02rem; }
.ld-nace-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(11, 37, 54, .18)); }
.ld-pasos { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.ld-pasos::before { content: ""; position: absolute; left: 24px; width: calc((100% + 14px) * .75); top: 23px; height: 2px; background: #bfeee5; }
.ld-pasos li { position: relative; z-index: 1; }
.ld-pasos span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); color: var(--teal-d); margin-bottom: 10px; }
.ld-pasos b { display: block; font: 700 .9rem var(--f-titulo); color: var(--teal-d); }
.ld-pasos small { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.35; color: #4a6271; }

/* ---------- Incertidumbre ---------- */
.ld-incert { display: grid; grid-template-columns: 1fr 2.1fr; gap: 40px; align-items: center; }
.ld-incert h2 { margin: 0; }
.ld-tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ld-tarjetas article { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 8px 22px rgba(11, 37, 54, .07); }
.ld-tarjetas h3, .ld-funciones h3 { font: 700 1.02rem var(--f-titulo); color: var(--navy); margin: 14px 0 6px; }
.ld-tarjetas p { margin: 0; font-size: .9rem; color: #4a6271; }
.ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 1.2rem; flex: none; }
.ic.c1 { background: #19b394; } .ic.c2 { background: #5b63e6; } .ic.c3 { background: #f39a1e; }
.ic.c4 { background: #e2f5ee; color: #1f9d6b; } .ic.c5 { background: #e3ecfb; color: #3f63d9; } .ic.c6 { background: #ece6fd; color: #7a52e0; }

/* ---------- Solución ---------- */
.ld-solucion { display: grid; grid-template-columns: 1fr 1.9fr; gap: 44px; align-items: start; }
.ld-nota { margin-top: 30px !important; font: 600 1.6rem/1.15 var(--f-mano); color: var(--navy) !important; transform: rotate(-3deg); }
.ld-funciones { display: grid; grid-template-columns: repeat(3, 1fr); }
.ld-funciones article { display: flex; flex-direction: column; gap: 10px; padding: 8px 22px 26px; border-left: 1px solid var(--linea); }
.ld-funciones article:nth-child(n+4) { border-top: 1px solid var(--linea); padding-top: 26px; }
.ld-funciones article:nth-child(3n+1) { border-left: 0; }
.ld-funciones h3 { margin: 0; }
.ld-funciones p { margin: 4px 0 0; font-size: .88rem; color: #4a6271; }

/* ---------- Detrás de RutaNexo ---------- */
.ld-dev { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 44px; align-items: center; }
.ld-foto { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--sombra); background: #dcebf0; }
.ld-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.ld-foto.pendiente { display: grid; place-items: center; text-align: center; color: #5a7686; border: 2px dashed #a9c6d1; box-shadow: none;
    background: repeating-linear-gradient(135deg, #e6f1f4 0 14px, #dcebf0 14px 28px); }
.ld-foto.pendiente i { font-size: 2rem; display: block; margin-bottom: 8px; color: #7fa3b3; }
.ld-foto.pendiente b { display: block; font: 700 1rem var(--f-titulo); color: var(--navy); }
.ld-foto.pendiente small { font-size: .78rem; }
.ld-dev h2 { margin-bottom: 10px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.ld-nombre { margin: 0 !important; font: 700 1.1rem var(--f-titulo); color: var(--navy) !important; }
.ld-rol { margin: 2px 0 14px !important; font-size: .9rem; color: #4a6271 !important; }
.ld-cita { font: 600 1.9rem/1.15 var(--f-mano); color: var(--navy) !important; transform: rotate(-5deg); text-align: center; }

/* ---------- Cierre ---------- */
.ld-cierre { background: linear-gradient(100deg, #0b2536, #0d3040); color: #fff; padding: 40px 0 18px; }
.ld-cierre-in { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.ld-logo-pie img { height: 70px; width: auto; display: block; }
.ld-frase { margin: 0; padding-left: 48px; border-left: 1px solid rgba(255, 255, 255, .22); font: 700 1.5rem/1.2 var(--f-titulo); color: #fff !important; }
.ld-pie-txt { text-align: center; margin: 24px 0 0; font-size: .8rem; color: #8fb0c0 !important; }

@media (max-width: 960px) {
    .ld-sec { padding: 48px 0; }
    .ld-nace, .ld-incert, .ld-solucion, .ld-dev { grid-template-columns: 1fr; gap: 28px; }
    .ld-tarjetas { grid-template-columns: 1fr; }
    .ld-funciones { grid-template-columns: 1fr 1fr; }
    .ld-funciones article, .ld-funciones article:nth-child(3n+1) { border-left: 0; border-top: 1px solid var(--linea); padding: 22px 8px; }
    .ld-mv-in { grid-template-columns: 1fr; gap: 28px; }
    .ld-mv article, .ld-mv article:first-child, .ld-mv article:last-child { padding: 0; border: 0; }
    .ld-cita { transform: none; }
    .ld-hero::before { background: linear-gradient(180deg, rgba(8, 31, 46, .88), rgba(8, 31, 46, .6)); }
    .ld-hero-bg { background-position: 70% center; }
    .ld-frase { padding-left: 0; border: 0; text-align: center; }
}
@media (max-width: 560px) {
    .ld-pasos { grid-template-columns: 1fr 1fr; row-gap: 22px; }
    .ld-pasos::before, .ld-pasos::after { display: none; }
    .ld-funciones { grid-template-columns: 1fr; }
    .ld-logo img { height: 60px; }
    .ld-hero-puntos li + li { border: 0; padding-left: 0; margin-top: 14px; }
}


/* ============================================================
   ANIMACIONES (js/landing_animaciones.js)
   Solo se ocultan los elementos si el JS está activo (clase .js en <html>)
   ============================================================ */
.js [data-anim] {
    opacity: 0; transform: translate3d(0, 34px, 0);
    transition: opacity .7s ease var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms);
}
.js [data-anim="izq"]   { transform: translate3d(-46px, 0, 0); }
.js [data-anim="der"]   { transform: translate3d(46px, 0, 0); }
.js [data-anim="zoom"]  { transform: scale(.86); }
.js [data-anim="revelar"] { transform: scale(1.06); clip-path: inset(0 100% 0 0 round 28px); transition: opacity .6s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1), clip-path 1.1s cubic-bezier(.2, .7, .2, 1); }
.js [data-anim].visto { opacity: 1; transform: none; }
.js [data-anim="revelar"].visto { clip-path: inset(0 0 0 0 round 0); }
/* Cuando termina la entrada, el elemento queda con transiciones rápidas (para el hover) */
.js [data-anim].fin { transition: transform .25s ease, box-shadow .25s ease, opacity .25s; transition-delay: 0s; }

/* Barra de progreso al bajar */
.ld-progreso { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 50; background: transparent; pointer-events: none; }
.ld-progreso span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #13c4a3, #1f8fe0); transform-origin: left; transform: scaleX(var(--prog, 0)); border-radius: 0 4px 4px 0; }

/* Línea de tiempo que se dibuja */
.ld-pasos::after { content: ""; position: absolute; left: 24px; top: 23px; height: 2px; width: calc((100% + 14px) * .75); background: var(--teal); transform-origin: left; transform: scaleX(var(--p, 0)); }
.ld-pasos span { transition: background .4s, color .4s, border-color .4s, transform .4s; }
.ld-pasos li.on span { background: var(--teal); color: #fff; border-color: var(--teal); transform: scale(1.1); }

/* Pines que laten */
.pulso { position: relative; }
.pulso::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: latido 2.4s ease-out infinite; pointer-events: none; }
@keyframes latido { 0% { transform: scale(1); opacity: .75; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* Tarjetas: se elevan al pasar el mouse y el ícono rebota */
.ld-tarjetas article, .ld-funciones article { transition: transform .25s ease, box-shadow .25s ease; }
.ld-tarjetas article:hover, .js .ld-tarjetas article.fin:hover { transform: translateY(-8px); box-shadow: 0 18px 34px rgba(11, 37, 54, .14); }
.ld-funciones article:hover, .js .ld-funciones article.fin:hover { transform: translateY(-6px); }
.ld-tarjetas .ic, .ld-funciones .ic { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ld-tarjetas article:hover .ic, .ld-funciones article:hover .ic { transform: scale(1.14) rotate(-8deg); }

/* Botón con destello */
.ld-btn { position: relative; overflow: hidden; }
.ld-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: destello 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes destello { 0%, 55% { left: -60%; } 80%, 100% { left: 130%; } }

/* Quien prefiere menos movimiento lo ve todo quieto y visible */
@media (prefers-reduced-motion: reduce) {
    .js [data-anim], .js [data-anim="izq"], .js [data-anim="der"], .js [data-anim="zoom"], .js [data-anim="revelar"] {
        opacity: 1; transform: none; clip-path: none; transition: none;
    }
    .pulso::after, .ld-btn::after { animation: none; display: none; }
    .ld-hero-bg { transform: none !important; }
    .ld-pasos::after { transform: scaleX(1); }
    .ld-pasos li span { background: var(--teal); color: #fff; border-color: var(--teal); }
}


/* ============================================================
   ANIMACIONES — 2ª tanda (cinta, palabras, cifras, viaje, mouse)
   ============================================================ */
/* Título que sube palabra por palabra */
.js [data-palabras] .w { display: inline-block; opacity: 0; transform: translateY(70%) rotate(5deg); transform-origin: left bottom;
    transition: opacity .6s ease calc(var(--i) * 70ms), transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 70ms); }
.js [data-palabras].visto .w { opacity: 1; transform: none; }

/* Cifras que cuentan */
.ld-cifras { background: #fff; padding: 46px 0; border-bottom: 1px solid var(--linea); }
.ld-cifras-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.ld-cifras b { display: block; font: 800 clamp(2.2rem, 4.4vw, 3.4rem)/1 var(--f-titulo); color: var(--teal-d); letter-spacing: -1px; }
.ld-cifras small { display: block; margin-top: 8px; font-size: .88rem; color: #4a6271; }

/* Un viaje con RutaNexo */
.ld-viaje { padding: 68px 0 54px; }
.ld-viaje-cab { max-width: 760px; margin-bottom: 30px; }
.ld-viaje-cab p { margin: 0; font-size: 1.05rem; }
.ld-viaje-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.ld-viaje-pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ld-viaje-pasos button { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 14px 18px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .7); cursor: pointer; font: inherit; color: var(--navy);
    position: relative; overflow: hidden; transition: background .3s, transform .3s, box-shadow .3s; }
.ld-viaje-pasos button:hover { transform: translateX(6px); }
.ld-viaje-pasos .n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #b9dcd6; font: 700 1rem var(--f-titulo); color: var(--teal-d); transition: all .3s; }
.ld-viaje-pasos b { display: block; font: 700 1.02rem var(--f-titulo); }
.ld-viaje-pasos small { color: #4a6271; font-size: .84rem; }
.ld-viaje-pasos li.on button { background: #fff; box-shadow: 0 12px 28px rgba(11, 37, 54, .12); transform: translateX(10px); }
.ld-viaje-pasos li.on .n { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.1); }
.ld-viaje-pasos li button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.ld-viaje-pasos li.on button::after { animation: llenar var(--dur, 3800ms) linear forwards; }
.ld-viaje.pausado .ld-viaje-pasos li.on button::after { animation-play-state: paused; }
.ld-viaje.fin-viaje .ld-viaje-pasos li.on button::after { animation: none; transform: scaleX(1); }
@keyframes llenar { to { transform: scaleX(1); } }

.ld-escena { background: #fff; border-radius: 26px; box-shadow: 0 26px 60px rgba(11, 37, 54, .18); overflow: hidden; max-width: 460px; width: 100%; justify-self: center; transition: transform .2s ease-out; }
.ld-cel-barra { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--navy); color: #fff; }
.ld-cel-barra img { height: 26px; width: auto; }
.ld-cel-barra b { font: 700 1rem var(--f-titulo); }
.ld-cel-barra em { margin-left: auto; font-style: normal; font-size: .78rem; color: #9cc4d4; }
.ld-cel-cuerpo { padding: 30px 26px 12px; text-align: center; min-height: 250px; }
.ld-cel-cuerpo > * { animation: celentra .55s cubic-bezier(.2, .7, .2, 1) both; }
.ld-cel-cuerpo > :nth-child(2) { animation-delay: .06s; } .ld-cel-cuerpo > :nth-child(3) { animation-delay: .12s; } .ld-cel-cuerpo > :nth-child(4) { animation-delay: .18s; }
@keyframes celentra { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.ld-cel-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-d); font-size: 2.1rem; position: relative; }
.ld-cel-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: latido2 2.4s ease-out infinite; }
@keyframes latido2 { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.28); opacity: 0; } }
.ld-cel-cuerpo h3 { font: 800 1.35rem var(--f-titulo); color: var(--navy); margin: 16px 0 6px; }
.ld-cel-cuerpo p { margin: 0 auto; max-width: 340px; font-size: .95rem; color: #4a6271; }
.ld-cel-dato { margin-top: 16px; }
.ld-cel-dato span { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #eefaf7; color: var(--teal-d); font: 700 .9rem var(--f-titulo); }
.ld-cel-ruta { display: flex; align-items: center; gap: 10px; padding: 8px 26px 14px; color: var(--teal-d); }
.ld-cel-ruta .linea { flex: 1; height: 4px; border-radius: 4px; background: #d8ece8; position: relative; }
.ld-cel-ruta .relleno { position: absolute; inset: 0; border-radius: 4px; background: var(--teal); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.ld-cel-ruta #viajeBus { transition: transform .4s; }
.ld-cel-ctrl { display: flex; gap: 10px; justify-content: center; padding: 0 20px 20px; }
.ld-cel-ctrl button { border: 1px solid #cfe5e0; background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 .84rem var(--f-titulo); color: var(--navy); cursor: pointer; transition: background .2s, transform .2s; }
.ld-cel-ctrl button:hover { background: var(--teal-soft); transform: translateY(-2px); }
.ld-viaje-nota { margin: 18px 0 0; text-align: center; font-size: .78rem; color: #6a8494 !important; }

/* Luz que sigue al mouse en las tarjetas */
.ld-tarjetas article, .ld-funciones article { position: relative; overflow: hidden; }
.ld-tarjetas article::before, .ld-funciones article::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(19, 196, 163, .16), transparent 70%); }
.ld-tarjetas article:hover::before, .ld-funciones article:hover::before { opacity: 1; }

/* Inclinación 3D con el mouse (foto, pantalla del viaje) */
.js [data-tilt], .js [data-anim][data-tilt].visto { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* Línea de tiempo: el bus recorre el camino */
.ld-bus { position: absolute; top: 11px; left: calc(24px + (100% + 14px) * .75 * var(--p, 0) - 13px); width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .72rem; z-index: 2; box-shadow: 0 4px 10px rgba(11, 37, 54, .3); opacity: 0; transition: opacity .3s; }
.ld-pasos.corre .ld-bus { opacity: 1; }
.ld-bus i { animation: traqueteo .5s ease-in-out infinite; }
@keyframes traqueteo { 50% { transform: translateY(-1.5px); } }

/* Carretera del cierre */
.ld-carretera { position: relative; height: 34px; margin-top: 26px; overflow: hidden; }
.ld-carretera::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; border-bottom: 3px dashed rgba(255, 255, 255, .28); animation: asfalto 1.2s linear infinite; }
.ld-carretera i { position: absolute; bottom: 9px; left: -60px; font-size: 1.5rem; color: var(--teal); animation: pasabus 16s linear infinite; }
@keyframes pasabus { to { transform: translateX(calc(100vw + 120px)); } }
@keyframes asfalto { to { transform: translateX(-24px); } }

@media (max-width: 960px) {
    .ld-cifras-in { grid-template-columns: 1fr 1fr; row-gap: 28px; }
    .ld-viaje-grid { grid-template-columns: 1fr; gap: 26px; }
    .ld-viaje-pasos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ld-bus { display: none; }
    .ld-viaje-pasos small { display: none; }
    .ld-viaje-pasos button { padding: 10px 14px; }
}
@media (hover: none) { .js [data-tilt], .js [data-anim][data-tilt].visto { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .js [data-palabras] .w { opacity: 1; transform: none; transition: none; }
    .ld-carretera i, .ld-carretera::after, .ld-bus i, .ld-cel-cuerpo > *, .ld-cel-ic::after { animation: none; }
    .ld-cel-ic::after { display: none; }
    .ld-hero-luz { display: none; }
    .js [data-tilt], .js [data-anim][data-tilt].visto { transform: none; }
}


/* ---------- Detrás de RutaNexo (panel completo) ---------- */
.ld-devsec { position: relative; overflow: hidden; padding: 84px 0; }
.ld-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.ld-deco-1 { width: 420px; height: 420px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(19, 196, 163, .22), transparent 70%); }
.ld-deco-2 { width: 520px; height: 520px; right: -170px; bottom: -200px; background: radial-gradient(circle, rgba(30, 123, 232, .16), transparent 70%); }
.ld-devsec .contenedor { position: relative; }
.ld-devpanel { display: grid; grid-template-columns: 290px 1fr 290px; gap: 44px; align-items: center; padding: 44px; border-radius: 34px;
    background: linear-gradient(135deg, #ffffff 0%, #eefaf7 100%); box-shadow: 0 30px 70px rgba(11, 37, 54, .12); position: relative; overflow: hidden; }
.ld-devpanel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(19, 196, 163, .35) 1.3px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%); mask-image: linear-gradient(100deg, transparent 30%, #000 100%); }
.ld-devpanel > * { position: relative; }
.ld-foto-wrap { position: relative; }
.ld-foto-wrap::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border-radius: 26px; background: linear-gradient(160deg, var(--teal), #1e7be8); opacity: .9; }
.ld-foto-wrap .ld-foto { position: relative; aspect-ratio: 4 / 4.9; border-radius: 24px; }
.ld-etiqueta { display: inline-block; padding: 6px 14px; margin-bottom: 14px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-d); font: 700 .78rem var(--f-titulo); letter-spacing: .6px; text-transform: uppercase; }
.ld-dev-txt h2 { margin-bottom: 10px; }
.ld-dev-txt p { margin: 0 0 12px; }
.ld-dev-txt .ld-nombre { font-size: 1.25rem; }
.ld-chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ld-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid #d3ebe5; font: 600 .85rem var(--f-titulo); color: var(--navy); box-shadow: 0 4px 12px rgba(11, 37, 54, .05); }
.ld-chips i { color: var(--teal-d); }
.ld-chips li:hover { background: var(--teal-soft); }
.ld-dev-cita { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 34px 28px 26px; border-radius: 26px; color: #fff; text-align: center;
    background: linear-gradient(160deg, #0b2536, #0d4a55); box-shadow: 0 18px 40px rgba(11, 37, 54, .25); overflow: hidden; }
.ld-dev-cita > i.fa-quote-left { font-size: 2rem; color: var(--teal); }
.ld-dev-cita .ld-cita { color: #fff !important; font-size: 1.85rem; transform: rotate(-3deg); margin: 6px 0 0; }
.ld-cita-ruta { position: relative; height: 28px; margin-top: 18px; border-bottom: 3px dashed rgba(255, 255, 255, .3); overflow: hidden; }
.ld-cita-ruta i { position: absolute; bottom: 2px; left: -30px; color: var(--teal); font-size: 1.3rem; animation: pasabus2 7s linear infinite; }
@keyframes pasabus2 { to { transform: translateX(360px); } }
@media (max-width: 1100px) { .ld-devpanel { grid-template-columns: 250px 1fr; } .ld-dev-cita { grid-column: 1 / -1; } }
@media (max-width: 700px) {
    .ld-devsec { padding: 52px 0; }
    .ld-devpanel { grid-template-columns: 1fr; padding: 26px; gap: 34px; }
    .ld-foto-wrap { max-width: 280px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .ld-cita-ruta i { animation: none; left: 45%; } }


/* ---------- Misión y visión (versión completa) ---------- */
.ld-mv { position: relative; background: linear-gradient(100deg, #0b2536 0%, #0d3040 60%, #0b2f3a 100%); color: #fff; padding: 78px 0 70px; overflow: hidden; }
.ld-mv::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(19, 196, 163, .22), transparent 70%); }
.ld-mv::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: .5; }
.ld-mv .contenedor { position: relative; z-index: 1; }
.ld-mv-cab { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.ld-mv-cab h2 { color: #fff; margin: 0; }
.ld-etiqueta.oscura { background: rgba(19, 196, 163, .16); color: #7ff0d9; }
.ld-mv-in { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ld-mv-in article { position: relative; padding: 34px 34px 30px; border-radius: 26px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.ld-mv-in article::before { content: ""; position: absolute; left: 34px; right: 34px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--teal), #1e7be8); }
.ld-mv .ic-grande { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--teal); color: var(--navy); font-size: 1.8rem; margin-bottom: 16px; box-shadow: 0 0 0 8px rgba(19, 196, 163, .15); }
.ld-mv-in h3 { font: 800 1.8rem var(--f-titulo); color: var(--teal); margin: 0 0 12px; }
.ld-mv-in p { color: #d6e6ee !important; margin: 0 0 12px; line-height: 1.6; }
.ld-mv-in ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 10px; }
.ld-mv-in li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-size: .95rem; }
.ld-mv-in li i { color: var(--teal); margin-top: 3px; }
.ld-valores { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ld-valores li { text-align: center; padding: 20px 12px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.ld-valores i { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: rgba(19, 196, 163, .18); color: var(--teal); font-size: 1.1rem; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ld-valores li:hover i { transform: scale(1.18) rotate(-8deg); }
.ld-valores b { display: block; font: 700 .98rem var(--f-titulo); color: #fff; }
.ld-valores small { color: #9cc0cf; font-size: .8rem; }
@media (max-width: 960px) { .ld-mv-in { grid-template-columns: 1fr; } .ld-valores { grid-template-columns: repeat(2, 1fr); } .ld-mv { padding: 54px 0; } .ld-mv-in article { padding: 28px 24px; } }

/* ---------- Planes ---------- */
.ld-planes { padding-bottom: 80px; position: relative; }
.ld-planes-cab { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.ld-planes-cab p { margin: 0; font-size: 1.05rem; }
.ld-calc { max-width: 640px; margin: 0 auto 40px; padding: 22px 26px; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(11, 37, 54, .09); text-align: center; }
.ld-calc label { display: block; font: 700 1rem var(--f-titulo); color: var(--navy); margin-bottom: 14px; }
.ld-calc label i { color: var(--teal-d); margin-right: 6px; }
.ld-calc-fila { display: flex; align-items: center; gap: 18px; }
.ld-calc output { flex: none; min-width: 64px; padding: 6px 12px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-d); font: 800 1.3rem var(--f-titulo); }
.ld-calc input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 8px; border-radius: 8px; outline: none; cursor: pointer;
    background: linear-gradient(90deg, var(--teal) var(--fill, 20%), #d8ece8 var(--fill, 20%)); }
.ld-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); box-shadow: 0 4px 12px rgba(11, 37, 54, .25); transition: transform .2s; }
.ld-calc input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.18); }
.ld-calc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.ld-calc-txt { margin: 14px 0 0; font-size: .95rem; color: #4a6271 !important; }
.ld-calc-txt b { color: var(--teal-d); }
.ld-calc-txt b.cambia { animation: rebote .45s cubic-bezier(.3, 1.6, .5, 1); display: inline-block; }
@keyframes rebote { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }

.ld-planes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; padding-top: 14px; }
.ld-plan { position: relative; display: flex; flex-direction: column; padding: 30px 24px 26px; border-radius: 26px; background: #fff; border: 2px solid transparent;
    box-shadow: 0 10px 28px rgba(11, 37, 54, .08); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s, border-color .3s; }
.ld-plan-tag { position: absolute; top: -14px; left: 50%; transform: translate(-50%, 8px) scale(.8); opacity: 0; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
    background: linear-gradient(90deg, var(--teal), #1e7be8); color: #fff; font: 700 .76rem var(--f-titulo); transition: all .4s cubic-bezier(.3, 1.6, .5, 1); }
.ld-plan.reco { border-color: var(--teal); box-shadow: 0 26px 54px rgba(19, 196, 163, .25); }
html:not(.js) .ld-plan.reco, .js .ld-plan.visto.reco { transform: translateY(-12px) scale(1.025); }
.ld-plan.reco .ld-plan-tag { opacity: 1; transform: translate(-50%, 0) scale(1); }
.ld-plan-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--teal-soft); color: var(--teal-d); font-size: 1.4rem; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background .3s, color .3s; }
.ld-plan-ic.grande { width: 72px; height: 72px; font-size: 1.9rem; border-radius: 22px; margin: 8px auto 0; }
.ld-plan:hover .ld-plan-ic, .ld-plan.reco .ld-plan-ic { transform: rotate(-8deg) scale(1.12); background: var(--teal); color: #fff; }
.ld-plan h3 { font: 800 1.4rem var(--f-titulo); color: var(--navy); margin: 16px 0 2px; }
.ld-plan-desc { margin: 0 0 14px; font-size: .9rem; color: #4a6271 !important; }
.ld-plan-precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; padding-bottom: 14px; border-bottom: 1px dashed #cfe3df; }
.ld-plan-precio small { font: 700 1.1rem var(--f-titulo); color: var(--navy); }
.ld-plan-precio b { font: 800 2rem/1 var(--f-titulo); color: var(--navy); letter-spacing: -.5px; }
.ld-plan-precio span { flex-basis: 100%; font-size: .78rem; color: #6a8494; }
.ld-plan-lim { margin: 14px 0 12px; font: 700 .92rem var(--f-titulo); color: var(--teal-d) !important; }
.ld-plan-lista { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; align-content: start; }
.ld-plan-lista li { display: flex; gap: 9px; font-size: .88rem; color: #1f3a4b; }
.ld-plan-lista i { color: var(--teal-d); margin-top: 3px; font-size: .8rem; }
.js .ld-plan .ld-plan-lista li { opacity: 0; transform: translateX(-12px); transition: opacity .45s ease calc(450ms + var(--k) * 90ms), transform .45s ease calc(450ms + var(--k) * 90ms); }
.js .ld-plan.visto .ld-plan-lista li { opacity: 1; transform: none; }
.ld-plan-btn { width: 100%; justify-content: center; }
.ld-planes-nota { margin: 30px 0 0; text-align: center; font-size: .82rem; color: #6a8494 !important; }

/* Ventana de compra */
.ld-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(7, 25, 36, .62); backdrop-filter: blur(5px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.ld-modal.abierto { opacity: 1; visibility: visible; }
.ld-modal-caja { position: relative; width: min(460px, 100%); max-height: 94dvh; overflow: auto; padding: 30px 30px 26px; border-radius: 28px; background: #fff; text-align: center;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .4); transform: translateY(30px) scale(.92); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.ld-modal.abierto .ld-modal-caja { transform: none; }
.ld-modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eef5f4; color: var(--navy); cursor: pointer; transition: transform .25s, background .2s; }
.ld-modal-x:hover { transform: rotate(90deg); background: #dcebe8; }
.ld-mp-pasos { list-style: none; display: flex; justify-content: space-between; margin: 0 0 18px; padding: 0 6px; position: relative; font: 600 .75rem var(--f-titulo); color: #8aa0ad; }
.ld-mp-pasos::before { content: ""; position: absolute; left: 24px; right: 24px; top: 13px; height: 2px; background: #d8ece8; }
.ld-mp-pasos::after { content: ""; position: absolute; left: 24px; top: 13px; height: 2px; width: calc(100% - 48px); background: var(--teal); transform-origin: left; transform: scaleX(var(--mp, 0)); transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.ld-mp-pasos li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; }
.ld-mp-pasos span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #cfe0dc; font-weight: 700; transition: all .4s; }
.ld-mp-pasos li.on { color: var(--teal-d); }
.ld-mp-pasos li.on span { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.12); }
.ld-modal h3 { font: 800 1.6rem var(--f-titulo); color: var(--navy); margin: 14px 0 4px; }
.ld-mp-desc { margin: 0 0 14px; color: #4a6271 !important; }
.ld-mp-precio { display: flex; justify-content: center; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.ld-mp-precio small { font: 700 1.3rem var(--f-titulo); color: var(--navy); }
.ld-mp-precio b { font: 800 2.7rem/1 var(--f-titulo); color: var(--teal-d); letter-spacing: -1px; }
.ld-mp-precio span { font-size: .85rem; color: #6a8494; }
.ld-mp-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.ld-mp-datos div { padding: 12px; border-radius: 14px; background: #f2f9f8; }
.ld-mp-datos dt { font-size: .75rem; color: #6a8494; margin-bottom: 2px; }
.ld-mp-datos dd { margin: 0; font: 700 .95rem var(--f-titulo); color: var(--navy); }
.ld-mp-nota { margin: 0 0 18px; font-size: .84rem; color: #4a6271 !important; }
.ld-mp-acc { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ld-mp-cancelar { background: #eef5f4; color: var(--navy); }
.ld-mp-cancelar:hover { background: #dcebe8; }

@media (max-width: 1100px) { .ld-planes-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; } }
@media (max-width: 600px) {
    .ld-planes-grid { grid-template-columns: 1fr; }
    .ld-plan.reco, .js .ld-plan.fin.reco, .js .ld-plan.visto.reco { transform: none; }
    .ld-calc { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .js .ld-plan .ld-plan-lista li { opacity: 1; transform: none; transition: none; }
    .ld-modal, .ld-modal-caja { transition: none; }
}

.ld-mp-registro { margin: 14px 0 0; text-align: center; font-size: .86rem; color: var(--muted); }
.ld-mp-registro a { color: var(--teal-d); font-weight: 600; text-decoration: underline; }
