/* ===== ESTILOS MODERNOS PARA PATIÑO ABOGADOS CONSULTORES ===== */

/* Variables CSS personalizadas */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== HEADER MODERNO ===== */
.navbar-PAC {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-soft);
}

.navbar-PAC .navbar-nav > li > a {
    position: relative;
    transition: var(--transition);
    font-weight: 600;
}

.navbar-PAC .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-PAC .navbar-nav > li > a:hover::after {
    width: 100%;
}

/* ===== BOTÓN VOLVER ARRIBA ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: white;
}

/* ===== CARDS MODERNAS ===== */
.modern-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
    border: none;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.modern-card .card-img-top {
    transition: var(--transition);
}

.modern-card:hover .card-img-top {
    transform: scale(1.05);
}

/* ===== SECCIÓN DE NOTICIAS MODERNA ===== */
.news-section {
    /* Fondo original mantenido - no modificar */
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.news-card .news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-card .news-content {
    padding: 25px;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-card .news-category {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-card .news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card .news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card .read-more {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.news-card .read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== FILTROS DE NOTICIAS ===== */
.news-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== BÚSQUEDA DE NOTICIAS ===== */
.news-search {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.news-search input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--transition);
}

.news-search input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.news-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.news-search button:hover {
    transform: translateY(-50%) scale(1.05);
}

/* ===== PAGINACIÓN MODERNA ===== */
.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-modern .page-item {
    list-style: none;
}

.pagination-modern .page-link {
    background: var(--white);
    border: 2px solid #e1e8ed;
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.pagination-modern .page-link:hover,
.pagination-modern .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MEJORAS PARA SECCIONES EXISTENTES ===== */
/* .background-11 - Mantener fondo original #fafafa de style.css - NO MODIFICAR */

.background-primary {
    background: var(--gradient-primary) !important;
}

/* Mejoras para las áreas de práctica */
#civil, #comercial, #concursal, #laboral {
    transition: var(--transition);
    cursor: pointer;
}

#civil:hover, #comercial:hover, #concursal:hover, #laboral:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Mejoras para el footer */
footer {
    background: var(--text-dark) !important;
}

/* ===== UTILIDADES ===== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}
