/**
 * IDENTIDAD HÍDRICA - Estilos
 */

:root {
    --deep: #0a1628;
    --midnight: #162447;
    --teal: #1f6f8b;
    --aqua: #2d9cdb;
    --cyan: #56d5e8;
    --foam: #e8f4f8;
    --white: #ffffff;
    --gold: #c9a962;
    --agro: #2d6a4f;
    --agro-light: #40916c;
    --font-display: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Poppins', 'Segoe UI', sans-serif;
    --shadow: 0 4px 20px rgba(10,22,40,0.1);
    --shadow-md: 0 8px 30px rgba(10,22,40,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); background: var(--foam); color: var(--deep); line-height: 1.7; font-weight: 300; font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* News Grid de 3 columnas - ver estilos completos al final del archivo */

/* Top Bar */
.top-bar { background: var(--deep); color: var(--foam); padding: 8px 0; font-size: 0.85rem; }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--cyan); transition: 0.3s; }
.social-links a:hover { color: var(--white); }

/* Header */
.header { background: linear-gradient(135deg, var(--midnight), var(--deep)); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-md); }
.header-main { max-width: 1400px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { font-size: 2.5rem; }
.logo-text { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--white); letter-spacing: 2px; }
.logo-tagline { font-size: 0.65rem; color: var(--cyan); letter-spacing: 1px; text-transform: uppercase; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Nav */
.nav { background: rgba(22,36,71,0.95); border-top: 1px solid rgba(86,213,232,0.1); }
.nav-list { display: flex; list-style: none; gap: 0; }
.nav-list li a { display: block; padding: 14px 20px; color: var(--foam); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; border-bottom: 3px solid transparent; }
.nav-list li a:hover, .nav-list li a.active { color: var(--cyan); background: rgba(86,213,232,0.05); border-bottom-color: var(--cyan); }
.nav-agro { color: var(--agro-light) !important; font-weight: 700 !important; }
.nav-agro:hover { background: var(--agro) !important; color: var(--white) !important; }
.nav-columnas { color: var(--gold) !important; font-weight: 700 !important; }
.nav-columnas:hover { background: rgba(201,169,98,0.2) !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--deep); min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.3s; border-radius: 0 0 8px 8px; box-shadow: var(--shadow-md); z-index: 100; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 12px 20px; color: var(--foam); font-size: 0.85rem; transition: 0.3s; }
.dropdown-menu a:hover { background: rgba(86,213,232,0.1); color: var(--cyan); }

/* Hero */
.hero { padding: 40px 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.hero-main { position: relative; border-radius: 16px; overflow: hidden; height: 500px; cursor: pointer; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.hero-main:hover img { transform: scale(1.05); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; background: linear-gradient(transparent, rgba(10,22,40,0.95)); }
.hero-overlay h1 { font-family: var(--font-display); font-size: 2.4rem; color: var(--white); line-height: 1.2; margin: 12px 0; }
.hero-overlay h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-top: 12px; }
.hero-overlay p { color: var(--foam); opacity: 0.9; }
.hero-sidebar { display: flex; flex-direction: column; gap: 16px; }
.hero-card { position: relative; border-radius: 12px; overflow: hidden; flex: 1; cursor: pointer; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.hero-card:hover img { transform: scale(1.1); }
.hero-card .hero-overlay { padding: 24px; }
.tag { display: inline-block; background: var(--aqua); color: var(--white); padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Sections */
.section { padding: 50px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--deep); }
.section-header h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--deep); }
.section-header a { color: var(--teal); font-weight: 500; font-size: 0.9rem; transition: 0.3s; }
.section-header a:hover { color: var(--aqua); }

/* Grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Cards */
.card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: 0.4s; cursor: pointer; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card-img { position: relative; height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img img { transform: scale(1.1); }
.card-img .tag { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 20px; }
.card-body h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--deep); margin-bottom: 10px; line-height: 1.3; }
.card-body p { font-size: 0.9rem; color: #666; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .meta { font-size: 0.8rem; color: #999; }

/* Agro Section */
.agro-section { background: linear-gradient(135deg, var(--agro), #1b4332); padding: 50px 0; margin: 40px 0; }
.agro-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.agro-header h2 { font-family: var(--font-display); font-size: 2.2rem; color: var(--white); display: flex; align-items: center; gap: 16px; }
.agro-icon { width: 50px; height: 50px; background: var(--agro-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.agro-header a { color: var(--gold); font-weight: 500; }
.agro-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 12px; padding: 24px; border: 1px solid rgba(255,255,255,0.1); transition: 0.4s; cursor: pointer; }
.agro-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px); }
.agro-tag { display: inline-block; background: var(--agro-light); color: var(--white); padding: 4px 12px; border-radius: 15px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; margin-bottom: 12px; }
.agro-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.agro-card p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 16px; }
.agro-meta { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* Columnas Section */
.columnas-section { background: var(--deep); padding: 50px 0; }
.columnas-header { text-align: center; margin-bottom: 40px; }
.columnas-header h2 { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); margin-bottom: 8px; }
.columnas-header p { color: var(--foam); opacity: 0.7; }
.columna-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(201,169,98,0.2); border-radius: 12px; padding: 30px; text-align: center; transition: 0.4s; cursor: pointer; }
.columna-card:hover { background: rgba(201,169,98,0.1); border-color: var(--gold); transform: translateY(-4px); }
.columna-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px; border: 3px solid var(--gold); background: var(--gold); color: var(--deep); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-family: var(--font-display); font-weight: 700; }
.columna-card h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); margin-bottom: 4px; }
.columna-role { color: var(--foam); font-size: 0.85rem; opacity: 0.7; display: block; margin-bottom: 16px; }
.columna-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); font-style: italic; line-height: 1.4; }

/* Lifestyle */
.lifestyle-section { background: linear-gradient(180deg, var(--white), var(--foam)); }
.lifestyle-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab { padding: 10px 24px; background: var(--white); border: 2px solid var(--aqua); color: var(--teal); border-radius: 25px; font-weight: 500; transition: 0.3s; }
.tab:hover { background: var(--aqua); color: var(--white); }

