* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: "Arial", sans-serif;
    background: #000;
    color: white;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    width: 100%;
    padding: 15px 5%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid goldenrod;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 28px;
    color: gold;
    margin-right: 12px;
}

.logo span {
    font-size: 22px;
    font-weight: bold;
    color: gold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botón volver con estilo dorado */
.btn-volver {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border: 1px solid gold;
    padding: 10px 20px;
    color: gold;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    background: transparent;
    font-size: 16px;
}

.btn-volver:hover {
    background: gold;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* HEADER DEL FORMULARIO */
.form-header {
    text-align: center;
    padding: 50px 0 40px;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.form-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: gold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9);
    position: relative;
    display: inline-block;
}

.form-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: gold;
    border-radius: 2px;
}

.form-header .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #ddd;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* SECCIONES DEL FORMULARIO - ESTILO NEGRO/DORADO */
.form-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border-left: 4px solid gold;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #333;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.form-section:hover::before {
    left: 100%;
}

.form-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.2);
    border-color: gold;
}

/* ÚLTIMA SECCIÓN (BOTONES DE ENVÍO) - ESTILO OSCURO */
.form-submit-section {
    background: #1a1a1a !important;
    border-left: 4px solid gold !important;
    border: 1px solid #333 !important;
    color: white !important;
    padding: 25px !important;
    margin-top: 20px !important;
}

.form-submit-section .alert-info {
    background: rgba(255, 215, 0, 0.1) !important;
    border-left: 4px solid gold !important;
    color: #ddd !important;
    border: none !important;
}

.form-submit-section .alert-info strong {
    color: gold !important;
}

.form-submit-section .alert-info .text-danger {
    color: #ff6b6b !important;
}

.section-title {
    color: gold;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.6rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: gold;
    border-radius: 2px;
}

.required::after {
    content: " *";
    color: #ff6b6b;
}

/* ETIQUETAS DE FORMULARIO */
.form-label {
    color: #ddd;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.form-label:hover {
    color: gold;
}

/* INPUTS Y CONTROLES DE FORMULARIO */
.form-control, .form-select, .form-check-input {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    color: white !important;
    transition: all 0.3s ease;
    padding: 12px 15px !important;
    font-size: 1rem;
    border-radius: 8px;
    width: 100%;
}

.form-control:focus, .form-select:focus {
    background: #333 !important;
    border-color: gold !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25) !important;
    color: white !important;
    transform: translateY(-2px);
    outline: none;
}

.form-check-input:checked {
    background-color: gold !important;
    border-color: gold !important;
}

.form-check-label {
    color: #ddd;
    transition: color 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
}

.form-check-label:hover {
    color: gold;
}

/* GRUPOS DE CHECKBOX Y RADIO */
.form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
}

.form-check-inline .form-check-input {
    margin-right: 8px;
    width: auto;
}

/* ESTILO PARA LOS TEXTOS DE AYUDA */
.form-text {
    color: #999 !important;
    font-size: 0.9rem;
    margin-top: 5px;
    line-height: 1.4;
}

/* UPLOAD DE ARCHIVOS - ESTILO MODIFICADO */
.file-input-label {
    cursor: pointer;
    padding: 25px;
    border: 2px dashed #444;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    background: #222;
    color: #ddd;
    position: relative;
    overflow: hidden;
    display: block;
    margin-top: 10px;
}

.file-input-label:hover {
    border-color: gold;
    background: #2a2a2a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.15);
}

.file-input-label i {
    font-size: 2.5rem;
    color: gold;
    margin-bottom: 15px;
    display: block;
    transition: all 0.3s ease;
}

.file-input-label:hover i {
    transform: scale(1.1);
    color: #ffd700;
}

.file-input-label small {
    display: block;
    margin-top: 8px;
    color: #999;
    font-size: 0.9rem;
}

/* MEMBROS DEL STAFF */
.staff-member {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.staff-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: gold;
}

.staff-member:hover {
    border-color: gold;
    background: #2a2a2a;
    transform: translateX(5px);
}

.staff-member h5 {
    color: gold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

/* OPCIONES DE COMPETENCIA */
.competencia-option {
    padding: 18px;
    border: 1px solid #444;
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #222;
    position: relative;
    overflow: hidden;
}

.competencia-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
}

.competencia-option:hover {
    border-color: gold;
    background: #2a2a2a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.competencia-option:hover::before {
    background: gold;
}

.competencia-option.selected {
    background: rgba(255, 215, 0, 0.1);
    border-color: gold;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.15);
}

.competencia-option.selected::before {
    background: gold;
}

.competencia-option .form-check {
    margin: 0;
    width: 100%;
}

.competencia-option .form-check-label {
    width: 100%;
    cursor: pointer;
}

/* ALERTAS Y MENSAJES */
.alert {
    border-radius: 10px;
    border: none;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    margin: 15px 0;
    border-left: 4px solid transparent;
}

.alert i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.alert-info {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: gold;
    color: #ddd;
}

.alert-info strong {
    color: gold;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #ddd;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    color: #ddd;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #ddd;
}

