
/* --- home-styles.css --- */

/* Home Dedicated Styles - Phase 5 Migration */

/* Opinion Columnistas Section */
.opinion-columnistas-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.opinion-columnistas-container a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.opinion-columnistas-container a:hover {
    color: #ff5100 !important;
}

/* Featured names for columnists - RESTORED TO LIST ONLY */
.ultimas-columnistas-container .author-name {
    color: #ff5100 !important;
    font-size: 22px !important;
    font-weight: 800;
}

.highlighted-post {
    flex: 2;
}

.highlighted-post img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Utility Classes for Border Radius */
.h-br-8 { border-radius: 8px !important; }
.h-br-6 { border-radius: 6px !important; }
.h-br-4 { border-radius: 4px !important; }

.h-aspect-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    display: block;
    margin-bottom: 12px;
    border-radius: 6px !important; /* Force it here */
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari fix for overflow + border-radius */
    mask-image: radial-gradient(white, black);
}

.h-aspect-16-9 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

.small-posts-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-right: 5px; /* Safety padding */
}

.small-post-item img {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

.post-meta {
    font-size: 13px;
    color: #555555;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-meta a {
    color: inherit;
    text-decoration: none;
}

.post-meta a:hover {
    color: #ff5100;
}

.post-meta img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.post-meta .sep {
    color: #ccc;
    margin: 0 4px;
}

.post-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 15px 0 2px 0 !important; /* Standardized with tight bottom */
}
.highlighted-post .post-text-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.highlighted-post .hatch-post-meta {
    margin: 0 !important;
    padding: 0 !important;
}
.highlighted-post .post-title {
    margin: 0 !important;
}
.highlighted-post p.post-excerpt {
    margin: 0 !important;
}

.post-img-link {
    display: block;
    overflow: hidden;
}

.highlighted-post .post-img-link {
    flex-grow: 1;
    display: flex;
    margin-bottom: 20px;
}
.highlighted-post .post-img-link img {
    width: 100%;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover;
    margin-bottom: 0 !important;
}

.post-title a {
    color: #333;
    text-decoration: none;
    display: inline-block;
}

.post-title a:hover {
    color: #ff5100;
}

.post-title-small {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    margin: 8px 0 0px 0 !important; /* Zero bottom margin */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5em; 
}
/* Dock meta to title only in the middle news items */
.small-post-item .hatch-post-meta {
    margin-top: -2px !important; /* Force docking */
    margin-bottom: 5px !important;
    padding: 0 !important;
}
.post-title-small a {
    color: #333;
    text-decoration: none;
    display: inline-block;
}

.post-title-small a:hover {
    color: #ff5100;
}

.post-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt-small {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    margin-bottom: 0;
}

/* Mobile Opinion */
.opinion-columnistas-mobile-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
}

.mobile-post-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

/* Ultimas Columnistas List (Sidebar/Bottom) */
.ultimas-columnistas-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    padding: 0;
}

.columnista-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.columnista-item.last {
    border-bottom: none;
}

.columnista-details {
    flex: 1;
}

.columnista-details .author-name {
    font-size: 22px !important;
    font-weight: 800;
    margin: 0;
    color: #ff5100 !important;
    line-height: 1.2;
    text-transform: uppercase;
}

.columnista-details .post-link-title {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    margin: 5px 0;
    transition: color 0.3s ease;
}

.columnista-details .post-link-title:hover {
    color: #FF5100 !important;
}

.columnista-image {
    flex-shrink: 0;
}

.columnista-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Columna Universitaria */
.columna-universitaria-container {
    display: flex;
    gap: 30px;
}

/* 3-Column Layout: HERO | 300px MIDDLE | SIDEBAR */
.h-opinion-full-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 40px;
}

.h-opinion-main-block {
    flex: 1; /* This is the container for [opinion_columnistas] (Hero + Middle) */
    display: flex;
    gap: 30px;
}

.opinion-columnistas-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 30px;
    box-sizing: border-box;
}