/* Videos */
.videos-section { background: var(--white); }
.videos-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.video-featured { border-radius: 12px; overflow: hidden; background: var(--deep); aspect-ratio: 16/9; }
.video-featured iframe { width: 100%; height: 100%; border: none; }
.video-list { display: flex; flex-direction: column; gap: 16px; }
.video-item { display: flex; gap: 16px; padding: 12px; background: var(--foam); border-radius: 10px; cursor: pointer; transition: 0.3s; }
.video-item:hover { background: var(--white); box-shadow: var(--shadow); transform: translateX(8px); }
.video-item img { width: 120px; height: 70px; border-radius: 8px; object-fit: cover; }
.video-info h5 { font-family: var(--font-display); font-size: 1rem; color: var(--deep); margin-bottom: 4px; line-height: 1.3; }
.video-info span { font-size: 0.8rem; color: #999; }
.sidebar-ad { background: linear-gradient(180deg, var(--gold), #a08040); border-radius: 12px; padding: 24px; text-align: center; margin-top: auto; }
.sidebar-ad span { font-size: 0.65rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 12px; }
.sidebar-ad h4 { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 8px; }
.sidebar-ad p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 16px; }
.sidebar-ad a { display: inline-block; background: var(--deep); color: var(--gold); padding: 10px 24px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; transition: 0.3s; }
.sidebar-ad a:hover { background: var(--midnight); }

/* Ad Banner */
.ad-banner { margin: 40px 0; background: linear-gradient(135deg, var(--midnight), var(--teal)); border-radius: 12px; padding: 20px; text-align: center; position: relative; }
.ad-label { position: absolute; top: 8px; right: 12px; font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.ad-banner img { max-width: 100%; border-radius: 8px; }
.ad-banner h3 { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); margin-bottom: 8px; }
.ad-banner p { color: var(--foam); opacity: 0.9; }
.btn { display: inline-block; margin-top: 16px; padding: 12px 28px; background: var(--cyan); color: var(--deep); font-weight: 600; border-radius: 25px; transition: 0.3s; }
.btn:hover { background: var(--white); }

/* Newsletter */
.newsletter { background: var(--midnight); padding: 40px; border-radius: 16px; margin: 40px 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter-text h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); margin-bottom: 8px; }
.newsletter-text p { color: var(--foam); opacity: 0.8; }
.newsletter-form { display: flex; gap: 12px; flex: 1; max-width: 500px; }
.newsletter-form input { flex: 1; padding: 14px 20px; border: none; border-radius: 25px; font-size: 1rem; }
.newsletter-form button { padding: 14px 28px; background: var(--cyan); color: var(--deep); border: none; border-radius: 25px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.newsletter-form button:hover { background: var(--aqua); }

/* Footer */
.footer { background: var(--deep); color: var(--foam); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand p { opacity: 0.7; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--aqua); display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--foam); opacity: 0.7; transition: 0.3s; }
.footer-col a:hover { opacity: 1; color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.85rem; opacity: 0.6; }

/* Article Page */
.article-page { padding: 40px 0; }
.article-header { max-width: 800px; margin: 0 auto 40px; }
.article-cat { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; margin-bottom: 16px; color: white; }
.article-title { font-family: var(--font-display); font-size: 2.8rem; color: var(--deep); line-height: 1.2; margin-bottom: 20px; }
.article-meta { color: #666; font-size: 0.95rem; }
.article-image { max-width: 1000px; margin: 0 auto 40px; border-radius: 16px; overflow: hidden; }
.article-image img { width: 100%; }
.article-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.article-content p { margin-bottom: 1.5rem; }
.article-content h2 { font-family: var(--font-display); font-size: 1.8rem; margin: 2rem 0 1rem; }
.article-content blockquote { border-left: 4px solid var(--aqua); padding-left: 20px; margin: 2rem 0; font-style: italic; color: #555; }
.share-box { margin: 40px auto; max-width: 800px; padding: 20px; background: var(--foam); border-radius: 12px; text-align: center; }
.share-btn { display: inline-block; padding: 10px 20px; color: white; border-radius: 25px; margin: 5px; font-weight: 500; }

/* Category Page */
.category-header { padding: 60px 0; text-align: center; margin-bottom: 40px; }
.category-header h1 { font-family: var(--font-display); font-size: 2.5rem; color: var(--white); margin-bottom: 10px; }
.category-header p { color: var(--foam); opacity: 0.8; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h2 { font-family: var(--font-display); color: #999; margin-bottom: 10px; }
.empty-state p { color: #999; margin-bottom: 20px; }

/* Responsive */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { height: 400px; }
    .hero-sidebar { flex-direction: row; }
    .hero-card { height: 200px; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .videos-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--deep); }
    .nav-list.active { display: flex; }
    .hero-sidebar { flex-direction: column; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .newsletter { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .article-title { font-size: 2rem; }
    /* Ajustar títulos en móvil para mostrar mejor las imágenes */
    .hero-overlay h1 { font-size: 1.4rem; line-height: 1.3; }
    .hero-overlay h2 { font-size: 1rem; margin-top: 8px; }
    .hero-overlay p { font-size: 0.85rem; }
    .hero-overlay { padding: 20px; }
}

/* Admin Styles */
.admin-header { background: var(--deep); padding: 20px; color: white; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.admin-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-nav a { color: var(--foam); padding: 8px 16px; border-radius: 6px; transition: 0.3s; font-size: 0.9rem; }
.admin-nav a:hover, .admin-nav a.active { background: var(--aqua); color: white; }
.admin-content { padding: 40px; max-width: 1200px; margin: 0 auto; }
.admin-card { background: white; border-radius: 12px; padding: 30px; box-shadow: var(--shadow); margin-bottom: 30px; }
.admin-card h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 20px; color: var(--deep); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--deep); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; transition: 0.3s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--aqua); outline: none; }
.form-group textarea { min-height: 200px; resize: vertical; }
.btn-primary { display: inline-block; padding: 12px 28px; background: var(--aqua); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.btn-primary:hover { background: var(--teal); }
.btn-secondary { background: #e0e0e0; color: #333; }
.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid #e0e0e0; }
.admin-table th { background: var(--foam); font-weight: 600; }
.admin-table tr:hover { background: #f8f9fa; }
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.status-published { background: #d4edda; color: #155724; }
.status-draft { background: #fff3cd; color: #856404; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 25px; border-radius: 12px; box-shadow: var(--shadow); }
.stat-card h3 { font-size: 2.5rem; color: var(--aqua); margin-bottom: 5px; }
.stat-card p { color: #666; font-size: 0.9rem; }
.checkbox-group { display: flex; gap: 30px; margin-top: 10px; }
.checkbox-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; }
.message { padding: 15px 20px; border-radius: 10px; margin-bottom: 20px; }
.message.success { background: #d4edda; color: #155724; }
.message.error { background: #f8d7da; color: #721c24; }
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-content { padding: 20px; }
    .news-grid-3 { grid-template-columns: 1fr; }
}

/* Banner Publicitarios con Tamaños */
.ad-container { margin: 30px 0; text-align: center; }
.ad-container.ad-leaderboard { max-width: 970px; margin: 30px auto; }
.ad-container.ad-medium-rectangle { max-width: 300px; }
.ad-container.ad-large-rectangle { max-width: 336px; }
.ad-container.ad-half-page { max-width: 300px; }
.ad-container.ad-billboard { max-width: 970px; margin: 30px auto; }
.ad-container.ad-custom { max-width: 600px; margin: 30px auto; }

.ad-slot {
    background: linear-gradient(135deg, var(--midnight), var(--teal));
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-slot img { width: 100%; height: auto; display: block; }
.ad-slot .ad-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: var(--foam);
}
.ad-slot .ad-placeholder h4 { font-family: var(--font-display); margin-bottom: 8px; }
.ad-slot .ad-placeholder p { font-size: 0.85rem; opacity: 0.8; }

/* Doble Banner Side by Side */
.ad-double { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 30px 0; }
.ad-double .ad-container { margin: 0; }

/* Columnas Grid */
.columnas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 992px) { .columnas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .columnas-grid { grid-template-columns: 1fr; } }

/* Agro Grid */
.agro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 992px) { .agro-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .agro-grid { grid-template-columns: 1fr; } }

/* Video Sidebar */
.video-sidebar { display: flex; flex-direction: column; gap: 16px; }
.video-thumb { position: relative; border-radius: 8px; overflow: hidden; }
.video-thumb img { width: 120px; height: 70px; object-fit: cover; }
.video-thumb span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ========================================
   PUBLICIDADES LATERALES STICKY
   ======================================== */

/* Layout principal con sidebars */
.page-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar publicidad lateral */
.sidebar-ad-sticky {
    width: 160px;
    flex-shrink: 0;
}

.sidebar-ad-sticky .ad-sticky-container {
    position: sticky;
    top: 120px;
    padding: 10px 0;
}

.sidebar-ad-sticky .ad-sticky-wrapper {
    background: #f0f4f8;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.sidebar-ad-sticky .ad-sticky-wrapper.has-image {
    background: transparent;
    border: none;
    padding: 0;
}

.sidebar-ad-sticky .ad-sticky-label {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.sidebar-ad-sticky .ad-sticky-placeholder {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.sidebar-ad-sticky .ad-sticky-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-ad-sticky .ad-sticky-link:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sidebar-ad-sticky .ad-sticky-link img {
    display: block;
    max-width: 160px;
    height: auto;
    border-radius: 8px;
}

/* Ocultar sidebars en pantallas pequeñas */
@media (max-width: 1400px) {
    .sidebar-ad-sticky {
        width: 140px;
    }
    .sidebar-ad-sticky .ad-sticky-link img {
        max-width: 140px;
    }
}

@media (max-width: 1200px) {
    .sidebar-ad-sticky {
        display: none;
    }
    .page-wrapper {
        padding: 0;
    }
}

/* ========================================
   ZONA PUBLICIDAD ENTRE SECCIONES
   ======================================== */

.ad-zone-between-sections {
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-zone-banners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
}

/* 1 banner: 970x250 centrado */
.ad-zone-banners.ad-count-1 {
    justify-content: center;
}

.ad-zone-banners.ad-count-1 .ad-zone-banner {
    max-width: 970px;
    width: 100%;
}

/* 2 banners: 450x250 cada uno */
.ad-zone-banners.ad-count-2 {
    justify-content: center;
    gap: 30px;
}

.ad-zone-banners.ad-count-2 .ad-zone-banner {
    max-width: 450px;
    width: 100%;
}

/* 3 banners: 350x250 cada uno */
.ad-zone-banners.ad-count-3 {
    justify-content: center;
    gap: 20px;
}

.ad-zone-banners.ad-count-3 .ad-zone-banner {
    max-width: 350px;
    width: 100%;
}

/* Estilos del banner individual */
.ad-zone-banner {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-zone-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.ad-zone-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

/* Responsive para zona de publicidad */
@media (max-width: 992px) {
    .ad-zone-banners.ad-count-2,
    .ad-zone-banners.ad-count-3 {
        flex-wrap: wrap;
    }

    .ad-zone-banners.ad-count-2 .ad-zone-banner,
    .ad-zone-banners.ad-count-3 .ad-zone-banner {
        max-width: 100%;
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .ad-zone-banners {
        flex-direction: column;
        gap: 15px;
    }

    .ad-zone-banners .ad-zone-banner {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ========================================
   NEWS CARDS COMPACTOS (estilo horizontal)
   ======================================== */

/* Grid de 3 columnas con cards compactos */
.news-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

/* Card horizontal compacto */
.news-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.news-card:hover {
    background: var(--foam);
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}

/* Imagen compacta a la izquierda */
.news-card-image {
    position: relative;
    width: 110px;
    min-width: 110px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-image .tag {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 3px 8px;
    font-size: 0.6rem;
}

/* Contenido a la derecha */
.news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-card-content h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--deep);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-content p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-content .meta {
    font-size: 0.75rem;
    color: #999;
}

/* Separador sutil entre cards */
.news-grid-3 .news-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 156, 219, 0.2), transparent);
}

/* Quitar separador del último row */
@media (min-width: 769px) {
    .news-grid-3 .news-card:nth-last-child(-n+3)::after {
        display: none;
    }
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .news-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid-3 .news-card:nth-last-child(-n+2)::after {
        display: none;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .news-grid-3 {
        grid-template-columns: 1fr;
    }
    .news-card {
        padding: 12px;
    }
    .news-card-image {
        width: 100px;
        min-width: 100px;
        height: 70px;
    }
    .news-grid-3 .news-card:last-child::after {
        display: none;
    }
}

/* ========================================
   EFECTO FADE-IN EN SCROLL
   ======================================== */

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay escalonado para cards en grilla */
.news-grid-3 .news-card.fade-in-scroll:nth-child(3n+1) { transition-delay: 0s; }
.news-grid-3 .news-card.fade-in-scroll:nth-child(3n+2) { transition-delay: 0.1s; }
.news-grid-3 .news-card.fade-in-scroll:nth-child(3n) { transition-delay: 0.2s; }

/* Para dispositivos móviles, sin delay */
@media (max-width: 768px) {
    .news-grid-3 .news-card.fade-in-scroll {
        transition-delay: 0s !important;
    }
}

/* ========================================
   PUBLICIDAD LATERAL STICKY
   ======================================== */

.lateral-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    width: 160px;
    transition: opacity 0.3s ease;
}

.lateral-ad.izquierda {
    left: 10px;
}

.lateral-ad.derecha {
    right: 10px;
}

.lateral-ad a {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lateral-ad a:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.lateral-ad img {
    display: block;
    width: 160px;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lateral-ad .ad-label {
    font-size: 0.6rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    display: block;
    margin-top: 5px;
}

/* Solo mostrar en pantallas muy grandes */
@media (max-width: 1500px) {
    .lateral-ad {
        display: none !important;
    }
}

/* ========================================
   ANUNCIO INTERSTICIAL (Pantalla Completa)
   ======================================== */

.intersticial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.intersticial-overlay.active {
    opacity: 1;
    visibility: visible;
}

.intersticial-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: intersticialIn 0.5s ease;
}

@keyframes intersticialIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.intersticial-container img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    cursor: pointer;
}

.intersticial-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    color: #333;
    font-weight: bold;
    line-height: 1;
}

.intersticial-close:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

.intersticial-close.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.intersticial-timer {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.6);
    padding: 8px 20px;
    border-radius: 20px;
}

.intersticial-skip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--aqua);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: none;
}

.intersticial-skip.visible {
    display: block;
}

.intersticial-skip:hover {
    background: var(--teal);
    transform: translateX(-50%) scale(1.05);
}

/* Responsive para intersticial */
@media (max-width: 768px) {
    .intersticial-container {
        max-width: 95%;
    }

    .intersticial-close {
        top: -10px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .intersticial-container img {
        max-height: 70vh;
    }
}
