/**
 * Carrusel de Noticias Moderno - Patiño Abogados Consultores
 * Diseño tipo slider/carousel con transiciones fluidas
 */

/* ===== CONTENEDOR CARRUSEL ===== */
.news-carousel-wrapper {
    position: relative;
    padding: 20px 0 60px;
    overflow: hidden;
}

.news-carousel-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 10px 30px;
    margin: 0 -10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.news-carousel-container::-webkit-scrollbar {
    display: none;
}

.news-carousel-slide {
    flex: 0 0 calc(100% - 40px);
    scroll-snap-align: start;
    min-width: 280px;
}

@media (min-width: 576px) {
    .news-carousel-slide {
        flex: 0 0 calc(50% - 25px);
    }
}

@media (min-width: 992px) {
    .news-carousel-slide {
        flex: 0 0 calc(33.333% - 20px);
    }
}

/* ===== CARD CARRUSEL MODERNA ===== */
.news-carousel-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.news-carousel-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-carousel-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-carousel-card:hover .card-image img {
    transform: scale(1.08);
}

.news-carousel-card .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #28282a;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-carousel-card .card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-carousel-card .card-date {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.news-carousel-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-carousel-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-carousel-card .card-title a:hover {
    color: #3680b3;
}

.news-carousel-card .card-excerpt {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-carousel-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3680b3;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 16px;
    text-decoration: none;
    transition: gap 0.3s;
}

.news-carousel-card .card-link:hover {
    gap: 12px;
    color: #28282a;
}

/* ===== CONTROLES CARRUSEL ===== */
.news-carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.news-carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #9095A6;
    background: white;
    color: #9095A6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.news-carousel-btn:hover {
    background-color: #28282a;
    color: white;
    transform: scale(1.05);
}

.news-carousel-dots {
    display: flex;
    gap: 8px;
}

.news-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.news-carousel-dot.active {
    background-color: #28282a;
    transform: scale(1.2);
}

/* ===== VER TODAS LINK ===== */
.news-carousel-cta {
    text-align: center;
    margin-top: 30px;
}

.news-carousel-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: #28282a;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 40, 42, 0.2);
}

.news-carousel-cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 40, 42, 0.3);
    color: white;
}
