/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #317DC3, #1a5a9e);
    color: #ffffff; /* Asegurando que el texto general tenga buen contraste */
    position: relative;
    overflow: hidden;
}

/* Añadiendo un patrón sutil al fondo */
.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

/* Estilos específicos para los títulos de sección en el área de contacto */
.contact-form-section .section-title {
    color: #ffffff; /* Texto blanco para mejor contraste */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Sombra mejorada para mayor profundidad */
    position: relative;
    display: inline-block;
}

.contact-form-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gracie-red), var(--gracie-blue));
    border-radius: 3px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.contact-form-section .section-subtitle {
    color: #f0f0f0; /* Color claro para mejor contraste */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Sombra mejorada */
    font-weight: 600;
    letter-spacing: 1px;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 50px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-info {
    flex: 1;
    padding: 40px;
    background: #FFFFFF; /* Cambiado de rgba(255, 255, 255, 0.1) a blanco sólido */
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 2.5rem;
    color: var(--e-global-color-text); /* Cambiado de #ffffff a color de texto estándar para mejor contraste con fondo blanco */
    margin-bottom: 20px;
    text-shadow: none; /* Eliminada la sombra ya que no es necesaria en fondo blanco */
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gracie-red);
    border-radius: 3px;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--e-global-color-46479ce); /* Cambiado de #f0f0f0 a color de texto estándar para mejor contraste con fondo blanco */
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--e-global-color-46479ce); /* Cambiado de #f0f0f0 a color de texto estándar para mejor contraste con fondo blanco */
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(49, 125, 195, 0.08); /* Cambiado para un sutil fondo azul claro */
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
}

.contact-item i {
    margin-right: 15px;
    color: var(--gracie-red);
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(225, 37, 27, 0.5);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gracie-red), #b01c14);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(225, 37, 27, 0.5);
}

.social-link:hover::before {
    left: 100%;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gracie-red), var(--gracie-blue));
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 0, 0, 0.15);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--e-global-typography-text-font-family);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) inset;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gracie-blue);
    box-shadow: 0 0 0 3px rgba(49, 125, 195, 0.2), 0 2px 5px rgba(0, 0, 0, 0.05) inset;
    transform: translateY(-2px);
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gracie-red), #b01c14);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(225, 37, 27, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.submit-button:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 37, 27, 0.4);
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(225, 37, 27, 0.3);
}

/* Footer Styles */
.contact-footer {
    background-color: #000000;
    color: var(--e-global-color-818b0ad);
    padding: 60px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 1.2rem;
    color: var(--e-global-color-0d745d2);
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
    gap: 80px;
}

.footer-column {
    margin-bottom: 40px;
}

.footer-column h4 {
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--e-global-color-818b0ad);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--e-global-color-0d745d2);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--e-global-color-primary);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--e-global-color-0d745d2);
    font-size: 0.9rem;
}

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}