/* BOTONES - ESTILO DORADO */
.btn {
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.btn-secondary {
    background: #444;
    color: white;
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: #555;
    border-color: #555;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-info {
    background: transparent;
    border: 2px solid #17a2b8;
    color: #17a2b8;
}

.btn-info:hover {
    background: #17a2b8;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

.btn-success {
    background: gold;
    color: black;
    border: 2px solid gold;
    font-weight: 700;
    min-width: 200px;
}

.btn-success:hover {
    background: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    color: black;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid gold;
    color: gold;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.btn-outline-primary:hover {
    background: gold;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* CONTENEDOR DE BOTONES */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* MODAL CON ESTILO OSCURO */
.modal-content {
    background: #1a1a1a;
    border: 1px solid #444;
    color: white;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #444;
    background: #222;
    padding: 20px 30px;
}

.modal-header .modal-title {
    color: gold;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.modal-body {
    padding: 30px;
    background: #1a1a1a;
}

.modal-footer {
    border-top: 1px solid #444;
    background: #222;
    padding: 20px 30px;
}

/* EFECTOS DE ANIMACIÓN */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* EFECTO DE BURBUJAS DE FONDO */
.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    animation: floatBubble 20s infinite linear;
}

@keyframes floatBubble {
    0% {
        transform: translateY(100vh) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
}

/* PREVIEW DE ARCHIVOS */
.file-preview {
    margin-top: 15px;
    padding: 15px;
    background: #222;
    border-radius: 8px;
    border: 1px solid #444;
    animation: fadeInUp 0.5s ease;
}

/* ROW Y COLUMNAS RESPONSIVE */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-6, .col-md-4, .col-md-3, .col-md-2 {
    padding: 0 10px;
    flex: 0 0 auto;
}

.col-md-6 {
    width: 50%;
}

.col-md-4 {
    width: 33.333%;
}

.col-md-3 {
    width: 25%;
}

.col-md-2 {
    width: 16.666%;
}

.col-12 {
    width: 100%;
    padding: 0 10px;
}

/* RESPONSIVE DESIGN - MOBILE FIRST */

/* Dispositivos pequeños (móviles) */
@media (max-width: 576px) {
    .navbar {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .logo span {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 24px;
        margin-right: 8px;
    }
    
    .btn-volver {
        padding: 8px 15px;
        font-size: 14px;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .form-header {
        padding: 30px 0 25px;
    }
    
    .form-header h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .form-header h1::after {
        width: 60px;
        height: 2px;
    }
    
    .form-header .lead {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .form-section {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 1.3rem;
        padding-bottom: 12px;
        margin-bottom: 20px;
        gap: 8px;
    }
    
    .section-title i {
        font-size: 1.2rem;
    }
    
    .form-label {
        font-size: 0.95rem;
    }
    
    .form-control, .form-select {
        padding: 10px 12px !important;
        font-size: 0.95rem;
    }
    
    .form-check-label {
        font-size: 0.95rem;
    }
    
    .file-input-label {
        padding: 20px 15px;
        font-size: 0.9rem;
    }
    
    .file-input-label i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .staff-member {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .staff-member h5 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .competencia-option {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .alert {
        padding: 15px;
        font-size: 0.95rem;
        margin: 12px 0;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .btn-success {
        min-width: auto;
    }
    
    .button-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .button-group .btn {
        width: 100%;
    }
    
    .col-md-6, .col-md-4, .col-md-3, .col-md-2 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .row {
        margin: 0;
    }
    
    .form-check-inline {
        display: flex;
        margin-right: 0;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 15px 20px;
    }
    
    /* Ocultar efectos en móvil para mejor rendimiento */
    .form-section::before,
    .bubbles,
    .btn::after,
    .staff-member::before,
    .competencia-option::before {
        display: none;
    }
    
    .form-section:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    }
}

/* Dispositivos medianos (tablets) */
@media (min-width: 577px) and (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .form-header h1 {
        font-size: 2.2rem;
    }
    
    .form-header .lead {
        font-size: 1.1rem;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .col-md-6 {
        width: 100%;
    }
    
    .col-md-4 {
        width: 50%;
    }
    
    .col-md-3 {
        width: 50%;
    }
    
    .btn {
        padding: 13px 25px;
        font-size: 0.98rem;
    }
    
    .button-container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .button-group {
        gap: 12px;
    }
    
    .staff-member {
        padding: 18px;
    }
}

/* Dispositivos grandes (desktop pequeño) */
@media (min-width: 769px) and (max-width: 992px) {
    .container {
        padding: 0 30px;
    }
    
    .form-header h1 {
        font-size: 2.5rem;
    }
    
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-4 {
        width: 50%;
    }
    
    .col-md-3 {
        width: 33.333%;
    }
    
    .btn {
        padding: 14px 26px;
    }
}

/* Dispositivos extra grandes (desktop) */
@media (min-width: 993px) {
    .col-md-6 {
        width: 50%;
    }
    
    .col-md-4 {
        width: 33.333%;
    }
    
    .col-md-3 {
        width: 25%;
    }
    
    .col-md-2 {
        width: 16.666%;
    }
}

/* Ajustes específicos para inputs en columnas */
@media (max-width: 768px) {
    .row > [class*="col-"] {
        margin-bottom: 15px;
    }
    
    .form-check-inline {
        width: auto;
        margin-right: 15px;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: gold;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

/* Mensajes flash responsivos */
.alert-dismissible .btn-close {
    padding: 1rem;
    filter: invert(1);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .form-section,
    .btn,
    .file-input-label,
    .staff-member,
    .competencia-option,
    .bubble {
        transition: none !important;
        animation: none !important;
    }
}

/* Asegurar que los botones sean táctiles en móvil */
@media (hover: none) and (pointer: coarse) {
    .btn, 
    .file-input-label,
    .competencia-option,
    .form-check-label {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        padding: 15px 25px;
    }
}