* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.btn-generar {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-generar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.btn-generar:active {
    transform: translateY(-1px);
}

.error-message {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

.equipos-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
    animation: fadeInUp 1s ease-out;
}

.equipo {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.equipo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.equipo-a::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.equipo-b::before {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.equipo:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.equipo h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2c3e50;
    position: relative;
}

.equipo-a h2 {
    color: #e74c3c;
}

.equipo-b h2 {
    color: #3498db;
}

.arquero-section, .jugadores-section {
    margin-bottom: 25px;
}

.arquero-section h3, .jugadores-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.arquero {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    margin-bottom: 10px;
}

.jugadores-list {
    display: grid;
    gap: 8px;
}

.jugador {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.equipo-a .jugador {
    border-left-color: #e74c3c;
}

.equipo-b .jugador {
    border-left-color: #3498db;
}

.jugador:hover {
    transform: translateX(5px);
    background: linear-gradient(135deg, #ffffff 0%, #ecf0f1 100%);
}

.total-jugadores {
    text-align: center;
    font-weight: 600;
    color: #7f8c8d;
    margin-top: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.vs-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.3);
    animation: pulse 2s infinite;
}

.actions {
    text-align: center;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.btn-nuevo {
    padding: 15px 30px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.3);
}

.btn-nuevo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.4);
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .equipos-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-section {
        order: 2;
        margin: 10px 0;
    }
    
    .vs {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .equipo {
        padding: 20px;
    }
    
    .equipo h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .equipo {
        padding: 15px;
    }
}