.highlighted-post {
    flex: 1.5;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.small-posts-stack {
    width: 300px !important; /* Middle column fixed 300px */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.h-opinion-sidebar {
    width: 350px !important; /* Right column (Sidebar list) */
    flex-shrink: 0;
}

.ultimas-columnistas-container {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Home Section Styles */
.h-home-section {
    margin-bottom: 70px; /* Standardized spacing */
}

/* Advertising Banners Row */
.h-ad-banners-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.h-ad-banner-col {
    flex: 1;
    text-align: center;
}

@media (max-width: 640px) {
    .h-ad-banners-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .h-ad-banner-col {
        width: 100%;
    }
}
.h-section-opinion {
    background-color: #FAFAFA;
    padding: 30px 0 0;
    /* margin-bottom already handled by .h-home-section (70px) */
}

/* Banners publicitarios – 2 columnas */
.h-section-ad-banners {
    margin-bottom: 70px;
}

.h-ad-banners-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.h-ad-banner-col {
    min-width: 0;
    overflow: hidden;
}

/* Los banners del plugin llenan su columna */
.h-ad-banner-col img,
.h-ad-banner-col a,
.h-ad-banner-col > * {
    width: 100%;
    display: block;
}

/* Mobile: 1 columna */
@media (max-width: 640px) {
    .h-ad-banners-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.h-section-title {
    font-size: 22px !important; /* Forcing 22px as requested */
    font-weight: 800;
    color: #ff5100;
    margin: 0;
    text-transform: uppercase;
}

/* Category Grid Row (3 Columns) */
.h-category-flex-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.h-cat-col {
    min-width: 0; /* prevent overflow */
}

/* Multimedia Block */
.h-multimedia-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.h-multimedia-yt {
    flex: 0 0 320px;
}

.h-multimedia-spotify {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .h-multimedia-row {
        flex-direction: column;
        gap: 30px;
    }
    .h-multimedia-yt {
        width: 100%;
        flex: none;
        max-width: 400px;
        margin: 0 auto;
    }
    .h-multimedia-spotify {
        width: 100%;
        text-align: left;
    }
    .last-episode-mobile {
        display: block;
        margin-bottom: 30px;
        text-align: left;
    }
    .last-episode-mobile div[style*="position: relative"] {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
    }
    .last-episode-mobile img {
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    .last-episode-mobile h3 {
        font-size: 18px;
        margin: 10px 0;
        line-height: 1.3;
        text-align: left;
    }
}

/* Newsletter Section - Premium Dark Style */
.h-section-newsletter {
    background-color: #383838;
    padding: 70px 0;
    margin-bottom: 70px;
}

.h-newsletter-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centers both columns as a single block */
    align-items: center;
    gap: 80px;
}

.h-newsletter-left {
    flex: 0 1 auto;
    text-align: left; /* Left aligned content in left column */
}

.h-newsletter-logo {
    width: 400px !important;
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.h-newsletter-title {
    font-size: 28px;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}

.h-newsletter-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.h-newsletter-right {
    flex: 0 1 auto;
    max-width: 550px;
}

/* Form Styling */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.newsletter-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    width: 320px; /* Fixed width for better control in centered layout */
    max-width: 100%;
    padding: 10px 15px;
    background: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    box-sizing: border-box; /* Fix for mobile overflow */
}

.newsletter-checkbox {
    color: #fff;
    font-size: 13px;
}

.newsletter-checkbox label {
    display: flex;
    justify-content: flex-start; /* Left aligned checkbox */
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.newsletter-checkbox a {
    color: #fff;
    text-decoration: underline;
}

.btn-nl-submit {
    background-color: #fff;
    color: #383838;
    border: none;
    padding: 10px 40px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start; /* Left aligned button */
    text-transform: none;
}

.btn-nl-submit:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

.nl-success { color: #4CAF50; font-size: 14px; margin-top: 10px; }
.nl-error { color: #FF5252; font-size: 14px; margin-top: 10px; }

/* Responsive Newsletter */
@media (max-width: 900px) {
    .h-newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .h-newsletter-logo {
        margin: 0 auto 20px;
    }
    .btn-nl-submit {
        align-self: center;
    }
    .h-newsletter-right {
        width: 100%;
    }
    .newsletter-form input[type="text"],
    .newsletter-form input[type="email"] {
        width: 100%; /* Full width on mobile */
    }
}


/* Metadata Global Standardization (11px icons) */
.h-post-meta img,
.entry-meta img,
.sidebar-post-meta img,
.h-home-featured-meta img {
    width: 11px !important;
    height: 11px !important;
}

/* Responsive Gaps – Tablet */
@media (max-width: 1024px) {
    .h-opinion-full-row {
        flex-direction: column;
        gap: 30px;
    }

    .h-opinion-sidebar,
    .small-posts-stack {
        width: 100% !important;
    }

    .h-opinion-main-block {
        flex-direction: column;
    }

    .h-category-flex-row {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Responsive Gaps – Mobile (375px) */
@media (max-width: 640px) {
    /* Section Gaps */
    .h-home-section {
        margin-bottom: 60px !important; /* Increased separation between major blocks */
    }

    .h-section-videocolumnas {
        margin-bottom: 10px !important; /* Reduce espacio antes de banners */
    }

    .revista-ad {
        margin: 10px 0;
    }

    .h-section-title {
        font-size: 22px;
        text-transform: uppercase;
        font-weight: 800; /* Ensure category titles are strong */
    }

    /* Hierarchy fix: Featured title should be slightly less loud than category title */
    .main-title {
        font-size: 20px !important;
        margin-top: 15px !important;
    }

    /* Columnas a 1 sola */
    .h-category-flex-row,
    .opinion-columnistas-container,
    .columna-universitaria-container {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        gap: 60px; /* Separación clara entre bloques principales */
    }

    /* Hierarchy fix: Featured title should be slightly less loud than category title */
    .main-title, .post-title, .highlighted-post .post-title-small {
        font-size: 20px !important;
        margin-top: 15px !important;
    }

    /* Small posts in university block - match category style strictly on mobile */
    .small-post-item {
        display: grid !important;
        grid-template-columns: 110px 1fr !important;
        gap: 15px !important;
        align-items: start !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid #eee;
    }

    .small-post-item:last-child { border-bottom: none; }

    .small-post-item .h-aspect-16-9 {
        width: 110px !important;
        margin: 0 !important;
    }

    .small-post-item .item-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        min-width: 0;
        justify-content: flex-start !important;
    }

    .small-post-item .post-title-small {
        font-size: 16px !important;
        font-weight: 700 !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .small-post-item .post-meta {
        font-size: 11px !important;
        margin: 0 !important;
        display: flex !important;
        gap: 8px;
        order: 2; /* Ensure meta stays below title if flex order is used */
    }

    /* Opinion and University Section Mobile Overrides */
    .opinion-columnistas-container,
    .columna-universitaria-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* Spacing between featured and first small post */
    }

    .h-opinion-full-row {
        display: block !important;
        width: 100% !important;
    }

    .h-opinion-main-block {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .h-opinion-sidebar {
        display: block !important;
        width: 100% !important;
        margin-top: 40px !important;
        padding-top: 30px;
        border-top: 1px solid #eee;
    }

    @media (min-width: 1024px) {
        /* Legacy rule if needed, keeping empty for now to match deletion */
    }

    /* Category post item – stacked on mobile */
    .category-post-item {
        padding: 12px 0;
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }

    .category-post-item .item-img-link img {
        width: 110px !important;
        height: 62px !important;
        border-radius: 4px !important;
    }

    .category-post-item .item-title {
        font-size: 13px !important;
        height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .ultimas-columnistas-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .highlighted-post img {
        height: auto !important;
        aspect-ratio: 16/9 !important;
    }

    .post-title {
        font-size: 18px;
    }

    .post-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .small-posts-stack {
        width: 100% !important;
        gap: 15px;
    }


    /* Reducir listado de categorías de 4 a 2 items secundarios */
    .category-post-item:nth-child(n+3) {
        display: none;
    }
}

/* University Block Desktop Grid (when using small-posts-stack structure) */
@media (min-width: 768px) {
    .h-section-col-univer .small-posts-stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

.small-posts-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mobile-grid-item .post-title-small {
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0;
}

/* Category Posts (Home Ranking) */
.category-posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-post-main .main-img-link img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 6px !important; /* Grid standardization: 6px */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: block;
}

.category-post-main .main-title {
    font-size: 22px;
    font-weight: 800;
    margin: 12px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: 2.6em; /* Forces 2 lines height for alignment */
}

.category-post-main .main-title a {
    color: #333;
    text-decoration: none;
}

.category-post-main .main-title a:hover {
    color: #FF5100;
}

.category-post-main .main-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em; /* Forces 3 lines height for alignment */
}


.category-post-list {
    display: flex;
    flex-direction: column;
}

.category-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-post-item:last-child {
    border-bottom: none;
}

.category-post-item .item-img-link img {
    width: 130px !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 4px !important; /* Mini standardization: 4px */
    display: block;
}

.category-post-item .item-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.category-post-item .item-title a {
    color: #333;
    text-decoration: none;
}

.category-post-item .item-title a:hover {
    color: #FF5100;
}


/* Latest Posts Block */
.desktop-latest-posts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 0; /* Handled by section margin */
}

.desktop-latest-post-item img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin-bottom: 15px;
    display: block;
}

.noticia-title, 
.desktop-latest-post-item h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em; /* Ensure consistent alignment */
}

.desktop-latest-post-item .excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section: Podcast Random MKT */
.h-section-podcast-yt {
    background-color: #383838;
    padding: 80px 0;
    width: 100%;
}

.h-section-podcast-yt .h-section-title {
    color: #ffffff !important;
}

.h-section-podcast-yt .h-section-header::after {
    background-color: #ff5100;
}

.h-podcast-platforms {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.h-podcast-platforms span {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.small-post-item .item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.small-post-item .hatch-post-meta {
    margin: 0 !important;
    padding: 0 !important;
}
.small-post-item .post-title-small {
    margin: 0 !important;
}
.small-post-item p.post-excerpt-small {
    margin: 0 !important;
    font-size: 14px;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- h-destacadas.css --- */

/* Home Featured Posts Styles (1280px Standard) */
.h-destacadas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.h-destacadas-grid a {
    color: inherit;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.h-destacadas-grid a:hover {
    text-decoration: underline;
    color: inherit;
}

/* Nota Principal */
.featured-entry {
    grid-column: span 3;
    width: 100%;
    height: 540px;
    position: relative;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.featured-entry > a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-entry > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-entry .entry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Slightly lighter for readability */
    z-index: 1;
}

.featured-entry .entry-details {
    position: absolute;
    bottom: 20px;
    left: 40px;
    right: 40px;
    z-index: 2;
}

.featured-entry .entry-title-wrapper {
    display: flex;
    align-items: stretch;
    margin-top: 10px;
    gap: 15px;
}

.featured-entry .entry-line {
    width: 5px;
    background-color: #ff5100;
}

.featured-entry h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0;
    line-height: 1.2;
}

.featured-entry .hatch-post-meta {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
}

/* Columna Lateral (3 Notas) */
.secondary-entries {
    grid-column: span 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 540px;
    justify-content: space-between;
}

.secondary-entry {
    position: relative;
    color: #fff;
    width: 100%; /* Fill the grid column */
    height: 160px; /* Precise height for 3 items with 30px gaps approx */
    border-radius: 6px;
    overflow: hidden;
}

.secondary-entry > a {
    display: block;
    width: 100%;
    height: 100%;
}

.secondary-entry > a > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-entry .entry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.secondary-entry .entry-details {
    position: absolute;
    bottom: 15px; /* Slightly tighter for smaller items */
    left: 20px;
    right: 20px;
    padding: 0;
    z-index: 2;
}

.secondary-entry h2 {
    font-size: 17px !important;
    font-weight: 800 !important;
    margin: 0 0 4px; /* Reduced gap to dock closer */
    color: #fff !important;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.secondary-entry .hatch-post-meta {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
}

/* Responsive Overrides — Tablet */
@media (max-width: 1024px) {
    .h-destacadas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-entry, .secondary-entries {
        grid-column: span 1;
        height: auto;
    }
    
    .featured-entry {
        aspect-ratio: 16 / 9;
    }
    
    .secondary-entries {
        flex-direction: row;
        gap: 15px;
    }
    
    .secondary-entry {
        height: auto;
        aspect-ratio: 16 / 9;
        flex: 1;
    }
    
    .featured-entry h2 {
        font-size: 26px !important;
    }
    
    .featured-entry .entry-details {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

/* Responsive Overrides — Mobile (375px target) */
@media (max-width: 640px) {
    .h-destacadas-grid {
        gap: 12px;
    }

    .featured-entry {
        aspect-ratio: 4 / 3;
        min-height: 260px;
    }

    .featured-entry h2 {
        font-size: 20px !important;
    }

    .featured-entry .entry-details {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .featured-entry .entry-title-wrapper {
        gap: 10px;
    }

    .featured-entry .entry-line {
        width: 3px;
    }

    /* Secondary entries: horizontal cards */
    .secondary-entries {
        flex-direction: column;
        gap: 10px;
    }
    
    .secondary-entry {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        height: auto;
        min-height: 85px;
        aspect-ratio: unset;
        border-radius: 6px;
        overflow: hidden;
        background: #f5f5f5; /* Light grey background */
        border: 1px solid #eee;
    }
    
    .secondary-entry > a {
        width: 110px;
        flex-shrink: 0;
        display: block;
        height: auto;
    }
    
    .secondary-entry > a > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px 0 0 6px;
        display: block;
    }
    
    .secondary-entry .entry-overlay {
        display: none;
    }
    
    .secondary-entry .entry-details {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #f5f5f5; /* Light grey background */
        border-radius: 0 6px 6px 0;
        flex: 1;
        min-width: 0;
    }
    
    .secondary-entry h2 {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #1a1a1a !important; /* Black text */
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin: 0;
    }

    .secondary-entry:nth-child(n+3) {
        display: none !important; /* Muestra solo 2 notas laterales */
    }

    .secondary-entry .hatch-post-meta,
    .secondary-entry .hatch-post-meta a,
    .secondary-entry .hatch-post-meta .author-name,
    .secondary-entry .hatch-post-meta .date-text,
    .secondary-entry .hatch-post-meta .meta-separator {
        color: #000 !important;
        font-weight: 500;
        font-size: 10px;
        margin-top: 4px;
    }

    /* Force icons to be black */
    .secondary-entry .hatch-post-meta svg,
    .secondary-entry .hatch-post-meta img {
        filter: brightness(0) !important;
        fill: #000 !important;
    }
}

/* Global Icon Fixes for this section (Calendar/User) */
.h-destacadas-grid .entry-meta img {
    width: 11px !important;
    height: 11px !important;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}


/* --- h-noticias.css --- */

/* News Block (Home/List) Styles */

.noticias-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.noticia-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    background-color: transparent;
}

.noticia-item-container {
    position: relative;
    width: 100%;
}

.noticia-item > .noticia-item-container > a > img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

.noticia-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fff;
    color: #333;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.noticia-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.noticia-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.noticia-title a {
    color: inherit;
    text-decoration: none;
}

.noticia-title a:hover {
    color: #FF5100;
}

.noticia-excerpt {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.noticia-item .hatch-post-meta {
    margin: 0 !important;
    padding: 0 !important;
}

.noticia-date {
    font-size: 14px;
    color: #595959;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mobile Version */
.mobile-latest-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 5px 0;
}

.mobile-latest-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.mobile-latest-post-item:last-child {
    border-bottom: none;
}

.mobile-latest-post-item > a > img {
    width: 130px;
    height: 76px;
    object-fit: cover;
    border-radius: 4px;
}

.mobile-latest-post-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.mobile-latest-post-item h3 a {
    text-decoration: none;
    color: inherit;
}

.mobile-latest-post-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #575757;
}

/* Responsive — Mobile & Tablet (Forzado) */
@media (max-width: 1024px) {
    /* Forzado absoluto de 1 columna para evitar scroll horizontal */
    .noticias-sections-wrapper .noticias-container,
    .noticias-container {
        display: block !important; /* Block es más seguro que flex para forzar caída */
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .noticia-item {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 12px !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .noticia-item:last-child {
        border-bottom: none;
    }

    .noticia-item-container {
        flex-shrink: 0;
        width: 110px;
    }

    .noticia-item-container > a > img {
        width: 110px !important;
        height: 62px !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 4px !important;
        object-fit: cover !important;
    }

    .noticia-label {
        display: none;
    }

    .noticia-content {
        min-width: 0;
    }

    .noticia-title {
        font-size: 14px !important;
        font-weight: 700;
        margin: 0 0 4px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .noticia-excerpt {
        display: none;
    }

    .noticia-item .hatch-post-meta {
        font-size: 10px;
        margin: 4px 0 0;
    }

    .noticia-item:nth-child(n+5) {
        display: none !important; /* Muestra solo 4 noticias en mobile */
    }
}

/* --- h-ultimas-noticias.css --- */

/* =========================================================
   Latest Posts – h-ultimas-noticias.css
   Standard: 4-col CSS Grid aligned with Hero section
   ========================================================= */

/* ---- Desktop Grid (4 columns) ---- */
.desktop-latest-posts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
}

.desktop-latest-posts-container a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.desktop-latest-posts-container a:hover {
    color: #ff5100;
}

.desktop-latest-post-item {
    display: flex;
    flex-direction: column;
    min-width: 0; /* prevent overflow */
}

.desktop-latest-post-item > a > img,
.desktop-latest-post-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: 6px;
    display: block;
}

.desktop-latest-post-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desktop-latest-post-item h3 a {
    color: inherit;
    text-decoration: none;
}

.desktop-latest-post-item h3 a:hover {
    color: #ff5100;
}

.desktop-latest-post-item .post-date {
    font-size: 12px;
    color: #777;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.desktop-latest-post-item p.excerpt {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Tablet (2 columns) ---- */
@media (max-width: 1024px) {
    .desktop-latest-posts-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* ---- Mobile (1 column – card style) ---- */
@media (max-width: 640px) {
    .desktop-latest-posts-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .desktop-latest-post-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #f0f0f0;
        padding: 14px 0;
    }

    .desktop-latest-post-item:last-child {
        border-bottom: none;
    }

    .desktop-latest-post-item > a {
        flex-shrink: 0;
        width: 110px;
    }

    .desktop-latest-post-item > a > img,
    .desktop-latest-post-item img {
        width: 110px !important;
        height: 62px !important;
        aspect-ratio: 16 / 9 !important;
        margin-bottom: 0;
        border-radius: 4px !important;
    }

    .desktop-latest-post-item h3 {
        font-size: 14px !important;
        font-weight: 700;
        margin: 0 0 4px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        height: auto !important; /* Override desktop height */
    }

    .desktop-latest-post-item .post-date {
        font-size: 10px;
    }

    .desktop-latest-post-item p.excerpt {
        display: none;
    }

    .desktop-latest-post-item:nth-child(n+4) {
        display: none !important; /* Muestra solo 3 notas en mobile */
    }
}

/* ---- Legacy mobile container (keep for compat) ---- */
.mobile-latest-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 5px 0;
}

.mobile-latest-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.mobile-latest-post-item:last-child {
    border-bottom: none;
}

.mobile-latest-post-item > a > img {
    width: 110px;
    height: 62px;
    object-fit: cover;
    border-radius: 4px;
}

.mobile-latest-post-item h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-latest-post-item h3 a {
    text-decoration: none;
    color: inherit;
}

.mobile-latest-post-item p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
}

/* --- columnistas-carrusel.css --- */

/* Columnistas Carrusel Styles - Optimized for Premium Experience */
.h-section-columnistas-carousel {
    padding-top: 40px;
    padding-bottom: 0px;
    margin-bottom: 0px !important;
}

.hatch-columnistas-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
}

.hatch-col-nav {
    background: transparent;
    border: none;
    color: #ff5100;
    font-size: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.hatch-col-nav:hover {
    color: #e64900;
    transform: scale(1.1);
}

.hatch-col-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}

.hatch-col-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.hatch-col-card {
    min-width: 160px;
    max-width: 160px;
    text-decoration: none !important;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.hatch-col-card:hover {
    transform: translateY(-8px);
}

.hatch-col-card .photo {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.hatch-col-card:hover .photo {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hatch-col-name {
    font-weight: 800;
    font-size: 15px;
    text-align: center;
    line-height: 1.2;
    margin-top: 5px;
    color: #000;
}

.hatch-col-role {
    font-size: 12px;
    color: #555555;
    text-align: center;
    line-height: 1.3;
}

/* Responsive Gaps */
@media (max-width: 768px) {
    .hatch-col-track {
        gap: 15px;
    }
    .hatch-col-card {
        min-width: 140px;
        max-width: 140px;
    }
    .hatch-col-nav {
        display: none; /* Optional on mobile if scrolling is intuitive */
    }
}


/* --- alianzas-grid.css --- */

/* Alianzas GRID - Styles */
.h-section-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #555;
    margin: 10px 0 25px 0;
    line-height: 1.5;
}

/* Alianzas Grid Styles - Sync with Premium Plugin Design */
.hatch-alianzas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.hatch-alianzas-grid .alianza-card {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    background: #f6f7f8;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    margin: 0;
}

.hatch-alianzas-grid .alianza-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
    display: block;
}

.hatch-alianzas-grid .alianza-card figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: none;
}

.hatch-alianzas-grid .alianza-card:hover img {
    transform: scale(1.03);
    filter: brightness(0.9);
}

.hatch-alianzas-grid .alianza-card:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hatch-alianzas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .hatch-alianzas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hatch-alianzas-grid .alianza-card {
        border-radius: 5px;
    }
    .hatch-alianzas-grid .alianza-card figcaption {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hatch-alianzas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- site-footer.css --- */

/* Premium Footer Styles for Soy.Marketing (Magazine Theme) */

.site-footer {
    background-color: #1a1a1a !important;
    color: #ffffff;
    padding: 80px 0 0 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Column 1: Brand & Social */
.footer-brand .footer-logo {
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    width: 308px; /* Increased by 40% */
    height: 40px; /* Calculated proportional height */
    display: block;
    margin: 0 0 20px 0 !important; /* Strict 0 margin on the left perfectly aligns the box with the text and social icons below */
    object-fit: contain;
    object-position: left center; /* Ensure the SVG aligns to the left edge of its bounding box */
    max-width: 100%;
}

.footer-brand .footer-tagline {
    font-size: 14px;
    color: #bbbbbb;
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #ffffff;
    text-decoration: none;
}

.social-link:hover {
    background: #ff5100;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: #ffffff !important; /* Force white icons */
}

/* Columns 2-4: Menus */
.footer-col h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff !important;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #ff5100;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #bbbbbb;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: #ff5100;
    padding-left: 5px;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #000000;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888888;
}

.footer-bottom-inner a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-inner a:hover {
    color: #ffffff;
}

.hatch-credit a {
    color: #ff5100;
    font-weight: 500;
}

.footer-col h2 {
    margin-top: 0 !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding-top: 60px;
        padding-bottom: 70px; /* Offset for Mobile Bottom Nav bar */
    }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- sidebar-blocks.css --- */

/* Sidebar Blocks Styling - Phase 5 Migration */

/* Featured Columnist Widget */
.sidebar-featured-columnist .featured-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: none;
}


.sidebar-featured-columnist .post-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
}

.sidebar-featured-columnist .post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.sidebar-featured-columnist .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-featured-columnist .post-title a:hover {
    color: #FF5100;
}

.sidebar-featured-columnist .post-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.sidebar-featured-columnist .post-meta img {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.sidebar-featured-columnist .post-meta a {
    color: inherit;
    text-decoration: none;
}

.sidebar-featured-columnist .post-meta a:hover {
    text-decoration: underline;
}

/* Latest Posts List Widget */
.sidebar-latest-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 5px 0;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-item .post-thumb {
    width: 100px;
    flex-shrink: 0;
}

.sidebar-post-item .post-thumb img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.sidebar-post-item .post-content {
    flex: 1;
}

.sidebar-post-item .post-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 5px;
}

.sidebar-post-item .post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-post-item .post-title a:hover {
    color: #FF5100;
}

.sidebar-post-item .post-meta-vertical {
    font-size: 11px;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.sidebar-post-item .meta-author {
    color: #333;
}

/* --- mega-menu.css --- */

/*
   PREMIUM MEGA MENU — UX Optimised
   Soy.Marketing 2025
*/

/* ── Nav root ─────────────────────────────────────────────────────────────── */
.hatch-menu {
    display: block;
    width: 100%;
    position: relative;   /* anchor for all absolute submenus */
    z-index: 1000;
}

.hatch-menu > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Standard items are relative so submenus anchor to THEM */
.hatch-menu ul li#columnistas-menu,
.hatch-menu ul li#multimedia-menu,
.hatch-menu ul li#podcast-menu,
.hatch-menu ul li#recursos-menu {
    position: relative !important;
    padding: 10px 0;
}

/* Mega menu item must be static so its submenu can span full width of .hatch-menu container */
.hatch-menu ul li#articulos-menu {
    position: static !important;
}

.hatch-menu > ul > li > a {
    text-decoration: none;
    color: #111;
    font-size: 13.5px; /* Increased from 12.5px for UX / readability */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    padding: 6px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.hatch-menu > ul > li:hover > a,
.hatch-menu > ul > li.active-parent > a {
    color: #ff5100;
}

.hatch-menu > ul > li.has-submenu > a::after {
    content: " ▾";
    font-size: 9px;
    vertical-align: middle;
    margin-left: 2px;
    opacity: 0.6;
}


/* ── Submenu panel — base (small menus) ───────────────────────────────────── */
.hatch-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 24px 28px;
    z-index: 5000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.10);
    border-top: 3px solid #ff5100;
    border-radius: 0 0 8px 8px;
    min-width: 200px;
}

/* ── Articles mega submenu — full-width, capped height ──────────────────── */
.hatch-submenu.articles {
    left: 0;
    width: 100%;
    transform: none;
    padding: 0;           /* padding moves inside .articles-mega-inner */
    box-sizing: border-box;
}

/* ── Articles inner layout: auto-flow 3 columns ───────────────────────────── */
.articles-mega-inner {
    column-count: 3;
    column-gap: 32px;
    padding: 28px 32px;
    box-sizing: border-box;
}

/* Prevent a category block from splitting across columns */
.articles-mega-inner .category-group {
    break-inside: avoid;
    page-break-inside: avoid; /* Safari fallback */
}

/* ── Category columns (no longer wrapped in .submenu-column) ─────────────── */
.articles-mega-inner .category-group {
    margin-bottom: 22px;
    break-inside: avoid;
    page-break-inside: avoid;
}
.articles-mega-inner .category-group:last-child {
    margin-bottom: 0;
}

/* Category heading */
.hatch-submenu .submenu-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #ff5100;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    text-align: left;
}
.hatch-submenu .submenu-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.hatch-submenu .submenu-title a:hover {
    opacity: 0.75;
}

/* Sub-links list */
.hatch-submenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 5px;
}
.hatch-submenu ul li {
    margin-bottom: 7px;
    display: block;
}
.hatch-submenu ul li:last-child {
    margin-bottom: 0;
}
.hatch-submenu ul li a {
    font-size: 13px; /* Slightly increased for readability balance */
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.18s ease, padding-left 0.18s ease;
    line-height: 1.4;
}
.hatch-submenu ul li a::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
    transition: background 0.18s ease;
}
.hatch-submenu ul li a:hover {
    color: #111;
    padding-left: 4px;
}
.hatch-submenu ul li a:hover::before {
    background: #ff5100;
}

/* "Ver todos" — small muted link at bottom of sub-list */
.hatch-submenu ul li.see-all-link {
    display: block;
    margin-top: 6px;
    border-top: 1px dashed #eee;
    padding-top: 6px;
}
.hatch-submenu ul li.see-all-link a {
    font-size: 11px !important;
    color: #999 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 3px;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    transition: color 0.15s ease;
}
.hatch-submenu ul li.see-all-link a::before {
    display: none;
}
.hatch-submenu ul li.see-all-link a:hover {
    color: #ff5100 !important;
    background: none !important;
    transform: none !important;
}


/* ── Flat category chips (leaf nodes with no subcategories) ───────────────── */
.flat-cats-group {
    margin-top: 8px;
}
.flat-cats-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.cat-chip {
    display: inline-block;
    padding: 3px 10px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #555 !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.cat-chip:hover {
    background: #ff5100;
    color: #fff !important;
}

/* ── Featured article panel ───────────────────────────────────────────────── */
.mega-featured {
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-featured__label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ff5100;
    margin: 0;
}

.mega-featured__img-link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.mega-featured__img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.mega-featured__img-link:hover img {
    transform: scale(1.04);
}

.mega-featured__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    margin: 0;
}
.mega-featured__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
.mega-featured__title a:hover {
    color: #ff5100;
}

.mega-featured__cta {
    font-size: 11.5px;
    font-weight: 700;
    color: #ff5100;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s ease;
}
.mega-featured__cta:hover {
    gap: 8px;
}


/* ── Active states ────────────────────────────────────────────────────────── */
.hatch-submenu.active {
    display: block !important;
}

@keyframes hFadeUpCenter {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0);  }
}
.hatch-submenu:not(.articles).active {
    animation: hFadeUpCenter 0.22s ease-out forwards;
}

