/**
 * Estilos específicos para Widgets de Elementor - Estudios PDF PRO
 * 
 * Desarrollado por: Ing. Abel Cabral Ramirez
 * Teléfono: +595982172897
 * Empresa: SC-Innovations
 */

/* =============================================================================
   WIDGETS ELEMENTOR - CATEGORÍAS
   ============================================================================= */

/* Grid de categorías para Elementor */
.elementor-widget-estudios_pdf_categories .elementor-categories-grid,
.responsive-categories-grid {
    display: grid !important;
    gap: 25px !important;
    margin-bottom: 30px;
}

/* Configuración de columnas */
.elementor-categories-grid[data-columns="1"] { 
    grid-template-columns: 1fr !important; 
}
.elementor-categories-grid[data-columns="2"] { 
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important; 
}
.elementor-categories-grid[data-columns="3"] { 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; 
}
.elementor-categories-grid[data-columns="4"] { 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; 
}

/* Tarjetas de categorías */
.elementor-category-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.elementor-category-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-color: #007cba !important;
}

/* Contenido de la tarjeta */
.elementor-category-card .category-content {
    padding: 25px 20px !important;
    text-align: center !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 150px !important;
}

/* Título de la categoría */
.elementor-category-card .category-name {
    margin: 0 0 15px 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.elementor-category-card .category-name a {
    color: #1d2327 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.elementor-category-card .category-name a:hover {
    color: #007cba !important;
    text-decoration: none !important;
}

/* Descripción de la categoría */
.elementor-category-card .category-description {
    color: #666666 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    flex: 1 !important;
    text-align: center !important;
}

/* Contador de estudios */
.elementor-category-card .category-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #007cba, #005a87) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-top: auto !important;
    min-width: 80px !important;
    text-align: center !important;
}

/* Efectos adicionales */
.elementor-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #007cba, #005a87);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.elementor-category-card:hover::before {
    opacity: 1;
}

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

/* Tablet */
@media (max-width: 1024px) {
    .elementor-categories-grid[data-tablet-columns="1"] { 
        grid-template-columns: 1fr !important; 
    }
    .elementor-categories-grid[data-tablet-columns="2"] { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .elementor-categories-grid[data-tablet-columns="3"] { 
        grid-template-columns: repeat(3, 1fr) !important; 
    }
    
    .elementor-category-card .category-content {
        padding: 20px 15px !important;
        min-height: 130px !important;
    }
    
    .elementor-category-card .category-name {
        font-size: 18px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .elementor-categories-grid[data-mobile-columns="1"] { 
        grid-template-columns: 1fr !important; 
    }
    .elementor-categories-grid[data-mobile-columns="2"] { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    
    .elementor-categories-grid {
        gap: 20px !important;
    }
    
    .elementor-category-card .category-content {
        padding: 18px 15px !important;
        min-height: 120px !important;
    }
    
    .elementor-category-card .category-name {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .elementor-category-card .category-description {
        font-size: 13px !important;
        margin-bottom: 15px !important;
    }
    
    .elementor-category-card .category-count {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .elementor-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .elementor-category-card .category-content {
        padding: 15px !important;
        min-height: 100px !important;
    }
}

/* =============================================================================
   CORRECCIÓN DE COLORES CELESTES
   ============================================================================= */

/* Sobrescribir cualquier color celeste no deseado */
.elementor-category-card,
.elementor-category-card *,
.category-card,
.category-card * {
    background-color: transparent !important;
}

.elementor-category-card {
    background: #ffffff !important;
}

.elementor-category-card .category-count {
    background: linear-gradient(135deg, #007cba, #005a87) !important;
    color: white !important;
}

/* Asegurar que no haya estilos celestes heredados */
.elementor-categories-grid .elementor-category-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}

/* Resetear cualquier estilo de tema que pueda interferir */
.elementor-widget-estudios_pdf_categories .elementor-category-card {
    background: #ffffff !important;
    color: inherit !important;
}

