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

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

/* Contact Hero */
.contact-hero-bg {
    background-color: #b5e1dc; 
    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: var(--color-primary-darken);
    
}

section.relative.contact-hero-bg .relative.z-10 p {
    font-size: 1.25rem;
    opacity: 0.9;
    color: var(--color-primary-darken);
}

/* 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: var(--color-primary-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 i {
    color: var(--color-primary-darken);
    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: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.bg-white.rounded-2xl.shadow-lg.border.border-gray-100 a:hover {
    color: var(--color-primary-darken);
}

.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: var(--color-primary);
    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: var(--color-primary) !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: var(--color-secondary) !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: var(--color-primary-darken);
}

/* 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;
    }
}

/* Estilo hover personalizado para Choices.js */
.choices__list--dropdown .choices__item--selectable:hover,
.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #e0f7fa !important;
  color: #006064 !important;
}

/* Opcional: ajustar el estilo del campo seleccionado para que coincida con tus inputs */
.choices__inner {
  border: 1px solid #d1d5db !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  color: #1f2937 !important;
  background-color: #fff !important;
  box-shadow: none !important;
  transition: all 0.3s ease !important;
}

.choices__inner:focus,
.choices.is-focused .choices__inner {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(57, 125, 234, 0.1) !important;
}

/* Quitar borde inferior del dropdown */
.choices__list--dropdown {
  border-top: none !important;
  border-color: #d1d5db !important;
}

/* Estilo personalizado para checkboxes */
form#contactForm .flex.items-center {
  position: relative;
}

form#contactForm .flex.items-center input[type="checkbox"] {
  /* Ocultar el checkbox nativo */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Crear el "fake" checkbox */
form#contactForm .flex.items-center input[type="checkbox"] + span::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 0.75rem; /* igual a mr-3 de Tailwind */
  border: 2px solid #d1d5db; /* border-gray-300 */
  border-radius: 4px;
  background-color: white;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Hover sobre todo el label */
form#contactForm .flex.items-center:hover input[type="checkbox"] + span::before {
  border-color: var(--color-primary);
  background-color: #f0f9ff; /* fondo muy claro al hover */
}

/* Checkbox seleccionado */
form#contactForm .flex.items-center input[type="checkbox"]:checked + span::before {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hover cuando está checked */
form#contactForm .flex.items-center:hover input[type="checkbox"]:checked + span::before {
  background-color: var(--color-primary-darken);
  border-color: var(--color-primary-darken);
}