/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    /* color: #545454; */
    /* background: linear-gradient(135deg, #545454 0%, #6b6b6b 25%, #7a7a7a 50%, #8a8a8a 75%, #999999 100%); */
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: visible;
}

/* Header */
.header {
    margin-bottom: 40px;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.header-image-container {
    position: relative;
    width: 100%;
    margin: 0 -20px;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(84, 84, 84, 0.7) 0%, rgba(238, 169, 35, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}


@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-overlay .badminton-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.header-overlay h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.5px;
}

.header-overlay h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}


.header-overlay .event-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eea923 0%, #f5b041 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(238, 169, 35, 0.5);
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Contenido principal */
.main-content {
    display: grid;
    gap: 30px;
}

.announcement {
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%); */
    color: #545454; 
    background: linear-gradient(135deg, #545454 0%, #6b6b6b 25%, #7a7a7a 50%, #8a8a8a 75%, #999999 100%);
    border-radius: 25px;
    padding: 45px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
    color: #ffffff;
    font-weight: 500;
}

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

.event-card {
    background: #545454;
    background-image: url('img/fondo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(84, 84, 84, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(84, 84, 84, 0.7);
    transition: all 0.4s ease;
    z-index: 1;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 2;
}

.event-card:hover::after {
    left: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 3;
}

.event-card p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 3;
}

