/*
 * MODULE: Home Header - Header for home-test page
 * Purpose: Styles for home header component
 * WARNING: Do not override global layout here.
 */

.sde-home-header {
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    padding: 10px 0 2px 0;
}

.sde-home-header .sde-container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.sde-home-header__logo-wrap {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    text-align: center;
    padding: 10px 0;
}

.sde-home-header__logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 0 !important;
}

/* Solo afectar a la imagen directa del logo, no a imágenes dentro del contenido */
.sde-home-header__logo > img {
    max-width: 320px;
    width: 100%;
    height: auto;
}

/* Asegurar que NO afecte a imágenes dentro del contenido del post */
.sde-home-header__logo .entry-content img,
.sde-home-header__logo .post-content img,
.sde-home-header__logo .single-post img,
.sde-home-header__logo .page-content img {
    max-width: none;
    width: auto;
    height: auto;
}

.sde-home-header__topics-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 4px;
    border-bottom: 1px solid #e9e9e9;
}

.sde-home-header__topics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 3px 12px;
    white-space: nowrap;
}

.sde-home-header__topics a {
    font-family: "MarcinAnt", serif;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 0.82rem;
    text-decoration: none;
    color: #000 !important;
}

.sde-home-header__topics a:hover {
    color: #EC3335 !important;
}

.sde-home-header__icon {
    color: #f15a24;
    font-size: 1rem;
}

.sde-home-header__meta {
    width: 100%;
    border-top: 1px solid #e9e9e9;
    padding: 4px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.sde-home-header__date {
    font-family: "MarcinAnt", serif;
    text-transform: uppercase;
    font-size: 0.62rem;
    color: #888;
    letter-spacing: 0.5px;
}

.sde-home-header__social a {
    margin-left: 16px;
    font-size: 1.15rem;
    color: #EC3335 !important;
    text-decoration: none;
    transition: 0.2s ease;
}

.sde-home-header__social a:hover {
    color: #000 !important;
}

.sde-home-header.is-stuck {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 1024px) {
    .sde-home-header__topics a {
        font-size: 0.74rem;
    }

    .sde-home-header__logo > img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .sde-home-header__meta {
        display: none !important;
    }

    .sde-home-header__topics {
        justify-content: flex-start;
        gap: 18px;
        padding-left: 15px;
    }

    .sde-home-header__topics a {
        font-size: 0.72rem;
    }

    .sde-home-header {
        padding: 6px 0 2px 0;
    }

    .sde-home-header__logo > img {
        max-width: 260px;
    }
}

