/* Estilos para el carousel de redes sociales */

* {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #475569;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Contenedor del carousel */
.carousel-container {
    position: relative;
    margin-bottom: 40px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Navegación del carousel */
.carousel-nav {
    background: #1e3a8a;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #1e40af;
    transform: scale(1.05);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav i {
    font-size: 1.2rem;
}

/* Tarjetas de posts */
.post-card {
    display: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 450px;
}

.post-card.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Imagen del post */
.post-image {
    position: relative;
    height: 250px;
    background: #e2e8f0;
    overflow: hidden;
}

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

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

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.placeholder-image i {
    font-size: 3rem;
    opacity: 0.7;
}

/* Badge de plataforma */
.platform-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.platform-badge i {
    margin-right: 5px;
}

/* Contenido del post */
.post-content {
    padding: 25px;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.post-title a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.post-date {
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-date i {
    margin-right: 8px;
    color: #94a3b8;
}

.post-excerpt {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border: 2px solid #1e3a8a;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.read-more:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-1px);
}

.read-more i {
    margin-left: 8px;
    font-size: 0.8rem;
}

/* Indicadores del carousel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #1e3a8a;
    transform: scale(1.2);
}

.indicator:hover {
    background: #64748b;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer i {
    margin-right: 8px;
    color: #94a3b8;
}

.powered-by {
    font-weight: 500;
}

.powered-by strong {
    color: #1e3a8a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .carousel-wrapper {
        gap: 10px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav i {
        font-size: 1rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-card {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .carousel-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .carousel-nav {
        position: static;
        width: 45px;
        height: 45px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .carousel-indicators {
        gap: 8px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Animaciones adicionales */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading .placeholder-image i {
    animation: pulse 2s infinite;
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .post-card {
        background: #1e293b;
        color: #e2e8f0;
    }
    
    .post-content {
        color: #e2e8f0;
    }
    
    .post-title a {
        color: #60a5fa;
    }
    
    .post-title a:hover {
        color: #93c5fd;
    }
    
    .post-excerpt {
        color: #cbd5e1;
    }
    
    .post-date {
        color: #94a3b8;
    }
    
    .read-more {
        color: #60a5fa;
        border-color: #60a5fa;
    }
    
    .read-more:hover {
        background: #60a5fa;
        color: #1e293b;
    }
}
