/* Mi Tierra - Periodico Digital | styles.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #F2B705;
  --gold-dark: #D4A200;
  --black: #0D0D0D;
  --dark: #1A1A1A;
  --gray: #3A3A3A;
  --light-gray: #F4F4F4;
  --white: #FFFFFF;
  --red: #C0392B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", sans-serif; background: #f8f8f8; color: var(--dark); }

/* TOP BAR */
.top-bar { background: var(--black); color: #aaa; font-size: 0.75rem; padding: 6px 0; }
.top-bar a { color: #aaa; text-decoration: none; }
.top-bar a:hover { color: var(--gold); }
.top-bar .social-icons a { font-size: 0.85rem; margin-left: 10px; transition: color .3s; }

/* HEADER */
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); padding: 14px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.site-header .logo img { height: 62px; }
.header-ad { text-align: right; }
.header-ad img { height: 80px; border-radius: 4px; }

/* NAVBAR */
.main-nav { background: var(--dark); }
.main-nav .navbar-nav .nav-link { color: #ddd !important; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 14px 16px !important; transition: all .3s; border-bottom: 3px solid transparent; }
.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active { color: var(--gold) !important; border-bottom-color: var(--gold); }
.main-nav .navbar-toggler { border-color: var(--gold); }
.main-nav .dropdown-menu { background: var(--black); border: none; border-top: 2px solid var(--gold); border-radius: 0; }
.main-nav .dropdown-item { color: #ccc; font-size: 0.82rem; padding: 8px 20px; }
.main-nav .dropdown-item:hover { background: var(--gold); color: var(--black); }

/* BREAKING NEWS TICKER */
.breaking-news { background: var(--gold); color: var(--black); padding: 8px 0; overflow: hidden; }
.breaking-label { background: var(--red); color: #fff; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; padding: 4px 12px; letter-spacing: 1px; border-radius: 2px; white-space: nowrap; }
.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker-content { display: flex; animation: ticker 40s linear infinite; white-space: nowrap; }
.ticker-content span { padding: 0 40px; font-size: 0.85rem; font-weight: 600; }
.ticker-content span::after { content: "?"; margin-left: 40px; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.ticker-wrapper:hover .ticker-content { animation-play-state: paused; }

/* SECTION TITLES */
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-title h2 { font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 900; color: var(--black); margin: 0; }
.section-title .line { flex: 1; height: 2px; background: linear-gradient(to right, var(--gold), transparent); }
.section-title .label { background: var(--gold); color: var(--black); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; text-transform: uppercase; letter-spacing: 1px; }

/* HERO / FEATURED */
.hero-section { padding: 28px 0; }
.featured-main { position: relative; overflow: hidden; border-radius: 8px; height: 420px; }
.featured-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.featured-main:hover img { transform: scale(1.05); }
.featured-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.92)); padding: 30px 24px 20px; }
.featured-overlay .cat-badge { background: var(--gold); color: var(--black); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; text-transform: uppercase; letter-spacing: 1px; border-radius: 2px; display: inline-block; margin-bottom: 8px; }
.featured-overlay h2 { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 8px; }
.featured-overlay .meta { color: #bbb; font-size: 0.75rem; }

/* NEWS CARDS */
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); transition: transform .3s, box-shadow .3s; height: 100%; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.13); }
.news-card .card-img-wrapper { overflow: hidden; height: 185px; }
.news-card .card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .card-img-wrapper img { transform: scale(1.08); }
.news-card .card-body { padding: 16px; }
.news-card .cat-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--gold); display: inline-block; margin-bottom: 6px; }
.news-card h5 { font-family: "Playfair Display", serif; font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; color: var(--dark); }
.news-card h5 a { color: inherit; text-decoration: none; }
.news-card h5 a:hover { color: var(--gold-dark); }
.news-card .card-text { font-size: 0.82rem; color: #666; line-height: 1.6; margin-bottom: 10px; }
.news-card .card-meta { font-size: 0.72rem; color: #999; display: flex; align-items: center; gap: 10px; }
.news-card .card-meta i { color: var(--gold); }

/* SMALL LIST CARD */
.list-news-card { display: flex; gap: 12px; background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 12px; box-shadow: 0 1px 8px rgba(0,0,0,0.06); transition: transform .3s; }
.list-news-card:hover { transform: translateX(4px); }
.list-news-card img { width: 85px; height: 65px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.list-news-card h6 { font-family: "Playfair Display", serif; font-size: 0.87rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.list-news-card h6 a { color: var(--dark); text-decoration: none; }
.list-news-card h6 a:hover { color: var(--gold-dark); }
.list-news-card .meta { font-size: 0.7rem; color: #999; }

/* AD BLOCKS */
.ad-block { background: #fff; border-radius: 8px; overflow: hidden; text-align: center; border: 1px dashed #ddd; padding: 0; margin-bottom: 24px; position: relative; }
.ad-block .ad-label { font-size: 0.6rem; color: #bbb; text-transform: uppercase; letter-spacing: 1px; padding: 4px; display: block; }
.ad-block img { width: 100%; border-radius: 0; display: block; }
.ad-block .ad-placeholder { background: linear-gradient(135deg, #f0f0f0, #e0e0e0); height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ad-block .ad-placeholder span { font-size: 0.75rem; color: #aaa; font-weight: 600; }
.ad-block .ad-placeholder i { font-size: 2rem; color: #ccc; }
.ad-inline { background: linear-gradient(135deg, #f9f9f9, #efefef); border-radius: 8px; height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed #ccc; margin: 24px 0; }
.ad-inline span { font-size: 0.75rem; color: #aaa; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* SIDEBAR */
.sidebar { position: sticky; top: 90px; }
.sidebar .widget { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.sidebar .widget-title { font-family: "Playfair Display", serif; font-size: 1rem; font-weight: 900; color: var(--dark); border-left: 3px solid var(--gold); padding-left: 10px; margin-bottom: 16px; }
.sidebar .pop-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.sidebar .pop-item:last-child { border-bottom: none; }
.sidebar .pop-num { font-size: 1.4rem; font-weight: 900; color: var(--gold); line-height: 1; min-width: 28px; }
.sidebar .pop-title { font-size: 0.82rem; font-weight: 600; color: var(--dark); line-height: 1.35; }
.sidebar .pop-title a { color: inherit; text-decoration: none; }
.sidebar .pop-title a:hover { color: var(--gold-dark); }
.sidebar .pop-meta { font-size: 0.7rem; color: #999; margin-top: 3px; }
.sidebar .weather-widget { text-align: center; padding: 20px; background: linear-gradient(135deg, var(--dark), #2d2d2d); color: #fff; border-radius: 8px; margin-bottom: 24px; }
.sidebar .weather-widget .temp { font-size: 3rem; font-weight: 300; }
.sidebar .weather-widget .city { font-size: 0.9rem; color: var(--gold); font-weight: 600; }
.sidebar .weather-icon { font-size: 3rem; margin-bottom: 8px; }

/* VIDEO SECTION */
.video-section { background: var(--dark); padding: 50px 0; }
.video-section .section-title h2 { color: #fff; }
.video-card { background: rgba(255,255,255,0.05); border-radius: 8px; overflow: hidden; transition: transform .3s; }
.video-card:hover { transform: translateY(-4px); }
.video-thumbnail { position: relative; height: 190px; overflow: hidden; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; background: rgba(242,183,5,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.play-btn i { color: var(--black); font-size: 1.2rem; margin-left: 4px; }
.video-card:hover .play-btn { background: var(--gold); transform: translate(-50%, -50%) scale(1.1); }
.video-card .video-info { padding: 14px; }
.video-card .video-info h6 { font-family: "Playfair Display", serif; font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.video-card .video-info .meta { font-size: 0.72rem; color: #999; }

/* OPINION SECTION */
.opinion-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); height: 100%; transition: transform .3s; }
.opinion-card:hover { transform: translateY(-4px); }
.opinion-card .author-photo { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; }
.opinion-card .author-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.opinion-card .author-role { font-size: 0.72rem; color: #999; }
.opinion-card h5 { font-family: "Playfair Display", serif; font-size: 1rem; font-weight: 700; margin: 12px 0 8px; }
.opinion-card p { font-size: 0.82rem; color: #666; line-height: 1.7; font-style: italic; }

/* FOOTER */
.site-footer { background: var(--black); color: #ccc; padding: 50px 0 0; }
.site-footer h5 { color: #fff; font-family: "Playfair Display", serif; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.site-footer a { color: #aaa; text-decoration: none; font-size: 0.85rem; transition: color .3s; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { padding: 4px 0; font-size: 0.85rem; }
.site-footer ul li::before { content: "\203A"; color: var(--gold); margin-right: 6px; font-weight: 700; }
.footer-bottom { background: #050505; text-align: center; padding: 14px; margin-top: 40px; font-size: 0.78rem; color: #666; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; border: 1px solid #333; border-radius: 50%; align-items: center; justify-content: center; margin-right: 8px; color: #aaa; transition: all .3s; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* SEARCH OVERLAY FANCY */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.search-overlay-close:hover {
    transform: rotate(90deg);
    color: var(--gold);
}

.search-form-container {
    width: 90%;
    max-width: 800px;
    transform: translateY(30px);
    transition: all 0.5s 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-form-container {
    transform: translateY(0);
}

.search-overlay .form-control {
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--gold);
    border-radius: 0;
    color: #fff;
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    padding: 20px 0;
    box-shadow: none !important;
}

.search-overlay .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-overlay .btn-search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 2.5rem;
    transition: all 0.3s;
}

.search-overlay .btn-search-submit:hover {
    transform: translateY(-50%) scale(1.2);
}

.search-hint {
    color: #888;
    margin-top: 15px;
    display: block;
    text-align: center;
    font-size: 1rem;
}

.carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; margin: 0 5px; background-color: var(--gold); }
.carousel-control-prev, .carousel-control-next { width: 5%; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(0,0,0,0.5); border-radius: 50%; padding: 20px; background-size: 50%; }

/* NEWSLETTER */
.newsletter-section { background: var(--gold); padding: 40px 0; }
.newsletter-section h3 { font-family: "Playfair Display", serif; font-weight: 900; color: var(--black); }
.newsletter-section .form-control { border: none; border-radius: 4px 0 0 4px; }
.newsletter-section .btn { background: var(--black); color: #fff; border-radius: 0 4px 4px 0; font-weight: 600; }

/* UTILITY */
.bg-gold { background: var(--gold); }
.text-gold { color: var(--gold); }
.font-serif { font-family: "Playfair Display", serif; }
.tag-badge { background: var(--light-gray); color: #555; font-size: 0.72rem; padding: 3px 8px; border-radius: 2px; display: inline-block; margin: 2px; transition: all .3s; cursor: pointer; }
.tag-badge:hover { background: var(--gold); color: var(--black); }

/* AOS OVERRIDES */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .featured-main { height: 300px; }
  .featured-overlay h2 { font-size: 1.1rem; }
  .sidebar { position: static; }
  .top-bar .d-none-sm { display: none; }
  .hero-section { padding: 16px 0; }
}


/* FOOTER FIXES */
.footer-links { list-style-type: none !important; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #888; text-decoration: none; font-size: 0.85rem; transition: all .3s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }



