body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    position: relative;
    min-height: 100vh;
}

/* Capa de fondo con blur */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url(img/background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(150%) brightness(0.9);
    transform: scale(1.05); /* evita bordes blancos por el blur */
    z-index: -1;
}
.container {
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;

    animation: zoomInContainer 0.8s ease-out;
}

h2 {
    font-size: 26px;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

img {
    display: block;
    margin: 0 auto 30px;
    max-width: 100%;
    height: auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    
}

label {
    font-size: 18px;
    color: #444;
    text-align: center;  /* Esta línea centra el texto */
}

input[type="text"] {
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: #000000;
    background-color: #fff;
}

button {
    padding: 14px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}


@keyframes zoomInContainer {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Diseño móvil */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h2 {
        font-size: 22px;
    }

    input[type="text"] {
        font-size: 14px;
    }

    button {
        font-size: 16px;
        padding: 12px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
/******************************************************************************/

.social-icons a {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    padding: 10px 15px;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    color: white;
}

.facebook-btn {
    background-color: #3b5998;
}

.instagram-btn {
    background-color: #e4405f;
}

.whatsapp-btn {
    background-color: #25D366;
}

.social-icons a:hover {
    opacity: 0.8;
}

.social-icons i {
    font-size: 40px; 
    margin-right: 0; 
}

/*********************************************/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
