/**
 * Contact Page CSS - Página de Contacto
 * Estilos elegantes para la página de contacto con mapa de Google
 */

/* ==========================================================================
   FONDO GLOBAL PARA PÁGINA DE CONTACTO
   ========================================================================== */

body.contact-page,
body.contact-page .site,
body.contact-page #page,
body.contact-page .site-content,
body.contact-page #content,
body:has(.contact-page-wrapper),
body:has(.contact-page-wrapper) .site,
body:has(.contact-page-wrapper) #page,
body:has(.contact-page-wrapper) .site-content,
body:has(.contact-page-wrapper) #content {
    background: var(--color-background) !important;
}

/* ==========================================================================
   WRAPPER PRINCIPAL
   ========================================================================== */

.contact-page-wrapper {
    background: var(--color-background);
    min-height: 100vh;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.contact-hero {
    background: var(--color-background);
    padding: 100px 0 60px 0;
    text-align: center;
    position: relative;
    width: 100%;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-title,
.contact-hero-title {
    color: var(--color-primary) !important;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.2;
    position: relative;
    text-transform: uppercase !important;
    font-family: var(--font-headings) !important;
}

.contact-subtitle {
    color: var(--color-text-light);
    font-size: 22px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Separador decorativo entre hero y tarjetas */
.contact-separator {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 200, 200, 0.3) 20%,
        rgba(150, 150, 150, 0.4) 50%,
        rgba(200, 200, 200, 0.3) 80%,
        transparent 100%
    );
    max-width: 600px;
    margin: 40px auto 0;
}

/* ==========================================================================
   TARJETAS DE INFORMACIÓN
   ========================================================================== */

.contact-info-section {
    padding: 60px 0 80px 0;
    background: var(--color-background);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--color-primary);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(30, 168, 148, 0.1), rgba(27, 105, 131, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-card h3 {
    color: var(--color-text);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.contact-card p {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 5px 0;
}

.contact-card p:last-child {
    margin: 0;
}

.contact-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--color-secondary);
}

.contact-hours,
.contact-response {
    font-size: 14px !important;
    color: var(--color-secondary) !important;
    font-weight: 500;
}

/* ==========================================================================
   FORMULARIO Y REDES SOCIALES - DOS COLUMNAS
   ========================================================================== */

.contact-form-social-section {
    padding: 80px 0;
    background: var(--color-background);
}

.contact-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-container h2,
.contact-social-container h2 {
    color: var(--color-text);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px 0;
}

/* ==========================================================================
   REDES SOCIALES (en columna junto al formulario)
   ========================================================================== */

.contact-social-container h2 {
    color: var(--color-text);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.contact-social-container p {
    color: var(--color-text-light);
    font-size: 18px;
    margin: 0 0 40px 0;
}

.contact-social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(30, 168, 148, 0.1);
    color: var(--color-primary);
}

.contact-social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-social-link.facebook:hover {
    background: #1877F2;
    color: white;
}

.contact-social-link.instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    color: white;
}

.contact-social-link.tiktok:hover {
    background: #000000;
    color: white;
}

/* ==========================================================================
   CTA BOX / FORMULARIO
   ========================================================================== */

.contact-form-intro {
    color: var(--color-text-light);
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.contact-cta-box {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: 30px;
}

.contact-cta-content h3 {
    color: var(--color-text);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.contact-cta-content p {
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 30px 0;
}

.contact-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.contact-cta-button.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(30, 168, 148, 0.3);
}

.contact-cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 168, 148, 0.4);
}

.contact-cta-button.secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.contact-cta-button.secondary:hover {
    background: var(--color-primary);
    color: white;
}

.contact-cta-note {
    font-size: 14px !important;
    color: var(--color-text-light) !important;
    font-style: italic;
}

/* ==========================================================================
   HORARIOS
   ========================================================================== */

.contact-schedule {
    background: linear-gradient(135deg, rgba(30, 168, 148, 0.05), rgba(27, 105, 131, 0.05));
    padding: 25px 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--color-primary);
}

.contact-schedule h4 {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.contact-schedule ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-schedule li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(30, 168, 148, 0.1);
}

.contact-schedule li:last-child {
    border-bottom: none;
}

.contact-schedule span {
    color: var(--color-text-light);
    font-size: 15px;
}

