/* Estilos base existentes */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fef9c300;
    color: #4B5563;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Contenedor de video de fondo */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.page-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.5; /* mismo efecto que tu imagen anterior */
}

/* Logo superior */
.header-logo {
    text-align: center;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.header-logo img {
    max-height: 80px;
    max-width: 80%;
}

/* Créditos laterales derecha */
.side-credits {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 5;
    width: 180px;
}

.credits-box {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.credits-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #B45309;
    font-size: 1rem;
}

.credits-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.credits-logos img {
    max-width: 100%;
    max-height: 50px;
}

/* Imagen lateral izquierda */
.side-image-left {
    position: fixed;
    top: 120px;
    left: 20px;
    z-index: 5;
    width: 180px;
}

.image-box {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.image-box img {
    max-width: 100%;
    border-radius: 5px;
}

/* Logo footer */
.footer-logo {
    text-align: center;
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 40px;
}

.footer-logo img {
    max-height: 60px;
    max-width: 90%;
}

/* Contenido principal */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Ajustar el contenedor existente */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Responsive */
@media (max-width: 1200px) {
    .side-credits, .side-image-left {
        display: none;
    }
    
    .main-content {
        padding: 20px 10px;
    }
}

/* Resto de los estilos existentes */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-actions h1 {
    margin: 0;
    color: #B45309;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #F59E0B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #B45309;
}

.btn-primary:hover {
    background-color: #92400E;
}

.btn-secondary {
    background-color: #6B7280;
}

.btn-secondary:hover {
    background-color: #4B5563;
}

.btn-danger {
    background-color: #EF4444;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-accent {
    background-color: #F59E0B;
}

.btn-accent:hover {
    background-color: #D97706;
}

.btn-full {
    width: 100%;
    text-align: center;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.form-card {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4B5563;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 95%;
    padding: 5px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    color: #B45309;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #F59E0B;
}

.card h2 {
    color: #B45309;
    margin-top: 0;
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 20px;
}

.info-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    color: #B45309;
    margin-top: 0;
}

.info-section h3 {
    color: #F59E0B;
    margin-top: 20px;
}

.info-section ul {
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 10px;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.participant-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.participant-image {
    height: 200px;
    overflow: hidden;
}

.participant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.participant-content {
    padding: 15px;
    flex-grow: 1;
}

.participant-content h2 {
    color: #B45309;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.participant-author {
    color: #6B7280;
    font-style: italic;
    margin-bottom: 10px;
}

.participant-description {
    margin-bottom: 15px;
}

.participant-footer {
    padding: 15px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-display {
    background-color: #FEF3C7;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 10px;
}

.rating-text {
    color: #B45309;
    font-weight: 600;
}

.no-rating {
    color: #6B7280;
    font-style: italic;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.empty-state h2 {
    color: #B45309;
    margin-top: 0;
}

.empty-state p {
    margin-bottom: 20px;
    color: #6B7280;
}

.section-title {
    color: #B45309;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.participant-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.participant-summary .participant-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.participant-summary h2 {
    color: #B45309;
    margin-top: 0;
    margin-bottom: 5px;
}

.criterios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.criterio {
    background-color: #F9FAFB;
    padding: 15px;
    border-radius: 8px;
}

.criterio h3 {
    color: #B45309;
    margin-top: 0;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .participant-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .participant-summary .participant-image {
        width: 100%;
        height: 200px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Estilos para mensajes */
.success-message {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #10B981;
}

.info-message {
    background-color: #E0F2FE;
    color: #0369A1;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #0EA5E9;
}

.jurado-banner {
    background-color: #FEF3C7;
    color: #B45309;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #F59E0B;
}

.jurado-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #FEF3C7;
    color: #B45309;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
}

.info-text {
    text-align: center;
    color: #6B7280;
    margin-bottom: 20px;
}

/* Botón pequeño */
.btn-small {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Estilos para la previsualización de imágenes */
.image-preview {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #F9FAFB;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Estilos para el input de tipo file */
input[type="file"] {
    padding: 8px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    width: 100%;
    background-color: white;
}

/* Estilos para la tabla de resultados */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #E5E7EB;
}

.results-table th {
    background-color: #F59E0B;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.results-table tr:nth-child(even) {
    background-color: #F9FAFB;
}

.results-table tr:hover {
    background-color: #FEF3C7;
}

/* Ajustes para el gráfico de resultados */
.chart-container {
    margin: 0 auto 30px;
    max-width: 800px;
    height: 400px;
}