/* Estilos base */
.contact-section {
    padding: 100px 0;
    background-image: url('../images/contact-bg-.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.contact-container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
	padding: 0 50px;
}

/* Tarjetas de contacto */
.contact-info-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 80px;
}

.contact-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.contact-icon {
    margin-bottom: 20px;
}

.contact-icon svg {
    width: 50px;
    height: 50px;
}

.contact-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: #010101;
    margin-bottom: 10px;
}

.contact-card-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #5c4e47;
}

/* Contenido de contacto */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-form-column {
    flex: 2;
}

.contact-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea el contenido a la izquierda */
    padding-top: 40px; /* Espacio superior para separar del borde */
}

/* Formulario */
.contact-form {
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #010101;
    margin-bottom: 20px;
}

.form-divider {
    width: 80px;
    height: 3px;
    background-color: #9B877E;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #777;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: #fff;
    padding: 0 5px;
    color: #9B877E;
}

.submit-btn {
    background-color: #9B877E;
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.submit-btn:hover {
    background-color: #7a6a63;
}

.loading-dots::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Texto de contacto */
.contact-main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: #010101;
    margin-bottom: 20px;
}

.contact-divider {
    width: 80px;
    height: 3px;
    background-color: #9B877E;
    margin-bottom: 30px;
}

.contact-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    text-align: left;
    text-align: justify;
    text-align-last: left;
}

.social-icons-contact {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: #9B877E;
    transition: color 0.3s ease;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: #9B877E;
    transition: fill 0.3s ease;
}

.social-icon:hover svg {
    fill: #7a6a63;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-info-cards {
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
}

@media (max-width: 1024px) {
    .contact-info-cards {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form {
        padding: 40px;
    }
    
	.contact-text-column {
        align-items: center; /* Centrado solo en móvil */
        padding-top: 60px; /* Más espacio al estar debajo del formulario */
    }
	
    .contact-description {
        text-align: center;
        text-align-last: center;
    }
    
    .social-icons-contact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .form-title, .contact-main-title {
        font-size: 1.8rem;
    }
    
    .contact-card-title {
        font-size: 1.3rem;
    }
	
	.contact-text-column {
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
}