.contact-schedule strong {
    color: var(--color-text);
    font-size: 15px;
}

/* ==========================================================================
   SECCIÓN DE MAPA - DOS COLUMNAS (Mensaje + Mapa)
   ========================================================================== */

.contact-map-section {
    padding: 80px 0 100px 0;
    background: var(--color-background);
}

.contact-map-cta-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.contact-map-cta-icon {
    width: 80px;
    height: 80px;
    margin: 0 0 25px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-map-cta-container h2 {
    color: var(--color-text);
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.contact-map-cta-container p {
    color: var(--color-text-light);
    font-size: 18px;
    line-height: 1.7;
    margin: 0 0 35px 0;
}

.contact-map-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(30, 168, 148, 0.4);
    align-self: center;
}

.contact-map-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 168, 148, 0.5);
}

.contact-map-wrapper {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.contact-map-wrapper iframe {
    border-radius: calc(var(--border-radius) - 5px);
    display: block;
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .contact-title,
    .contact-hero-title {
        font-size: 38px;
    }

    .contact-container {
        padding: 0 30px;
    }

    .contact-two-columns {
        gap: 40px;
    }

    .contact-form-social-section {
        padding: 60px 0;
    }

    .contact-map-section {
        padding: 60px 0;
    }

    .contact-map-cta-container {
        padding: 30px;
    }

    .contact-map-cta-container h2 {
        font-size: 32px;
    }
}

/* ==========================================================================
   RESPONSIVE - MÓVIL
   ========================================================================== */

@media (max-width: 768px) {
    .contact-container {
        padding: 0 20px;
    }

    .contact-hero {
        padding: 80px 0 60px 0;
    }

    .contact-hero-content {
        padding: 0 20px;
    }

    .contact-title,
    .contact-hero-title {
        font-size: 32px;
    }

    .contact-subtitle {
        font-size: 18px;
    }

    /* Tarjetas en columna */
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 0;
    }

    .contact-card {
        padding: 30px 25px;
    }

    /* Formulario y redes sociales en columna */
    .contact-two-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-social-section {
        padding: 60px 0;
    }

    .contact-map-section {
        padding: 60px 0;
    }

    .contact-info-section {
        padding: 60px 0;
    }

    .contact-form-container h2,
    .contact-social-container h2 {
        font-size: 28px;
    }

    .contact-map-cta-container {
        padding: 30px 20px;
    }

    .contact-map-cta-container h2 {
        font-size: 28px;
    }

    .contact-map-cta-container p {
        font-size: 16px;
    }

    .contact-map-wrapper iframe {
        height: 400px;
    }

    .contact-cta-box {
        padding: 35px 25px;
    }

    .contact-social-links {
        gap: 15px;
        justify-content: center;
        margin-bottom: 30px;
    }

    .contact-social-link {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .contact-title,
    .contact-hero-title {
        font-size: 26px;
    }

    .contact-subtitle {
        font-size: 16px;
    }

    .contact-hero {
        padding: 60px 0 40px 0;
    }

    .contact-hero-content {
        padding: 0 15px;
    }

    .contact-info-section {
        padding: 40px 0;
    }

    .contact-form-social-section {
        padding: 40px 0;
    }

    .contact-map-section {
        padding: 40px 0;
    }

    .contact-map-cta-container {
        padding: 20px 15px;
    }

    .contact-map-cta-container h2 {
        font-size: 24px;
    }

    .contact-map-cta-container p {
        font-size: 15px;
        margin: 0 0 25px 0;
    }

    .contact-map-cta-icon {
        width: 60px;
        height: 60px;
    }

    .contact-map-cta-icon svg {
        width: 35px;
        height: 35px;
    }

    .contact-map-wrapper iframe {
        height: 350px;
    }

    .contact-card-icon {
        width: 60px;
        height: 60px;
    }

    .contact-card h3 {
        font-size: 20px;
    }

    .contact-cta-buttons {
        gap: 10px;
    }

    .contact-cta-button {
        padding: 14px 25px;
        font-size: 15px;
    }
}

/* ==========================================================================
   ACCESIBILIDAD
   ========================================================================== */

.contact-page-wrapper a:focus-visible,
.contact-page-wrapper button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
