/* ===================================================================
   IDEAIT — sistema de diseño propio
   Componentes nuevos (prefijo .ide-) construidos sobre la paleta del
   logo: azul marino #003366 y naranja #FFA500. Se carga después de
   marketing.css y no depende de la plantilla original.
=================================================================== */

:root {
    --ide-radio: 16px;
    --ide-radio-sm: 10px;
    --ide-sombra: 0 18px 40px -28px rgba(0, 51, 102, .45);
    --ide-sombra-alta: 0 28px 60px -32px rgba(0, 51, 102, .55);
    --ide-seccion: 90px;
}

/* ── Secciones ───────────────────────────────────────────────── */
.ide-seccion {
    padding: var(--ide-seccion) 0;
    position: relative;
}
.ide-seccion.pt-0 { padding-top: 0; }
.ide-seccion.pb-0 { padding-bottom: 0; }
.ide-seccion--suave { background: var(--brand-navy-soft); }
.ide-seccion--gris { background: #fafbfd; }
.ide-seccion--azul {
    background: var(--brand-navy);
    color: var(--on-navy);
}
.ide-seccion--azul h2,
.ide-seccion--azul h3,
.ide-seccion--azul .ide-titulo { color: #fff; }
.ide-seccion--azul .ide-antetitulo { color: #ffb733; }

@media (max-width: 991px) {
    :root { --ide-seccion: 60px; }
}

/* ── Encabezado de sección ───────────────────────────────────── */
.ide-antetitulo {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--brand-orange-text);
    margin-bottom: 12px;
}
.ide-titulo {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--brand-navy);
    margin: 0 0 18px;
}
.ide-titulo--sm { font-size: clamp(22px, 2.2vw, 30px); }
.ide-entradilla {
    font-size: 18px;
    line-height: 31px;
    color: var(--medium-gray);
    margin: 0;
}
.ide-cab {
    max-width: 780px;
    margin-bottom: 50px;
}
.ide-cab--centro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ── Tarjetas ────────────────────────────────────────────────── */
.ide-rejilla {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ide-rejilla--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.ide-rejilla--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.ide-tarjeta {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: var(--ide-radio);
    padding: 34px 30px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    text-decoration: none;
}
a.ide-tarjeta:hover {
    transform: translateY(-4px);
    box-shadow: var(--ide-sombra-alta);
    border-color: transparent;
}
.ide-tarjeta__icono {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-text);
    font-size: 24px;
    margin-bottom: 22px;
}
.ide-tarjeta h3,
.ide-tarjeta .ide-tarjeta__titulo {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 12px;
    letter-spacing: -.3px;
}
.ide-tarjeta p {
    color: var(--medium-gray);
    margin: 0 0 18px;
    flex-grow: 1;
}
.ide-tarjeta__enlace {
    font-weight: 600;
    color: var(--brand-orange-text);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
a.ide-tarjeta:hover .ide-tarjeta__enlace i { transform: translateX(4px); }
.ide-tarjeta__enlace i { transition: transform .25s ease; }

/* variante sobre fondo azul */
.ide-seccion--azul .ide-tarjeta {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
}
.ide-seccion--azul .ide-tarjeta p { color: var(--on-navy); }
.ide-seccion--azul .ide-tarjeta h3 { color: #fff; }
.ide-seccion--azul .ide-tarjeta__icono {
    background: rgba(255, 165, 0, .18);
    color: #ffb733;
}

/* ── Cifras ──────────────────────────────────────────────────── */
.ide-cifras {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.ide-cifra {
    text-align: center;
    padding: 28px 18px;
    background: #fff;
    border-radius: var(--ide-radio);
    border: 1px solid var(--brand-navy-line);
}
.ide-cifra__valor {
    display: block;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    line-height: 1;
    color: var(--brand-navy);
    letter-spacing: -1px;
    margin-bottom: 10px;
}
.ide-cifra__texto {
    font-size: 15px;
    line-height: 24px;
    color: var(--medium-gray);
    margin: 0;
}
.ide-seccion--azul .ide-cifra {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
}
.ide-seccion--azul .ide-cifra__valor { color: #ffb733; }
.ide-seccion--azul .ide-cifra__texto { color: var(--on-navy); }

/* ── Proceso por pasos ───────────────────────────────────────── */
.ide-pasos {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    counter-reset: paso;
}
.ide-paso {
    position: relative;
    padding: 32px 26px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: var(--ide-radio);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.ide-paso:hover {
    transform: translateY(-6px);
    box-shadow: var(--ide-sombra-alta);
    border-color: var(--brand-orange);
}
.ide-paso::before {
    counter-increment: paso;
    content: counter(paso, decimal-leading-zero);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-text);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 20px;
    transition: transform .3s ease, background .3s ease, color .3s ease;
}
.ide-paso:hover::before {
    background: var(--brand-orange);
    color: var(--brand-navy);
    transform: scale(1.08);
}
/* línea de puntos que une un paso con el siguiente */
.ide-paso::after {
    content: "";
    position: absolute;
    top: 56px;
    left: 100%;
    width: 24px;
    height: 2px;
    background-image: linear-gradient(90deg, var(--brand-navy-line) 0 5px, transparent 5px 10px);
    background-size: 10px 2px;
}
.ide-paso:last-child::after { display: none; }
@media (max-width: 1199px) { .ide-paso::after { display: none; } }

.ide-paso h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 10px;
    letter-spacing: -.3px;
}
.ide-paso p {
    color: var(--medium-gray);
    margin: 0;
    font-size: 16px;
    line-height: 27px;
}

/* Variante sobre el azul marino */
.ide-seccion--azul .ide-paso {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
}
.ide-seccion--azul .ide-paso:hover {
    background: rgba(255, 255, 255, .11);
    border-color: #ffb733;
    box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .8);
}
.ide-seccion--azul .ide-paso h3 { color: #fff; }
.ide-seccion--azul .ide-paso p { color: var(--on-navy); }
.ide-seccion--azul .ide-paso::before { background: rgba(255, 165, 0, .2); color: #ffb733; }
.ide-seccion--azul .ide-paso:hover::before { background: var(--brand-orange); color: var(--brand-navy); }
.ide-seccion--azul .ide-paso::after {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .3) 0 5px, transparent 5px 10px);
}

/* ── Lista con checks ────────────────────────────────────────── */
.ide-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.ide-checks--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ide-checks li {
    position: relative;
    padding-left: 34px;
    color: var(--medium-gray);
    line-height: 27px;
}
.ide-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-orange-soft);
}
.ide-checks li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 12px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--brand-orange-text);
    border-bottom: 2px solid var(--brand-orange-text);
    transform: rotate(-45deg);
}
.ide-checks strong { color: var(--brand-navy); font-weight: 600; }
.ide-seccion--azul .ide-checks li { color: var(--on-navy); }
.ide-seccion--azul .ide-checks strong { color: #fff; }
.ide-seccion--azul .ide-checks li::before { background: rgba(255, 165, 0, .22); }
.ide-seccion--azul .ide-checks li::after {
    border-left-color: #ffb733;
    border-bottom-color: #ffb733;
}

/* ── Banda de llamada a la acción ────────────────────────────── */
.ide-cta {
    background: linear-gradient(120deg, var(--brand-navy) 0%, #00478f 100%);
    border-radius: var(--ide-radio);
    padding: 56px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.ide-cta::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 165, 0, .12);
}
.ide-cta__texto { max-width: 620px; position: relative; z-index: 1; }
.ide-cta h2 {
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.18;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.8px;
    margin: 0 0 12px;
}
.ide-cta p {
    color: var(--on-navy);
    margin: 0;
    font-size: 17px;
    line-height: 28px;
}
.ide-cta__botones {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
@media (max-width: 767px) {
    .ide-cta { padding: 36px 26px; }
}

/* ── Botones ─────────────────────────────────────────────────── */
.ide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    text-decoration: none;
    cursor: pointer;
}
.ide-btn:hover { transform: translateY(-2px); }
.ide-btn--naranja {
    background: var(--brand-orange);
    color: var(--brand-navy);
    box-shadow: 0 12px 26px -14px rgba(255, 165, 0, .9);
}
.ide-btn--naranja:hover { background: #ffb733; color: var(--brand-navy); }
.ide-btn--azul {
    background: var(--brand-navy);
    color: #fff;
}
.ide-btn--azul:hover { background: #00478f; color: #fff; }
.ide-btn--linea {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}
.ide-btn--linea:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.ide-btn--linea-azul {
    border-color: var(--brand-navy-line);
    color: var(--brand-navy);
    background: #fff;
}
.ide-btn--linea-azul:hover { border-color: var(--brand-navy); color: var(--brand-navy); }

/* ── Portada de página interior ──────────────────────────────── */
.ide-portada {
    position: relative;
    padding: 70px 0 70px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 165, 0, .10) 0%, transparent 45%),
        linear-gradient(160deg, var(--brand-navy-soft) 0%, #ffffff 70%);
    overflow: hidden;
}
.ide-portada::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 51, 102, .10) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    pointer-events: none;
}
.ide-portada__contenido { position: relative; z-index: 1; max-width: 760px; }
.ide-portada h1 {
    font-size: clamp(30px, 3.8vw, 52px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--brand-navy);
    margin: 0 0 18px;
}
.ide-portada__texto {
    font-size: 19px;
    line-height: 32px;
    color: var(--medium-gray);
    margin: 0 0 30px;
}
.ide-portada__migas {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 18px;
}
.ide-portada__migas a { color: var(--medium-gray); }
.ide-portada__migas a:hover { color: var(--brand-orange-text); }
.ide-portada__migas span { margin: 0 8px; opacity: .45; }
@media (max-width: 991px) {
    .ide-portada { padding: 44px 0 46px; }
    .ide-portada__texto { font-size: 17px; line-height: 29px; }
}

