/*
 * Inicio (inicio.jsp) con el diseño del login: fuentes Plus Jakarta Sans + Inter, navy profundo,
 * vidrio, acento celeste y botón degradado cian → azul.
 * Se carga después de landing.css (Tailwind) y landing-botones.css.
 * El primer apartado (hero) usa img/inicio-hero.webp y siempre es oscuro, como la escena del login.
 */

/* ── Paleta oscura igual a la del login (las clases de Tailwind leen estas variables) ── */
:root.dark {
    --c-surface: 4 16 31;
    --c-background: 4 16 31;
    --c-surface-bright: 4 16 31;
    --c-surface-container-lowest: 10 27 48;
    --c-surface-container-low: 6 20 38;
    --c-surface-container: 14 36 62;
    --c-surface-container-high: 20 48 80;
    --c-surface-container-highest: 28 60 98;
    --c-primary: 255 255 255;
    --c-on-surface: 230 238 251;
    --c-on-surface-variant: 203 213 225;
    --c-secondary: 56 189 248;
    --c-outline-variant: 40 62 92;
    --c-primary-fondo: 8 30 56;
}

body.ini { font-family: 'Inter', system-ui, sans-serif; }
.ini .in-ico { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Cabecera de vidrio oscuro, fija sobre el hero ── */
.in-cabecera {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(4, 16, 31, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.in-cabecera-int {
    max-width: 1440px;
    height: 76px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.in-marca { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.in-marca img { width: 44px; height: 44px; object-fit: contain; }
.in-marca-nombre {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.in-marca-nombre span { color: #3ec6ff; }
.in-nav { display: flex; align-items: center; gap: 1.8rem; }
.in-nav a { color: rgba(226, 232, 240, 0.85); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.in-nav a:hover { color: #67e8f9; }
.in-acciones { display: flex; align-items: center; gap: 0.9rem; }
.in-tema { display: inline-flex; gap: 4px; }
.in-tema button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    background: transparent;
    color: #e6eefb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.in-tema button[aria-pressed="true"] { border-color: rgba(56, 189, 248, 0.85); background: rgba(14, 116, 144, 0.25); color: #ffffff; }
.in-ingresar { color: #ffffff; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.in-ingresar:hover { color: #67e8f9; }

/* ── Botones del login ── */
.in-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    height: 46px;
    padding: 0 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b1b30;
    text-decoration: none;
    background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 50%, #3b82f6 100%);
    transition: filter 0.2s ease;
}
.in-boton:hover { filter: brightness(0.95); }
.in-boton--chico { height: 40px; padding: 0 1.1rem; font-size: 0.88rem; }
.in-boton-sec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    height: 46px;
    padding: 0 1.3rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    text-decoration: none;
    background: rgba(6, 18, 38, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.38);
}
.in-boton-sec:hover { border-color: #38bdf8; color: #67e8f9; }

/* ── Primer apartado: foto del puerto + texto a la izquierda ── */
.in-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 96px 0 84px;
    box-sizing: border-box;
    color: #e6eefb;
    background:
        linear-gradient(90deg, rgba(3, 12, 26, 0.92) 0%, rgba(3, 12, 26, 0.72) 34%, rgba(3, 12, 26, 0.3) 62%, rgba(3, 12, 26, 0.45) 100%),
        linear-gradient(180deg, rgba(3, 12, 26, 0.45) 0%, rgba(3, 12, 26, 0) 30%, rgba(3, 12, 26, 0.75) 100%),
        url('../img/inicio-hero.webp') center / cover no-repeat,
        #04101f;
}
.in-hero-int {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem 0 5vw;
    box-sizing: border-box;
}
.in-hero-texto { max-width: 860px; }
.in-hero-texto .in-rasgos { max-width: 660px; }
.in-pastilla {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(6, 18, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.in-bandera { display: inline-flex; width: 16px; height: 11px; border-radius: 2px; overflow: hidden; }
.in-bandera span { flex: 1; }
.in-linea { width: 110px; height: 4px; border-radius: 4px; margin: 1.3rem 0 1.1rem; background: linear-gradient(90deg, #22d3ee, #38bdf8); }
.in-titulo {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 1rem;
}
.in-titulo span {
    background: linear-gradient(90deg, #22d3ee, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.in-texto { font-size: 0.94rem; line-height: 1.6; color: rgba(226, 232, 240, 0.86); max-width: 560px; margin: 0 0 1.5rem; }
.in-hero-botones { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.in-micro { display: flex; align-items: center; gap: 0.5rem; margin: 1.1rem 0 0; font-size: 0.8rem; color: rgba(203, 213, 225, 0.8); }
.in-micro span { width: 6px; height: 6px; border-radius: 999px; background: #38bdf8; }
.in-rasgos { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; }
.in-rasgos li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1.9rem; min-width: 140px; }
.in-rasgos li:first-child { padding-left: 0; }
.in-rasgos li + li { border-left: 1.5px solid rgba(255, 255, 255, 0.28); }
.in-rasgo-ico { width: 36px; height: 36px; color: #38bdf8; margin-bottom: 0.6rem; }
.in-rasgos strong { font-size: 0.92rem; color: #ffffff; margin-bottom: 0.25rem; }
.in-rasgos span { font-size: 0.78rem; color: rgba(203, 213, 225, 0.85); line-height: 1.35; }

/* ── Resto de la página: mismas formas que el login ── */
.ini main .rounded-lg { border-radius: 12px; }
.ini main .rounded-xl { border-radius: 18px; }
.ini main .rounded-2xl { border-radius: 24px; }
.ini main section .bg-surface-container-lowest { border: 1px solid rgb(var(--c-outline-variant) / 0.5); box-shadow: none; }
:root.dark .ini main section .bg-surface-container-lowest {
    background: linear-gradient(160deg, rgba(14, 33, 62, 0.72), rgba(6, 18, 38, 0.66));
    border-color: rgba(255, 255, 255, 0.1);
}
.ini main h2, .ini main h3 { letter-spacing: -0.02em; }
/* CTA final: mismo navy con la foto del puerto al fondo */
.ini main section.bg-primary {
    background:
        linear-gradient(180deg, rgba(3, 12, 26, 0.88), rgba(3, 12, 26, 0.8)),
        url('../img/inicio-hero.webp') center 70% / cover no-repeat,
        #04101f;
}
.ini footer { border-top: 1px solid rgb(var(--c-outline-variant) / 0.5); }

/* ── Borde inferior del hero: olas de marea que se mueven despacio ── */
.in-olas { position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; overflow: hidden; pointer-events: none; }
.in-olas svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.in-ola { fill: rgb(var(--c-surface-container-low)); }
.in-olas-fondo { opacity: 0.45; animation: in-marea 26s linear infinite reverse; }
.in-olas-frente { animation: in-marea 18s linear infinite; }
@keyframes in-marea { to { transform: translateX(-50%); } }
/* Las mismas olas, invertidas y más altas, en el borde de arriba del llamado final */
.in-olas--arriba { top: -1px; bottom: auto; height: 120px; transform: scaleY(-1); z-index: 1; }
.ini main section.bg-primary { padding-top: 10.5rem; }

/* Preguntas frecuentes: la respuesta se despliega con animación (js/inicio-efectos.js) */
#faq-accordion details > div { overflow: hidden; }
#faq-accordion details { transition: box-shadow 0.25s ease; }
#faq-accordion details[open] { box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1); }

/* ── Fuentes oficiales: 4 tarjetas fijas con el logo de cada entidad ── */
.in-fuentes { flex: 1; width: 100%; max-width: 980px; }
.in-fuentes-lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.in-fuentes-nota { margin: 0.7rem 0 0; font-size: 0.72rem; text-align: center; color: rgb(var(--c-on-surface-variant)); }
.in-fuente {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1rem;
    box-sizing: border-box;
    border-radius: 18px;
    background: rgb(var(--c-surface-container-lowest));
    border: 1px solid rgb(var(--c-outline-variant) / 0.6);
}
:root.dark .in-fuente { background: linear-gradient(160deg, rgba(14, 33, 62, 0.92), rgba(6, 18, 38, 0.9)); border-color: rgba(255, 255, 255, 0.12); }
.in-fuente-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    box-sizing: border-box;
}
.in-fuente-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.in-fuente div { display: flex; flex-direction: column; min-width: 0; }
.in-fuente strong { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1.05rem; color: rgb(var(--c-primary)); }
.in-fuente div span { font-size: 0.76rem; line-height: 1.3; color: rgb(var(--c-on-surface-variant)); }

@media (prefers-reduced-motion: reduce) {
    .in-olas svg { animation: none; }
}


/* ── Modo claro: cabecera blanca y botones del hero claros ── */
:root:not(.dark) .in-cabecera { background: rgba(255, 255, 255, 0.88); border-bottom-color: #e2e8f0; }
:root:not(.dark) .in-marca-nombre { color: #001a3d; }
:root:not(.dark) .in-marca-nombre span { color: #0072c6; }
:root:not(.dark) .in-nav a { color: #43474d; }
:root:not(.dark) .in-nav a:hover,
:root:not(.dark) .in-ingresar:hover { color: #0072c6; }
:root:not(.dark) .in-ingresar { color: #001a3d; }
:root:not(.dark) .in-tema button { color: #43474d; }
:root:not(.dark) .in-tema button[aria-pressed="true"] { border-color: #0072c6; background: #e8f3ff; color: #0072c6; }
:root:not(.dark) .in-boton-sec { background: #ffffff; color: #001a3d; border-color: #ffffff; }
:root:not(.dark) .in-boton-sec:hover { border-color: #0072c6; color: #0072c6; }
:root:not(.dark) .in-pastilla { background: rgba(255, 255, 255, 0.92); color: #001a3d; border-color: #ffffff; }

/* ── "El problema": fondo celeste suave, tarjetas blancas con ícono de color y aviso final ── */
.in-problema {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 5.5rem;
    background:
        radial-gradient(45% 35% at 8% 32%, rgba(147, 197, 253, 0.3), rgba(147, 197, 253, 0) 100%),
        radial-gradient(40% 32% at 92% 72%, rgba(147, 197, 253, 0.26), rgba(147, 197, 253, 0) 100%),
        linear-gradient(180deg, #ecf3ff 0%, #f3f7ff 18%, #f1f6ff 82%, #f4f8ff 100%);
}
/* Puntos decorativos (arriba y abajo a la derecha) */
.in-problema::before,
.in-problema::after {
    content: "";
    position: absolute;
    right: 2.5rem;
    width: 120px;
    height: 80px;
    background-image: radial-gradient(rgba(37, 99, 235, 0.22) 1.5px, transparent 1.6px);
    background-size: 16px 16px;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.35s ease, opacity 0.35s ease;
}
.in-problema::before { top: 2rem; transform: translate(var(--dx, 0px), var(--dy, 0px)); }
.in-problema::after { bottom: 1.5rem; transform: translate(calc(var(--dx, 0px) * -0.6), calc(var(--dy, 0px) * -0.6)); }
.in-problema.cursor-dentro::before,
.in-problema.cursor-dentro::after { background-image: radial-gradient(rgba(37, 99, 235, 0.38) 1.6px, transparent 1.7px); }
/* Al hacer clic: sombreado más fuerte y difuminado */
.in-problema.pulsado::before,
.in-problema.pulsado::after {
    background-image: radial-gradient(rgba(37, 99, 235, 0.65) 1.9px, transparent 2px);
    filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.55)) blur(0.4px);
}
.in-problema-int { position: relative; max-width: 1260px; margin: 0 auto; padding: 0 2rem; }
.in-problema-cabeza { text-align: center; max-width: 880px; margin: 0 auto 2.6rem; }
.in-prob-pastilla {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #fde4e1;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 600;
}
.in-prob-pastilla svg { width: 18px; height: 18px; }
/* Rayitas a los lados de la pastilla */
.in-prob-pastilla::before,
.in-prob-pastilla::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 52px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5));
}
.in-prob-pastilla::before { right: calc(100% + 18px); }
.in-prob-pastilla::after { left: calc(100% + 18px); transform: scaleX(-1); }
.in-problema-cabeza h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #0b1b3a;
    margin: 1.2rem 0 0.9rem;
}
.in-problema-cabeza h2 span { position: relative; white-space: nowrap; }
/* Subrayado curvo bajo "costarte de más" */
.in-problema-cabeza h2 span::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 6%;
    bottom: -0.34em;
    height: 0.36em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 11.5C30 7 62 9.5 95 6.8 128 4.5 160 6.6 197 4.2 199 4.4 199 6.3 197.2 7 166 10.2 141 9.1 110 12 80 14.7 47 12.6 18 16.4 9 17.4 2.6 16.2 2 14.2 1.6 12.8 2.2 12 3 11.5Z' fill='%233b82f6'/%3E%3Cpath d='M30 13.6C70 11 120 10.6 170 8.6' stroke='%2393c5fd' stroke-width='1.4' fill='none' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.in-problema-cabeza p { font-size: 1.05rem; line-height: 1.6; color: #4b5563; margin: 0; }

.in-prob-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.in-prob-tarjeta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.6rem 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e6edf8;
    box-shadow: 0 10px 28px rgba(15, 41, 66, 0.08);
}
/* Esquina superior derecha teñida */
.in-prob-tarjeta::after {
    content: "";
    position: absolute;
    top: -38px;
    right: -38px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    pointer-events: none;
}
.in-prob-tarjeta--rojo::after { background: radial-gradient(circle at 30% 70%, rgba(252, 165, 165, 0.45), rgba(254, 226, 226, 0.2)); }
.in-prob-tarjeta--azul::after { background: radial-gradient(circle at 30% 70%, rgba(147, 197, 253, 0.45), rgba(219, 234, 254, 0.2)); }
.in-prob-ico {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.in-prob-ico svg { width: 28px; height: 28px; }
.in-prob-tarjeta--rojo .in-prob-ico { color: #ef4444; background: linear-gradient(145deg, #fff1f0, #fdd5d0); box-shadow: 0 8px 18px rgba(239, 68, 68, 0.18); }
.in-prob-tarjeta--azul .in-prob-ico { color: #2563eb; background: linear-gradient(145deg, #eef5ff, #cfe2ff); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16); }
.in-prob-tarjeta h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0b1b3a;
    margin: 0.2rem 0 0.4rem;
}
.in-prob-tarjeta p { font-size: 0.93rem; line-height: 1.5; color: #4b5563; margin: 0; }

.in-prob-aviso {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-top: 2.2rem;
    padding: 1.6rem 2.2rem;
    border-radius: 18px;
    background:
        radial-gradient(70% 130% at 100% 100%, rgba(147, 197, 253, 0.32), rgba(147, 197, 253, 0) 100%),
        linear-gradient(90deg, #f6f9ff 0%, #eaf2ff 100%);
    border: 1px solid #cfe0fb;
    box-shadow: 0 10px 28px rgba(15, 41, 66, 0.06);
}
.in-prob-aviso-ico {
    flex-shrink: 0;
    width: 66px;
    height: 66px;
    border-radius: 14px;
    background: #0b1b3a;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(11, 27, 58, 0.25);
}
.in-prob-aviso-ico svg { width: 30px; height: 30px; }
.in-prob-aviso p {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-left: 1.6rem;
    border-left: 1px solid #c7d7f0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1e293b;
}

/* Modo oscuro: mismo diseño sobre navy */
:root.dark .in-problema {
    background:
        radial-gradient(45% 35% at 8% 32%, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0) 100%),
        radial-gradient(40% 32% at 92% 72%, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0) 100%),
        linear-gradient(180deg, #061426 0%, #04101f 18%, #04101f 100%);
}
:root.dark .in-problema.cursor-dentro::before,
:root.dark .in-problema.cursor-dentro::after { background-image: radial-gradient(rgba(125, 211, 252, 0.45) 1.6px, transparent 1.7px); }
:root.dark .in-problema.pulsado::before,
:root.dark .in-problema.pulsado::after { background-image: radial-gradient(rgba(125, 211, 252, 0.8) 1.9px, transparent 2px); filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7)) blur(0.4px); }
:root.dark .in-problema::before,
:root.dark .in-problema::after { background-image: radial-gradient(rgba(125, 211, 252, 0.25) 1.5px, transparent 1.6px); }
:root.dark .in-prob-pastilla { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
:root.dark .in-problema-cabeza h2,
:root.dark .in-prob-tarjeta h3 { color: #ffffff; }
:root.dark .in-problema-cabeza h2 span::after { filter: hue-rotate(-18deg) brightness(1.25); }
:root.dark .in-problema-cabeza p,
:root.dark .in-prob-tarjeta p { color: #cbd5e1; }
:root.dark .in-prob-tarjeta {
    background: linear-gradient(160deg, rgba(14, 33, 62, 0.85), rgba(6, 18, 38, 0.8));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
:root.dark .in-prob-tarjeta--rojo .in-prob-ico { color: #fca5a5; background: rgba(239, 68, 68, 0.16); box-shadow: none; }
:root.dark .in-prob-tarjeta--azul .in-prob-ico { color: #7dd3fc; background: rgba(56, 189, 248, 0.14); box-shadow: none; }
:root.dark .in-prob-tarjeta--rojo::after { background: radial-gradient(circle at 30% 70%, rgba(239, 68, 68, 0.22), transparent); }
:root.dark .in-prob-tarjeta--azul::after { background: radial-gradient(circle at 30% 70%, rgba(56, 189, 248, 0.22), transparent); }
:root.dark .in-prob-aviso { background: linear-gradient(90deg, rgba(14, 33, 62, 0.85), rgba(12, 45, 84, 0.85)); border-color: rgba(56, 189, 248, 0.3); box-shadow: none; }
:root.dark .in-prob-aviso-ico { background: linear-gradient(145deg, #22d3ee, #3b82f6); color: #0b1b30; box-shadow: none; }
:root.dark .in-prob-aviso p { color: #e2e8f0; border-left-color: rgba(255, 255, 255, 0.18); }

@media (max-width: 1024px) {
    .in-prob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .in-problema { padding: 3.5rem 0 4rem; }
    .in-problema-int { padding: 0 1rem; }
    .in-prob-grid { grid-template-columns: 1fr; }
    .in-prob-pastilla::before, .in-prob-pastilla::after { width: 28px; }
    .in-problema-cabeza h2 span { white-space: normal; }
    .in-prob-aviso { flex-direction: column; align-items: flex-start; padding: 1.4rem; gap: 1rem; }
    .in-prob-aviso p { padding-left: 0; border-left: 0; }
}

/* ── "La respuesta clara": fondo celeste con olas en las esquinas, tarjetas de vidrio con onda arriba a la derecha ── */
.in-solucion {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 5.5rem;
    background: linear-gradient(180deg, #f4f8ff 0%, #edf3ff 100%);
}
/* Ola grande arriba a la izquierda y abajo a la derecha */
.in-solucion::before,
.in-solucion::after {
    content: "";
    position: absolute;
    width: 46%;
    height: 340px;
    border-radius: 50%;
    pointer-events: none;
}
.in-solucion::before {
    top: 90px;
    left: -12%;
    width: 34%;
    height: 220px;
    background: linear-gradient(120deg, rgba(96, 165, 250, 0.38), rgba(191, 219, 254, 0.1));
    transform: rotate(-12deg);
}
.in-solucion::after {
    bottom: 90px;
    right: -12%;
    width: 34%;
    height: 220px;
    background: linear-gradient(300deg, rgba(96, 165, 250, 0.36), rgba(191, 219, 254, 0.1));
    transform: rotate(-12deg);
}
/* Líneas finas tipo curva de nivel (arriba a la derecha y abajo a la izquierda) */
.in-solucion-int::before,
.in-solucion-int::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 220px;
    background: repeating-radial-gradient(ellipse at 100% 0%, transparent 0 14px, rgba(96, 165, 250, 0.22) 14px 15px);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 45%, transparent 100%);
    pointer-events: none;
}
.in-solucion-int::before { top: -3.5rem; right: -6rem; }
.in-solucion-int::after { bottom: -4rem; left: -6rem; transform: rotate(180deg); }
.in-solucion-int { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.in-solucion-cabeza { text-align: center; max-width: 900px; margin: 0 auto 3rem; }
.in-sol-pastilla {
    position: relative;
    display: inline-flex;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #e3f0ff, #cfe4ff);
    color: #0b4fa3;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
/* Destellos a los lados de la pastilla */
.in-sol-pastilla::before,
.in-sol-pastilla::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    background:
        linear-gradient(#38bdf8, #38bdf8) center / 12px 2.5px no-repeat,
        linear-gradient(45deg, transparent 46%, #38bdf8 46% 54%, transparent 54%) 0 0 / 10px 10px no-repeat,
        linear-gradient(-45deg, transparent 46%, #38bdf8 46% 54%, transparent 54%) 0 100% / 10px 10px no-repeat;
    border-radius: 2px;
}
.in-sol-pastilla::before { right: calc(100% + 12px); }
.in-sol-pastilla::after { left: calc(100% + 12px); transform: translateY(-50%) scaleX(-1); }
.in-solucion-cabeza h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.9rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    color: #0b1b3a;
    margin: 1.3rem 0 1.4rem;
}
.in-solucion-cabeza h2 span {
    position: relative;
    font-style: italic;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.08em;
}
.in-solucion-cabeza h2 span::after {
    content: "";
    position: absolute;
    left: 4%;
    right: -2%;
    bottom: -0.28em;
    height: 0.35em;
    border-bottom: 3px solid #38bdf8;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.in-solucion-cabeza p { font-size: 1.05rem; line-height: 1.65; color: #475569; margin: 0; }

.in-sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.in-sol-tarjeta {
    position: relative;
    overflow: hidden;
    padding: 2rem 2rem 2.2rem;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.9));
    border: 1px solid #e3ecfa;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.1);
}
/* Esquina superior derecha pintada con dos olas irregulares (fijas) */
.in-sol-tarjeta::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 240px;
    height: 150px;
    background: no-repeat top right / 100% 100%;
    pointer-events: none;
}
.in-sol-tarjeta--azul::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 150'%3E%3Cpath d='M58 0C78 22 96 34 122 38 152 43 166 60 184 80 202 100 220 108 240 112V0Z' fill='rgba%28147%2C197%2C253%2C0.45%29'/%3E%3Cpath d='M128 0C140 14 152 22 170 25 192 29 202 42 214 54 224 64 232 68 240 69V0Z' fill='rgba%2896%2C165%2C250%2C0.7%29'/%3E%3C/svg%3E"); }
.in-sol-tarjeta--cian::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 150'%3E%3Cpath d='M58 0C78 22 96 34 122 38 152 43 166 60 184 80 202 100 220 108 240 112V0Z' fill='rgba%28165%2C243%2C252%2C0.55%29'/%3E%3Cpath d='M128 0C140 14 152 22 170 25 192 29 202 42 214 54 224 64 232 68 240 69V0Z' fill='rgba%2834%2C211%2C238%2C0.7%29'/%3E%3C/svg%3E"); }
.in-sol-ico {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}
.in-sol-ico svg { width: 34px; height: 34px; }
.in-sol-tarjeta--azul .in-sol-ico { color: #1d4ed8; background: linear-gradient(145deg, #eaf2ff, #c9ddff); }
.in-sol-tarjeta--cian .in-sol-ico { color: #1e40af; background: linear-gradient(145deg, #e0fbff, #a5ecfb); }
.in-sol-tarjeta h3 {
    position: relative;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0b1b3a;
    margin: 1.4rem 0 0.75rem;
}
.in-sol-barra { display: block; width: 52px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #22d3ee, #38bdf8); margin-bottom: 1rem; }
.in-sol-tarjeta p { position: relative; font-size: 1rem; line-height: 1.6; color: #475569; margin: 0; }

/* Modo oscuro */
:root.dark .in-solucion { background: #04101f; }
:root.dark .in-solucion::before { background: linear-gradient(120deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0)); }
:root.dark .in-solucion::after { background: linear-gradient(300deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0)); }
:root.dark .in-solucion-int::before,
:root.dark .in-solucion-int::after { background: repeating-radial-gradient(ellipse at 100% 0%, transparent 0 14px, rgba(125, 211, 252, 0.14) 14px 15px); }
:root.dark .in-sol-pastilla { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; box-shadow: none; }
:root.dark .in-solucion-cabeza h2,
:root.dark .in-sol-tarjeta h3 { color: #ffffff; }
:root.dark .in-solucion-cabeza h2 span { background: linear-gradient(90deg, #38bdf8, #67e8f9); -webkit-background-clip: text; background-clip: text; }
:root.dark .in-solucion-cabeza p,
:root.dark .in-sol-tarjeta p { color: #cbd5e1; }
:root.dark .in-sol-tarjeta {
    background: linear-gradient(160deg, rgba(14, 33, 62, 0.88), rgba(6, 18, 38, 0.84));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
:root.dark .in-sol-tarjeta::before { opacity: 0.4; }
:root.dark .in-sol-ico { box-shadow: none; }
:root.dark .in-sol-tarjeta--azul .in-sol-ico { color: #7dd3fc; background: rgba(56, 189, 248, 0.14); }
:root.dark .in-sol-tarjeta--cian .in-sol-ico { color: #67e8f9; background: rgba(34, 211, 238, 0.14); }

@media (max-width: 1024px) {
    .in-sol-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .in-solucion { padding: 3.5rem 0 4rem; }
    .in-solucion-int { padding: 0 1rem; }
    .in-solucion-cabeza h2 br { display: none; }
    .in-sol-pastilla::before, .in-sol-pastilla::after { display: none; }
}

/* ── "Flujo simple": fondo cálido, cajas → ruta punteada → avión, y 3 tarjetas con dibujo ── */
/* Al final se difumina hacia el color de "Herramientas inteligentes" para que no se vea el corte */
.in-flujo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    z-index: 0;
    background: linear-gradient(180deg, rgba(243, 247, 255, 0) 0%, #f3f7ff 100%);
    pointer-events: none;
}
:root.dark .in-flujo::after { background: linear-gradient(180deg, rgba(4, 16, 31, 0) 0%, #04101f 100%); }
.in-flujo {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 6rem;
    background:
        radial-gradient(70% 40% at 15% 105%, rgba(255, 255, 255, 0.9), transparent 70%),
        radial-gradient(60% 35% at 90% 110%, rgba(250, 235, 215, 0.6), transparent 70%),
        #f7f7f9;
}
.in-flujo-cabeza { position: relative; text-align: center; padding: 3.6rem 0 2.4rem; }
@media (max-width: 1180px) { .in-flujo-cabeza { padding: 0.5rem 0 0.5rem; } }
.in-fd-globo { fill: #e4e8ef; opacity: 0.7; }
.in-fd-continente { fill: #d3d9e3; opacity: 0.8; }
.in-fd-pin { fill: #aab4c3; }
.in-fd-pin-hueco { fill: #e4e8ef; }
.in-fd-sombra { fill: #f1e4d0; opacity: 0.7; }
.in-fd-caja-tapa { fill: #f6e4c2; }
.in-fd-caja-izq { fill: #ecd3a6; }
.in-fd-caja-der { fill: #f2dcb5; }
.in-fd-etiqueta { fill: #ffffff; opacity: 0.75; }
.in-fd-ruta { fill: none; stroke: #f1b27c; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 11; }
.in-fd-punto { fill: #f6c393; }
.in-fd-destello { fill: none; stroke: #f0b04a; stroke-width: 3.5; stroke-linecap: round; }
.in-fd-avion path { fill: #eef1f5; stroke: #c3cbd7; stroke-width: 2; stroke-linejoin: round; }
.in-flujo-pastilla {
    position: relative;
    display: inline-flex;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: #fbe6c8;
    color: #0b1b3a;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.in-flujo-cabeza h2 {
    position: relative;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0b1b3a;
    margin: 1rem 0 0;
}
.in-flujo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.in-flujo-tarjeta {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    padding: 2rem 2rem 2.2rem;
    box-sizing: border-box;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #ececf1;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}
/* Esquina inferior derecha color durazno */
.in-flujo-tarjeta::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 240px;
    height: 130px;
    border-radius: 100% 0 0 0;
    background: linear-gradient(200deg, rgba(252, 228, 196, 0), rgba(252, 228, 196, 0.6));
    pointer-events: none;
}
.in-flujo-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #1f3d68;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}
.in-flujo-dibujo {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    width: 104px;
    height: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f3d68;
}
/* Mancha durazno detrás del dibujo */
.in-flujo-dibujo::before {
    content: "";
    position: absolute;
    right: -6px;
    top: 8px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fdeedd;
}
.in-flujo-dibujo svg { position: relative; width: 84px; height: 84px; }
.in-flujo-tarjeta h3 {
    position: relative;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0b1b3a;
    margin: 1.5rem 0 0.5rem;
    padding-right: 1rem;
}
.in-flujo-tarjeta p { position: relative; z-index: 1; font-size: 1rem; color: #334155; margin: 0; }

/* Modo oscuro */
:root.dark .in-flujo { background: radial-gradient(60% 35% at 90% 110%, rgba(56, 189, 248, 0.1), transparent 70%), #04101f; }
:root.dark .in-fd-globo { fill: #0e2442; opacity: 1; }
:root.dark .in-fd-continente { fill: #16335a; }
:root.dark .in-fd-pin { fill: #3b5f8c; }
:root.dark .in-fd-pin-hueco { fill: #0e2442; }
:root.dark .in-fd-sombra { opacity: 0.12; }
:root.dark .in-fd-avion path { fill: #1c3556; stroke: #3b5f8c; }
:root.dark .in-flujo-pastilla { background: rgba(251, 191, 120, 0.18); color: #fcd9a8; }
:root.dark .in-flujo-cabeza h2,
:root.dark .in-flujo-tarjeta h3 { color: #ffffff; }
:root.dark .in-flujo-tarjeta {
    background: linear-gradient(160deg, rgba(14, 33, 62, 0.88), rgba(6, 18, 38, 0.84));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
:root.dark .in-flujo-tarjeta::after { background: linear-gradient(200deg, rgba(251, 191, 120, 0), rgba(251, 191, 120, 0.12)); }
:root.dark .in-flujo-tarjeta p { color: #cbd5e1; }
:root.dark .in-flujo-num { background: linear-gradient(145deg, #22d3ee, #3b82f6); color: #0b1b30; }
:root.dark .in-flujo-dibujo { color: #7dd3fc; }
:root.dark .in-flujo-dibujo::before { background: rgba(251, 191, 120, 0.12); }

@media (max-width: 1180px) {
}
@media (max-width: 1024px) {
    .in-flujo-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .in-flujo { padding: 3.5rem 0 4rem; }
    .in-flujo-dibujo { width: 76px; height: 76px; top: 1.2rem; right: 1.2rem; }
    .in-flujo-dibujo::before { width: 68px; height: 68px; }
    .in-flujo-dibujo svg { width: 60px; height: 60px; }
}

/* ── "La ruta de 10 etapas": dos filas de 5, burbuja con número e ícono, ruta punteada en serpiente ── */
.in-ruta { position: relative; margin-top: 2.5rem; padding: 1rem 0 0; }
.in-ruta-trazo { fill: none; stroke: #93c5fd; stroke-width: 2; stroke-dasharray: 6 7; stroke-linecap: round; }
.in-ruta-cabeza { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 2.6rem; }
.in-ruta-pastilla {
    display: inline-flex;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: #fbe6c8;
    color: #0b1b3a;
    font-size: 0.85rem;
    font-weight: 700;
}
.in-ruta-cabeza h3 {
    position: relative;
    display: inline-block;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0b1b3a;
    margin: 0.7rem 0 0;
}
/* Destello amarillo a la izquierda del título */
.in-ruta-destello {
    position: absolute;
    left: -2.6rem;
    top: -0.9rem;
    width: 30px;
    height: 30px;
    background:
        linear-gradient(#f0b04a, #f0b04a) 4px 12px / 14px 3.5px no-repeat,
        linear-gradient(60deg, transparent 44%, #f0b04a 44% 56%, transparent 56%) 14px 0 / 12px 14px no-repeat,
        linear-gradient(15deg, transparent 44%, #f0b04a 44% 56%, transparent 56%) 6px 0 / 6px 12px no-repeat;
}

.in-ruta-mapa { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.in-ruta-serpiente { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.in-ruta-serpiente path { fill: none; stroke: #93c5fd; stroke-width: 2; stroke-dasharray: 6 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.in-etapas {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 2.6rem;
    row-gap: 4.2rem;
}
.in-etapa {
    position: relative;
    margin-top: 48px;
    padding: 58px 1rem 1.4rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #eceff5;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    text-align: center;
}
/* Conector punteado con puntos hacia la siguiente etapa de la misma fila */
.in-etapa:not(:nth-child(5n))::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: 2.6rem;
    height: 8px;
    transform: translateY(-50%);
    background:
        radial-gradient(circle, #60a5fa 3px, transparent 3.5px) 0 50% / 8px 8px no-repeat,
        radial-gradient(circle, #60a5fa 3px, transparent 3.5px) 100% 50% / 8px 8px no-repeat,
        repeating-linear-gradient(90deg, #93c5fd 0 5px, transparent 5px 10px) 50% 50% / calc(100% - 16px) 2px no-repeat;
}
.in-etapa-burbuja {
    position: absolute;
    top: -48px;
    left: 50%;
    width: 96px;
    height: 96px;
    margin-left: -48px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f3d68;
}
.in-etapa-burbuja::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #fdeedd;
}
.in-etapa-burbuja svg { position: relative; width: 46px; height: 46px; }
.in-etapa-num {
    position: absolute;
    top: 2px;
    left: -10px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1f3d68;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.in-etapa h4 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1.15rem; font-weight: 800; color: #0b1b3a; margin: 0 0 0.45rem; }
.in-etapa p { font-size: 0.88rem; line-height: 1.45; color: #334155; margin: 0; }

.in-ruta-pie {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1220px;
    margin: 2.8rem auto 0;
    box-sizing: border-box;
    padding: 1.1rem 1.4rem 1.1rem 2rem;
    border-radius: 18px;
    background: #eaf2ff;
}
.in-ruta-pie-ico { width: 34px; height: 34px; color: #1f3d68; flex-shrink: 0; }
.in-ruta-pie-ico svg { width: 100%; height: 100%; }
.in-ruta-pie p { flex: 1; margin: 0; font-size: 0.98rem; color: #1e293b; }
.in-ruta-pie .in-boton { flex-shrink: 0; height: 52px; padding: 0 1.8rem; border-radius: 14px; }

/* Modo oscuro */
:root.dark .in-ruta-pastilla { background: rgba(251, 191, 120, 0.18); color: #fcd9a8; }
:root.dark .in-ruta-cabeza h3,
:root.dark .in-etapa h4 { color: #ffffff; }
:root.dark .in-etapa {
    background: linear-gradient(160deg, rgba(14, 33, 62, 0.9), rgba(6, 18, 38, 0.86));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
:root.dark .in-etapa p { color: #cbd5e1; }
:root.dark .in-etapa-burbuja { background: #0b1d36; color: #7dd3fc; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.1); }
:root.dark .in-etapa-burbuja::before { background: rgba(251, 191, 120, 0.12); }
:root.dark .in-etapa-num { background: linear-gradient(145deg, #22d3ee, #3b82f6); color: #0b1b30; }
:root.dark .in-ruta-pie { background: rgba(14, 36, 62, 0.85); border: 1px solid rgba(56, 189, 248, 0.25); }
:root.dark .in-ruta-pie-ico { color: #7dd3fc; }
:root.dark .in-ruta-pie p { color: #e2e8f0; }

@media (max-width: 1180px) {
    .in-ruta-serpiente, .in-ruta-destello { display: none; }
    .in-etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; column-gap: 1.2rem; }
    .in-etapa:not(:nth-child(5n))::after { display: none; }
}
@media (max-width: 640px) {
    .in-etapas { grid-template-columns: 1fr; }
    .in-ruta-pie { flex-direction: column; align-items: flex-start; padding: 1.2rem; }
    .in-ruta-pie .in-boton { width: 100%; }
}

/* ── Funciones (#funciones): contenedores y avión de fondo, tarjetas pastel con ícono, flecha y franja de beneficios ── */
.in-funciones {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5rem;
    background:
        radial-gradient(50% 24% at 50% 72%, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0) 100%),
        linear-gradient(180deg, #f3f7ff 0%, #ecf2ff 50%, #f3f7ff 100%);
}
/* Contenedores grandes de fondo, a la izquierda y detrás del contenido */
.in-func-contenedores { position: absolute; left: -70px; top: 40px; width: 560px; height: auto; opacity: 0.95; pointer-events: none; filter: drop-shadow(0 24px 30px rgba(15, 41, 66, 0.18)); }
.in-funciones-int { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.in-funciones-cabeza { text-align: center; max-width: 820px; margin: 0 auto 2.4rem; display: flex; flex-direction: column; align-items: center; }
.in-func-pastilla {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #e3eeff;
    border: 1px solid #c9dcfb;
    color: #0b1b3a;
    font-size: 0.9rem;
    font-weight: 600;
}
.in-func-pastilla svg { width: 18px; height: 18px; color: #2563eb; }
.in-funciones-cabeza h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #0b1b3a;
    margin: 1.1rem 0 0.9rem;
}
.in-funciones-cabeza h2 span { color: #2563eb; }
.in-funciones-cabeza p { font-size: 1rem; color: #334155; margin: 0; }
.in-func-raya { width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #22d3ee, #3b82f6); margin-top: 1.1rem; }

.in-func-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.in-func {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.1rem 1.3rem 1.2rem;
    border-radius: 18px;
    border: 1px solid transparent;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(15, 41, 66, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.in-func:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 41, 66, 0.12); }
/* Tarjetas neutras: todas iguales, sin colores pastel */
.in-func { background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.94)); border-color: #e3e9f3; }
.in-func-ico { flex-shrink: 0; width: 72px; height: 72px; display: inline-flex; align-items: center; justify-content: center; }
.in-func-ico svg { width: 68px; height: 68px; filter: drop-shadow(0 6px 8px rgba(15, 41, 66, 0.15)); }
.in-func-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.in-func-texto strong { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1.08rem; font-weight: 800; line-height: 1.25; color: #0b1b3a; }
.in-func-texto > span { font-size: 0.86rem; line-height: 1.45; color: #334155; }
.in-func-flecha {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    color: #0b1b3a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.in-func-flecha svg { width: 16px; height: 16px; }
.in-func:hover .in-func-flecha { color: #2563eb; border-color: #93c5fd; }

.in-func-beneficios {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 940px;
    margin: 2.4rem auto 0;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #dbe6f7;
    box-shadow: 0 10px 26px rgba(15, 41, 66, 0.06);
}
.in-func-beneficios li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.2rem 1.4rem;
    font-size: 0.92rem;
    white-space: nowrap;
    font-weight: 600;
    color: #0b1b3a;
}
.in-func-beneficios li + li { border-left: 1px solid #d5e0f0; }
.in-func-beneficios svg { width: 22px; height: 22px; color: #2563eb; }

/* Modo oscuro */
:root.dark .in-funciones { background: radial-gradient(55% 24% at 50% 72%, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0) 100%), #04101f; }
:root.dark .in-func-contenedores { opacity: 0.3; }
:root.dark .in-func-pastilla { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.3); color: #e2e8f0; }
:root.dark .in-func-pastilla svg { color: #7dd3fc; }
:root.dark .in-funciones-cabeza h2,
:root.dark .in-func-texto strong,
:root.dark .in-func-beneficios li { color: #ffffff; }
:root.dark .in-funciones-cabeza h2 span { color: #38bdf8; }
:root.dark .in-funciones-cabeza p,
:root.dark .in-func-texto > span { color: #cbd5e1; }
:root.dark .in-func { background: linear-gradient(160deg, rgba(14, 33, 62, 0.9), rgba(6, 18, 38, 0.86)); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
:root.dark .in-func-flecha { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); color: #e2e8f0; }
:root.dark .in-func-beneficios { background: rgba(14, 33, 62, 0.85); border-color: rgba(56, 189, 248, 0.2); box-shadow: none; }
:root.dark .in-func-beneficios li + li { border-left-color: rgba(255, 255, 255, 0.15); }
:root.dark .in-func-beneficios svg { color: #38bdf8; }

@media (max-width: 1180px) {
    .in-func-contenedores { display: none; }
    .in-func-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .in-funciones { padding: 3.5rem 0 4rem; }
    .in-funciones-int { padding: 0 1rem; }
    .in-funciones-cabeza h2 br { display: none; }
    .in-func-grid { grid-template-columns: 1fr; }
    .in-func-beneficios { border-radius: 18px; }
    .in-func-beneficios li { width: 50%; box-sizing: border-box; padding: 0.4rem 0.6rem; }
    .in-func-beneficios li + li { border-left: 0; }
}

/* ── "Para quién" (#para-quien): fondo con olas azules, tarjetas blancas con onda arriba a la derecha ── */
.in-paraquien {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 7rem;
    background: linear-gradient(180deg, #f3f7ff 0%, #ecf2ff 50%, #f3f7ff 100%);
}
/* Olas: suave arriba a la izquierda y azules abajo (se desvanecen antes de los bordes) */
.in-paraquien::before {
    content: "";
    -webkit-mask-image: linear-gradient(0deg, #000 35%, transparent 95%);
    mask-image: linear-gradient(0deg, #000 35%, transparent 95%);
    position: absolute;
    top: -180px;
    left: -10%;
    width: 50%;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(147, 197, 253, 0.4), rgba(191, 219, 254, 0));
    transform: rotate(-8deg);
    pointer-events: none;
}
.in-paraquien::after {
    content: "";
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 85%);
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -120px;
    height: 200px;
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    background:
        radial-gradient(60% 90% at 25% 100%, rgba(37, 99, 235, 0.55), transparent 70%),
        radial-gradient(60% 90% at 80% 100%, rgba(59, 130, 246, 0.45), transparent 70%),
        linear-gradient(180deg, rgba(191, 219, 254, 0.5), rgba(96, 165, 250, 0.6));
    pointer-events: none;
}
.in-paraquien-int { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.in-paraquien-cabeza { text-align: center; max-width: 860px; margin: 0 auto 2.6rem; display: flex; flex-direction: column; align-items: center; }
.in-pq-pastilla {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #dceaff;
    color: #0b3a7a;
    font-size: 0.92rem;
    font-weight: 700;
}
.in-pq-pastilla svg { width: 20px; height: 20px; }
.in-paraquien-cabeza h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    color: #0b1b3a;
    margin: 1rem 0 1.4rem;
}
.in-paraquien-cabeza h2 span { position: relative; color: #2563eb; }
.in-paraquien-cabeza h2 span::after {
    content: "";
    position: absolute;
    left: 14%;
    width: 40%;
    bottom: -0.3em;
    height: 0.32em;
    border-bottom: 3.5px solid #2563eb;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.in-paraquien-cabeza p { font-size: 1rem; color: #334155; margin: 0; }

.in-seg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 1.3rem; }
.in-seg {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 150px;
    box-sizing: border-box;
    padding: 1.4rem 1.2rem 1.4rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(246, 249, 255, 0.95));
    border: 1px solid #e2eaf7;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.in-seg:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(37, 99, 235, 0.14); }
/* Onda azul en la esquina superior derecha */
.in-seg::before {
    content: "";
    position: absolute;
    top: -46px;
    right: -50px;
    width: 190px;
    height: 100px;
    border-radius: 0 0 0 100%;
    background: linear-gradient(200deg, rgba(96, 165, 250, 0.55), rgba(191, 219, 254, 0));
    transform: rotate(10deg);
    pointer-events: none;
}
.in-seg-ico {
    flex-shrink: 0;
    width: 72px;
    display: inline-flex;
    justify-content: center;
    padding-right: 1.1rem;
    border-right: 1.5px solid #c9d8ee;
    color: #13315c;
}
.in-seg-ico svg { width: 62px; height: 62px; }
.in-seg-texto { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.in-seg-texto strong { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1.12rem; font-weight: 800; color: #0b1b3a; }
.in-seg-texto > span { font-size: 0.9rem; line-height: 1.45; color: #334155; }
.in-seg-flecha {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dceaff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.in-seg-flecha svg { width: 17px; height: 17px; }

/* Modo oscuro */
:root.dark .in-paraquien { background: #04101f; }
:root.dark .in-paraquien::before { background: linear-gradient(120deg, rgba(56, 189, 248, 0.14), transparent); }
:root.dark .in-paraquien::after {
    background:
        radial-gradient(60% 90% at 25% 100%, rgba(37, 99, 235, 0.4), transparent 70%),
        radial-gradient(60% 90% at 80% 100%, rgba(56, 189, 248, 0.3), transparent 70%);
}
:root.dark .in-pq-pastilla { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
:root.dark .in-paraquien-cabeza h2,
:root.dark .in-seg-texto strong { color: #ffffff; }
:root.dark .in-paraquien-cabeza h2 span { color: #38bdf8; }
:root.dark .in-paraquien-cabeza h2 span::after { border-bottom-color: #38bdf8; }
:root.dark .in-paraquien-cabeza p,
:root.dark .in-seg-texto > span { color: #cbd5e1; }
:root.dark .in-seg {
    background: linear-gradient(160deg, rgba(14, 33, 62, 0.9), rgba(6, 18, 38, 0.86));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
:root.dark .in-seg::before { background: linear-gradient(200deg, rgba(56, 189, 248, 0.3), transparent); }
:root.dark .in-seg-ico { color: #7dd3fc; border-right-color: rgba(255, 255, 255, 0.15); }
:root.dark .in-seg-flecha { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }

@media (max-width: 1180px) {
    .in-seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .in-paraquien { padding: 3.5rem 0 5rem; }
    .in-paraquien-int { padding: 0 1rem; }
    .in-paraquien-cabeza h2 br { display: none; }
    .in-seg-grid { grid-template-columns: 1fr; }
    .in-seg-ico { width: 56px; padding-right: 0.9rem; }
    .in-seg-ico svg { width: 46px; height: 46px; }
}

/* ── Planes (#planes): Gratis y Agencia en vidrio claro, Pro en navy destacado ── */
.in-planes {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 6rem;
    background:
        radial-gradient(55% 24% at 50% 72%, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0) 100%),
        linear-gradient(180deg, #f3f7ff 0%, #ecf2ff 50%, #f3f7ff 100%);
}
.in-planes::before {
    content: "";
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, #000 30%, transparent 85%);
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -120px;
    height: 180px;
    border-radius: 50% 50% 0 0 / 80% 80% 0 0;
    background: linear-gradient(180deg, rgba(147, 197, 253, 0.4), rgba(59, 130, 246, 0.45));
    pointer-events: none;
}
.in-planes-int { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.in-planes-cabeza { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 2.6rem; }
.in-pl-pastilla {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #dceaff;
    color: #0b3a7a;
    font-size: 0.92rem;
    font-weight: 700;
}
.in-pl-pastilla svg { width: 18px; height: 18px; color: #2563eb; }
.in-planes-cabeza h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0b1b3a;
    margin: 1rem 0 0.9rem;
}
.in-planes-cabeza h2 span { color: #2563eb; }
.in-pl-raya { width: 70px; height: 5px; border-radius: 5px; background: #2563eb; }

.in-planes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: stretch; }
.in-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.6rem 1.3rem 1.4rem;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 170px 70px at 100% 0%, rgba(147, 197, 253, 0.45), rgba(147, 197, 253, 0) 100%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.94));
    border: 1px solid #dfe8f6;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
    color: #0b1b3a;
}
.in-plan-cabeza { display: flex; align-items: flex-start; gap: 0.9rem; }
.in-plan-ico {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #e2edff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.in-plan-ico svg { width: 26px; height: 26px; }
.in-plan-cabeza h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1.45rem; font-weight: 800; margin: 0.1rem 0 0.25rem; }
.in-plan-cabeza p { font-size: 0.86rem; color: #475569; margin: 0; }
.in-plan-precio {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    background: #e6efff;
}
.in-plan-precio strong { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 2rem; font-weight: 800; }
.in-plan-precio small { font-size: 0.85rem; color: #475569; }
.in-plan-precio--aviso { align-items: center; gap: 0.8rem; min-height: 64px; box-sizing: border-box; }
.in-plan-precio--aviso > svg { width: 26px; height: 26px; color: #1d4ed8; flex-shrink: 0; }
.in-plan-precio--aviso div { display: flex; flex-direction: column; }
.in-plan-precio--aviso strong { font-size: 1.1rem; }
.in-plan-precio--aviso small { font-size: 0.78rem; }
.in-plan-lista { list-style: none; margin: 0; padding: 0; flex: 1; }
.in-plan-lista li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.58rem 0.3rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #e3eaf5;
}
.in-plan-lista li:last-child { border-bottom: 0; }
.in-plan-lista li > svg { width: 20px; height: 20px; color: #334155; flex-shrink: 0; }
.in-plan-lista li > span:not([class]) { flex: 1; }
.in-plan-lista b { font-weight: 800; }
.in-plan-si {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.in-plan-si svg { width: 14px; height: 14px; }
.in-plan-no { width: 22px; text-align: center; font-weight: 700; color: #334155; }
.in-plan-boton {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 12px;
    border: 1.5px solid #bcd3f5;
    background: #ffffff;
    color: #0b1b3a;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.in-plan-boton:hover { border-color: #2563eb; color: #2563eb; }
.in-plan-boton--lleno { border: 0; color: #0b1b30; background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 50%, #3b82f6 100%); }
.in-plan-boton--lleno:hover { color: #0b1b30; filter: brightness(0.95); }

/* Pro: tarjeta navy un poco más alta */
.in-plan--pro {
    margin: -0.8rem 0;
    background: linear-gradient(170deg, #12305a 0%, #0b2346 100%);
    border: 1.5px solid #2f6fd6;
    box-shadow: 0 22px 48px rgba(11, 35, 70, 0.35);
    color: #ffffff;
}
.in-plan--pro .in-plan-ico { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.in-plan--pro .in-plan-cabeza p { color: #cbd5e1; }
.in-plan--pro .in-plan-precio { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.in-plan--pro .in-plan-precio > svg { color: #ffffff; }
.in-plan--pro .in-plan-precio small { color: #cbd5e1; }
.in-plan--pro .in-plan-lista li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.in-plan--pro .in-plan-lista li > svg { color: #cbd5e1; }
.in-plan--pro .in-plan-si { background: #2f80ed; color: #ffffff; }
.in-plan-insignia {
    position: absolute;
    top: 1.3rem;
    right: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: #2f80ed;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.in-plan-insignia svg { width: 13px; height: 13px; }

/* Modo oscuro */
:root.dark .in-planes { background: radial-gradient(55% 24% at 50% 72%, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0) 100%), #04101f; }
:root.dark .in-planes::before { background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(37, 99, 235, 0.25)); }
:root.dark .in-pl-pastilla { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
:root.dark .in-pl-pastilla svg { color: #7dd3fc; }
:root.dark .in-planes-cabeza h2 { color: #ffffff; }
:root.dark .in-planes-cabeza h2 span { color: #38bdf8; }
:root.dark .in-pl-raya { background: #38bdf8; }
:root.dark .in-plan:not(.in-plan--pro) {
    background: radial-gradient(ellipse 170px 70px at 100% 0%, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0) 100%), linear-gradient(160deg, rgba(14, 33, 62, 0.9), rgba(6, 18, 38, 0.86));
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    color: #ffffff;
}
:root.dark .in-plan:not(.in-plan--pro) .in-plan-ico { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
:root.dark .in-plan:not(.in-plan--pro) :is(.in-plan-cabeza p, .in-plan-precio small) { color: #cbd5e1; }
:root.dark .in-plan:not(.in-plan--pro) .in-plan-precio { background: rgba(255, 255, 255, 0.06); }
:root.dark .in-plan:not(.in-plan--pro) .in-plan-precio > svg { color: #7dd3fc; }
:root.dark .in-plan:not(.in-plan--pro) .in-plan-lista li { border-bottom-color: rgba(255, 255, 255, 0.1); }
:root.dark .in-plan:not(.in-plan--pro) .in-plan-lista li > svg,
:root.dark .in-plan:not(.in-plan--pro) .in-plan-no { color: #cbd5e1; }
:root.dark .in-plan:not(.in-plan--pro) .in-plan-si { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
:root.dark .in-plan:not(.in-plan--pro) .in-plan-boton { background: rgba(6, 18, 38, 0.55); border-color: rgba(148, 163, 184, 0.38); color: #ffffff; }
:root.dark .in-plan--pro { border-color: #38bdf8; }

@media (max-width: 960px) {
    .in-planes-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .in-plan--pro { margin: 0; }
}
@media (max-width: 640px) {
    .in-planes { padding: 3.5rem 0 5rem; }
    .in-planes-int { padding: 0 1rem; }
}

/* ── "Hecho en Tacna": 5 tarjetas con ícono, texto e ilustración abajo ── */
.in-tacna {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 5.5rem;
    background:
        radial-gradient(55% 24% at 50% 72%, rgba(96, 165, 250, 0.18), rgba(96, 165, 250, 0) 100%),
        linear-gradient(180deg, #f3f7ff 0%, #ecf2ff 55%, #ecf3ff 100%);
}
.in-tacna-int { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.in-tacna-cabeza { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 960px; margin: 0 auto 2.4rem; }
.in-tc-pastilla {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: #dceaff;
    color: #0b3a7a;
    font-size: 0.92rem;
    font-weight: 600;
}
.in-tc-pastilla svg { width: 19px; height: 19px; color: #2563eb; }
.in-tacna-cabeza h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0b1b3a;
    margin: 1rem 0 1.3rem;
}
.in-tacna-cabeza h2 span { position: relative; color: #2563eb; }
.in-tacna-cabeza h2 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.25em;
    height: 0.3em;
    border-bottom: 3.5px solid #2563eb;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.in-tacna-cabeza p { font-size: 1rem; line-height: 1.6; color: #334155; margin: 0; }

.in-tac-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.in-tac {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.2rem 0;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 150px 60px at 100% 0%, rgba(147, 197, 253, 0.5), rgba(147, 197, 253, 0) 100%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 255, 0.94));
    border: 1px solid #dbe6f7;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.1);
}
.in-tac-cabeza { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }
.in-tac-ico {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #dceaff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.in-tac-ico svg { width: 24px; height: 24px; }
.in-tac h3 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: #0b1b3a; margin: 0; }
.in-tac p { font-size: 0.9rem; line-height: 1.45; color: #1e293b; margin: 0 0 0.8rem; }
.in-tac-dibujo { display: block; width: 100%; height: auto; margin: auto 0 0.9rem; }

.in-tac-nota {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: #dceaff;
    font-size: 0.92rem;
    color: #0b1b3a;
}
.in-tac-nota svg { width: 22px; height: 22px; color: #2563eb; }

:root.dark .in-tacna { background: radial-gradient(55% 24% at 50% 72%, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0) 100%), #04101f; }
:root.dark .in-tc-pastilla, :root.dark .in-tac-nota { background: rgba(56, 189, 248, 0.14); color: #e2e8f0; }
:root.dark .in-tc-pastilla svg, :root.dark .in-tac-nota svg { color: #7dd3fc; }
:root.dark .in-tacna-cabeza h2, :root.dark .in-tac h3 { color: #ffffff; }
:root.dark .in-tacna-cabeza h2 span { color: #38bdf8; }
:root.dark .in-tacna-cabeza h2 span::after { border-bottom-color: #38bdf8; }
:root.dark .in-tacna-cabeza p, :root.dark .in-tac p { color: #cbd5e1; }
:root.dark .in-tac { background: radial-gradient(ellipse 150px 60px at 100% 0%, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0) 100%), linear-gradient(160deg, rgba(14, 33, 62, 0.9), rgba(6, 18, 38, 0.86)); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
:root.dark .in-tac-ico { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }

@media (max-width: 1180px) {
    .in-tac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .in-tac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .in-tacna-int { padding: 0 1rem; }
    .in-tac-grid { grid-template-columns: 1fr; }
    .in-tac-nota { border-radius: 16px; }
}

/* ── Pie de página en el mismo azul oscuro (sin bloque blanco al final) ── */
.ini footer {
    background: linear-gradient(180deg, #071a33 0%, #04101f 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}
.ini footer :is(.text-primary, .text-on-surface) { color: #ffffff !important; }
.ini footer :is(.text-on-surface-variant, .text-on-surface-variant\/90) { color: #b6c2d1 !important; }
.ini footer a:hover { color: #67e8f9 !important; }
.ini footer .text-secondary { color: #38bdf8 !important; }
.ini footer [class*="bg-surface-container"] { background: rgba(255, 255, 255, 0.06) !important; border: 1px solid rgba(255, 255, 255, 0.08); }

/* ── Recorrido de la carga entre "Flujo simple" y "La ruta de 10 etapas" ── */
.in-recorrido { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.in-recorrido-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Línea punteada irregular (los tramos y huecos no son todos iguales) */
.in-recorrido-linea {
    fill: none;
    stroke: #f0a35e;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-dasharray: 18 12 9 12 24 13 11 11 15 14;
    opacity: 0.9;
}
.in-rec { position: absolute; z-index: 2; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 14px rgba(15, 41, 66, 0.18)); }
.in-rec--caja { width: 120px; height: auto; }
.in-rec--barco { width: 124px; height: auto; }
.in-rec--avion {
    width: 165px;
    height: auto;
    transform: translate(-50%, -50%) rotate(var(--giro, -8deg));
    animation: in-planear 4.5s ease-in-out infinite;
}
/* Vaivén suave del avión para que no se vea rígido */
@keyframes in-planear {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: 6px -7px; rotate: -3deg; }
}
.in-rec--camion { width: 120px; height: auto; }
.in-rec--destino { width: 300px; height: 300px; z-index: 0; filter: drop-shadow(0 18px 30px rgba(15, 41, 66, 0.18)); }
.in-rec--destino svg { width: 100%; height: 100%; }
/* El contenido va por encima de la línea */
.in-flujo-cabeza, .in-flujo-grid, .in-ruta-cabeza, .in-ruta-mapa, .in-ruta-pie { position: relative; z-index: 1; }

/* Destello de tres rayas en la esquina de "pasos" */
.in-flujo-palabra { position: relative; display: inline-block; }
.in-flujo-destello { position: absolute; top: -0.55em; right: -0.75em; width: 0.7em; height: 0.7em; }
.in-flujo-destello path { fill: none; stroke: #f0b04a; stroke-width: 4; stroke-linecap: round; }

:root.dark .in-recorrido-linea { stroke: #fbbf77; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .in-rec--avion { animation: none; } }
:root.dark .in-rec { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); }

/* En pantallas angostas no hay espacio para el recorrido */
@media (max-width: 1180px) {
    .in-recorrido { display: none; }
}

/* ── Manchas de color de los últimos apartados (Segmentos, Precios y Origen):
      óvalos completos dentro de cada apartado (nada los corta) que flotan despacio ── */
.in-paraquien::before, .in-paraquien::after,
.in-planes::before, .in-planes::after,
.in-tacna::before, .in-tacna::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    border-radius: 50%;
    -webkit-mask-image: none;
    mask-image: none;
    transform: rotate(-10deg);
    pointer-events: none;
    animation: in-flotar 18s ease-in-out infinite alternate;
}
.in-paraquien::before { top: 60px; left: 3%; width: 30%; height: 230px; background: linear-gradient(120deg, rgba(147, 197, 253, 0.42), rgba(191, 219, 254, 0.08)); }
.in-paraquien::after { bottom: 70px; right: 4%; width: 32%; height: 220px; background: linear-gradient(300deg, rgba(96, 165, 250, 0.32), rgba(191, 219, 254, 0.06)); animation-duration: 22s; animation-direction: alternate-reverse; }
.in-planes::before { top: 70px; right: 3%; width: 26%; height: 210px; background: linear-gradient(240deg, rgba(103, 232, 249, 0.3), rgba(191, 219, 254, 0.06)); animation-duration: 20s; }
.in-planes::after { bottom: 70px; left: 3%; width: 30%; height: 230px; background: linear-gradient(60deg, rgba(96, 165, 250, 0.32), rgba(191, 219, 254, 0.06)); animation-duration: 24s; animation-direction: alternate-reverse; }
.in-tacna::before { top: 60px; left: 4%; width: 26%; height: 200px; background: linear-gradient(120deg, rgba(147, 197, 253, 0.38), rgba(191, 219, 254, 0.06)); animation-duration: 21s; }
.in-tacna::after { bottom: 70px; right: 4%; width: 30%; height: 220px; background: linear-gradient(300deg, rgba(96, 165, 250, 0.3), rgba(191, 219, 254, 0.06)); animation-direction: alternate-reverse; }
@keyframes in-flotar {
    0% { transform: translate(0, 0) rotate(-10deg) scale(1); }
    50% { transform: translate(36px, -18px) rotate(-6deg) scale(1.06); }
    100% { transform: translate(-28px, 14px) rotate(-13deg) scale(0.96); }
}
:root.dark .in-paraquien::before, :root.dark .in-paraquien::after,
:root.dark .in-planes::before, :root.dark .in-planes::after,
:root.dark .in-tacna::before, :root.dark .in-tacna::after { background: linear-gradient(120deg, rgba(56, 189, 248, 0.14), rgba(56, 189, 248, 0.02)); }
@media (prefers-reduced-motion: reduce) {
    .in-paraquien::before, .in-paraquien::after, .in-planes::before, .in-planes::after, .in-tacna::before, .in-tacna::after { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 1180px) {
    .in-nav { display: none; }
    .in-fuentes-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .in-hero-int { padding: 0 1.25rem; }
    .in-hero-texto { max-width: none; }
}
@media (max-width: 640px) {
    .in-cabecera-int { padding: 0 1rem; height: 64px; gap: 0.6rem; }
    .in-marca img { width: 36px; height: 36px; }
    .in-marca-nombre { font-size: 1.15rem; }
    .in-ingresar { display: none; }
    .in-tema button { width: 32px; height: 32px; }
    .in-hero { padding-top: 90px; }
    .in-rasgos li { padding: 0 0.9rem; min-width: 0; flex: 1 1 30%; }
    .in-rasgos li:first-child { padding-left: 0; }
    .in-fuentes-lista { grid-template-columns: 1fr; }
}
