/* contactStyles.css - Versión limpia y corregida */

/* --- Estilos específicos de la página de contacto --- */

/* Contact Hero */
.contact-hero-bg {
    background-color: #28168be6;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

section.relative.contact-hero-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

section.relative.contact-hero-bg .absolute.inset-0 {
    background: linear-gradient(rgb(58 42 197 / 50%), rgb(59 14 109 / 50%));
}

section.relative.contact-hero-bg .relative.z-10 h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

section.relative.contact-hero-bg .relative.z-10 p {
    font-size: 1.25rem;
    opacity: 0.9;
    color: white;
}

/* Contact Cards */
.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 {
    background-color: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
    padding: 2rem;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(57, 125, 234, 0.2);
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* Contact Info Items */
.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 .flex.items-start {
    margin-bottom: 1.5rem;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 .w-12.h-12 {
    width: 3rem;
    height: 3rem;
    background-color: rgba(57, 125, 234, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 i {
    color: #397DEA;
    font-size: 1rem;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 a {
    color: #397DEA;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 a:hover {
    color: #2563eb;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Why Choose Us Card */
.mt-8.p-6.bg-primary.bg-opacity-5.rounded-xl.border.border-primary.border-opacity-20 {
    background-color: rgba(57, 125, 234, 0.05);
    border: 1px solid rgba(57, 125, 234, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.mt-8.p-6.bg-primary.bg-opacity-5.rounded-xl.border.border-primary.border-opacity-20 h6 {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.mt-8.p-6.bg-primary.bg-opacity-5.rounded-xl.border.border-primary.border-opacity-20 .text-secondary {
    color: #EAA639;
}

.mt-8.p-6.bg-primary.bg-opacity-5.rounded-xl.border.border-primary.border-opacity-20 p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form Styles */
form#contactForm input,
form#contactForm select,
form#contactForm textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #1f2937;
    transition: all 0.3s ease;
}

form#contactForm input:focus,
form#contactForm select:focus,
form#contactForm textarea:focus {
    outline: none;
    border-color: #397DEA;
    box-shadow: 0 0 0 3px rgba(57, 125, 234, 0.1);
}

form#contactForm label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

form#contactForm button {
    background-color: #397DEA !important;
    color: white !important;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

form#contactForm button:hover {
    background-color: #2563eb !important;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(57, 125, 234, 0.3);
}

form#contactForm .flex.items-center input {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0;
}

/* Map & Location Section */
.py-20.bg-gray-50 {
    background-color: #f9fafb;
    padding: 4rem 1rem;
}

.py-20.bg-gray-50 h3 {
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1f2937;
}

.py-20.bg-gray-50 p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.py-20.bg-gray-50 .bg-white.rounded-2xl.shadow-lg.p-8 {
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.py-20.bg-gray-50 .bg-white.rounded-2xl.shadow-lg.p-8:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.py-20.bg-gray-50 .w-20.h-20 {
    width: 5rem;
    height: 5rem;
    background-color: rgba(57, 125, 234, 0.1);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.py-20.bg-gray-50 .w-20.h-20 i {
    color: #397DEA;
    font-size: 1.875rem;
}

.py-20.bg-gray-50 h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.py-20.bg-gray-50 .p-4.bg-gray-50.rounded-lg {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1.5rem;
}

.py-20.bg-gray-50 .p-4.bg-gray-50.rounded-lg i {
    color: #397DEA;
}

/* Error styles */
.field-input.field-error-border {
    border-color: #ef4444 !important;
}
.field-input.field-error-border:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* --- Responsive: correcciones clave para móviles --- */

@media (max-width: 1024px) {
    .lg\:col-span-1,
    .lg\:col-span-2 {
        grid-column: span 1 / span 1 !important;
    }
}

@media (max-width: 768px) {
    .bg-white.rounded-2xl.shadow-lg.border.border-gray-100 {
        padding: 1.5rem;
    }
}

/* Corrección crítica para móviles pequeños (<480px) */
@media (max-width: 480px) {
    .max-w-7xl,
    .max-w-4xl {
        max-width: 100% !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Usar grid en una columna en vez de forzar display: block */
    .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .bg-white.rounded-2xl.shadow-lg.border.border-gray-100 {
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    form#contactForm .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .py-20 {
        padding-top: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    section.relative.contact-hero-bg .relative.z-10 h1 {
        font-size: 1.5rem !important;
        line-height: 1.25;
    }
    section.relative.contact-hero-bg .relative.z-10 p {
        font-size: 0.95rem !important;
        line-height: 1.4;
    }

    /* Reducir margen del ícono */
    .bg-white.rounded-2xl.shadow-lg .flex.items-start .w-12.h-12 {
        margin-right: 0.5rem !important;
    }

    /* Prevenir overflow por texto largo */
    .bg-white.rounded-2xl.shadow-lg .text-gray-700,
    .bg-white.rounded-2xl.shadow-lg .text-gray-600,
    .bg-white.rounded-2xl.shadow-lg a,
    .bg-white.rounded-2xl.shadow-lg span {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
}