/* ── Bloque de texto + lista (páginas de servicio) ───────────── */
.ide-split {
    display: grid;
    gap: 50px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
}
.ide-panel {
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: var(--ide-radio);
    padding: 38px;
}
.ide-panel--suave {
    background: var(--brand-navy-soft);
    border-color: transparent;
}
.ide-panel h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0 0 14px;
}

/* ── Cinta de logotipos / sectores ───────────────────────────── */
.ide-sectores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.ide-sector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 15px;
}
.ide-sector i { color: var(--brand-orange-text); }

/* ── Acordeón de preguntas ───────────────────────────────────── */
.ide-faq { display: grid; gap: 14px; }
.ide-faq__item {
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: var(--ide-radio-sm);
    overflow: hidden;
    transition: box-shadow .25s ease;
}
.ide-faq__item[open] { box-shadow: var(--ide-sombra); }
.ide-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 56px 22px 26px;
    font-weight: 700;
    font-size: 17px;
    color: var(--brand-navy);
    position: relative;
}
.ide-faq__item summary::-webkit-details-marker { display: none; }
.ide-faq__item summary::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--brand-orange-text);
    border-bottom: 2px solid var(--brand-orange-text);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s ease;
}
.ide-faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ide-faq__item p {
    margin: 0;
    padding: 0 26px 24px;
    color: var(--medium-gray);
    line-height: 28px;
}

/* ── Utilidades ──────────────────────────────────────────────── */
.ide-mt-40 { margin-top: 40px; }
.ide-mt-60 { margin-top: 60px; }
.ide-centro { text-align: center; }
.ide-max-720 { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ── Pie de página ───────────────────────────────────────────── */
.ide-pie {
    background: var(--brand-navy);
    color: var(--on-navy);
    padding: 70px 0 0;
}
.ide-pie__rejilla {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
    padding-bottom: 50px;
}
.ide-pie__marca img { max-height: 40px; width: auto; margin-bottom: 20px; }
.ide-pie__marca p {
    color: var(--on-navy);
    font-size: 15px;
    line-height: 26px;
    margin: 0 0 22px;
}
.ide-pie__redes { display: flex; gap: 10px; }
.ide-pie__redes a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transition: background .2s ease, color .2s ease;
}
.ide-pie__redes a:hover { background: var(--brand-orange); color: var(--brand-navy); }

.ide-pie__col { display: flex; flex-direction: column; }
.ide-pie__titulo {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 18px;
}
.ide-pie__col a {
    color: var(--on-navy);
    font-size: 15px;
    line-height: 22px;
    padding: 6px 0;
    transition: color .2s ease;
}
.ide-pie__col a:hover { color: #ffb733; }
.ide-pie__boletin p { color: var(--on-navy); font-size: 15px; line-height: 24px; margin-bottom: 16px; }

.ide-pie__legal {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 26px 0 30px;
    text-align: center;
}
.ide-pie__legal-enlaces {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-bottom: 14px;
}
.ide-pie__legal-enlaces a { color: var(--on-navy); font-size: 15px; }
.ide-pie__legal-enlaces a:hover { color: #ffb733; }
.ide-pie__legal p {
    margin: 0;
    color: #9db4cd;
    font-size: 14px;
}

@media (max-width: 1199px) {
    .ide-pie__rejilla { grid-template-columns: 1fr 1fr 1fr; }
    .ide-pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .ide-pie { padding-top: 50px; }
    .ide-pie__rejilla { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .ide-pie__redes { justify-content: center; }
    .ide-pie__col a { padding: 5px 0; }
}

/* ── Héroe de la portada ─────────────────────────────────────── */
.ide-hero {
    position: relative;
    padding: 70px 0 60px;
    background:
        radial-gradient(circle at 78% 25%, rgba(255, 165, 0, .14) 0%, transparent 42%),
        linear-gradient(150deg, var(--brand-navy-soft) 0%, #ffffff 62%);
    overflow: hidden;
}
.ide-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 51, 102, .10) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .55;
    pointer-events: none;
}
.ide-hero__rejilla {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 40px;
    align-items: center;
}
.ide-hero__sello {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 22px;
}
.ide-hero__sello i { color: var(--brand-orange-text); }
.ide-hero h1 {
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--brand-navy);
    margin: 0 0 22px;
}
.ide-hero h1 span {
    position: relative;
    white-space: nowrap;
}
.ide-hero h1 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 12px;
    background: var(--brand-orange);
    opacity: .35;
    border-radius: 6px;
    z-index: -1;
}
.ide-hero__entradilla {
    font-size: 19px;
    line-height: 32px;
    color: var(--medium-gray);
    margin: 0 0 30px;
    max-width: 600px;
}
.ide-hero__puntos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin: 30px 0 0;
    padding: 0;
}
.ide-hero__puntos li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-navy);
}
.ide-hero__puntos i { color: var(--brand-orange-text); }
.ide-hero__imagen img { width: 100%; height: auto; }

@media (max-width: 991px) {
    .ide-hero { padding: 40px 0 50px; }
    .ide-hero__rejilla { grid-template-columns: 1fr; }
    .ide-hero__imagen { display: none; }
    .ide-hero__entradilla { font-size: 17px; line-height: 29px; }
}

/* ── Tarjeta de artículo del blog en la portada ──────────────── */
.ide-tarjeta--post { padding: 0; overflow: hidden; }
.ide-tarjeta--post img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 22px;
}
.ide-tarjeta--post h3,
.ide-tarjeta--post p,
.ide-tarjeta--post .ide-tarjeta__meta,
.ide-tarjeta--post .ide-tarjeta__enlace { padding: 0 28px; }
.ide-tarjeta--post .ide-tarjeta__enlace { padding-bottom: 30px; }
.ide-tarjeta__meta {
    display: block;
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 10px;
}

/* ── Bloques de contacto ─────────────────────────────────────── */
.ide-contacto { display: grid; gap: 14px; }
.ide-contacto__item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: var(--ide-radio);
    transition: box-shadow .25s ease, transform .25s ease;
}
a.ide-contacto__item:hover { transform: translateY(-2px); box-shadow: var(--ide-sombra); }
.ide-contacto__icono {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-text);
    font-size: 22px;
}
.ide-contacto__item strong { display: block; color: var(--brand-navy); font-size: 17px; margin-bottom: 3px; }
.ide-contacto__item small { display: block; color: var(--medium-gray); font-size: 14px; }

