/* ===== CARRUSEL LASTONE ===== */
.lastone-carousel-section {
    margin: 3rem 0;
}

.lastone-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.lastone-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 400px;
}

.lastone-slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lastone-slide.active {
    opacity: 1;
}

.lastone-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.lastone-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.lastone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lastone-slide:hover .lastone-image {
    transform: scale(1.05);
}

.lastone-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: white;
    text-align: left;
}

.lastone-content {
    text-align: left;
}

.lastone-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.lastone-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.lastone-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #2c3e50;
}

.lastone-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.lastone-prev {
    left: 1rem;
}

.lastone-next {
    right: 1rem;
}

.lastone-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.lastone-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lastone-indicator.active,
.lastone-indicator:hover {
    background: white;
    transform: scale(1.2);
}

/* Responsive para carrusel lastone */
@media (max-width: 768px) {
    .lastone-carousel-inner {
        height: 300px;
    }
    
    .lastone-image-container {
        height: 300px;
    }
    
    .lastone-title {
        font-size: 1.5rem;
    }
    
    .lastone-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .lastone-control {
        width: 40px;
        height: 40px;
    }
    
    .lastone-prev {
        left: 0.5rem;
    }
    
    .lastone-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .lastone-carousel-inner {
        height: 250px;
    }
    
    .lastone-image-container {
        height: 250px;
    }
    
    .lastone-title {
        font-size: 1.2rem;
    }
    
    .lastone-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .lastone-category {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title a {
    color: #333;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.site-tagline {
    margin-top: 0.5rem;
    opacity: 0.8;
    font-size: 1.1rem;
    color: #666;
}

/* ===== LAYOUT HERO CON VIP ===== */
.hero-layout {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: stretch;
    margin-top: 2rem;
}

.hero-carousel {
    flex: 2;
    margin: 0;
}

.vip-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vip-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vip-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.vip-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.vip-post .post-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.vip-post .post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vip-post:hover .post-image {
    transform: scale(1.05);
}

.vip-post .post-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 0.5rem 1rem 1rem 1rem;
    color: transparent !important;
    text-align: left !important;
}

.vip-title-wrapper {
    position: absolute !important;
    bottom: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    z-index: 100 !important;
    background: rgba(0,0,0,0.8);
    padding: 0.5rem;
    border-radius: 4px;
}

.vip-title {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #ffffff !important;
    line-height: 1.0 !important;
    text-shadow: 1px 1px 3px rgba(200,200,200,0.8) !important;
    display: block !important;
    text-align: left !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* Responsive para VIP */
@media (max-width: 1024px) {
    .hero-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .vip-sidebar {
        order: 2;
    }
    
    .vip-posts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .vip-post .post-image-container {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .vip-posts {
        grid-template-columns: 1fr;
    }
    
    .vip-post .post-image-container {
        height: 180px;
    }
}

/* ===== CARRUSEL HERO ===== */
.hero-carousel {
    margin: 2rem 0;
    position: relative;
    max-width: none;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 850px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Responsive para tablet y escritorio */
@media (min-width: 768px) {
    .carousel-container {
        height: 700px;
    }
}

@media (min-width: 1024px) {
    .carousel-container {
        height: 650px;
    }
}

@media (min-width: 1200px) {
    .carousel-container {
        height: 600px;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA CARRUSEL INDEX EN MÓVIL ===== */
@media (max-width: 767px) {
    /* Contenedor principal del carrusel index */
    .hero-carousel .carousel-container {
        height: 300px !important;
        overflow: hidden;
    }
    
    /* Título fuera de imagen - específico para index */
    .hero-carousel .carousel-title-outside {
        padding: 0.5rem 0.75rem 0.3rem !important;
        text-align: left !important;
        background: rgba(248, 249, 250, 0.95) !important;
        border-bottom: 1px solid #e9ecef !important;
        min-height: auto !important;
    }
    
    .hero-carousel .carousel-title-main {
        font-size: 1.21rem !important; /* aumentado 10% de 1.1rem */
        line-height: 1.2 !important;
        font-weight: 600 !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        color: #333 !important;
        text-shadow: none !important;
    }
    
    /* Contenedor de imagen - específico para index */
    .hero-carousel .carousel-image-container {
        height: 200px !important;
        overflow: hidden;
        position: relative;
    }
    
    .hero-carousel .carousel-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Overlay con excerpt - específico para index */
    .hero-carousel .carousel-overlay {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0.5rem 0.75rem 0.5rem !important;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, transparent 100%) !important;
        min-height: auto !important;
    }
    
    /* Ocultar excerpt en móvil - solución simple */
    .hero-excerpt {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }
    
    /* Controles del carrusel - específico para index */
    .hero-carousel .carousel-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 1rem !important;
        background: rgba(255,255,255,0.9) !important;
        border-radius: 50% !important;
        top: 45% !important;
    }
    
    .hero-carousel .prev-btn {
        left: 0.5rem !important;
    }
    
    .hero-carousel .next-btn {
        right: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    /* Contenedor aún más compacto */
    .hero-carousel .carousel-container {
        height: 280px !important;
    }
    
    /* Título más pequeño */
    .hero-carousel .carousel-title-outside {
        padding: 0.4rem 0.6rem 0.2rem !important;
    }
    
    .hero-carousel .carousel-title-main {
        font-size: 1.1rem !important; /* aumentado 10% de 1rem */
        line-height: 1.1 !important;
    }
    
    /* Imagen más compacta */
    .hero-carousel .carousel-image-container {
        height: 180px !important;
    }
    
    /* Overlay más pequeño */
    .hero-carousel .carousel-overlay {
        padding: 0.4rem 0.6rem 0.4rem !important;
    }
    
    /* Ocultar excerpt en móvil - solución simple */
    .hero-excerpt {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -9999 !important;
    }
    
    /* Controles más pequeños */
    .hero-carousel .carousel-btn {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.9rem !important;
    }
}

/* ===== ESTILOS ORIGINALES PARA ESCRITORIO/TABLET (SIN CAMBIOS) ===== */

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: white;
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.carousel-slide:hover .carousel-image {
    transform: scale(1.05);
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 2rem 2rem 1.5rem;
    color: white;
    text-align: left;
}

.carousel-content {
    max-width: 600px;
    text-align: left;
}

.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-excerpt {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ===== CONTROLES DEL CARRUSEL ===== */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
}

.carousel-control:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active,
.carousel-indicator:hover {
    background: white;
    transform: scale(1.2);
}

/* ===== CONTROLES DEL CARRUSEL (BOTONES FLECHA) ===== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

/* ===== SECCIÓN DE BOTONES DE CATEGORÍAS ===== */
.categories-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.categories-container {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.categories-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.categories-title::after {
    content: '';
    position: absolute;
}

.categories-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.categories-buttons::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

.category-button {
    display: inline-block !important;
    padding: 0.6rem 1.2rem !important;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: auto !important;
    text-align: center !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    border: none !important;
    margin: 0 !important;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.category-button:hover::before {
    left: 0;
}

.category-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

.category-button span {
    position: relative;
    z-index: 1;
}

/* Responsive para categorías */
@media (max-width: 768px) {
    .categories-section {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }
    
    .categories-container {
        padding: 0 1rem;
    }
    
    .categories-buttons {
        gap: 1rem;
        padding: 0 0;
    }
    
    .category-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .categories-section {
        margin: 1rem 0;
        padding: 0.8rem 0;
    }
    
    .categories-buttons {
        gap: 0.8rem;
        padding: 0 0;
    }
    
    .category-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-width: auto;
    }
}

/* ===== SECCIÓN DE POSTS RECIENTES ===== */
.recent-posts {
    margin: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.post-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 2rem 1rem 1rem;
    color: white;
    z-index: 5;
}

.post-image-overlay .post-title {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #ffffff !important;
    line-height: 1.0 !important;
    text-shadow: none !important;
    background: rgba(0,0,0,0.7) !important;
    padding: 0.5rem !important;
    border-radius: 4px !important;
    display: block !important;
    text-align: left !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ===== ESTADO VACÍO ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #666;
}

.empty-content p {
    font-size: 1.1rem;
    color: #999;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title a {
        font-size: 2rem;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-excerpt {
        font-size: 1rem;
    }
    
    .carousel-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 350px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .carousel-control {
        width: 35px;
        height: 35px;
    }
    
    .carousel-prev {
        left: 0.5rem;
    }
    
    .carousel-next {
        right: 0.5rem;
    }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeIn 0.6s ease-out;
}

.post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.post-card:nth-child(3) {
    animation-delay: 0.2s;
}

.post-card:nth-child(4) {
    animation-delay: 0.3s;
}

.post-card:nth-child(5) {
    animation-delay: 0.4s;
}

.post-card:nth-child(6) {
    animation-delay: 0.5s;
}
