﻿body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 0;
}

.top-nav {
    background-color: #252858;
    padding: 6px 20px;
    display: flex;
    justify-content: flex-end;
    margin-top: -25px;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #FDB803;
    color: #fff;
}

    .btn-primary img {
        width: 18px;
    }

.btn-secondary {
    background-color: transparent;
    border: 1px solid #FDB803;
    color: #FDB803;
}

/* Menú superior */
nav {
    background-color: #252858;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    position: relative;
}

    nav button,
    .dropdown {
        background-color: #FDB803;
        border: none;
        padding: 10px 18px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        color: white;
        transition: background-color 0.3s;
    }

/* Dropdown menu */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 230px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 9999;
    padding: 6px 0;
}

    .dropdown-menu a {
        display: block;
        padding: 12px 16px;
        color: #252858;
        text-decoration: none;
        font-size: 14px;
    }

        .dropdown-menu a:hover {
            background-color: #f1f4ff;
        }

.dropdown-container:hover .dropdown-menu {
    display: block;
}

.dropdown-container.open .dropdown-menu {
    display: block;
}
/* Contenedor de login */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
}

    .login-container h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #252858;
    }

    .login-container label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #333;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        width: 100%;
        padding: 10px 12px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }

/* Contenedor de pantallas */
.login-form {
    max-width: 700px;
    margin: 80px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
}

    .login-form h2 {
        text-align: center;
        margin-bottom: 25px;
        color: #252858;
    }

    .login-form label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #333;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        width: 100%;
        padding: 10px 12px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }

.textbox {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    resize: none;
}

.registro-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 32px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    max-width: 1200px;
    margin: 40px auto;
}