/* El formulario heredado del tema, dentro de los paneles nuevos */
.ide-panel .form-control {
    border-radius: 10px;
    border: 1px solid var(--brand-navy-line);
    padding: 13px 16px;
    font-size: 15px;
}
.ide-panel .form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, .18);
}
.ide-panel .btn,
.ide-panel button.submit {
    background: var(--brand-orange) !important;
    color: var(--brand-navy) !important;
    border: 0;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 700;
}
.ide-panel h5 { color: var(--brand-navy); }



/* ═══ Cabecera compacta ═══════════════════════════════════════
   Altura fija y conocida (64 px) para que el hueco superior del
   body cuadre siempre, fondo sólido —sin desenfoques que ensucian—
   y desplegable que se abre al hacer clic, no al pasar el ratón. */
:root { --ide-cab-alto: 76px; }

.ide-cab-top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1040;
    height: var(--ide-cab-alto);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* Al hacer scroll (clase que pone el script de Header.razor) la barra se vuelve sólida. */
.ide-cab-top--solida {
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--brand-navy-line);
    box-shadow: 0 8px 24px -18px rgba(0, 51, 102, .45);
}
/* La portada sube por debajo de la barra para que la transparencia se note. */
main > .ide-hero:first-child,
main > .ide-portada:first-child {
    margin-top: calc(-1 * var(--ide-cab-alto));
    padding-top: calc(70px + var(--ide-cab-alto));
}
@media (max-width: 991px) {
    .ide-cab-top { background: #fff; border-bottom-color: var(--brand-navy-line); }
    main > .ide-hero:first-child,
    main > .ide-portada:first-child { padding-top: calc(42px + var(--ide-cab-alto)); }
}
.ide-cab-top__inner {
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.ide-cab-top__logo { display: flex; align-items: center; flex: 0 0 auto; }
.ide-cab-top__logo img { height: 44px; width: auto; display: block; }
@media (max-width: 575px) { .ide-cab-top__logo img { height: 38px; } }

body { padding-top: var(--ide-cab-alto); }

/* Navegación */
.ide-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.ide-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-navy) !important;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.ide-nav__link:hover { background: var(--brand-navy-soft); }
.ide-nav__link.active {
    color: var(--brand-orange-text) !important;
    background: var(--brand-orange-soft);
}
.ide-nav__link i { font-size: 15px; transition: transform .2s ease; }
.ide-cab-top__cta {
    margin-left: 12px;
    padding: 12px 20px;
    gap: 8px;
    font-size: 14.5px;
    white-space: nowrap;
    box-shadow: none;
}
.ide-cab-top__cta:hover { box-shadow: none; transform: none; }
.ide-cab-top__cta i { font-size: 15px; transition: transform .2s ease; }
.ide-cab-top__cta:hover i { transform: translateX(4px); }

/* Desplegable de servicios (elemento <details>) */
.ide-nav__desp { position: relative; }
.ide-nav__desp > summary { list-style: none; }
.ide-nav__desp > summary::-webkit-details-marker { display: none; }
.ide-nav__desp[open] > summary { background: var(--brand-navy-soft); }
.ide-nav__desp[open] > summary i { transform: rotate(180deg); }

.ide-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(700px, 92vw);
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: var(--ide-radio);
    box-shadow: var(--ide-sombra-alta);
    padding: 16px;
    animation: ideBaja .18s ease;
}
@keyframes ideBaja {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ide-menu__rejilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.ide-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 9px;
    color: var(--brand-navy);
    font-weight: 600;
    font-size: 15px;
    transition: background .16s ease;
}
.ide-menu__item i { color: var(--brand-orange-text); font-size: 17px; flex: 0 0 17px; }
.ide-menu__item:hover { background: var(--brand-navy-soft); color: var(--brand-navy); }
.ide-menu__pie {
    display: block;
    margin-top: 10px;
    padding-top: 13px;
    border-top: 1px solid var(--brand-navy-line);
    text-align: center;
    font-weight: 700;
    color: var(--brand-orange-text);
    font-size: 15px;
}

/* Botón de menú en móvil */
.ide-cab-top__burger {
    display: none;
    margin-left: auto;
    width: 42px; height: 42px;
    border: 1px solid var(--brand-navy-line);
    border-radius: 10px;
    background: #fff;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}
.ide-cab-top__burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--brand-navy);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.ide-cab-top__burger--x span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ide-cab-top__burger--x span:nth-child(2) { opacity: 0; }
.ide-cab-top__burger--x span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199px) {
    .ide-nav__link { font-size: 14px; padding: 8px 9px; }
    .ide-cab-top__cta { font-size: 13px; padding: 9px 14px; margin-left: 6px; }
}
@media (max-width: 991px) {
    .ide-cab-top__burger { display: flex; }
    .ide-nav {
        display: none;
        position: fixed;
        top: var(--ide-cab-alto);
        left: 0; right: 0;
        max-height: calc(100vh - var(--ide-cab-alto));
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border-bottom: 1px solid var(--brand-navy-line);
        padding: 14px 20px 24px;
        box-shadow: var(--ide-sombra);
    }
    .ide-nav--abierto { display: flex; }
    .ide-nav__link { font-size: 16px; padding: 12px 14px; }
    .ide-cab-top__cta { margin: 12px 0 0; justify-content: center; padding: 14px; font-size: 15px; }
    .ide-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: 0;
        padding: 4px 0 8px;
        animation: none;
    }
    .ide-menu__rejilla { grid-template-columns: 1fr; }
}

/* ═══ Panel visual de las portadas ════════════════════════════ */
.ide-portada__rejilla {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
.ide-portada--con-visual .ide-portada__rejilla {
    grid-template-columns: 1.15fr .85fr;
}
.ide-portada__sellos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 26px 0 0;
    padding: 0;
}
.ide-portada__sellos li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-navy);
}
.ide-portada__sellos i { color: var(--brand-orange-text); }

