html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #050a3c;
}


    /* ===========================
   FONDOS
=========================== */

    /* INICIO */
    body.body-inicio {
        background-image: url('../images/Landing_PC_Ciberseguridad.png');
        background-size: 100% auto;
        background-position: top center;
        background-repeat: no-repeat;
    }


    /* RESTO DE LAS PÁGINAS */
    body.body-general {
        background-image: url('../images/Landing_Ciberseguridad_Fondo_PC.jpg');
        background-size: 100% auto;
        background-position: top center;
        background-repeat: no-repeat;
    }



/* ===========================
   HEADER
=========================== */

.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    z-index: 1000;
    box-sizing: border-box;
}


.header-container {
    width: 92%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    /*
        Logo a la izquierda.
        header-right usa margin-left:auto
        para irse contra la derecha.
    */
    justify-content: flex-start;
}



/* ===========================
   LOGO
=========================== */

.header-logo {
    width: 58px;
    height: 58px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}


    .header-logo img {
        width: 48px;
        height: auto;
        display: block;
    }



/* ===========================
   LADO DERECHO HEADER
=========================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 55px;
    /*
        Empuja nav + INSCRIBITE
        al extremo derecho.
    */
    margin-left: auto;
}



/* ===========================
   NAV
=========================== */

.header-nav {
    display: flex;
    align-items: center;
    gap: 48px;
}


    .header-nav a {
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
        transition: color .2s ease;
    }


        .header-nav a:hover {
            color: #25d7ff;
        }



/* ===========================
   BOTÓN INSCRIBITE
=========================== */

.header-register {
    min-width: 115px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient( #03091d, #03091d ) padding-box, linear-gradient( 90deg, #1ed8ff, #9234ff, #e123ff ) border-box;
    color: #25d7ff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: color .2s ease, transform .2s ease;
}


    .header-register:hover {
        color: #fff;
        transform: translateY(-1px);
    }



/* ===========================
   CONTENIDO GENERAL
=========================== */

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    background: transparent;
}


/*
    IMPORTANTE:
    evita que el <main> se achique
    al ancho de su contenido.
*/
main {
    width: 100%;
    min-width: 0;
}


.content-shell {
    width: 100%;
}



/* ===========================
   PÁGINA LOGIN
=========================== */

.consulta-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}



/* ===========================
   CARD LOGIN
=========================== */

.consulta-card {
    position: absolute;
    top: 125px;
    height: 90%;
    left: auto;
    right: 7vw;
    width: 470px;
    padding: 22px 30px 28px;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 21px;
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient( 135deg, #18d8ff 0%, #4ca5ff 35%, #8438ff 70%, #dd38ff 100% ) border-box;
    color: #10172d;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .28), 0 0 22px rgba(45, 105, 255, .13);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
}


.speaker-description {
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

    .speaker-description.expanded {
        display: block;
        overflow: visible;
    }

.read-more-btn {
    display: block;
    margin: 8px auto 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #25d7ff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s ease;
}

    .read-more-btn:hover {
        opacity: .75;
    }
/* ===========================
   FILAS FORMULARIO
=========================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}



/* ===========================
   PARTICIPACIÓN
=========================== */

.participacion-set {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.participacion-label {
    color: #12182b;
    font-size: 13px;
    font-weight: 700;
}


.participacion-options {
    display: flex;
    gap: 16px;
    width: 100%;
}


.participacion-option {
    position: relative;
    width: 50%;
    min-height: 62px;
    padding: 10px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d7dce5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    flex: 1;
}


    .participacion-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


.radio-custom {
    position: relative;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    border: 1.5px solid #2879ef;
    border-radius: 50%;
}


.participacion-option input:checked + .radio-custom::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #2879ef;
}


.participacion-text {
    display: flex;
    flex-direction: column;
    color: #161c30;
    line-height: 1.2;
}


    .participacion-text strong {
        font-size: 12px;
        font-weight: 700;
    }


    .participacion-text small {
        margin-top: 3px;
        color: #8a91a0;
        font-size: 10px;
    }



/* ===========================
   TÉRMINOS
=========================== */

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #42495c;
    font-size: 11px;
    line-height: 1.4;
    cursor: pointer;
}


    .terms-row input {
        width: 17px;
        height: 17px;
        margin: 0;
        flex-shrink: 0;
        accent-color: #2879ef;
    }


    .terms-row a {
        color: #1777ed;
        text-decoration: none;
    }


        .terms-row a:hover {
            text-decoration: underline;
        }



/* ===========================
   ICONO PARTICIPACIÓN
=========================== */

.participacion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2584f5;
    font-size: 19px;
    line-height: 1;
}


    .participacion-icon img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }



