* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #000000;
    background-image: url("fondo.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    line-height: 1.6;
    animation: gradientBG 45s ease infinite;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    transition: all 0.3s ease;
}

.form-container:hover {
    box-shadow: 0 8px 25px rgba(236, 4, 36, 0.3);
    transform: translateY(-5px);
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 180px;
    height: auto;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

.subtitle {
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    border-color: #ec0424;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group a {
    color: #ec0424;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit {
    background-color: #ec0424;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.btn-submit:hover {
    background-color: #fbcb04;
    color: #333;
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(236, 4, 36, 0.3);
}

.mensaje {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.mensaje.mensaje-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mensaje.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.mensaje.mensaje-info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
    display: block;
}

/* Animaciones */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.form-group input:focus {
    animation: pulse 5s;
    box-shadow: 0 0 0 2px rgba(236, 4, 36, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 4, 36, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(236, 4, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 4, 36, 0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .form-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .logo {
        max-width: 140px;
    }
}