/* ============================================
   PÁGINA DE CONTACTO - ESTILOS
   ============================================ */

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 5% 50px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.contact-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.95;
}

/* ============================================
   TARJETAS DE CONTACTO
   ============================================ */

.contact-info {
    padding: 80px 5%;
    background: #f8f9fa;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

/* Iconos de las tarjetas */
.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-icon.phone {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

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

.card-icon.email {
    background: linear-gradient(135deg, #EA4335, #FBBC05);
    color: white;
}

.card-icon.location {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
}

.contact-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Contenido de las tarjetas */
.contact-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-detail {
    margin: 10px 0;
}

.contact-detail a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-detail a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.contact-hours {
    margin-top: 15px;
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
}

.contact-address {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
    margin: 15px 0;
}

/* Botones especiales */
.whatsapp-button,
.location-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.whatsapp-button {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.location-button {
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.location-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

/* ============================================
   HORARIOS DE ATENCIÓN
   ============================================ */

.schedule-section {
    padding: 10px 5%;
    background: white;
}

.schedule-container {
    max-width: 10000px; /* ajustado para mayor ancho de las capsulas */
    margin: 0 auto;   
    text-align: center;
}

.schedule-container h2 { /* título de la sección */
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2d3748;
    margin-bottom: 50px;
    font-weight: 800;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.schedule-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.schedule-card:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.schedule-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-icon svg {
    stroke: #667eea;
}

.schedule-card:hover .schedule-icon svg {
    stroke: #667eea;
}

.schedule-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.schedule-card p {
    margin: 10px 0;
    line-height: 1.8;
}

.schedule-card:hover p {
    color: white;
}

/* ============================================
   REDES SOCIALES
   ============================================ */

.social-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.social-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.social-container h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 800;
}

.social-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 150px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.social-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.2);
}

.social-link span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Colores específicos de redes sociales */
.social-link.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-link.facebook:hover svg {
    fill: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    color: white;
}

.social-link.instagram:hover svg {
    fill: white;
}

.social-link.tiktok:hover {
    background: #000000;
    color: white;
}

.social-link.tiktok:hover svg {
    fill: white;
}

/* Colores por defecto de iconos */
.social-link.facebook svg {
    fill: #1877F2;
}

.social-link.instagram svg {
    fill: #E4405F;
}

.social-link.tiktok svg {
    fill: #000000;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .contact-hero {
        padding: 100px 5% 60px;
    }

    .contact-info {
        padding: 60px 5%;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }

    .schedule-section {
        padding: 60px 5%;
    }

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

    .social-section {
        padding: 60px 5%;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 90px 3% 50px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .contact-info,
    .schedule-section,
    .social-section {
        padding: 50px 5%;
    }

    .contact-cards {
        grid-template-columns: 1fr; /* 1 columna en móviles */
    }
}