/* ===========================
   ICONO SUPERIOR
=========================== */

.consulta-icon {
    width: 43px;
    height: 43px;
    margin: 0 auto 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient( 135deg, #14c9ef 0%, #176ff0 48%, #a927f1 100% );
    box-shadow: 0 5px 14px rgba(65, 99, 230, .22);
}


    .consulta-icon svg {
        width: 27px;
        height: 27px;
    }



/* ===========================
   TÍTULO
=========================== */

.section-title {
    margin: 0;
    text-align: center;
    color: #10172d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.2px;
}



/* ===========================
   RAYITA TÍTULO
=========================== */

.title-line {
    width: 41px;
    height: 2px;
    margin: 11px auto 14px;
    border-radius: 10px;
    background: linear-gradient( 90deg, #16bfff, #8540ff );
}



/* ===========================
   SUBTÍTULO
=========================== */

.consulta-subtitle {
    margin: 0 0 24px;
    text-align: center;
    color: #34405b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}



/* ===========================
   FORMULARIO
=========================== */

.consulta-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}



/* ===========================
   CAMPO
=========================== */

.input-set {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
}


    .input-set label {
        margin: 0;
        color: #11182f;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.3;
    }



/* ===========================
   WRAPPER INPUT
=========================== */

.input-wrapper {
    position: relative;
    width: 100%;
}



/* ===========================
   ICONO INPUT
=========================== */

.input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a4aab6;
    pointer-events: none;
}


    .input-icon svg {
        width: 18px;
        height: 18px;
    }



/* ===========================
   INPUTS
=========================== */

.input-set input {
    display: block;
    width: 100%;
    height: 43px;
    padding: 0 14px 0 41px;
    box-sizing: border-box;
    border: 1px solid #d7dbe3;
    border-radius: 6px;
    background: #ffffff;
    color: #202536;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease;
}


    .input-set input::placeholder {
        color: #9ba1ad;
    }


    .input-set input:focus {
        outline: none;
        border-color: #258cfb;
        box-shadow: 0 0 0 3px rgba(37, 140, 251, .10);
    }



    /* Chrome: sacar flechas del number */

    .input-set input[type="number"]::-webkit-inner-spin-button,
    .input-set input[type="number"]::-webkit-outer-spin-button {
        margin: 0;
        -webkit-appearance: none;
    }


    /* Firefox */

    .input-set input[type="number"] {
        -moz-appearance: textfield;
    }



/* ===========================
   BOTÓN
=========================== */

.consulta-button {
    position: relative;
    width: 100%;
    height: 47px;
    margin-top: 3px;
    padding: 0 45px;
    border: none;
    border-radius: 7px;
    background: linear-gradient( 90deg, #0874df 0%, #2258ec 46%, #8e25ef 100% );
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(42, 74, 222, .13);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}


    .consulta-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 9px 20px rgba(66, 60, 225, .25);
        filter: brightness(1.04);
    }


    .consulta-button:active {
        transform: translateY(0);
    }



/* Flechita derecha */

.button-arrow {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-53%);
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
}



/* ===========================
   LOGIN ERROR
=========================== */

.login-error {
    width: 100%;
    margin: 0 0 17px;
    padding: 10px 13px;
    box-sizing: border-box;
    border: 1px solid #f2b8b8;
    border-radius: 6px;
    background: #fdeaea;
    color: #a51d1d;
    font-size: 13px;
    font-weight: 600;
}



