/* =====================================================
   SECCIÓN ESTAMOS CONECTANDO - ESTILOS GLOBALES
   Aplicable en todas las vistas
   ===================================================== */

:root {
    --primary-color: #007bff;
    --secondary-color: #00bcd4;
    --text-primary: #222;
    --text-secondary: #666;
    --bg-lighter: #f8fbff;
    --border-color: #e8e8e8;
    --border-radius-lg: 12px;
    --spacing-md: 1rem;
    --spacing-2xl: 4rem;
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 12px 32px rgba(0, 123, 255, 0.15);
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.estamos-conectando-section {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    padding: var(--spacing-2xl) 1.5rem;
    border-top: 2px solid var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.estamos-conectando-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.titulo-conectando {
    font-size: 2.5rem;
    color: var(--text-primary);
    letter-spacing: -0.8px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    font-weight: 900;
    text-align: center;
    position: relative;
    z-index: 1;
}

.titulo-underline {
    border-bottom: 4px solid var(--secondary-color);
    padding-bottom: 12px;
    display: inline-block;
    position: relative;
}

.titulo-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.conectando-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.card-conectamos {
    background: white;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.1);
    overflow: hidden;
    transition: var(--transition);
    padding: 2.2rem 1.8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-conectamos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.35s ease;
}

.card-conectamos:hover {
    transform: translateY(-14px);
    box-shadow: 0 16px 40px rgba(0, 123, 255, 0.2);
    border-color: var(--secondary-color);
}

.card-conectamos:hover::before {
    width: 100%;
}

.card-conectamos .card-body {
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15) 0%, rgba(0, 188, 212, 0.15) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.2) 0%, rgba(0, 123, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-conectamos:hover .icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.25) 0%, rgba(0, 123, 255, 0.25) 100%);
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.2);
}

.conectando-icon {
    max-height: 70px;
    max-width: 70px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 123, 255, 0.15));
    position: relative;
    z-index: 1;
    transition: transform 0.35s ease;
}

.card-conectamos:hover .conectando-icon {
    transform: scale(1.1);
}

.conectando-content {
    width: 100%;
}

.conectando-numero {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0.5rem 0;
    line-height: 1;
    letter-spacing: -1px;
}

.conectando-plus {
    color: var(--secondary-color);
    font-weight: 900;
    font-size: 1.3em;
    display: inline;
}

.conectando-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.8rem 0 0 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* =====================================================
   RESPONSIVE DESIGN - ESTAMOS CONECTANDO
   ===================================================== */

@media (max-width: 1024px) {
    .conectando-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }

    .titulo-conectando {
        font-size: 2rem;
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .conectando-numero {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .estamos-conectando-section {
        padding: 3rem 1rem;
    }

    .conectando-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.5rem;
    }

    .titulo-conectando {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .card-conectamos {
        padding: 1.5rem 1rem;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 0.3rem;
    }

    .conectando-numero {
        font-size: 1.4rem;
    }

    .conectando-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .estamos-conectando-section {
        padding: 2rem 0.8rem;
    }

    .conectando-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .titulo-conectando {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .card-conectamos {
        padding: 1.2rem 0.8rem;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .conectando-icon {
        max-height: 50px;
        max-width: 50px;
    }

    .conectando-numero {
        font-size: 1.1rem;
    }

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