/* HERO CONTACTO */
.contact-hero {
    background: linear-gradient(135deg, #b02424 0%, #8b1c1c 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

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

.contact-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* INFORMACIÓN DE CONTACTO */
.contact-info-section {
    background-color: #f5f5f5;
    padding: 5rem 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px)); /* Cambiado */
    gap: 3rem;
    justify-content: center; /* Añadido para centrar */
}

.contact-card {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(176, 36, 36, 0.2);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
    transform: scale(1.1);
}

.email-icon {
    background: linear-gradient(135deg, #b02424, #8b1c1c);
}

.phone-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.location-icon {
    background: linear-gradient(135deg, #EA4335, #C5221F);
}

.contact-card-title {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-link {
    display: block;
    font-size: 1.2rem;
    color: #b02424;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #8b1c1c;
    text-decoration: underline;
}

.contact-address {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.contact-card-desc {
    font-size: 0.95rem;
    color: #999;
    font-style: italic;
}

/* REDES SOCIALES */
.social-section {
    background-color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.social-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: -1rem auto 3rem auto;
    max-width: 700px;
}

.social-cards {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.social-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.facebook-card {
    background: linear-gradient(135deg, #1877f2, #0c63d4);
}

.youtube-card {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-card-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.social-card:hover .social-card-icon {
    transform: scale(1.15);
}

.social-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.social-card p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: white;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.social-card:hover .social-btn {
    background-color: rgba(255, 255, 255, 0.35);
}

/* MAPA */
.map-section {
    background-color: #f5f5f5;
    padding: 5rem 2rem;
}

.map-container {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.map-iframe {
    display: block;
    width: 100%;
}

/* ==========================================================================
   RESPONSIVE DESIGN - CONTACTO
   ========================================================================== */

/* TABLET - 1024px
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .social-cards {
        max-width: 800px;
    }
}

/* MÓVIL GRANDE - 768px
   ========================================================================== */
@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 1.5rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-subtitle {
        font-size: 1.1rem;
    }

    .contact-info-section {
        padding: 3rem 1.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 2.5rem 1.8rem;
    }

    .contact-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .contact-card-title {
        font-size: 1.5rem;
    }

    .contact-link {
        font-size: 1.1rem;
    }

    .social-section {
        padding: 3rem 1.5rem;
    }

    .social-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-card {
        padding: 2.5rem;
    }

    .map-section {
        padding: 3rem 1.5rem;
    }
}

/* MÓVIL PEQUEÑO - 640px
   ========================================================================== */
@media (max-width: 640px) {
    .contact-hero {
        padding: 2.5rem 1rem;
    }

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

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

    .contact-info-section {
        padding: 2.5rem 1rem;
    }

    .contact-container {
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-icon-wrapper {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }

    .contact-card-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .contact-link {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .contact-address {
        font-size: 1rem;
    }

    .contact-card-desc {
        font-size: 0.9rem;
    }

    .social-section {
        padding: 2.5rem 1rem;
    }

    .social-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .social-cards {
        gap: 1.5rem;
    }

    .social-card {
        padding: 2rem;
    }

    .social-card-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }

    .social-card h3 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .social-card p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .social-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }

    .map-section {
        padding: 2.5rem 1rem;
    }

    .map-container {
        margin-top: 1.5rem;
    }

    .map-iframe {
        height: 300px;
    }
}