/* ===========================
   CARD SECUNDARIA
=========================== */

.consulta-card2 {
    width: 100%;
    max-width: 840px;
    margin: 0;
    padding: 38px 36px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 18px;
    color: #10172d;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
}



/* ===========================
   DETALLES EVENTO
=========================== */

.detalles-card {
    position: absolute;
    top: 120px;
    /*
        Dejamos 5vw de cada lado
        para que sigan viéndose
        las decoraciones del fondo.
    */
    left: 5vw;
    right: 5vw;
    width: auto;
    padding: 20px 25px;
    box-sizing: border-box;
    color: white;
    line-height: 1.5;
    margin-left: 15%;
    margin-right: 15%;
    border-radius: 10px;
    /*
        Scroll únicamente dentro
        del section si el texto no entra.
    */
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #5270ff transparent;
}


    .detalles-card h2 {
        margin-top: 0;
        margin-bottom: 15px;
    }


    .detalles-card p {
        margin-top: 0;
        margin-bottom: 18px;
    }



    /* Chrome / Edge / Safari */

    .detalles-card::-webkit-scrollbar {
        width: 7px;
    }


    .detalles-card::-webkit-scrollbar-track {
        background: rgba(5, 15, 70, 0.25);
        border-radius: 10px;
    }


    .detalles-card::-webkit-scrollbar-thumb {
        background: linear-gradient( 180deg, #22d9ff 0%, #5570ff 50%, #c45cff 100% );
        border-radius: 10px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }


        .detalles-card::-webkit-scrollbar-thumb:hover {
            background: linear-gradient( 180deg, #55e5ff 0%, #7188ff 50%, #d77aff 100% );
            background-clip: padding-box;
        }

/* ===========================
   MENU MOBILE
=========================== */

.mobile-menu-button,
.mobile-menu {
    display: none;
}

.programa-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

    .programa-page img {
        display: block;
        width: 100%;
        height: auto;
    }
/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    html,
    body {
        margin: 0;
        padding: 0;
        background-color: #050a3c;
    }


    /* ===========================
       DESCRIPCIONES EXPOSITORES
    =========================== */

    .speaker-description-wrapper {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .speaker-description {
        width: 100%;
    }


    /* ===========================
       FONDO INICIO MOBILE
    =========================== */

    body.body-inicio {
        background-image: url('../images/Landing_Mobile_Ciberseguridad.png');
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100vw auto;
    }


    /* ===========================
       FONDO GENERAL MOBILE
    =========================== */

    body.body-general {
        background-image: url('../images/Landing_Ciberseguridad_Fondo_Mobile.jpg');
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100vw auto;
    }


    /* ===========================
       HEADER MOBILE
    =========================== */

    .main-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 14px 0;
        background: transparent;
    }


    .header-container {
        width: 100%;
        margin: 0;
        padding: 0 6px 0 12px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }


    /* El logo HTML desaparece */
    .header-logo {
        display: none;
    }


    /* Nav desktop desaparece */
    .header-nav {
        display: none;
    }


    /* ===========================
       INSCRIBITE + HAMBURGUESA
    =========================== */

    .header-right {
        width: auto;
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }


    /* INSCRIBITE */

    .header-register {
        margin: 0;
        min-width: unset;
        padding: 7px 14px;
        font-size: 10px;
        line-height: 1;
        flex-shrink: 0;
    }


    /* ===========================
       HAMBURGUESA
    =========================== */

    .mobile-menu-button {
        width: 38px;
        height: 38px;
        margin: 0;
        padding: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex-shrink: 0;
        border: 1px solid #25d7ff;
        border-radius: 50%;
        background: rgba(3, 9, 29, .7);
        cursor: pointer;
        z-index: 1002;
    }


        .mobile-menu-button span {
            display: block;
            width: 18px;
            height: 2px;
            background: #25d7ff;
            border-radius: 20px;
            transition: transform .25s ease, opacity .25s ease;
        }


    /* ===========================
       MENÚ DESPLEGABLE
    =========================== */

    .mobile-menu {
        position: absolute;
        top: 65px;
        right: 6px;
        width: 220px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        border: 1px solid rgba(37, 215, 255, .5);
        border-radius: 14px;
        background: rgba(3, 9, 40, .96);
        box-shadow: 0 15px 35px rgba(0, 0, 0, .35), 0 0 20px rgba(37, 215, 255, .08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        z-index: 1001;
    }


        /* MENÚ ABIERTO */

        .mobile-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }


        /* LINKS */

        .mobile-menu a {
            display: block;
            padding: 12px 14px;
            border-radius: 8px;
            color: #fff;
            text-decoration: none;
            font-size: 12px;
            font-weight: 600;
            transition: background .2s ease, color .2s ease;
        }


            .mobile-menu a:hover {
                color: #25d7ff;
                background: rgba(37, 215, 255, .08);
            }


    /* ===========================
       ANIMACIÓN X
    =========================== */

    .mobile-menu-button.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* ===========================
       CONTENIDO MOBILE
    =========================== */

    .page-wrapper {
        width: 100%;
        min-height: 100vh;
        background: transparent;
    }


        .page-wrapper > main {
            width: 100%;
            min-width: 0;
        }


    main {
        width: 100%;
        min-width: 0;
    }


    /* ===========================
       CONSULTA PAGE MOBILE
    =========================== */

    .consulta-page {
        width: 100%;
        min-height: 100vh;
        padding: 100px 16px 30px;
        box-sizing: border-box;
    }


    /*
        SOLO INSCRIPCIÓN:
        dejamos espacio para el contenido
        del fondo antes del formulario.
    */

    .body-inicio .consulta-page {
        padding: clamp(420px, 110vw, 500px) 16px 30px;
    }


    /* ===========================
       CARDS MOBILE
    =========================== */

    .consulta-card,
    .consulta-card2 {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 24px 20px 26px;
        border-radius: 16px;
    }


    /* ===========================
       ICONO MOBILE
    =========================== */

    .consulta-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }


        .consulta-icon svg {
            width: 25px;
            height: 25px;
        }


    /* ===========================
       TÍTULO MOBILE
    =========================== */

    .section-title {
        margin: 0;
        font-size: 20px;
    }


    /* ===========================
       SUBTÍTULO MOBILE
    =========================== */

    .consulta-subtitle {
        margin-bottom: 21px;
        font-size: 12px;
    }


    /* ===========================
       FORM MOBILE
    =========================== */

    .consulta-form {
        gap: 17px;
    }


    .input-set {
        gap: 8px;
    }


        .input-set input,
        .input-set select,
        .form-control {
            width: 100%;
            box-sizing: border-box;
        }


        .input-set input {
            height: 45px;
        }


    /* ===========================
       FILAS MOBILE
    =========================== */

    .form-row {
        grid-template-columns: 1fr;
    }


    /* ===========================
       PARTICIPACIÓN MOBILE
    =========================== */

    .participacion-option {
        width: 100%;
    }


    /* ===========================
       BOTÓN MOBILE
    =========================== */

    .consulta-button {
        width: 100%;
        height: 47px;
    }


    /* ===========================
       CARD SECUNDARIA MOBILE
    =========================== */

    .consulta-card2 p {
        font-size: .95rem;
        line-height: 1.35;
    }


    /* ===========================
       DETALLES MOBILE
    =========================== */

    .detalles-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        margin: 0 auto;
        padding: 20px;
        max-height: none;
        overflow: visible;
        box-sizing: border-box;
    }
}


/* ==========================================================
   MOBILE MUY CHICO
========================================================== */

@media (max-width: 600px) {

    .participacion-options {
        flex-direction: column;
    }
}


/* ==========================================================
   IPHONE / PANTALLAS MUY ANGOSTAS
========================================================== */

@media (max-width: 390px) {

    .body-inicio .consulta-page {
        padding-top: 460px;
    }
}