/* ==========================================================
   ADMISIONES IO - PAGINAS DE ACCESO RAPIDO
   Complemento de estilo_admision.css
   ========================================================== */

:root {
    --io-navy: #071d40;
    --io-navy-2: #0b2c5a;
    --io-cyan: #35b9d5;
    --io-yellow: #ffd400;
    --io-bg: #f4f7fa;
    --io-text: #172033;
    --io-muted: #657085;
    --io-white: #ffffff;
    --io-shadow: 0 12px 32px rgba(7, 29, 64, 0.12);
}

body.internal-page {
    margin: 0;
    background: var(--io-bg);
    color: var(--io-text);
    font-family: "Open Sans", Arial, sans-serif;
}

/* HEADER INTERIOR */
.internal-header {
    background: var(--io-navy);
    color: var(--io-white);
    box-shadow: 0 6px 20px rgba(7, 29, 64, 0.18);
}

.internal-header__inner {
    width: min(1180px, 90%);
    min-height: 132px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0;
}

.internal-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.internal-title__icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--io-yellow);
    color: var(--io-navy);
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.internal-title__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--io-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.internal-title h1 {
    margin: 0;
    color: var(--io-white);
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    font-weight: 800;
}

.internal-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border: 2px solid rgba(255,255,255,.65);
    border-radius: 999px;
    color: var(--io-white);
    font-weight: 700;
    text-decoration: none;
    transition: .22s ease;
}

.internal-back:hover {
    background: var(--io-white);
    color: var(--io-navy);
    transform: translateX(-4px);
}

/* CONTENIDO */
.internal-content {
    width: min(1180px, 90%);
    margin: 5vh auto 7vh;
}

.internal-intro {
    max-width: 920px;
    margin: 0 auto 34px;
    text-align: center;
}

.internal-intro h2 {
    margin-bottom: 12px;
    color: var(--io-navy);
    font-weight: 800;
}

.internal-intro p {
    color: var(--io-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* MOSCA INFORMES */


/* FAQ */
.accordion-container { width: min(100%, 1050px); }
.accordion-item {
    margin-bottom: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 14px !important;
    box-shadow: 0 5px 18px rgba(7,29,64,.08);
}
.accordion-button {
    padding: 18px 22px;
    color: var(--io-navy);
    font-weight: 750;
    background: var(--io-white);
}
.accordion-button:not(.collapsed) {
    color: var(--io-navy);
    background: #eef9fc;
    box-shadow: inset 5px 0 0 var(--io-cyan);
}
.accordion-button:focus { box-shadow: none; }
.accordion-body { line-height: 1.75; color: #3d485c; }

/* VISITAS */
.visit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 28px 0 34px;
}
.visit-card {
    min-height: 190px;
    padding: 24px 18px;
    border-radius: 18px;
    background: var(--io-white);
    border-top: 6px solid var(--io-cyan);
    box-shadow: var(--io-shadow);
    text-align: center;
}
.visit-card i { font-size: 2rem; color: var(--io-navy); }
.visit-card h3 { margin: 12px 0 15px; color: var(--io-navy); font-weight: 800; }
.visit-card__dates { color: #536077; line-height: 1.75; }
.visit-register {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}
.visit-register h3 { color: var(--io-navy); font-weight: 800; }
.btn-visit-register {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--io-yellow);
    color: var(--io-navy);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(7,29,64,.18);
    transition: .22s ease;
}
.btn-visit-register:hover { transform: translateY(-4px); color: var(--io-navy); }

/* REQUISITOS */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.requirement-card {
    position: relative;
    min-height: 230px;
    padding: 28px 20px 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    background: var(--io-white);
    color: var(--io-navy);
    box-shadow: var(--io-shadow);
    text-decoration: none;
    transition: .25s ease;
}
.requirement-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: var(--io-yellow);
}
.requirement-card__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #eaf8fb;
    color: var(--io-navy);
    font-size: 2rem;
}
.requirement-card h2 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 800; }
.requirement-card span { color: var(--io-muted); font-weight: 650; }
.requirement-card .bi-arrow-right { margin-left: 5px; }
.requirement-card:hover {
    transform: translateY(-7px);
    color: var(--io-navy);
    box-shadow: 0 18px 38px rgba(7,29,64,.17);
}

/* MODALES */
.internal-modal .modal-header {
    background: var(--io-navy);
    color: var(--io-white);
}
.internal-modal .modal-title { font-weight: 800; }
.internal-modal iframe { width: 100%; border: 0; }

