
/* Configuración general */
body {
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    margin: 50px auto;
    margin-top: 15rem;
    max-width: 1100px;
    padding: 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Columna izquierda - Información */
.contact-info-section {
    flex: 1;
    background: linear-gradient(135deg, #ff8a00, #ff6a00);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 15px;
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.info-box h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0; /* Inicia invisible */
    transform: translateY(-30px) rotateX(90deg); /* Comienza fuera con rotación */
    animation: advancedSlideDown 1s ease-out forwards; /* Animación avanzada */
}

.info-box p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    opacity: 0; /* Inicia invisible */
    animation: fadeIn 1.5s ease-in-out forwards; /* Aparece gradualmente */
    animation-delay: 0.5s; /* Retraso para sincronización */
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0; /* Inicia invisible */
    transform: translateY(30px) scale(0.8); /* Más abajo y reducido */
    animation: advancedFadeUp 1.2s ease-in-out forwards; /* Animación avanzada */
    animation-delay: calc(0.3s * var(--index)); /* Retraso escalonado */
}

.contact-info i {
    margin-right: 10px;
    font-size: 1.5rem;
    opacity: 0; /* Inicia invisible */
    transform: scale(0.3) rotate(-90deg); /* Rotación negativa y escala pequeña */
    animation: advancedPopIn 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; /* Rebote al aparecer */
    animation-delay: calc(0.3s * var(--index)); /* Sincronización con los textos */
}

/* Columna derecha - Formulario */
.contact-form-section {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #ff6a00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.contact-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff6a00;
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.btn-submit {
    
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: #ff6a00;
    color: white;
    font-size: 1.1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background: #e05d00;
    transform: scale(1.05);
}

/* Responsividad */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        padding: 10px;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 20px;
    }
}

@media (max-width: 468px) {
    .contact-container{
        margin-top: 18rem;
    }
}

/* Animaciones Avanzadas */
@keyframes advancedSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px) rotateX(90deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes advancedFadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes advancedPopIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Estilos para el contenedor de mensajes */
.message-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    width: 100%; /* Ocupa el ancho completo */
    margin: 5px 0 15px; /* Reduce el margen superior, manteniendo espacio inferior */
    text-align: center;
    position: relative; /* Ajuste para moverlo más arriba si es necesario */
    top: -10px; /* Eleva el mensaje ligeramente */
}

/* Estilos para el mensaje de éxito */
.alert-success {
    background: linear-gradient(135deg, #6d4c41 0%, #5d4037 100%); /* Café oscuro */
   color: beige;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    animation: fadeIn 0.6s ease-in-out;
}

/* Animación suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