.css3Cont {
    border-radius: 10px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.RadButton.rbButton.css3Cont {
    width: 100%;
    font-weight: bold;
    padding: 12px 18px;
    color: white;
    border: 0;
    border-radius: 6px;
    box-shadow: 2px 4px 6px #444;
    background: #252858; /* Old browsers */
    background: linear-gradient(top, #c3d9ff 0%,#b1c8ef 41%,#98b0d9 100%); /* W3C */
}

    .RadButton.rbButton.css3Cont em {
        font-size: 10px;
        display: block;
    }

    .RadButton.rbButton.css3Cont:hover {
        border: 0;
        background: #252858; /* Old browsers */
    }

/* Opciones de recuperación */
.recovery-options {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

    .recovery-options a {
        color: #252858;
        text-decoration: none;
        margin: 0 8px;
        cursor: pointer;
    }

        .recovery-options a:hover {
            text-decoration: underline;
        }

.next-btn {
    display: inline-flex; /* Para alinear icono y texto */
    align-items: center; /* Centrar verticalmente */
    gap: 8px; /* Espacio entre icono y texto */
    padding: 12px 20px; /* Tamaño del botón */
    border: none; /* Sin borde predeterminado */
    border-radius: 10px; /* Bordes redondeados */
    background: #252858; /* Old browsers */
    background: linear-gradient(top, #c3d9ff 0%,#b1c8ef 41%,#98b0d9 100%); /* W3C */
    color: white; /* Texto blanco */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Sombra suave */
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}


.fila-desafio {
    display: flex;
    align-items: center;
    gap: 12px; /* espacio entre controles */
    margin-bottom: 15px; /* espacio entre filas */
    width: 100%;
}

    .fila-desafio label,
    .fila-desafio .asp-label {
        display: inline-block;
        width: 350px; /* ancho fijo para la descripción */
        font-weight: bold;
    }

    .fila-desafio .input-control {
        display: inline-block;
        vertical-align: middle;
        font-size: 16px;
    }

/* tamaños fijos para cada control */
.txtPreguntas {
    width: 200px !important;
}

.txtNumPreguntas {
    width: 120px !important;
}

.txtFecPreguntas {
    width: 150px !important;
}

/* Grid para preguntas */
.pregunta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas iguales */
    gap: 15px;
    margin-bottom: 15px;
    align-items: start;
}

.pregunta-label {
    font-weight: bold;
    color: #333;
}

.pregunta-input {
    width: 100%;
    min-width: 200px;
}

.RadTabStrip_Bootstrap .rtsLI {
    font-weight: 600;
}

.RadTabStrip_Bootstrap .rtsSelected {
    background-color: #252858 !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0;
}

.RadTabStrip_Bootstrap .rtsLink {
    padding: 14px 18px !important;
}

.form-section {
    background: #f9fafc;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 25px;
    border-left: 5px solid #252858;
}

    .form-section h3 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 18px;
        color: #252858;
    }

/* ===== CONTENEDOR GENERAL ===== */
.contenedorMenu {
    background: transparent !important;
    border: 3px solid #FFD700; /* Amarillo */
    border-radius: 12px;
    padding: 8px 15px;
}

/* ===== MENU PRINCIPAL TRANSPARENTE ===== */
.menuPersonalizado,
.menuPersonalizado .rmRootGroup {
    background: transparent !important;
    border: none !important;
}

    /* Items del menú principal */
    .menuPersonalizado .rmRootGroup > .rmItem > .rmLink {
        background: transparent !important;
        color: white !important;
        text-transform: uppercase;
    }

    /* Hover menú principal */
    .menuPersonalizado .rmRootGroup > .rmItem:hover > .rmLink {
        background: transparent !important;
    }

    /* ===== SUBMENUS CON FONDO BLANCO ===== */
    .menuPersonalizado .rmPopup,
    .menuPersonalizado .rmGroup {
        background-color: #FFFFFF !important;
        border-radius: 8px;
        padding: 5px 0;
    }

        /* Items dentro del submenu */
        .menuPersonalizado .rmGroup .rmItem .rmLink {
            background: transparent !important;
            color: #333 !important;
        }

        /* Hover dentro del submenu */
        .menuPersonalizado .rmGroup .rmItem:hover > .rmLink {
            background-color: #f5f5f5 !important;
        }

    /* ===== TAMAÑO DE TEXTO 14px EN TODO EL MENU ===== */
    .menuPersonalizado .rmLink {
        font-size: 14px !important;
    }

    /* Asegurar también en submenús */
    .menuPersonalizado .rmGroup .rmLink {
        font-size: 14px !important;
    }


/* CONTENEDOR GENERAL CAPTCHA */
.RadCaptcha {
    position: relative;
}

    /* Oculta texto Generate New Image */
    .RadCaptcha .rcRefreshImage {
        font-size: 0 !important;
        text-indent: -9999px;
        overflow: hidden;
    }

    /* Estilo del botón refresh */
    .RadCaptcha .rcRefreshImage {
        width: 34px;
        height: 34px;
        border: 1px solid #FFD700;
        border-radius: 6px;
        position: absolute;
        right: 120px; /* mueve a la derecha del textbox */
        top: 35%;
        transform: translateY(-50%);
        cursor: pointer;
        background: url('../Images/Actualizar.png') no-repeat center center;
        background-size: 18px 18px;
    }

        /* Hover efecto */
        .RadCaptcha .rcRefreshImage:hover {
            background-color: #f5f5f5;
        }

.btn-con-icono {
    background: url('../Images/downloading.png') no-repeat right center;
    padding-right: 90px; /* deja espacio para el icono */

    display: inline-block;
    text-decoration: none;
}

.btn-con-icono-ver {
    background: url('../Images/visualizar.png') no-repeat right center;
    padding-right: 55px; /* deja espacio para el icono */

    display: inline-block;
    text-decoration: none;
}

/* CONTENEDOR GENERAL */
.login-main {

    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    max-width: 850px;
    background: #252858;
    border-radius: 6px;
    overflow: hidden;
}

/* PANEL LOGIN */
.login-container {
    width: 420px;
    background: #ffffff;
    padding: 25px;
    margin: 50px auto;
}

/* PANEL DERECHO */
.panel-opciones {
    width: 260px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

/* BOTONES */
.opcion {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #2f3d86;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: 0.2s;
}

    .opcion:hover {
        transform: translateY(-2px);
    }

/* ICONOS */
.icono {
    font-size: 22px;
}

.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
}

    .toggle-password:hover {
        color: #000;
    }
/* Estilo del contenedor con el borde azul */
.custom-field {
    border: 1px solid #252858; /* Color azul de la imagen */
    border-radius: 5px; /* Bordes redondeados */
    padding: 0 10px 5px 10px;
    margin: 10px 0;
}
/*
Estilo de la etiqueta incrustada*/
    .custom-field legend {
        color: #252858;
        font-size: 14px; /* Tamaño que ya aplicaste */
        font-weight: 600; /* Un poco más de grosor compensa el tamaño pequeño */
        padding: 0 4px; /* Reduce el espacio en blanco a los lados */
        width: auto;
        margin-bottom: 0;
        border: none;
        /* Añade esto para centrarlo mejor verticalmente sobre la línea */
        line-height: 10px;
        position: relative;
        top: 2px; /* Empuja la etiqueta un poco hacia abajo si flota mucho */
    }

/* Quitar el borde propio del RadTextBox para que no se vea doble */
.no-border-box,
.no-border-box.riTextBox,
.no-border-box .riTextBox {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.legend-pequeno {
    font-size: 16px;
    font-weight: bold;
    width:30%;
}

.legend-label {
    font-size: 16px;
    font-weight: bold;
}

.RadInput input::-ms-reveal,
.RadInput input::-ms-clear {
    display: none;
}

.oculto {
    display: none;
}


/* TABLET */
@media (max-width: 992px) {

    .login-main {
        flex-direction: column; /* apila */
        max-width: 500px;
        margin: 40px auto;
    }

    .login-container {
        width: 100%; /* antes 420px */
        padding: 25px;
    }

    .panel-opciones {
        width: 100%; /* antes 260px */
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .opcion {
        flex: 1 1 45%;
        justify-content: center;
        text-align: center;
    }

}


/* CELULAR */
@media (max-width: 576px) {

    .login-main {
        margin: 20px 10px;
        border-radius: 8px;
    }

    .login-container {
        padding: 20px;
    }

    .panel-opciones {
        flex-direction: column;
        padding: 15px;
    }

    .opcion {
        width: 100%;
        font-size: 14px;
        padding: 12px;
    }

    .icono {
        font-size: 18px;
    }

    /* NAV */
    .top-nav {
        justify-content: center;
        padding: 10px;
        margin-top: -25px;
    }

    .nav-actions {
        flex-direction: column;
        gap: 8px;
    }

    /* DROPDOWN */
    .dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }

    /* CAPTCHA FIX (muy importante en Telerik) */
    .RadCaptcha img {
        max-width: 100%;
        height: auto;
    }

    .RadCaptcha .rcRefreshImage {
        right: 10px !important;
    }

    /* INPUT PASSWORD ICON */
    .toggle-password {
        right: 8px;
        font-size: 16px;
    }

    /* LEGEND */
    .legend-pequeno {
        width: auto;
        font-size: 14px;
    }
}





/* ===== FIX GLOBAL PARA FORMULARIOS CON TABLE ===== */
@media (max-width: 768px) {

    /* 🔥 convierte tablas en layout vertical */
    table,
    tbody,
    tr,
    td {
        display: block;
        width: 100% !important;
    }

    tr {
        margin-bottom: 12px;
    }

    td {
        padding: 5px 0;
    }

        /* LABELS */
        td > span,
        td > label {
            display: block;
            margin-bottom: 4px;
            font-weight: 600;
        }

    /* INPUTS TELAERIK */
    .RadInput,
    .RadPicker,
    .RadComboBox,
    .RadNumericTextBox {
        width: 100% !important;
    }

    /* CAMPOS */
    input,
    textarea,
    select {
        width: 100% !important;
        box-sizing: border-box;
    }

    /* BOTONES */
    .css3Cont,
    .RadButton {
        width: 100% !important;
        margin-top: 10px;
    }

    /* FIELDSET */
    fieldset {
        padding: 10px;
    }

    /* RADTABSTRIP (muy importante) */
    .RadTabStrip {
        overflow-x: auto;
        white-space: nowrap;
    }

    /* MULTIPAGE */
    .RadMultiPage {
        width: 100% !important;
    }
}


/* INPUTS SIEMPRE FLUIDOS */
.RadInput input,
.RadInput textarea {
    width: 100% !important;
}

/* EVITA DESBORDES */
* {
    box-sizing: border-box;
}

/* BOTONES RESPONSIVE */
.css3Cont {
    max-width: 250px;
}