@keyframes hFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}
.hatch-submenu.articles.active {
    animation: hFadeUp 0.22s ease-out forwards;
}


/* ── Overlay ──────────────────────────────────────────────────────────────── */
.hatch-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.08);
    z-index: 999;
    backdrop-filter: blur(1px);
}
.hatch-menu-overlay.active {
    display: block;
}


/* ── Generic small submenus flex container ────────────────────────────────── */
.hatch-submenu .submenu-columns-container {
    display: flex;
    gap: 32px;
    flex-wrap: nowrap;
}
.hatch-submenu .submenu-column {
    min-width: 140px; /* ensure enough space for columns */
}
.hatch-submenu.podcast .submenu-column {
    border-right: 1px solid #f2f2f2;
    padding-right: 32px;
}
.hatch-submenu.podcast .submenu-column:last-child {
    border-right: none;
    padding-right: 0;
}
.hatch-submenu .submenu-columns-container .submenu-column ul li a.apple-podcast {
    white-space: nowrap;
}

/* ── Specific submenu alignments ─────────────────────────────────────────── */
.hatch-submenu.recursos {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

/* ── Sticky refinements (controlled via style.css .h-is-sticky) ───────────── */

/* --- yt-playlist.css --- */

/* YouTube Playlist Styles */
.hatch-yt-playlist {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 0;
}

.hatch-yt-featured {
    display: block;
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
    margin-top: 45px;
}

.hatch-yt-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.15);
    background: #000;
}

