/* 
    Créditos: Cristhian Yalle 
    Descripción: Estilos responsivos para el sitio web de la comunidad de desarrolladores Grupo Yalle.
    Fecha: 2025-06-15
    Licencia: MIT License
    Este archivo contiene estilos CSS para hacer que el sitio web sea responsivo y se adapte a diferentes tamaños de pantalla.
*/

/* Estilos generales */


/* Fondo completo */
body {
    background-image: url('./../../background/bg-contact.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.7);*/
    z-index: 0;
}

/* Contenedor principal */
.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor del formulario */
.form-container {
    background-color: rgb(255 255 255 / 82%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.3);
    padding: 40px;
    width: 700px;
    max-width: 700px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.form-container.visible {
    transform: translateY(0);
    opacity: 1;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 0, 255, 0.1),
            rgba(255, 0, 255, 0),
            rgba(255, 0, 255, 0.1));
    transform: rotate(30deg);
    z-index: -1;
    animation: shine 6s infinite linear;
}

@keyframes shine {
    0% {
        transform: rotate(30deg) translate(-10%, -10%);
    }

    100% {
        transform: rotate(30deg) translate(10%, 10%);
    }
}

/* Título del formulario */
.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #ff8eff;
    font-size: 28px;
    position: relative;
    display: inline-block;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ff8eff;
    border-radius: 3px;
}

/* Grupo de campos */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #686868;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group.focused label {
    color: #ff8eff;
}

/* Campos de entrada */
.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff8eff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Íconos */
.input-icon {
    position: absolute;
    right: 15px;
    top: 40px;
    color: #666;
    transition: all 0.3s ease;
}

.form-group.focused .input-icon {
    color: #ff8eff;
}

/* Botón de enviar */
.submit-btn {
    background-color: #ff8eff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background-color: #e600e6;
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.4);
    transform: translateY(-3px);
}

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

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.submit-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Mensajes de error */
.error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/* Alertas personalizadas */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.5s ease;
}

.custom-alert.show {
    transform: translateX(0);
}

.custom-alert.success {
    background-color: #4CAF50;
    border-left: 5px solid #2E7D32;
}

.custom-alert.error {
    background-color: #F44336;
    border-left: 5px solid #C62828;
}

.custom-alert i {
    margin-right: 10px;
    font-size: 20px;
}

/* Efecto de carga */
.loader {
    display: none;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        
        width: 350px;
    }

    .form-title {
        font-size: 24px;
    }
}