#ubicacion {
    background-image: url('img/ubicacion.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#fecha {
    background-image: url('img/reloj.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#trofeus {
    background-image: url('img/medalla.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#precio {
    background-image: url('img/preu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.important-info {
    background: linear-gradient(135deg, #eea923 0%, #f5b041 50%, #e8c547 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-top: 25px;
    box-shadow: 0 15px 30px rgba(238, 169, 35, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.important-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.important-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.age-limit {
    font-size: 1.2rem !important;
    font-weight: 600;
    color: #d53f8c;
}

/* Sección del menú */
.menu-section {
    color: #545454; 
    background: linear-gradient(135deg, #545454 0%, #6b6b6b 25%, #7a7a7a 50%, #8a8a8a 75%, #999999 100%);
    border-radius: 25px;
    padding: 45px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.menu-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* Formulario */
.menu-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Estilos para el campo de email */
.form-help {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 5px;
    font-style: italic;
}

/* Estilos para el botón selector de clubes */
.club-selector-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    font-size: 16px;
    color: #2d3748;
    text-align: left;
    pointer-events: auto !important;
}

.club-selector-btn:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.club-selector-btn:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.club-selector-arrow {
    color: #a0aec0;
    transition: transform 0.3s ease;
    font-size: 12px;
}

/* Estilos para el modal de clubes */
.club-modal-content {
    max-width: 600px;
    max-height: 60vh;
    overflow: visible;
    position: relative;
}

.clubes-grid::-webkit-scrollbar {
    width: 8px;
}

.clubes-grid::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.clubes-grid::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.clubes-grid::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.clubes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.club-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.club-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.club-card.selected {
    border-color: #667eea;
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.club-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 6px;
}

.club-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.3;
}

.club-card.selected .club-name {
    color: #667eea;
    font-weight: 600;
}

/* Responsive para el modal de clubes */
@media (max-width: 768px) {
    .club-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .clubes-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 15px 0;
    }
    
    .club-card {
        padding: 12px;
    }
    
    .club-logo {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }
    
    .club-name {
        font-size: 12px;
    }
    
    .club-selector-btn {
        padding: 10px 12px;
        min-height: 44px;
        font-size: 14px;
    }
}

/* Estilos para el checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label:hover .checkmark {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Espaciado especial para el grupo de acompañante */
.acompanante-group {
    margin-bottom: 25px;
}

.jugador-group {
    margin-bottom: 25px;
}

/* Secciones del formulario */
.form-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: visible;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-description {
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

/* Separador visual entre secciones del formulario */
.form-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 25px 0;
    border: none;
}

/* Opciones del menú */
.menu-options h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.menu-option {
    cursor: pointer;
}

.menu-option input[type="radio"] {
    display: none;
}

.menu-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover::before {
    opacity: 1;
}

.menu-option input[type="radio"]:checked + .menu-card {
    border-color: #eea923;
    background: linear-gradient(135deg, #545454 0%, #6b6b6b 50%, #eea923 100%);
    color: white;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(84, 84, 84, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.menu-option input[type="radio"]:checked + .menu-card::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 1;
}

/* Estil específic per a carn - amb imatge de fons */
.menu-option input[type="radio"][name="segundo_plato"][value="carne"]:checked + .menu-card.carne-card {
    background-image: url('img/cordero2.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    position: relative;
}

.menu-option input[type="radio"][name="segundo_plato"][value="carne"]:checked + .menu-card.carne-card::before {
    background: rgba(84, 84, 84, 0.7) !important;
    z-index: 1;
}

/* Estil específic per a peix - amb imatge de fons */
.menu-option input[type="radio"][name="segundo_plato"][value="pescado"]:checked + .menu-card.pescado-card {
    background-image: url('img/palangre2.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    position: relative;
}

.menu-option input[type="radio"][name="segundo_plato"][value="pescado"]:checked + .menu-card.pescado-card::before {
    background: rgba(84, 84, 84, 0.7) !important;
    z-index: 1;
}

/* Estil específic per a vegetariana - amb imatge de fons */
.menu-option input[type="radio"][name="segundo_plato"][value="vegetariano"]:checked + .menu-card.vegetariano-card {
    background-image: url('img/verdura2.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important;
    position: relative;
}

.menu-option input[type="radio"][name="segundo_plato"][value="vegetariano"]:checked + .menu-card.vegetariano-card::before {
    background: rgba(84, 84, 84, 0.7) !important;
    z-index: 1;
}

.menu-card:hover {
    border-color: #eea923;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.menu-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    margin-bottom: 5px;
}

.menu-card h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 2;
}

.menu-card p {
    font-size: 1rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
    margin: 0;
    line-height: 1.4;
}

/* Estilos para entrantes */
.entrantes-section {
    margin-bottom: 30px;
}

.subsection-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.entrantes-lista {
    margin-bottom: 25px;
}

.entrantes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #545454;
    background-image: url('img/fondo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.entrantes-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(84, 84, 84, 0.7);
    z-index: 1;
}

.entrante-item {
    padding: 15px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.entrante-item:last-child {
    border-bottom: none;
}


.entrante-item::before {
    content: '•';
    color: #eea923;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Estilos para postres (reutilizando estilos de entrantes) */
.postres-section {
    margin-bottom: 30px;
}

.postres-lista {
    margin-bottom: 25px;
}

.postres-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #545454;
    background-image: url('img/fondo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.postres-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(84, 84, 84, 0.7);
    z-index: 1;
}

.postre-item {
    padding: 15px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.postre-item:last-child {
    border-bottom: none;
}


.postre-item::before {
    content: '•';
    color: #eea923;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Estilos para bebidas (reutilizando estilos de entrantes) */
.bebidas-section {
    margin-bottom: 30px;
}

.bebidas-lista {
    margin-bottom: 25px;
}

.bebidas-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #545454;
    background-image: url('img/fondo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bebidas-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(84, 84, 84, 0.7);
    z-index: 1;
}

.bebida-item {
    padding: 15px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.bebida-item:last-child {
    border-bottom: none;
}


.bebida-item::before {
    content: '•';
    color: #eea923;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Checkbox personalizado */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Botón de envío */
.submit-btn {
    background: #eea923;
    color: white;
    border: none;
    padding: 20px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 25px;
    box-shadow: 0 10px 25px rgba(84, 84, 84, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(84, 84, 84, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Modal de confirmación */
.modal {
    display: none;
    position: fixed;
    z-index: 10002; /* Por encima del overlay de plazo cerrado (z-index: 10000) y del botón (z-index: 10001) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 25px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.4s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #545454 0%, #6b6b6b 50%, #eea923 100%);
    color: white;
    padding: 30px;
    border-radius: 25px 25px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #eea923, #f5b041, #e8c547, #f1c40f, #eea923);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

.modal-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

#resumenConfirmacion {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
}

#resumenConfirmacion h4 {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

#resumenConfirmacion p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #ffffff;
    opacity: 1;
    position: relative;
    background: linear-gradient(135deg, #545454 0%, #6b6b6b 25%, #7a7a7a 50%, #8a8a8a 75%, #999999 100%);
    border-radius: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Botón de acceso administrador */
.admin-access {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.admin-login-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.3;
    color: white;
}

.admin-login-btn:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Icono muy disimulado para login */
.admin-access-hidden {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 10001 !important; /* Por encima del overlay de plazo cerrado (z-index: 10000) */
    pointer-events: auto !important;
    isolation: isolate;
}

.admin-login-btn-hidden {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    opacity: 0.3;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    min-width: 35px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-btn-hidden:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.admin-login-btn-hidden:active {
    opacity: 1;
    transform: scale(0.95);
}


/* Modal de Login */
.login-modal-content {
    max-width: 400px;
}

#loginModal {
    z-index: 10002 !important;
}

#clubModal {
    z-index: 10002 !important;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .form-group {
    text-align: left;
}

.login-form label {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #feb2b2;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}


/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-image-container {
        margin: 0 -15px;
    }
    
    .header-image {
        max-height: 300px;
        object-position: center top;
    }
    
    .header-overlay {
        padding: 20px;
    }
    
    .header-overlay h1 {
        font-size: 2rem;
    }
    
    .header-overlay h2 {
        font-size: 1.2rem;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .section-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .header-overlay .badminton-icon {
        font-size: 3rem;
    }
    
    .announcement,
    .menu-section {
        padding: 25px;
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .entrante-item,
    .postre-item,
    .bebida-item {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
        color: white;
    }
    
}

@media (max-width: 480px) {
    .header-image-container {
        margin: 0 -10px;
    }
    
    .header-image {
        max-height: 250px;
        object-fit: contain;
        object-position: center;
    }
    
    .header-overlay {
        padding: 15px;
    }
    
    .header-overlay h1 {
        font-size: 1.8rem;
    }
    
    .header-overlay h2 {
        font-size: 1.1rem;
    }
    
    .header-overlay .badminton-icon {
        font-size: 2.5rem;
    }
    
    .header-overlay .event-badge {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
}

/* Overlay de plazo cerrado */
.plazo-cerrado-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #545454 0%, #6b6b6b 25%, #7a7a7a 50%, #8a8a8a 75%, #999999 100%);
    background-image: url('img/fondo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.plazo-cerrado-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(84, 84, 84, 0.85);
    z-index: 1;
}

.plazo-cerrado-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plazo-cerrado-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
    display: block;
}

.plazo-cerrado-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    color: #EEA923;
    letter-spacing: -1px;
}

.plazo-cerrado-message {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.plazo-cerrado-details {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    backdrop-filter: blur(5px);
}

.plazo-cerrado-subtitle {
    font-size: 1.3rem;
    margin: 15px 0;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.plazo-cerrado-emoji {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.emoji-bounce {
    font-size: 3rem;
    display: inline-block;
    animation: bounce 2s infinite;
}

.plazo-cerrado-footer {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    color: #EEA923;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}


/* Bloquear el formulario cuando el plazo está cerrado */
.container.bloqueado {
    pointer-events: none;
    opacity: 0.3;
    filter: blur(3px);
    user-select: none;
}

/* Responsive para el overlay */
@media (max-width: 768px) {
    .plazo-cerrado-content {
        padding: 30px 20px;
    }
    
    .plazo-cerrado-title {
        font-size: 2.5rem;
    }
    
    .plazo-cerrado-message {
        font-size: 1.2rem;
    }
    
    .plazo-cerrado-subtitle {
        font-size: 1.1rem;
    }
    
    .plazo-cerrado-icon {
        font-size: 4rem;
    }
    
    .emoji-bounce {
        font-size: 2rem;
    }
    
    .plazo-cerrado-footer {
        font-size: 1.4rem;
    }
}
