/* ============================================
   Página de Contacto - RE/MAX Metropolitana
   ============================================ */

/* Variables de Colores RE/MAX */
:root {
    --remax-blue: #003DA5;
    --remax-red: #E11B22;
    --remax-dark: #1a1a1a;
    --remax-gray: #666666;
    --remax-light-gray: #f5f5f5;
    --remax-border: #e0e0e0;
}

/* ============================================
   Estilos Generales
   ============================================ */

.contacto-page {
    width: 100%;
}

.contacto-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--remax-dark);
    text-align: center;
    margin-bottom: 3rem;
}

/* ============================================
   Hero Section
   ============================================ */

.contacto-hero {
    background: linear-gradient(135deg, var(--remax-blue) 0%, #0052cc 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contacto-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contacto-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contacto-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Form Section - Nueva Estructura 2 Columnas
   ============================================ */

.contacto-form-section {
    padding: 5rem 0;
    background: var(--remax-light-gray);
}

/* Grid de 2 columnas */
.contacto-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Columna del formulario */
.form-column {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* El shortcode ya tiene su propio diseño, solo aseguramos que ocupe todo el espacio */
.form-column > * {
    width: 100%;
}

/* Columna de información */
.info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Box de información de contacto */
.contact-info-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-box-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--remax-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--remax-light-gray);
}

/* Lista de detalles de contacto */
.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--remax-light-gray);
    border-radius: 10px;
    color: var(--remax-blue);
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--remax-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--remax-dark);
    line-height: 1.5;
}

.detail-value a,
a.detail-value {
    color: var(--remax-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-value a:hover,
a.detail-value:hover {
    color: var(--remax-red);
}

/* Botones de acción rápida */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--remax-light-gray);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-call {
    background: var(--remax-blue);
    color: white;
    border: 2px solid var(--remax-blue);
}

.btn-call:hover {
    background: #0052cc;
    border-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 61, 165, 0.3);
}

.btn-location {
    background: white;
    color: var(--remax-blue);
    border: 2px solid var(--remax-blue);
}

.btn-location:hover {
    background: var(--remax-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 61, 165, 0.2);
}

/* Box de razones */
.reasons-box {
    background: linear-gradient(135deg, var(--remax-blue) 0%, #0052cc 100%);
    padding: 2rem;
    border-radius: 12px;
    color: white;
}

.reasons-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.reasons-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reasons-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.reasons-list li svg {
    flex-shrink: 0;
    stroke-width: 3;
}

/* ============================================
   Contact Methods Section
   ============================================ */

.contacto-methods {
    padding: 5rem 0;
    background: white;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.method-card {
    background: white;
    border: 2px solid var(--remax-border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--remax-blue);
    box-shadow: 0 8px 20px rgba(0, 61, 165, 0.1);
    transform: translateY(-5px);
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--remax-light-gray);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--remax-blue);
}

.method-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--remax-dark);
    margin-bottom: 0.75rem;
}

.method-description {
    font-size: 0.95rem;
    color: var(--remax-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.method-link {
    display: inline-block;
    color: var(--remax-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.method-link:hover {
    color: var(--remax-red);
}

/* ============================================
   FAQ Section
   ============================================ */

.contacto-faq {
    padding: 5rem 0;
    background: var(--remax-light-gray);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--remax-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 61, 165, 0.1);
    transform: translateX(5px);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--remax-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--remax-gray);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */

.contacto-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--remax-blue) 0%, #0052cc 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--remax-red);
    color: white;
    border: 2px solid var(--remax-red);
}

.btn-primary:hover {
    background: #c51019;
    border-color: #c51019;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 27, 34, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--remax-blue);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   SEO Content Section
   ============================================ */

.contacto-seo {
    padding: 4rem 0;
    background: white;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--remax-dark);
    margin-bottom: 1.5rem;
}

.seo-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--remax-gray);
    margin-bottom: 1.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    .contacto-title {
        font-size: 2.5rem;
    }

    .contacto-subtitle {
        font-size: 1.125rem;
    }

    .section-title,
    .cta-title {
        font-size: 2rem;
    }

    /* Layout de 2 columnas en tablet */
    .contacto-form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-box {
        padding: 2rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contacto-hero {
        padding: 3rem 0;
    }

    .contacto-title {
        font-size: 2rem;
    }

    .contacto-subtitle {
        font-size: 1rem;
    }

    .section-title,
    .info-box-title,
    .cta-title {
        font-size: 1.75rem;
    }

    .contacto-form-section,
    .contacto-methods,
    .contacto-faq,
    .contacto-cta,
    .contacto-seo {
        padding: 3rem 0;
    }

    .methods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Form grid en mobile */
    .contacto-form-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-box,
    .reasons-box {
        padding: 1.5rem;
    }

    .info-box-title {
        font-size: 1.5rem;
    }

    /* Botones de acción rápida en mobile */
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .quick-action-btn {
        padding: 0.875rem;
    }

    /* Lista de razones */
    .reasons-list li {
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contacto-title {
        font-size: 1.75rem;
    }

    .section-title,
    .info-box-title,
    .cta-title {
        font-size: 1.5rem;
    }

    .method-card,
    .faq-item,
    .contact-info-box,
    .reasons-box {
        padding: 1.25rem;
    }

    /* Detalles de contacto más compactos */
    .detail-icon {
        width: 40px;
        height: 40px;
    }

    .detail-label {
        font-size: 0.75rem;
    }

    .detail-value {
        font-size: 0.95rem;
    }

    .reasons-title {
        font-size: 1.125rem;
    }

    .quick-action-btn {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
}

/* ============================================
   Animaciones
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contacto-page section {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   Accesibilidad
   ============================================ */

.method-link:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--remax-blue);
    outline-offset: 4px;
}

/* Mejora de contraste para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