.ide-portada__visual { position: relative; }
.ide-visual {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--ide-sombra-alta);
}
.ide-visual__icono {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, #00539c 100%);
    color: #ffb733;
    font-size: 34px;
    margin-bottom: 26px;
    box-shadow: 0 14px 28px -16px rgba(0, 51, 102, .8);
}
.ide-visual__lista { display: grid; gap: 14px; }
.ide-visual__fila {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--brand-navy-line);
}
.ide-visual__fila:last-child { border-bottom: 0; padding-bottom: 0; }
.ide-visual__fila strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -.5px;
    flex: 0 0 auto;
    min-width: 92px;
}
.ide-visual__fila span {
    font-size: 14px;
    line-height: 21px;
    color: var(--medium-gray);
}
.ide-visual__burbuja {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.ide-visual__burbuja--1 {
    width: 150px; height: 150px;
    right: -40px; top: -40px;
    background: rgba(255, 165, 0, .22);
}
.ide-visual__burbuja--2 {
    width: 96px; height: 96px;
    left: -34px; bottom: -30px;
    background: rgba(0, 51, 102, .10);
}

@media (max-width: 991px) {
    .ide-portada--con-visual .ide-portada__rejilla { grid-template-columns: 1fr; }
    .ide-portada__visual { display: none; }
}

/* Garantiza que el desplegable cerrado no ocupe ni se pinte */
.ide-nav__desp:not([open]) .ide-menu { display: none; }

/* Indicador lateral de scroll de la plantilla: en blanco no se veía */
.scroll-progress .scroll-text { color: var(--brand-navy) !important; }
.scroll-progress .scroll-line { background: var(--brand-navy-line) !important; }
.scroll-progress .scroll-point { background: var(--brand-orange) !important; }

/* ═══ Correcciones sobre fondo azul ═══════════════════════════ */
.ide-seccion--azul .ide-entradilla,
.ide-seccion--azul p { color: var(--on-navy); }
.ide-seccion--azul .ide-cab .ide-entradilla { color: #b9cbe0; }

/* ═══ Animación de entrada al hacer scroll ════════════════════
   El estado inicial (oculto) lo aplica el JavaScript, así que si
   falla o está desactivado se ve todo igualmente. */
.ide-rv {
    opacity: 0;
    transform: translateY(20px);
}
.ide-rv--on {
    opacity: 1;
    transform: none;
    transition:
        opacity .6s ease var(--rv-delay, 0ms),
        transform .6s cubic-bezier(.22, .61, .36, 1) var(--rv-delay, 0ms);
}
@media (prefers-reduced-motion: reduce) {
    .ide-rv { opacity: 1; transform: none; }
}

/* Más vida en tarjetas y cifras */
.ide-cifra {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ide-cifra:hover {
    transform: translateY(-5px);
    box-shadow: var(--ide-sombra);
    border-color: var(--brand-orange);
}
.ide-seccion--azul .ide-cifra:hover {
    background: rgba(255, 255, 255, .11);
    border-color: #ffb733;
    box-shadow: none;
}
.ide-sector { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.ide-sector:hover {
    transform: translateY(-3px);
    border-color: var(--brand-orange);
    box-shadow: var(--ide-sombra);
}
.ide-tarjeta__icono { transition: transform .3s ease, background .3s ease, color .3s ease; }
a.ide-tarjeta:hover .ide-tarjeta__icono {
    background: var(--brand-orange);
    color: var(--brand-navy);
    transform: rotate(-6deg) scale(1.06);
}
.ide-visual { transition: transform .4s ease; }
.ide-visual:hover { transform: translateY(-6px); }

/* ═══ Tarjetas "problema → servicio" ══════════════════════════ */
.ide-dolor {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: var(--ide-radio);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ide-dolor:hover {
    transform: translateY(-4px);
    box-shadow: var(--ide-sombra-alta);
    border-color: var(--brand-orange);
}
.ide-dolor__icono {
    width: 52px; height: 52px; flex: 0 0 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-text);
    font-size: 22px;
    transition: background .28s ease, color .28s ease, transform .28s ease;
}
.ide-dolor:hover .ide-dolor__icono {
    background: var(--brand-orange);
    color: var(--brand-navy);
    transform: rotate(-6deg);
}
.ide-dolor__texto { flex: 1 1 auto; }
.ide-dolor__texto strong {
    display: block;
    color: var(--brand-navy);
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 6px;
}
.ide-dolor__texto small {
    display: block;
    color: var(--medium-gray);
    font-size: 14px;
    line-height: 22px;
}
.ide-dolor__flecha {
    color: var(--brand-orange-text);
    font-size: 20px;
    flex: 0 0 auto;
    transition: transform .28s ease;
}
.ide-dolor:hover .ide-dolor__flecha { transform: translateX(5px); }

/* ═══ Antes / después ═════════════════════════════════════════ */
.ide-antes-despues {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.ide-columna {
    border-radius: var(--ide-radio);
    padding: 34px 32px;
    border: 1px solid var(--brand-navy-line);
}
.ide-columna--antes { background: #fbfcfe; }
.ide-columna--despues {
    background: linear-gradient(160deg, var(--brand-navy) 0%, #00478f 100%);
    border-color: transparent;
    box-shadow: var(--ide-sombra-alta);
}
.ide-columna__cabecera {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    margin-bottom: 24px;
}
.ide-columna--antes .ide-columna__cabecera { color: #5c6879; }
.ide-columna--despues .ide-columna__cabecera { color: #ffb733; }
.ide-columna ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.ide-columna li {
    position: relative;
    padding-left: 26px;
    line-height: 26px;
    font-size: 16px;
}
.ide-columna--antes li { color: var(--medium-gray); }
.ide-columna--antes li::before {
    content: "×";
    position: absolute; left: 0; top: -1px;
    color: #b9c2cd;
    font-size: 19px;
    font-weight: 700;
}
.ide-columna--despues li { color: #dbe6f2; }
.ide-columna--despues li::before {
    content: "";
    position: absolute; left: 2px; top: 9px;
    width: 9px; height: 5px;
    border-left: 2px solid #ffb733;
    border-bottom: 2px solid #ffb733;
    transform: rotate(-45deg);
}

/* ═══ Tarjetas flotantes del héroe ════════════════════════════ */
.ide-hero__marco { position: relative; }
.ide-flota {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: 14px;
    padding: 13px 18px;
    box-shadow: var(--ide-sombra-alta);
    animation: ideFlota 5s ease-in-out infinite;
}
.ide-flota--1 { top: 16%; left: -6%; }
.ide-flota--2 { bottom: 16%; right: -2%; animation-delay: 1.6s; }
.ide-flota__icono {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-text);
    font-size: 18px;
}
.ide-flota strong { display: block; color: var(--brand-navy); font-size: 17px; line-height: 1.2; }
.ide-flota small { display: block; color: var(--medium-gray); font-size: 12px; }
@keyframes ideFlota {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .ide-flota { animation: none; } }
@media (max-width: 1199px) { .ide-flota { display: none; } }

/* ═══ Testimonios ═════════════════════════════════════════════ */
.ide-testimonio {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 34px 30px;
    background: #fff;
    border-radius: var(--ide-radio);
    box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .6);
    transition: transform .3s ease, box-shadow .3s ease;
}
.ide-testimonio:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 55px -28px rgba(0, 0, 0, .7);
}
.ide-testimonio__estrellas { color: var(--brand-orange); font-size: 15px; margin-bottom: 18px; letter-spacing: 2px; }
.ide-testimonio blockquote {
    margin: 0 0 26px;
    padding: 0;
    border: 0;
    flex-grow: 1;
    color: var(--brand-navy);
    font-size: 17px;
    line-height: 29px;
}
.ide-testimonio blockquote::before { content: "“"; }
.ide-testimonio blockquote::after { content: "”"; }
.ide-testimonio figcaption { display: flex; align-items: center; gap: 14px; }
.ide-testimonio__avatar {
    width: 46px; height: 46px; flex: 0 0 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--brand-orange);
    color: var(--brand-navy);
    font-weight: 800;
    font-size: 15px;
}
.ide-testimonio figcaption strong { display: block; color: var(--brand-navy); font-size: 16px; line-height: 1.3; }
.ide-testimonio figcaption small { display: block; color: var(--medium-gray); font-size: 14px; }

/* ═══ Botón flotante de contacto ══════════════════════════════ */
.ide-flotante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.ide-flotante__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 8px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.2;
    box-shadow: 0 16px 34px -14px rgba(0, 51, 102, .5);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: ideFlotaEntra .6s cubic-bezier(.2, .9, .3, 1.3) .8s both;
}
.ide-flotante__btn:hover {
    transform: translateY(-3px);
    color: var(--brand-navy);
    box-shadow: 0 22px 40px -14px rgba(0, 51, 102, .6);
}
.ide-flotante__icono {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2fe37a, #12b352);
    color: #fff;
    font-size: 26px;
}
/* Onda que late alrededor del icono para llamar la atención sin molestar. */
.ide-flotante__icono::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: ideFlotaOnda 2.4s ease-out infinite;
}
.ide-flotante__btn:hover .ide-flotante__icono i { animation: ideFlotaSaluda .6s ease; }
.ide-flotante__aviso {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff3b30;
    border: 2px solid #fff;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
    animation: ideFlotaEntra .4s cubic-bezier(.2, .9, .3, 1.5) 2.2s both;
}
.ide-flotante__texto { display: flex; flex-direction: column; }
.ide-flotante__texto small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #0f8a3f;
}
.ide-flotante__punto {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25d366;
    animation: ideFlotaParpadea 1.6s ease-in-out infinite;
}

/* Globo de conversación */
.ide-flotante__globo {
    position: relative;
    max-width: 250px;
    padding: 14px 34px 14px 16px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: 16px 16px 4px 16px;
    box-shadow: var(--ide-sombra-alta);
    transform-origin: bottom right;
    animation: ideFlotaGlobo .45s cubic-bezier(.2, .9, .3, 1.2) 4s both;
}
.ide-flotante__globo a { display: block; color: var(--medium-gray); font-size: 14px; line-height: 1.45; }
.ide-flotante__globo strong { display: block; color: var(--brand-navy); font-size: 15px; margin-bottom: 2px; }
.ide-flotante__cerrar {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    color: var(--medium-gray);
    font-size: 20px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
}
.ide-flotante__cerrar:hover { color: var(--brand-navy); }
.ide-flotante--visto .ide-flotante__globo,
.ide-flotante--visto .ide-flotante__aviso { display: none; }

@keyframes ideFlotaEntra {
    from { opacity: 0; transform: scale(.4); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes ideFlotaGlobo {
    from { opacity: 0; transform: scale(.6) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes ideFlotaOnda {
    0%   { transform: scale(1); opacity: .55; }
    70%, 100% { transform: scale(1.75); opacity: 0; }
}
@keyframes ideFlotaSaluda {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-14deg); }
    75% { transform: rotate(14deg); }
}
@keyframes ideFlotaParpadea {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}
@media (max-width: 767px) {
    .ide-flotante { right: 16px; bottom: 16px; }
    .ide-flotante__btn { padding: 0; border: 0; background: none; box-shadow: none; }
    .ide-flotante__icono { width: 56px; height: 56px; flex-basis: 56px; font-size: 30px; box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .5); }
    .ide-flotante__texto { display: none; }
    .ide-flotante__globo { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ide-flotante__btn, .ide-flotante__globo, .ide-flotante__aviso,
    .ide-flotante__icono::before, .ide-flotante__punto { animation: none; }
}

/* Desplegable pequeño del menú (Recursos) */
.ide-menu__titulo {
    display: block;
    margin: 12px 0 4px;
    padding: 12px 13px 0;
    border-top: 1px solid var(--brand-navy-line);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-orange-text);
}
/* Desplegable alineado a la derecha (Recursos), para que no se salga de la pantalla. */
@media (min-width: 992px) {
    .ide-menu--der { left: auto; right: 0; transform: none; width: min(560px, 92vw); animation-name: ideBajaDer; }
}
@keyframes ideBajaDer {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══ Fórmula del retorno ═════════════════════════════════════ */
.ide-formula {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--ide-radio);
    padding: 34px 30px;
    text-align: center;
}
.ide-formula__linea {
    display: block;
    color: #fff;
    font-size: 17px;
    line-height: 26px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
}
.ide-formula__linea em { font-style: normal; }
.ide-formula__signo {
    display: block;
    color: #ffb733;
    font-size: 22px;
    font-weight: 800;
    padding: 8px 0;
}
.ide-formula__resultado {
    display: block;
    margin-top: 8px;
    padding: 16px 14px;
    border-radius: 10px;
    background: var(--brand-orange);
    color: var(--brand-navy);
    font-weight: 800;
    font-size: 17px;
    line-height: 25px;
}

/* ── Productos propios (marcas) ──────────────────────────────── */
.ide-marca__logo {
    display: flex;
    align-items: center;
    height: 56px;
    margin-bottom: 22px;
}
.ide-marca__logo img {
    max-height: 100%;
    max-width: 190px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ide-marca__logo--grande { height: 64px; margin-bottom: 26px; }
.ide-marca__logo--grande img { max-width: 260px; }
.ide-marca__categoria {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-orange-text);
    margin-bottom: 10px;
}
.ide-sectores--izq { justify-content: flex-start; }
section[id] { scroll-margin-top: calc(var(--ide-cab-alto) + 16px); }
.ide-rejilla--marcas { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 767px) {
    .ide-rejilla--marcas { grid-template-columns: 1fr; }
}

/* ═══ Formularios: campos con icono y etiqueta flotante ═══════ */
.ide-form { display: grid; gap: 18px; }
.ide-campo {
    position: relative;
    display: block;
    margin: 0;
    cursor: text;
}
.ide-campo > i {
    position: absolute;
    left: 18px;
    top: 19px;
    font-size: 19px;
    color: var(--medium-gray);
    transition: color .2s ease;
    pointer-events: none;
}
.ide-campo input,
.ide-campo textarea {
    display: block;
    width: 100%;
    padding: 25px 18px 9px 50px;
    border: 1.5px solid var(--brand-navy-line);
    border-radius: 12px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 16px;
    line-height: 1.4;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ide-campo textarea { min-height: 130px; resize: vertical; }
.ide-campo > span {
    position: absolute;
    left: 50px;
    top: 18px;
    color: var(--medium-gray);
    font-size: 16px;
    line-height: 1.4;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .18s ease, color .18s ease;
}
/* La etiqueta sube al enfocar o cuando el campo ya tiene texto. */
.ide-campo input:focus ~ span,
.ide-campo textarea:focus ~ span,
.ide-campo input:not(:placeholder-shown) ~ span,
.ide-campo textarea:not(:placeholder-shown) ~ span {
    transform: translateY(-11px) scale(.75);
    font-weight: 600;
}
.ide-campo:hover input,
.ide-campo:hover textarea { border-color: #b9c8dc; }
.ide-campo input:focus,
.ide-campo textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px var(--brand-orange-soft);
}
.ide-campo:focus-within > i,
.ide-campo:focus-within > span { color: var(--brand-orange-text); }

.ide-form .form-results:empty { display: none; }
.ide-form .form-results { font-size: 14.5px; font-weight: 600; }
.ide-form__enviar { width: 100%; justify-content: center; }
.ide-form__legal { font-size: 13px; line-height: 1.6; color: var(--medium-gray); margin: 0; }
.ide-form__legal a { color: var(--brand-navy); text-decoration: underline; }
.ide-form__pie { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ide-form__pie .ide-btn { flex: 0 0 auto; }

@media (min-width: 768px) {
    .ide-form--2col { grid-template-columns: 1fr 1fr; }
    .ide-form--2col .ide-campo--area,
    .ide-form--2col .form-results,
    .ide-form--2col .ide-form__pie { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .ide-form__pie { flex-direction: column-reverse; align-items: stretch; }
    .ide-form__pie .ide-btn { justify-content: center; }
}

/* Lista corta de ejemplos dentro de una tarjeta */
.ide-tarjeta__lista {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    flex-grow: 1;
    display: grid;
    gap: 9px;
    align-content: start;
}
.ide-tarjeta__lista li {
    position: relative;
    padding-left: 20px;
    color: var(--medium-gray);
    font-size: 15px;
    line-height: 1.5;
}
.ide-tarjeta__lista li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-orange);
}
a.ide-sector:hover { border-color: var(--brand-orange); color: var(--brand-navy); }

/* ═══ Herramientas gratuitas ══════════════════════════════════ */
.ide-tool {
    max-width: 820px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: var(--ide-radio);
    box-shadow: var(--ide-sombra);
}
.ide-tool__zona {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 46px 20px;
    border: 2px dashed #b9c8dc;
    border-radius: 14px;
    background: var(--brand-navy-soft);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ide-tool__zona:hover,
.ide-tool__zona:focus-visible,
.ide-tool__zona--sobre {
    border-color: var(--brand-orange);
    background: var(--brand-orange-soft);
    outline: none;
}
.ide-tool__zona--sobre { transform: scale(1.01); }
.ide-tool__zona i { font-size: 44px; color: var(--brand-orange-text); margin-bottom: 6px; }
.ide-tool__zona strong { font-size: 19px; color: var(--brand-navy); }
.ide-tool__zona span { color: var(--medium-gray); font-size: 15px; }
.ide-tool--con-archivos .ide-tool__zona { padding: 22px 20px; }
.ide-tool--con-archivos .ide-tool__zona i { font-size: 28px; margin: 0; }

.ide-tool__lista { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ide-tool__lista:empty { display: none; }
.ide-tool__lista li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border: 1px solid var(--brand-navy-line);
    border-radius: 10px;
    font-size: 15px;
    color: var(--brand-navy);
}
.ide-tool__nombre { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ide-tool__lista small { color: var(--medium-gray); flex: 0 0 auto; }
.ide-tool__lista button {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-navy-soft);
    color: var(--brand-navy);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.ide-tool__lista button:hover:not(:disabled) { background: var(--brand-orange-soft); color: var(--brand-orange-text); }
.ide-tool__lista button:disabled { opacity: .35; cursor: default; }

.ide-tool__opciones { margin-top: 22px; display: grid; gap: 16px; }
.ide-tool__grupo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ide-tool__grupo[hidden] { display: none; }
.ide-tool__etiqueta { flex: 0 0 100%; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--medium-gray); }
.ide-chip { position: relative; margin: 0; cursor: pointer; }
.ide-chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.ide-chip span {
    display: inline-block;
    padding: 9px 16px;
    border: 1.5px solid var(--brand-navy-line);
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--brand-navy);
    transition: all .15s ease;
}
.ide-chip:hover span { border-color: #b9c8dc; }
.ide-chip input:checked + span { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.ide-chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-orange-soft); }
.ide-tool__texto {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--brand-navy-line);
    border-radius: 12px;
    font-size: 16px;
    color: var(--brand-navy);
    outline: none;
}
.ide-tool__texto:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 4px var(--brand-orange-soft); }
.ide-tool input[type=range] { width: 100%; accent-color: var(--brand-orange); }

.ide-tool__accion { width: 100%; margin-top: 24px; }
.ide-tool__accion:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.ide-tool__barra { height: 6px; margin-top: 16px; border-radius: 999px; background: var(--brand-navy-soft); overflow: hidden; display: none; }
.ide-tool__barra span { display: block; height: 100%; width: 0; background: var(--brand-orange); border-radius: 999px; transition: width .25s ease; }
.ide-tool--trabajando .ide-tool__barra { display: block; }
.ide-tool__estado { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--brand-navy); text-align: center; }
.ide-tool__estado:empty { display: none; }
.ide-tool__estado--error { color: #c62828; }
.ide-tool__resultado { margin-top: 18px; padding: 22px; border-radius: 14px; background: #eefaf2; border: 1px solid #bfe8cd; text-align: center; }
.ide-tool__resultado[hidden] { display: none; }
.ide-tool__resultado .ide-btn { max-width: 100%; white-space: normal; line-height: 1.3; }
.ide-tool__extras { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; max-height: 260px; overflow: auto; }
.ide-tool__extras li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.ide-tool__extras a { color: var(--brand-navy); text-decoration: underline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ide-tool__extras small { color: var(--medium-gray); flex: 0 0 auto; }
.ide-tool__privacidad { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 0; font-size: 13.5px; color: var(--medium-gray); text-align: center; }
.ide-tool__privacidad i { color: #12b352; font-size: 15px; }
@media (max-width: 575px) { .ide-tool { padding: 18px; } }

/* ── Utilidades sin archivos (calculadoras, texto, generadores) ── */
.ide-tool[data-utilidad] { display: grid; gap: 20px; }
.ide-tool--ancha { max-width: 1040px; }
.ide-tool__texto--grande { font-size: 22px; font-weight: 700; padding: 16px 18px; }
.ide-tool__area { resize: vertical; line-height: 1.55; font-family: inherit; }
.ide-tool__grupo > .ide-tool__texto, .ide-tool__grupo > input[type=range] { flex: 1 1 100%; }
.ide-util__dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 640px) { .ide-util__dos { grid-template-columns: 1fr; } }
.ide-util__res { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ide-util__res > div { padding: 16px 18px; border-radius: 12px; background: var(--brand-navy-soft); }
.ide-util__res > div[hidden] { display: none; }
.ide-util__res span { display: block; font-size: 13px; font-weight: 600; color: var(--medium-gray); margin-bottom: 4px; }
.ide-util__res em { font-style: normal; }
.ide-util__res strong { display: block; font-size: 22px; line-height: 1.25; color: var(--brand-navy); overflow-wrap: anywhere; }
.ide-util__destacado { background: var(--brand-navy) !important; }
.ide-util__destacado span { color: var(--on-navy) !important; }
.ide-util__destacado strong { color: #fff !important; }
.ide-util__linea { padding: 16px 18px; border: 1px solid var(--brand-navy-line); border-radius: 12px; }
.ide-util__frase { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; font-size: 17px; color: var(--brand-navy); }
.ide-util__frase .ide-tool__texto { width: 120px; padding: 9px 12px; }
.ide-util__frase strong { font-size: 20px; color: var(--brand-orange-text); }
.ide-util__acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.ide-util__acciones[hidden] { display: none; }
.ide-util__acciones .ide-btn { padding: 12px 20px; font-size: 15px; }
.ide-util__clave { display: flex; flex-wrap: wrap; gap: 10px; }
.ide-util__clave input { flex: 1 1 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; }
.ide-util__fuerza { height: 6px; border-radius: 999px; background: var(--brand-navy-soft); overflow: hidden; }
.ide-util__fuerza span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s ease, background .25s ease; }
.ide-util__nota { margin: -10px 0 0; font-size: 14px; color: var(--medium-gray); }
.ide-util__sep { border: 0; border-top: 1px solid var(--brand-navy-line); margin: 6px 0; }
.ide-util__color { width: 64px; height: 42px; padding: 2px; border: 1.5px solid var(--brand-navy-line); border-radius: 10px; background: #fff; cursor: pointer; }
.ide-util__vista { padding: 24px; border: 1px dashed #b9c8dc; border-radius: 12px; background: #fff; overflow-x: auto; }
.ide-util__vista--centro { display: flex; justify-content: center; min-height: 150px; align-items: center; }
.ide-util__vista svg { max-width: 100%; height: auto; }
.ide-util__veredicto { margin: 0; font-size: 22px; font-weight: 800; }
.ide-util__veredicto:empty { display: none; }
.ide-util__veredicto--bien { color: #0f8a3f; }
.ide-util__veredicto--mal { color: #c62828; }
.ide-util__detalle { display: grid; gap: 8px; }
.ide-util__detalle:empty { display: none; }
.ide-util__detalle div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 10px; background: var(--brand-navy-soft); font-size: 15px; }
.ide-util__detalle span { color: var(--medium-gray); }
.ide-util__detalle strong { color: var(--brand-navy); text-align: right; overflow-wrap: anywhere; }
.ide-util__diff { padding: 20px; border: 1px solid var(--brand-navy-line); border-radius: 12px; white-space: pre-wrap; line-height: 1.7; font-size: 15.5px; color: var(--brand-navy); overflow-wrap: anywhere; }
.ide-util__diff[hidden] { display: none; }
.ide-util__diff ins { background: #d7f5e0; color: #0b5d2a; text-decoration: none; border-radius: 3px; }
.ide-util__diff del { background: #fde0e0; color: #9b1c1c; border-radius: 3px; }
.ide-chip input[type=checkbox]:checked + span { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }

/* Generador de facturas */
.ide-fact__bloque { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ide-fact__bloque legend { float: none; width: auto; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--medium-gray); }
.ide-fact__tabla { overflow-x: auto; }
.ide-fact__tabla table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0 8px; }
.ide-fact__tabla th { padding: 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--medium-gray); text-align: left; }
.ide-fact__tabla td { padding: 0 4px; vertical-align: middle; }
.ide-fact__tabla td:nth-child(2) { width: 90px; }
.ide-fact__tabla td:nth-child(3) { width: 130px; }
.ide-fact__tabla .ide-tool__texto { padding: 11px 12px; font-size: 15px; }
.ide-fact__importe { width: 120px; text-align: right; font-weight: 700; color: var(--brand-navy); white-space: nowrap; }
.ide-fact__quitar { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--brand-navy-soft); color: var(--brand-navy); font-size: 18px; cursor: pointer; }
.ide-fact__quitar:hover { background: #fde0e0; color: #9b1c1c; }
.ide-fact__mas { justify-self: start; padding: 10px 18px; font-size: 14.5px; }
.ide-tool[data-utilidad] .ide-tool__accion { margin-top: 0; }

/* ═══ Buscador del sitio (lupa de la cabecera) ════════════════ */
.ide-nav__lupa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 40px;
    height: 40px;
    margin-left: 4px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--brand-navy);
    font-size: 18px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.ide-nav__lupa:hover { background: var(--brand-navy-soft); color: var(--brand-orange-text); }
.ide-nav__lupa span { display: none; }
@media (max-width: 991px) {
    .ide-nav__lupa { width: 100%; height: auto; justify-content: flex-start; margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 16px; font-weight: 600; }
    .ide-nav__lupa span { display: inline; }
}

.ide-busca {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 9vh 16px 16px;
    background: rgba(0, 25, 51, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: ideBuscaFondo .18s ease;
}
.ide-busca[hidden] { display: none; }
.ide-busca-abierta { overflow: hidden; }
.ide-busca__panel {
    width: min(680px, 100%);
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 40px 80px -30px rgba(0, 25, 51, .7);
    overflow: hidden;
    animation: ideBuscaPanel .22s cubic-bezier(.2, .9, .3, 1.1);
}
.ide-busca__campo { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 20px; border-bottom: 1px solid var(--brand-navy-line); }
.ide-busca__campo > i { font-size: 21px; color: var(--brand-orange-text); }
.ide-busca__campo input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    padding: 0;
    border: 0;
    outline: none;
    background: none;
    font-size: 18px;
    color: var(--brand-navy);
}
.ide-busca__campo input::-webkit-search-cancel-button { display: none; }
.ide-busca__cerrar, .ide-busca__pie kbd {
    padding: 3px 8px;
    border: 1px solid var(--brand-navy-line);
    border-radius: 6px;
    background: var(--brand-navy-soft);
    color: var(--medium-gray);
    font: 600 12px/1.4 inherit;
}
.ide-busca__cerrar { flex: 0 0 auto; white-space: nowrap; cursor: pointer; }
.ide-busca__lista { flex: 1 1 auto; overflow-y: auto; padding: 8px 10px 12px; }
.ide-busca__grupo, .ide-busca__ayuda {
    margin: 14px 12px 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--medium-gray);
}
.ide-busca__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--brand-navy);
    text-decoration: none;
}
.ide-busca__item > i:first-child {
    flex: 0 0 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-text);
    font-size: 17px;
}
.ide-busca__item span { flex: 1 1 auto; min-width: 0; }
.ide-busca__item strong { display: block; font-size: 15.5px; line-height: 1.35; color: var(--brand-navy); }
.ide-busca__item small { display: block; font-size: 13.5px; line-height: 1.4; color: var(--medium-gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ide-busca__item mark { padding: 0; background: none; color: var(--brand-orange-text); font-weight: 700; }
.ide-busca__intro { opacity: 0; color: var(--medium-gray); font-size: 16px; }
.ide-busca__item--activo { background: var(--brand-navy-soft); }
.ide-busca__item--activo .ide-busca__intro { opacity: 1; }
.ide-busca__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 12px 10px; }
.ide-busca__chips button {
    padding: 8px 15px;
    border: 1.5px solid var(--brand-navy-line);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
}
.ide-busca__chips button:hover { border-color: var(--brand-orange); color: var(--brand-orange-text); }
.ide-busca__vacio { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; text-align: center; }
.ide-busca__vacio strong { font-size: 17px; color: var(--brand-navy); }
.ide-busca__vacio span { max-width: 420px; font-size: 15px; color: var(--medium-gray); }
.ide-busca__pie { display: flex; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--brand-navy-line); font-size: 12.5px; color: var(--medium-gray); }
.ide-busca__pie kbd { margin-right: 3px; }
@media (max-width: 640px) { .ide-busca { padding-top: 12px; } .ide-busca__pie { display: none; } .ide-busca__panel { max-height: 88vh; } }
@keyframes ideBuscaFondo { from { opacity: 0; } to { opacity: 1; } }
@keyframes ideBuscaPanel { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }

/* ═══ Favoritos: botón de estrella ════════════════════════════ */
.ide-fav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--brand-navy-line);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.ide-fav i { font-size: 17px; color: var(--brand-orange-text); transition: transform .25s ease; }
.ide-fav:hover { border-color: var(--brand-orange); }
.ide-fav:hover i { transform: rotate(72deg) scale(1.1); }
.ide-fav--activo { background: var(--brand-orange); border-color: var(--brand-orange); }
.ide-fav--activo i { color: var(--brand-navy); }
.ide-fav--mini { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; padding: 0; justify-content: center; z-index: 2; }
.ide-fav__envoltura { position: relative; height: 100%; }
.ide-fav__barra {
    max-width: 820px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.ide-fav__barra--ancha { max-width: 1040px; }
.ide-fav__barra span:first-child { font-size: 14.5px; color: var(--medium-gray); }

/* ═══ Favoritos: barra lateral de accesos directos ════════════ */
.ide-dock {
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
    width: 56px;
    max-height: calc(100vh - var(--ide-cab-alto) - 60px);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: 18px;
    box-shadow: 0 20px 44px -22px rgba(0, 51, 102, .6);
    transition: width .25s cubic-bezier(.2, .8, .2, 1);
}
.ide-dock[hidden] { display: none; }
.ide-dock:hover, .ide-dock:focus-within, .ide-dock--abierto { width: 264px; overflow-y: auto; }
.ide-dock__titulo, .ide-dock__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.ide-dock__titulo { padding: 4px 0 8px; margin-bottom: 2px; border-bottom: 1px solid var(--brand-navy-line); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--medium-gray); }
.ide-dock__titulo i, .ide-dock__item a i {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 17px;
}
.ide-dock__titulo i { color: var(--brand-orange-text); }
.ide-dock__item { position: relative; display: flex; align-items: center; border-radius: 12px; }
.ide-dock__item a { flex: 1 1 auto; min-width: 0; padding: 0; color: var(--brand-navy); font-size: 14.5px; text-decoration: none; }
.ide-dock__item a i { background: var(--brand-orange-soft); color: var(--brand-orange-text); transition: background .18s ease, color .18s ease; }
.ide-dock__item a b { overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ide-dock__item:hover { background: var(--brand-navy-soft); }
.ide-dock__item:hover a i, .ide-dock__item--aqui a i { background: var(--brand-navy); color: #fff; }
.ide-dock__item--mas a i { background: transparent; border: 1.5px dashed #b9c8dc; color: var(--medium-gray); }
.ide-dock__item--mas a b { color: var(--medium-gray); }
.ide-dock__item button {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--medium-gray);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
}
.ide-dock__item:hover button, .ide-dock__item button:focus-visible { opacity: 1; }
.ide-dock__item button:hover { background: #fde0e0; color: #9b1c1c; }
.ide-dock__item--nuevo a i { animation: ideDockNuevo .7s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes ideDockNuevo { from { transform: scale(.2) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* En pantallas donde la barra taparía el contenido, se le hace hueco. */
@media (min-width: 992px) and (max-width: 1500px) {
    .ide-con-dock main, .ide-con-dock .ide-pie { padding-left: 64px; }
}
/* Móvil: la barra pasa abajo, en horizontal, dejando sitio al botón de WhatsApp. */
@media (max-width: 991px) {
    .ide-dock, .ide-dock:hover, .ide-dock:focus-within, .ide-dock--abierto {
        left: 12px; right: auto; top: auto; bottom: 14px; transform: none;
        width: auto; max-width: calc(100vw - 100px); max-height: none; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-radius: 16px; padding: 6px;
    }
    .ide-dock__titulo, .ide-dock__item a b, .ide-dock__item button { display: none; }
    .ide-dock__item { flex: 0 0 auto; }
    .ide-con-dock .ide-pie { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .ide-dock { transition: none; } .ide-dock__item--nuevo a i { animation: none; } }

/* ═══ Héroe: escena «del Excel al panel que trabaja solo» ═════ */
.ide-hero__escena {
    position: relative;
    padding: 78px 34px 58px 26px;
}
/* Mancha de color detrás de la escena */
.ide-hero__escena::before {
    content: "";
    position: absolute;
    inset: 6% -4% 2% 8%;
    border-radius: 36% 64% 58% 42% / 46% 40% 60% 54%;
    background: linear-gradient(140deg, var(--brand-orange-soft) 0%, #ffe0b0 45%, var(--brand-navy-soft) 100%);
    z-index: 0;
}
.ide-escena__antes {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: #fff;
    border: 1px dashed #c9d3e0;
    border-radius: 12px;
    transform: rotate(-4deg);
    opacity: .92;
}
.ide-escena__antes > i { font-size: 20px; color: #1d7a45; }
.ide-escena__antes s { display: block; font-size: 13.5px; font-weight: 600; color: var(--medium-gray); text-decoration-color: #c62828; text-decoration-thickness: 2px; }
.ide-escena__antes small { display: block; font-size: 11.5px; color: #9aa6b5; }

.ide-escena__panel {
    position: relative;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: 20px;
    box-shadow: 0 40px 70px -40px rgba(0, 51, 102, .55);
    overflow: hidden;
}
.ide-escena__barra {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 13px 18px;
    background: var(--brand-navy);
    color: #fff;
}
.ide-escena__barra > span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.ide-escena__barra b { margin-left: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .2px; }
.ide-escena__barra em { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; color: #9ff0c0; }
.ide-escena__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 18px 6px; }
.ide-escena__kpis > div { padding: 14px 16px; border-radius: 14px; background: var(--brand-navy-soft); }
.ide-escena__kpis small { display: block; font-size: 12px; font-weight: 600; color: var(--medium-gray); }
.ide-escena__kpis strong { display: block; margin-top: 2px; font-size: 26px; line-height: 1.15; letter-spacing: -.6px; color: var(--brand-navy); }
.ide-escena__kpis strong em { font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--medium-gray); }
.ide-escena__tareas { list-style: none; margin: 0; padding: 8px 18px 18px; display: grid; gap: 8px; }
.ide-escena__tareas li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--brand-navy-line);
    border-radius: 12px;
    opacity: 0;
    animation: ideEscenaFila .5s ease forwards;
}
.ide-escena__tareas li:nth-child(1) { animation-delay: .35s; }
.ide-escena__tareas li:nth-child(2) { animation-delay: .75s; }
.ide-escena__tareas li:nth-child(3) { animation-delay: 1.15s; }
.ide-escena__tareas li:nth-child(4) { animation-delay: 1.55s; }
.ide-escena__tareas li > i:first-child {
    flex: 0 0 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brand-orange-soft);
    color: var(--brand-orange-text);
    font-size: 16px;
}
.ide-escena__tareas span { flex: 1 1 auto; min-width: 0; }
.ide-escena__tareas b { display: block; font-size: 14.5px; line-height: 1.3; color: var(--brand-navy); }
.ide-escena__tareas small { display: block; font-size: 12.5px; color: var(--medium-gray); }
.ide-escena__ok {
    flex: 0 0 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #12b352;
    color: #fff;
    font-size: 13px;
    transform: scale(0);
    animation: ideEscenaOk .4s cubic-bezier(.2, .9, .3, 1.6) forwards;
}
.ide-escena__tareas li:nth-child(1) .ide-escena__ok { animation-delay: .8s; }
.ide-escena__tareas li:nth-child(2) .ide-escena__ok { animation-delay: 1.2s; }
.ide-escena__tareas li:nth-child(3) .ide-escena__ok { animation-delay: 1.6s; }
.ide-escena__tareas li:nth-child(4) .ide-escena__ok { animation-delay: 2s; }
.ide-hero__escena .ide-flota { z-index: 3; }
.ide-hero__escena .ide-flota--1 { top: auto; bottom: 0; left: -4%; }
.ide-hero__escena .ide-flota--2 { top: 4px; bottom: auto; right: 0; }
@keyframes ideEscenaFila { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ideEscenaOk { to { transform: scale(1); } }
@media (max-width: 991px) {
    .ide-hero__escena { margin-top: 10px; padding: 50px 0 10px; }
    .ide-hero__escena::before { inset: 10% -6% 0 -6%; }
}
@media (max-width: 575px) { .ide-escena__kpis strong { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) {
    .ide-escena__tareas li { opacity: 1; animation: none; }
    .ide-escena__ok { transform: none; animation: none; }
}

/* Tarjeta destacada (entradas por necesidad de la home) */
.ide-tarjeta--destacada { border-top: 4px solid var(--brand-orange); }
.ide-tarjeta--destacada h3 { font-size: 22px; }
.ide-util__veredicto--duda { color: #b45309; font-size: 18px; }

/* ═══ Textos legales ══════════════════════════════════════════ */
.ide-legal { max-width: 860px; }
.ide-legal__fecha { font-size: 14px; color: var(--medium-gray); }
.ide-legal h2 { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--brand-navy); margin: 40px 0 14px; letter-spacing: -.3px; }
.ide-legal p, .ide-legal li { font-size: 16.5px; line-height: 1.75; color: #3d4b5c; }
.ide-legal ul { padding-left: 22px; margin: 0 0 18px; display: grid; gap: 6px; }
.ide-legal a { color: var(--brand-navy); text-decoration: underline; }
.ide-legal__tabla { overflow-x: auto; margin: 0 0 18px; }
.ide-legal__tabla table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.ide-legal__tabla th, .ide-legal__tabla td { padding: 11px 12px; border: 1px solid var(--brand-navy-line); text-align: left; vertical-align: top; color: #3d4b5c; }
.ide-legal__tabla th { background: var(--brand-navy-soft); color: var(--brand-navy); font-size: 13px; letter-spacing: .4px; text-transform: uppercase; }
.ide-legal code { font-size: 14px; color: var(--brand-navy); background: var(--brand-navy-soft); padding: 1px 6px; border-radius: 5px; }

/* ═══ Aviso de cookies propio ═════════════════════════════════ */
.ide-cookies {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1045;
    width: min(440px, calc(100vw - 32px));
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--brand-navy-line);
    border-radius: 16px;
    box-shadow: 0 28px 60px -28px rgba(0, 51, 102, .6);
}
.ide-cookies[hidden] { display: none; }
.ide-cookies p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: #3d4b5c; }
.ide-cookies a { color: var(--brand-navy); text-decoration: underline; }
.ide-cookies__botones { display: flex; gap: 10px; justify-content: flex-end; }
.ide-cookies__botones .ide-btn { padding: 10px 20px; font-size: 14.5px; }

/* ═══ Formularios: envío en curso y resultado ═════════════════ */
.ide-form__trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ide-form--2col .ide-campo--ancho { grid-column: 1 / -1; }
.ide-campo input:disabled, .ide-campo textarea:disabled { background: #f5f7fa; color: var(--medium-gray); cursor: progress; }
.ide-btn--cargando, .ide-btn:disabled { opacity: .85; cursor: progress; transform: none !important; }
.ide-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(0, 51, 102, .25);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: ideGira .7s linear infinite;
}
.ide-spinner--claro { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; width: 15px; height: 15px; vertical-align: middle; }
@keyframes ideGira { to { transform: rotate(360deg); } }
.ide-form__aviso {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    animation: ideEscenaFila .3s ease;
}
.ide-form--2col .ide-form__aviso { grid-column: 1 / -1; }
.ide-form__aviso i { font-size: 19px; flex: 0 0 auto; margin-top: 1px; }
.ide-form__aviso--ok { background: #eefaf2; border: 1px solid #bfe8cd; color: #0f6b33; }
.ide-form__aviso--error { background: #fdeeee; border: 1px solid #f3c4c4; color: #9b1c1c; }
.ide-form__aviso--pie { margin-top: 10px; padding: 9px 12px; font-size: 13.5px; }

/* La etiqueta flotante nunca ocupa dos líneas (se solapaba con el texto en móviles). */
.ide-campo > span { right: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