.hatch-yt-thumb {
    width: 100%;
    height: 115%; /* zoom moderado para eliminar barras */
    object-fit: cover;
    object-position: center 22%;
    display: block;
    transform: translateY(-10%);
    border-radius: 8px !important;
    position: relative;
    z-index: 1;
}

.hatch-yt-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    z-index: 2;
    pointer-events: none;
    display: grid;
    place-items: center;
}

.hatch-yt-play-btn::after {
    content: '';
    width: 36px;
    height: 36px;
    background: #000;
    clip-path: polygon(38% 30%, 38% 70%, 72% 50%);
    display: block;
}

.hatch-yt-title {
    position: relative;
    top: -30px;
    margin: 0 !important;
    padding-left: 10px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #fff !important;
    text-align: left !important;
    display: block;
}

.hatch-yt-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hatch-yt-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 8px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hatch-yt-item .thumb {
    display: block;
    width: 100%;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    background-color: #f1f1f1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hatch-yt-item .thumb-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 25.6px;
    height: 25.6px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    pointer-events: none;
    z-index: 3;
    display: grid;
    place-items: center;
}

.hatch-yt-item .thumb-play::after {
    content: '';
    width: 21px;
    height: 21px;
    background: #000;
    clip-path: polygon(38% 30%, 38% 70%, 72% 50%);
    display: block;
    position: relative;
    left: 1px;
}

