/* DISEÑO MODERNO Y COMPATIBLE - CHRISTELLCODE */

body { 
    font-family: 'Segoe UI', Arial, sans-serif; 
    background: #A8B5C2;
    background-image: linear-gradient(135deg, #E0E1DD 0%, #8293B1 100%);
    background-attachment: fixed;
    margin: 0; 
    padding: 20px; 
    color: #1D2639;
}

.container { 
    max-width: 850px; 
    margin: 20px auto; 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 20px; 
    box-shadow: 0 15px 35px rgba(29, 38, 57, 0.2); 
}

h2 { 
    text-align: center; 
    color: #1D2639; 
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid #465975;
    padding-bottom: 12px;
    margin-bottom: 35px;
}

/* --- RECUPERANDO BOTONES UIVERSE --- */
.nav-menu {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.cssbuttons-io {
    position: relative;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.05em;
    border-radius: 0.8em;
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #1D2639, #465975);
    color: white;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.cssbuttons-io span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
    display: inline-flex;
    align-items: center;
    padding: 0.7em 1.2em;
}

.cssbuttons-io svg {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.6em;
}

.cssbuttons-io::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 100%;
    background: #8293B1; /* Color al pasar el mouse */
    z-index: 0;
    transform: skew(30deg) translateX(-115%);
    transition: transform 0.5s cubic-bezier(0.3, 1, 0.8, 1);
}

.cssbuttons-io:hover::before {
    transform: skew(30deg) translateX(-10%);
}

.cssbuttons-io:active {
    transform: scale(0.95);
}

.btn-active {
    background: #1D2639 !important;
    box-shadow: 0 0 12px rgba(29, 38, 57, 0.5);
    outline: 2px solid #fff;
}

/* --- FORMULARIOS ESTILO TECNOLÓGICO --- */
.form-group { 
    margin-bottom: 25px; 
    padding: 20px;
    background: #fcfcfc;
    border-radius: 15px;
    border: 1px solid #E0E1DD;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

label { 
    display: block; 
    margin-bottom: 12px; 
    font-weight: 700; 
    color: #465975;
}

input, select, textarea { 
    width: 100%; 
    padding: 14px; 
    border: 2px solid #E0E1DD; 
    border-radius: 10px; 
    box-sizing: border-box; 
    font-size: 16px;
    transition: 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #1D2639;
    box-shadow: 0 0 8px rgba(29, 38, 57, 0.1);
}

/* ALINEACIÓN RADIOS */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.radio-item input[type="radio"] {
    width: 22px;
    height: 22px;
    margin: 0 12px 0 0;
    cursor: pointer;
}

/* BOTÓN ENVIAR */
.btn-submit {
    background: #1D2639;
    color: white;
    padding: 18px;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #465975;
    transform: translateY(-2px);
}

.hidden { display: none; }
.success { background: #d4edda; color: #155724; padding: 18px; border-radius: 10px; margin-bottom: 20px; text-align: center; border: 2px solid #28a745; font-size: 1.1em; font-weight: bold; }
.error   { background: #f8d7da; color: #721c24; padding: 18px; border-radius: 10px; margin-bottom: 20px; text-align: center; border: 2px solid #dc3545; font-size: 1.1em; font-weight: bold; }


/* BOTÓN GUARDAR ESTILO UIVERSE */
.btn-submit-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.btn-submit-uiverse {
    position: relative;
    font-family: inherit;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.1em;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #1D2639, #465975);
    color: white;
    overflow: hidden;
    width: 100%; /* Para que ocupe todo el ancho del formulario */
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-submit-uiverse span {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    width: 100%;
}

.btn-submit-uiverse::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140%;
    height: 100%;
    background: #8FA3BC;
    z-index: 0;
    transform: skew(30deg) translateX(-115%);
    transition: transform 0.6s cubic-bezier(0.3, 1, 0.8, 1);
}

.btn-submit-uiverse:hover::before {
    transform: skew(30deg) translateX(-10%);
}

.btn-submit-uiverse:active {
    transform: scale(0.97);
}

/* Ajuste para que el div de audiencia se vea bien al aparecer */
#div_audiencia_fecha {
    display: block; /* Por defecto para que JS lo controle con .hidden */
    margin-top: 15px;
    padding: 15px;
    background: #f0f2f5;
    border-radius: 10px;
    border-left: 4px solid #1D2639;
}

.hidden {
    display: none !important;
}