/* ===================================================================
   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: 64px; }

.ide-cab-top {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1040;
    height: var(--ide-cab-alto);
    background: #fff;
    border-bottom: 1px solid var(--brand-navy-line);
}
.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: 30px; width: auto; display: block; }

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: 10px 18px;
    font-size: 14px;
    white-space: nowrap;
}

/* 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;
}
.ide-flotante__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}
.ide-flotante__btn--wa { background: #25d366; color: #06381a; }
.ide-flotante__btn:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .55); }
.ide-flotante__btn i { font-size: 22px; }
@media (max-width: 767px) {
    .ide-flotante { right: 16px; bottom: 16px; }
    .ide-flotante__btn { padding: 15px; }
    .ide-flotante__btn span { display: none; }
}

/* ═══ 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;
}