.hatch-yt-item .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    clip-path: polygon(38% 30%, 38% 70%, 72% 50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 2;
}

.hatch-yt-item .text {
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #fff !important;
    line-height: 1.3 !important;
}

.hatch-yt-item:hover {
    border-color: #f26122;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
    .hatch-yt-playlist { grid-template-columns: 1fr; }
    .hatch-yt-item { grid-template-columns: 100px 1fr; }
}

@media (max-width: 640px) {
    .hatch-yt-featured {
        margin-top: 0;
    }
    .hatch-yt-thumb {
        height: 110%;
        transform: translateY(-5%);
    }
    .hatch-yt-title {
        position: static;
        margin-top: 6px;
        padding-left: 0;
        font-size: 14px;
    }
    .hatch-yt-list {
        gap: 12px;
    }
    .hatch-yt-item:nth-child(n+4) {
        display: none !important; /* Solo muestra 3 videos en la lista mobile */
    }
}

/* Modal / Lightbox */
.hatch-yt-modal[hidden] { display: none; }
.hatch-yt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hatch-yt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hatch-yt-modal__dialog {
    position: relative;
    width: min(880px, 90vw);
    background: #111;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.hatch-yt-modal__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.hatch-yt-modal__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hatch-yt-modal__title { display: none; }

.hatch-yt-modal__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    display: grid;
    place-items: center;
    z-index: 10;
}

