/**
 * featured.css — Estilos para las minitarjetas de contenido destacado en el Hero
 */

.hero-featured-zone {
    position: absolute;
    bottom: 36px;
    right: 140px; /* A la izquierda de los iconos sociales */
    z-index: 10;
    display: flex;
    gap: var(--sp-3);
    align-items: flex-end;
    animation: fadeUp 1.5s var(--ease-out) 1.5s both;
    max-width: 60%;
}

/* Base común de las tarjetas destacadas */
.hero-feat-card {
    position: relative;
    width: 140px;
    height: 90px;
    border: 1px solid rgba(136, 157, 115, 0.3); /* artichoke semi-transparente */
    background: rgba(244, 240, 221, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-feat-card:hover {
    transform: translateY(-4px);
    border-color: var(--msu-green);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

/* Imágenes de fondo para tarjetas de galería y portafolio */
.hero-feat-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.hero-feat-card.type-gallery img {
    filter: grayscale(80%) sepia(20%);
}
.hero-feat-card.type-gallery:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.hero-feat-card.type-portfolio img {
    filter: sepia(100%) hue-rotate(60deg) saturate(0.5) brightness(0.8);
}
.hero-feat-card.type-portfolio:hover img {
    filter: sepia(30%) saturate(1.2);
    transform: scale(1.05);
}

/* Fondo de textura para el blog */
.feat-blog-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(136, 157, 115, 0.05),
        rgba(136, 157, 115, 0.05) 2px,
        transparent 2px,
        transparent 4px
    );
    z-index: 0;
    transition: opacity 0.3s ease;
}
.hero-feat-card.type-blog:hover .feat-blog-bg {
    opacity: 0.8;
    background-color: var(--artichoke-20);
}

/* Overlay de información (textos y gradiente) */
.feat-overlay {
    position: relative;
    z-index: 1;
    padding: 8px;
    background: linear-gradient(to top, rgba(244, 240, 221, 1) 0%, rgba(244, 240, 221, 0.8) 40%, rgba(244, 240, 221, 0) 100%);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.hero-feat-card:hover .feat-overlay {
    background: linear-gradient(to top, rgba(244, 240, 221, 1) 0%, rgba(244, 240, 221, 0.95) 60%, rgba(244, 240, 221, 0) 100%);
}

.feat-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--artichoke);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.feat-title {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    color: var(--msu-green);
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsividad */
@media (max-width: 992px) {
    .hero-featured-zone {
        right: 40px;
        bottom: 100px;
    }
}

@media (max-width: 768px) {
    .hero-featured-zone {
        display: none; /* Ocultar destacados en móviles si quita espacio al Hero */
    }
}
