/* ==========================================================================
   ESTILOS EXCLUSIVOS DE FRONT-PAGE (HOME) V8.6
   ========================================================================== */

.js-open-video-modal { cursor: pointer; }

/* SECCIÓN INTRO */
.section-intro { background-color: var(--brand-lime); padding: 30px 20px; margin-bottom: 30px; overflow: hidden; min-height: auto; }
.intro-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; }
.intro-content { width: 100%; z-index: 2; }
.intro-pill { background: #fff; padding: 6px 16px; border-radius: 50px; font-size: 1.25rem; font-weight: 500; display: inline-block; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.intro-title { font-family: var(--font-titles); font-size: 2.5rem; line-height: 1.05; color: #000; margin-bottom: 15px; font-weight: 800; }
.intro-link { font-size: 1.05rem; font-weight: 300; color: #000; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid transparent; cursor: pointer; }
.intro-link:hover { border-bottom-color: #000; }

@media (min-width: 992px) {
    .section-intro { padding: 50px 20px; }
    .intro-title { font-size: 4rem; }
}

/* SECCIÓN HERO (GRID) */
.section-hero { padding-top: 20px; margin-bottom: 40px; }
.hero-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(200px, auto); gap: 20px; }

@media (min-width: 768px) {
    .hero-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: 200px minmax(350px, auto); }
    .hero-span-3 { grid-column: span 3; }
    .hero-span-4 { grid-column: span 4; }
}

/* TARJETAS ECONÓMICAS */
.economic-card { background: #fff; border: 1px solid #e5e5e5; border-radius: var(--card-radius); padding: 25px; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.eco-title-wrapper { margin-bottom: 15px; border-bottom: 2px solid #000; padding-bottom: 10px; }
.economic-title { font-size: 1.4rem; font-weight: 700; margin: 0; border: none; padding: 0; display: inline-block; }
.economic-list li { margin-bottom: 12px; border-bottom: 1px solid #f5f5f5; padding-bottom: 12px; }
.economic-list li:last-child { border: none; }
.economic-list a { font-size: 0.95rem; font-weight: 600; color: #1a1a1a; display: flex; gap: 8px; line-height: 1.3; }
.economic-list a:hover { color: var(--neon-green); }
.eco-dot { color: var(--neon-green); font-size: 1.2rem; line-height: 1; }
.btn-eco-more { font-size: 0.9rem; font-weight: 700; margin-top: auto; text-decoration: underline; color: #000; }

/* RECIPES CARD */
.recipe-card { position: relative; border-radius: var(--card-radius); overflow: hidden; background: #fff; transition: transform 0.3s ease; display: flex; flex-direction: column; height: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.recipe-card:hover { transform: translateY(-5px); }
.recipe-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.recipe-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.recipe-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.recipe-card:hover .recipe-card__img { transform: scale(1.05); }
.recipe-card__body { background-color: var(--brand-lime); padding: 15px 20px; color: #ffffff; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.recipe-card__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 10px 0; line-height: 1.1; color: #ffffff; font-family: var(--font-titles); }
.recipe-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; font-weight: 600; opacity: 0.95; font-family: var(--font-body); }
.recipe-card__cat { text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.65rem; padding: 4px 10px; border-radius: 4px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   SECCIÓN VIDEOS
   ========================================================================== */
.section-videos { background: transparent; padding: 0; margin: 40px 0; }
.videos-black-box { background-color: #000000; border-radius: 24px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
@media (min-width: 992px) { .videos-black-box { padding: 40px; } }

.videos-black-box .section-header.video-header-adjust { margin-top: 0; padding-top: 10px; margin-bottom: 30px; }

.video-layout { display: flex; flex-direction: column-reverse; gap: 30px; }
@media (min-width: 992px) {
    .video-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: stretch; }
    .video-sidebar { display: flex; flex-direction: column; justify-content: space-between; }
}

.video-list-items { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.video-mini-card { display: flex; gap: 15px; align-items: center; border-bottom: 1px solid #333; padding-bottom: 15px; }
.video-mini-card:last-child { border-bottom: none; }
.video-mini-thumb { width: 80px; height: 50px; border-radius: 4px; overflow: hidden; background: #333; flex-shrink: 0; }
.video-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-mini-info { flex: 1; }
.video-mini-title { margin: 0; font-size: 0.9rem; font-weight: 600; line-height: 1.2; font-family: var(--font-body); }
.video-mini-title a { color: #fff; }
.video-mini-title a:hover { color: var(--brand-lime); }
.video-mini-meta { font-size: 0.75rem; color: #888; display: block; margin-top: 4px; }

.btn-video-orange { background-color: var(--brand-lime); color: #fff; font-weight: 800; text-transform: uppercase; padding: 14px 20px; border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; transition: transform 0.2s, background-color 0.2s; letter-spacing: 0.5px; border: none; width: 100%; }
.btn-video-orange:hover { transform: scale(1.02); background-color: #ff8570; color: #fff; }
.btn-video-orange svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; }

.video-hero-card { height: 100%; display: flex; flex-direction: column; }
.video-hero-media { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; border-radius: 12px; overflow: hidden; background: #222; }
.video-hero-media .img-cover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.play-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); transition: background 0.3s; }
.video-hero-card:hover .play-overlay { background: rgba(0,0,0,0.4); }

.play-icon { background: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding-left: 4px; box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: transform 0.2s ease, background-color 0.2s; color: #000; }
.play-icon svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.video-hero-media:hover .play-icon { transform: scale(1.1); background-color: #f0f0f0; }

.video-hero-body { padding-top: 25px; text-align: center; }
.video-hero-title { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.1; }
.video-hero-excerpt { color: #ccc; font-size: 1rem; margin: 0 auto; max-width: 90%; }

/* SHORTS & EVENTOS */
.section-shorts { margin: 40px 0; }
.shorts-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .shorts-grid { grid-template-columns: repeat(4, 1fr); } }

.short-card-wrapper { background: #000; }
.short-media-wrap { height: 100%; cursor: pointer; }
.short-img { opacity: 0.8; }
.short-play-icon { width: 40px; height: 40px; }
.short-play-icon svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.short-card-body { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); pointer-events: none; }
.short-card-title { font-size: 0.9rem; color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

.card-vertical { aspect-ratio: 9/16; }
.events-list { grid-template-columns: 1fr; gap: 15px; }
.event-card { display: flex; align-items: center; background: #fff; padding: 10px; border-radius: 8px; border: 1px solid #eee; }
.event-card__img-link { flex-shrink: 0; width: 80px; height: 80px; margin-right: 15px; border-radius: 6px; overflow: hidden; background: #eee; }
.event-card__img { width: 100%; height: 100%; object-fit: cover; }
.event-card__body { flex: 1; }
.event-date { font-size: 11px; font-weight: 700; color: #d32f2f; text-transform: uppercase; display: block; }
.event-title { font-size: 1rem; font-weight: 700; margin: 5px 0; color: #1a1a1a; }
.btn-arrow { font-size: 12px; font-weight: 600; color: #1a1a1a; }
@media (min-width: 768px) { .events-list { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   SECCIÓN PODCAST
   ========================================================================== */
.section-podcast { background: transparent; padding: 0; margin: 40px 0 0 0; }
.podcast-black-box { background-color: #000000; border-radius: 24px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
@media (min-width: 992px) { .podcast-black-box { padding: 40px; } }

.podcast-black-box .section-header.podcast-header-adjust { margin-top: 0; padding-top: 10px; margin-bottom: 30px; }

.podcast-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 20px; }
@media (min-width: 576px) { .podcast-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .podcast-grid { grid-template-columns: repeat(4, 1fr); } }

.podcast-card { border-radius: 16px; padding: 25px 15px; text-align: center; transition: transform 0.3s ease; min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: none; }
.podcast-card:nth-child(1) { background: #FFD54F; }
.podcast-card:nth-child(2) { background: #4DB6AC; }
.podcast-card:nth-child(3) { background: #E57373; }
.podcast-card:nth-child(4) { background: #64B5F6; }
.podcast-card:hover { transform: translateY(-5px); }
.podcast-link { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; text-decoration: none; }

.podcast-cover { margin-bottom: 20px; flex-shrink: 0; }
.podcast-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.3); box-shadow: 0 5px 15px rgba(0,0,0,0.15); display: block; }
.podcast-placeholder { border-radius: 50%; }

.podcast-title { font-size: 1.15rem; font-weight: 800; color: #000; margin-bottom: 20px; line-height: 1.3; font-family: var(--font-titles); max-width: 90%; }
.play-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #000; color: #fff; border-radius: 30px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; transition: transform 0.2s, background-color 0.2s; letter-spacing: 0.5px; }
.podcast-link:hover .play-btn { transform: scale(1.05); background-color: #222; }
.play-btn svg { width: 12px; height: 12px; fill: currentColor; display: block; }

/* SECCIÓN BIOGRAFÍAS */
.biography-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (min-width: 992px) { .biography-grid { grid-template-columns: repeat(4, 1fr); } }
.bio-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bio-card__link { display: block; width: 100%; }
.bio-card__media { width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 16px; margin-bottom: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; }
.bio-card:hover .bio-card__media { transform: translateY(-5px); }
.bio-card__img { width: 100%; height: 100%; object-fit: cover; }
.bio-card__body { padding: 0 10px; }
.bio-card__title { font-family: var(--font-titles); font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; color: #000; }
.bio-card__subtitle { font-family: var(--font-body); font-size: 0.95rem; color: var(--brand-lime); text-transform: uppercase; font-weight: 700; margin: 0; }

/* GRIDS Y LAYOUTS ESPECÍFICOS */
.section-negocios { background-color: #F5F3EF; padding: 60px 0; margin: 40px 0 0 0; }
.section-more-news { background-color: #F5F3EF; padding: 60px 0; margin: 0; }
.section-negocios .section-header, .section-more-news .section-header { margin-top: 0; padding-top: 0; }
.negocios-grid { grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .negocios-grid { grid-template-columns: repeat(3, 1fr); } }
.more-news-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
@media (min-width: 992px) { .more-news-grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   SECCIÓN TURISMO
   ========================================================================== */
.section-turismo { background-color: transparent; padding: 0; margin: 0 0 40px 0; }
.turismo-black-box { background-color: #000000; border-radius: 24px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
@media (min-width: 992px) { .turismo-black-box { padding: 40px; } }
.turismo-header-row { margin-bottom: 25px; text-align: left; padding-top: 10px; }
.turismo-box-title { font-family: var(--font-titles); font-size: 2rem; color: #ffffff; margin: 0; font-weight: 700; }

.turismo-layout { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 992px) { .turismo-layout { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; } }

.tour-main-card { display: flex; flex-direction: column; text-decoration: none; background: transparent; border: none; height: auto; }
.tour-main-media { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; border-radius: 12px; background: #222; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.tour-main-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tour-main-card:hover .tour-main-img { transform: scale(1.03); }
.tour-main-content { padding: 0 10px; text-align: center; }
.tour-main-title { font-size: 1.8rem; font-weight: 700; color: #ffffff; margin-bottom: 12px; line-height: 1.15; font-family: var(--font-titles); }
.tour-main-excerpt { color: #bbb; font-size: 1rem; margin-bottom: 0; line-height: 1.6; }

.tour-side-wrapper { display: flex; flex-direction: column; height: 100%; }
.tour-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.tour-item { display: flex; gap: 15px; background: #111; padding: 12px; border-radius: 12px; border: 1px solid #333; text-decoration: none; transition: all 0.2s ease; align-items: center; }
.tour-item:hover { background-color: #1a1a1a; border-color: #555; }
.tour-item-thumb { width: 90px; height: 65px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #222; }
.tour-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.turismo-placeholder { width: 100%; height: 100%; }
.tour-item-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tour-item-title { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.3; margin: 0 0 4px 0; font-family: var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-item-date { font-size: 0.75rem; color: #777; font-weight: 400; }

.tour-footer-action { margin-top: auto; }
.btn-tour-block { display: block; width: 100%; background-color: var(--brand-lime); color: #fff; font-weight: 700; text-align: center; padding: 14px 0; border-radius: 50px; font-size: 1rem; transition: transform 0.2s; border: none; }
.btn-tour-block:hover { background-color: #ff8570; color: #fff; transform: scale(1.02); }

/* ==========================================================================
   SECCIÓN CIENCIA
   ========================================================================== */
.section-ciencia { padding: 60px 0; background: #fff; border-top: 1px solid #eee; }

body .site-main .section-ciencia .section-header { margin-top: 20px; margin-bottom: 30px; margin-left: 0; padding-left: 0; text-align: left; width: 100%; }
body .site-main .section-ciencia .section-header .section-title-wrapper { justify-content: flex-start; }

.ciencia-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 992px) { .ciencia-layout { grid-template-columns: 350px 1fr; gap: 60px; } }

.ciencia-cover-wrapper { position: relative; padding-left: 20px; padding-bottom: 20px; }
.ciencia-cover-wrapper::before { content: ''; position: absolute; top: 20px; left: 0; width: 80%; height: 95%; background-color: #D32F2F; z-index: 0; }
.ciencia-cover-img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3/4; object-fit: cover; box-shadow: 5px 5px 15px rgba(0,0,0,0.2); display: block; }
.ciencia-logo-overlay { position: absolute; top: 10px; left: 30px; z-index: 2; color: #fff; font-family: var(--font-titles); font-size: 2.5rem; font-weight: 700; line-height: 0.9; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

.ciencia-list { display: flex; flex-direction: column; }
.ciencia-item { padding: 20px 0; border-bottom: 1px solid #e0e0e0; }
.ciencia-item:first-child { padding-top: 0; }
.ciencia-label { font-size: 0.7rem; font-weight: 800; color: #D32F2F; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; display: block; }
.ciencia-meta { font-size: 0.75rem; color: #666; text-transform: uppercase; margin-bottom: 8px; display: block; }
.ciencia-title { font-size: 1.3rem; font-weight: 700; color: #000; line-height: 1.2; margin: 0; font-family: var(--font-body); }
.ciencia-title a:hover { color: #D32F2F; }

.ciencia-view-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 30px; font-weight: 700; color: #D32F2F; font-size: 0.9rem; text-transform: uppercase; justify-content: flex-end; }
.ciencia-view-more:hover { text-decoration: underline; }
.ciencia-arrow { font-size: 1.2rem; }

/* ==========================================================================
   AJUSTES MÓVILES (HERO GRID Y MORE NEWS COMPACTOS)
   ========================================================================== */
@media (max-width: 767px) {
    body .site-main .hero-grid,
    body .site-main .more-news-grid { grid-auto-rows: auto; gap: 15px; grid-template-columns: 1fr; }
    
    body .site-main .hero-grid .article-card,
    body .site-main .more-news-grid .article-card { min-height: 0; height: auto; background: #fff; border: 1px solid #eee; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
    
    body .site-main .hero-grid .article-card .article-card__link,
    body .site-main .more-news-grid .article-card .article-card__link { display: flex; flex-direction: row; align-items: center; height: auto; padding: 10px; gap: 15px; }
    
    body .site-main .hero-grid .article-card .article-card__media,
    body .site-main .more-news-grid .article-card .article-card__media { width: 100px; height: 80px; flex-shrink: 0; border-radius: 8px; margin: 0; padding: 0; position: relative; background: #eee; }
    
    body .site-main .hero-grid .article-card .article-card__img,
    body .site-main .more-news-grid .article-card .article-card__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transform: none; }
    
    body .site-main .hero-grid .article-card .article-card__body,
    body .site-main .more-news-grid .article-card .article-card__body { position: static; padding: 0; background: transparent; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; width: auto; }
    
    body .site-main .hero-grid .article-card .article-card__title,
    body .site-main .more-news-grid .article-card .article-card__title { font-family: var(--font-titles); font-size: 0.95rem; line-height: 1.3; margin: 0; color: #000; text-shadow: none; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    
    body .site-main .hero-grid .article-card .article-card__cat, 
    body .site-main .hero-grid .article-card .article-card__meta, 
    body .site-main .hero-grid .article-card .article-card__gradient, 
    body .site-main .hero-grid .article-card .article-read-more,
    body .site-main .more-news-grid .article-card .article-card__cat, 
    body .site-main .more-news-grid .article-card .article-card__meta, 
    body .site-main .more-news-grid .article-card .article-card__gradient, 
    body .site-main .more-news-grid .article-card .article-read-more { display: none; }
}