.hatch-yt-no-scroll { overflow: hidden; }

/* Barra "Disponible en:" */
.h-podcast-platforms {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.h-podcast-platforms span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.h-podcast-platforms a {
    display: inline-flex;
    align-items: center;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.h-podcast-platforms a:hover {
    opacity: 1;
}

.h-podcast-platforms img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* --- spotify-podcast.css --- */

/* Spotify Podcast Layout
   Ported from hatch/sm plugin (Fase 9 of migration).
*/

.spotify-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.spotify-left {
    flex: 0 0 38%;
    max-width: 320px;
}

.spotify-left .last-episode {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.spotify-left .last-episode img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.spotify-left .last-episode .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.spotify-left .last-episode .play-button:before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.spotify-left .last-episode h4 {
    margin: 10px 0;
    font-size: 20px;
    color: #333;
}

.spotify-left .last-episode .info-line {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.spotify-left .last-episode .summary {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.spotify-right {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episode-card {
    display: flex;
    align-items: center;
    border: 1px solid #f1f1f1;
    border-radius: 6px;
    overflow: hidden;
    height: 72px;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.episode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.episode-image {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.episode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.episode-image .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.episode-image .play-button:before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.episode-details {
    padding: 10px;
    flex: 1;
}

.episode-details h3 {
    margin: 0 0 4px 0;
    font-size: 14px !important;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.episode-details .info-line {
    font-size: 13px;
    color: #555555;
    margin: 0;
    display: flex;
    gap: 12px;
}

.episode-details .info-line span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.episode-details .info-line img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* Mobile Layout */
.spotify-mobile-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.last-episode-mobile {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.last-episode-mobile img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    position: relative;
}

.last-episode-mobile .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.last-episode-mobile .play-button:before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.last-episode-mobile h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
    text-align: left;
}

.last-episode-mobile .info-line {
    font-size: 14px;
    color: #555555;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
}

.episode-list-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.episode-card-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    position: relative;
}

.episode-card-mobile img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.episode-card-mobile .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.episode-card-mobile .play-button:before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 10px solid white;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.episode-card-mobile .episode-details-mobile {
    flex: 1;
}

.episode-card-mobile .episode-details-mobile h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.episode-card-mobile .episode-details-mobile .info-line {
    font-size: 14px;
    color: #555555;
    margin-top: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Common Popup */
.spotify-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spotify-popup iframe {
    width: 90%;
    max-width: 640px;
    height: 360px;
    border: none;
    border-radius: 8px;
}

.spotify-popup .spotify-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

@media (min-width: 768px) {
    .spotify-popup iframe {
        width: 40%;
        height: 60%;
    }
}

/* --- youtube-shorts.css --- */

/* YouTube Shorts & News Widget Styles
   Ported from hatch/sm plugin (Fase 9 of migration).
*/

/* Popup Styles */
.hatch-yt-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.hatch-yt-popup-content {
    position: relative;
    width: 80vw;
    aspect-ratio: 9 / 16;
    max-width: 400px;
    background: #000;
    border-radius: 8px;
    overflow: visible; /* Allow close button to sit outside */
}

.hatch-yt-popup-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

.hatch-yt-close-popup {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #111;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hatch-yt-close-popup:hover {
    background: var(--c-brand-primary, #FF5100);
    color: #fff;
}

@media (max-width: 768px) {
    .hatch-yt-popup-content {
        width: 95%;
        padding-bottom: 56.25%;
    }
    .hatch-yt-close-popup {
        top: -25px;
        font-size: 25px;
    }
}

/* Desktop List Styles */
.youtube-shorts-list-desktop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 20px 10px;
    justify-items: center;
}

.youtube-short-desktop {
    max-width: 230px;
    min-height: 480px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    background-color: #f9f9f9;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    box-shadow: none;
}

.youtube-short-desktop:hover {
    transform: translateY(-3px); /* subtle lift, no shadow */
}

.youtube-short-desktop .image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background-color: #e0e0e0;
}

.youtube-short-desktop .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.youtube-short-desktop:hover .image-container img {
    transform: scale(1.05);
}

.youtube-short-desktop .image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.youtube-short-desktop .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.youtube-short-desktop:hover .image-container::before,
.youtube-short-desktop:hover .image-container::after {
    opacity: 1;
}

.youtube-short-desktop .title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
    padding: 0px 10px 10px 10px;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    line-height: 1.3em;
    height: 3.9em;
    text-overflow: ellipsis;
}

/* Mobile List Styles */
.youtube-shorts-list-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.youtube-short-mobile {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    background-color: #f9f9f9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.youtube-short-mobile .image-container {
    aspect-ratio: 2 / 3;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
}

.youtube-short-mobile .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.youtube-short-mobile .play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0.9;
}

.youtube-short-mobile .play-button-overlay:before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    margin-left: 3px;
}

.youtube-short-mobile .title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 8px 5px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    height: 7.8em;
    margin-top: auto;
}

/* News Widget Styles */
.noticias-semana-widget {
    display: flex;
    justify-content: center;
}

.noticias-semana-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 250px;
    max-width: 100%;
    border-radius: 0 !important;
    overflow: hidden;
    background-color: transparent !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
    margin: 0 auto;
    border: none !important;
}

.noticias-semana-item:hover {
    transform: translateY(-8px);
}

.noticias-semana-item .image-container {
    width: 100%;
    aspect-ratio: 9 / 16;
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    border-radius: 8px; /* Standardized radius */
}

.noticias-semana-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.noticias-semana-item:hover .image-container img {
    transform: scale(1.1);
}

.noticias-semana-item .image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.noticias-semana-item .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.noticias-semana-item:hover .image-container::before,
.noticias-semana-item:hover .image-container::after {
    opacity: 1;
}

.noticias-semana-item .title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px; /* Slightly larger like the example */
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 15px;
    padding: 0 !important;
    text-align: center;
    line-height: 1.4;
    background: transparent !important;
    width: 100%;
}

@media (max-width: 768px) {
    .noticias-semana-item {
        width: 80% !important;
    }
}

/* --- columnistas.css --- */

.columnists-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 80px 40px;
    padding: 0;
}