@media (max-width: 900px) {
    .visit-grid,
    .requirements-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .internal-header__inner {
        width: 92%;
        min-height: 105px;
        padding: 18px 0;
        gap: 12px;
    }
    .internal-title { gap: 11px; }
    .internal-title__icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.35rem;
    }
    .internal-title__eyebrow { display: none; }
    .internal-title h1 { font-size: 1.35rem; }
    .internal-back { padding: 9px 11px; }
    .internal-back span { display: none; }
    .internal-content { width: 92%; margin-top: 4vh; }
    .visit-grid,
    .requirements-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .visit-card { min-height: 165px; padding: 18px 10px; }
    .visit-card h3 { font-size: 1rem; }
    .visit-card__dates { font-size: .86rem; }
    .requirement-card { min-height: 180px; padding: 20px 10px 16px; }
    .requirement-card__icon { width: 58px; height: 58px; font-size: 1.55rem; }
    .requirement-card h2 { font-size: 1rem; }
    .requirement-card span { font-size: .82rem; }
}

/* ==========================================================
   MOSCAS FLOTANTES - INFORMES / WHATSAPP
   ========================================================== */

.btn-informes-float,
.btn-whatsapp-float {
    position: fixed;
    right: 0;

    z-index: 1040;

    width: 145px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;

    padding: 0 16px;

    border: 0;
    border-radius: 22px 0 0 22px;

    background: var(--io-yellow);
    color: var(--io-navy);

    box-shadow: 0 8px 25px rgba(7, 29, 64, 0.25);

    font-size: 15px;
    font-weight: 800;
    line-height: 1;

    text-decoration: none;

    transition:
        width 0.22s ease,
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}


/* ==========================================================
   POSICIÓN
   ========================================================== */

.btn-informes-float {
    top: calc(50% - 56px);
}

.btn-whatsapp-float {
    top: calc(50% + 4px);
}


/* ==========================================================
   ICONOS
   ========================================================== */

.btn-informes-float i,
.btn-whatsapp-float i {
    width: 26px;

    flex: 0 0 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
    line-height: 1;

    color: var(--io-navy);
}


/* ==========================================================
   TEXTO
   ========================================================== */

.btn-informes-float span,
.texto-whatsapp {
    white-space: nowrap;
}


/* ==========================================================
   HOVER
   ========================================================== */

.btn-informes-float:hover,
.btn-whatsapp-float:hover {
    width: 155px;

    background: #ffe04d;
    color: var(--io-navy);

    box-shadow: 0 10px 30px rgba(7, 29, 64, 0.32);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 600px) {

    .btn-informes-float,
    .btn-whatsapp-float {
        width: 48px;
        height: 48px;

        justify-content: center;

        padding: 0;

        border-radius: 17px 0 0 17px;

        gap: 0;
    }


    /* Posiciones */

    .btn-informes-float {
        top: calc(50% - 52px);
    }

    .btn-whatsapp-float {
        top: calc(50% + 4px);
    }


    /* Ocultar textos */

    .btn-informes-float span,
    .btn-whatsapp-float .texto-whatsapp {
        display: none;
    }


    /* Iconos */

    .btn-informes-float i,
    .btn-whatsapp-float i {
        width: auto;

        flex: none;

        font-size: 1.35rem;
    }


    /* Sin crecimiento en móvil */

    .btn-informes-float:hover,
    .btn-whatsapp-float:hover {
        width: 48px;
    }

}

/* ==========================================================
   FORMULARIO INFORMES - SUPERLEADS
   ========================================================== */

.overlay-informes {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(7, 29, 64, 0.78);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* Mostrar */

.overlay-informes.is-open {
    opacity: 1;
    visibility: visible;
}


/* Contenedor */

.superleads-container {
    position: relative;

    width: min(650px, 92vw);
    height: min(760px, 90vh);

    overflow: hidden;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);

    transform: translateY(20px) scale(0.97);

    transition: transform 0.25s ease;
}


.overlay-informes.is-open .superleads-container {
    transform: translateY(0) scale(1);
}


/* Iframe */

.superleads-container iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #ffffff;
}


/* Botón cerrar */

.superleads-close {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 10;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: var(--io-navy);
    color: #ffffff;

    font-size: 1.1rem;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.superleads-close:hover {
    transform: scale(1.08);

    background: var(--io-cyan);
}


/* Evitar scroll de la página */

body.formulario-abierto {
    overflow: hidden;
}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 600px) {

    .overlay-informes {
        padding: 0;
    }


    .superleads-container {
        width: 100vw;
        height: 100dvh;

        border-radius: 0;
    }


    .superleads-close {
        top: 8px;
        right: 8px;
    }

}