.columnist-card {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: transform 0.3s ease;
}

.columnist-card:hover {
    transform: translateY(-4px);
}

.columnist-image {
    flex-shrink: 0;
}

.columnist-image img {
    width: 110px !important;
    height: 110px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    background: #f5f5f5;
}

.columnist-info {
    flex-grow: 1;
}

.columnist-info h2 {
    border-left: 4px solid #FF5100 !important;
    padding-left: 12px !important;
    margin: 0 0 8px 0 !important;
    color: #FF5100;
    font-size: 22px !important;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.columnist-info h2 a {
    color: #FF5100;
    text-decoration: none;
    transition: color 0.2s ease;
}

.columnist-info h2 a:hover {
    color: #cc4100;
}

.columnist-info .author-position {
    font-weight: 700;
    margin: 8px 0 12px 0;
    color: #444; 
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.columnist-info .author-description {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 16.5px; /* Increased to follow site-wide legibility standards */
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .columnists-container {
        grid-template-columns: 1fr;
        grid-gap: 50px;
    }
}

@media (max-width: 640px) {
    .columnist-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding-bottom: 40px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .columnist-card:last-child {
        border-bottom: none;
    }

    .columnist-image img {
        width: 140px !important;
        height: 140px !important;
    }

    .columnist-info h2 {
        font-size: 20px;
    }

}
