/*
Theme Name: Movilidad Sin Mitos V9
Description: Tema con separación estricta de notas y videos, y banner Costa Rica al fondo.
Version: 9.0
Author: JP
*/

:root { --primary-color: #0b223f; --accent-color: #ff6600; --bg-color: #f4f6f8; --text-color: #333; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0; background-color: var(--bg-color); color: var(--text-color); }
.container { width: 90%; max-width: 1300px; margin: 30px auto; display: flex; gap: 20px; }

header { background-color: var(--primary-color); color: white; display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); gap: 10px; position: relative; z-index: 100; }
.logo-container img { max-height: 45px; max-width: 140px; width: auto; height: auto; object-fit: contain; display: block; }
.logo-container { position: relative; z-index: 10; flex-shrink: 0; }

nav { flex-grow: 1; display: flex; justify-content: center; overflow: visible; }
nav ul { list-style: none; display: flex; margin: 0; padding: 0; gap: 6px; align-items: center; flex-wrap: nowrap; }
nav ul li { position: relative; display: flex; align-items: center; white-space: nowrap; flex-shrink: 0; }
nav ul li a { color: white; text-decoration: none; font-weight: bold; font-size: 10px; text-transform: uppercase; transition: color 0.3s; padding: 5px 0; white-space: nowrap; display: block; }
nav ul li:not(:last-child)::after { content: '|'; margin-left: 6px; color: #557; display: block; }
nav ul li.auth-link::after { content: none; }
nav ul li a:hover { color: var(--accent-color); }

.auth-btn { background-color: var(--accent-color); padding: 6px 10px !important; border-radius: 20px; font-size: 10px !important; display: inline-block; white-space: nowrap; }
.auth-btn:hover { background-color: white !important; color: var(--accent-color) !important; }

.search-bar { flex-shrink: 0; position: relative; z-index: 50; }
.search-bar form { display: flex; align-items: center; flex-wrap: nowrap; margin: 0; }
.search-bar input { padding: 6px 10px; border-radius: 20px 0 0 20px; border: none; outline: none; width: 110px; font-size: 11px; color: #333; }
.search-bar button { background-color: var(--accent-color); color: white; border: none; padding: 6px 12px; border-radius: 0 20px 20px 0; cursor: pointer; font-weight: bold; font-size: 11px; }

/* Fixed Top Image */
.fixed-top-banner { text-align: center; margin: 20px auto; width: 90%; max-width: 1300px; }
.fixed-top-banner img { width: 100%; max-height: 250px; border-radius: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); object-fit: contain; background: #fff; }

.footer-bottom { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px 50px; background-color: #fff; color: #000; margin-top: 50px; text-align: center; gap: 15px; border-top: 3px solid var(--accent-color); }
.footer-contact { font-size: 14px; font-weight: bold; color: var(--primary-color); }
.social-icons { display: flex; gap: 20px; font-size: 24px; color: var(--primary-color); }
.social-icons i { cursor: pointer; transition: color 0.3s; }
.social-icons i:hover { color: var(--accent-color); }
.footer-copyright { font-size: 12px; color: #777; }

.home-container { display: grid; grid-template-columns: 250px 1fr 250px; gap: 20px; margin-top: 0; }
.sidebar-news { background: white; border-radius: 15px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); align-self: start; }
.sidebar-news h3 { margin-top: 0; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; font-size: 18px; }
.news-item { display: flex; gap: 10px; margin-bottom: 15px; align-items: center; text-decoration: none; color: var(--text-color); }
.news-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.news-item-content h4 { margin: 0 0 5px 0; font-size: 13px; line-height: 1.2; }
.news-item-content p { margin: 0; font-size: 11px; color: #777; }

.main-content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.featured-news { background: #eef2f5; border-radius: 15px; display: flex; overflow: hidden; text-decoration: none; color: inherit; }
.featured-news img { width: 50%; object-fit: cover; }
.featured-info { padding: 30px; width: 50%; display: flex; flex-direction: column; justify-content: center; }
.featured-info h2 { margin-top: 0; font-size: 24px; color: var(--primary-color); }
.featured-info p { font-size: 14px; color: #555; }
.btn-read-more { background: var(--accent-color); color: white; padding: 10px 20px; border-radius: 20px; align-self: flex-start; text-decoration: none; font-weight: bold; margin-top: 15px; }

/* Carruseles */
.carousel-section { background: white; border-radius: 15px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: relative; }
.carousel-section h3 { margin-top: 0; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; font-size: 18px; color: var(--primary-color); }
.carousel-container { position: relative; width: 100%; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease-in-out; gap: 15px; }
.carousel-item { flex: 0 0 calc(33.333% - 10px); background: #f9f9f9; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.carousel-item img { width: 100%; height: 120px; object-fit: cover; object-position: center; display: block; }
.carousel-item-content { padding: 10px; }
.carousel-item-content h4 { margin: 0 0 5px 0; font-size: 13px; color: var(--primary-color); }
.carousel-item-content p { margin: 0; font-size: 11px; color: #777; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--accent-color); color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; z-index: 10; font-weight: bold; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.carousel-btn:hover { background: var(--primary-color); }
.carousel-btn.prev { left: -10px; }
.carousel-btn.next { right: -10px; }
.video-icon-overlay { position: absolute; top: 40px; left: 50%; transform: translate(-50%, -50%); color: red; font-size: 30px; background: white; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }

.security-banner { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.security-header { background: var(--primary-color); color: white; text-align: center; padding: 10px; font-size: 18px; font-weight: bold; }
.security-content { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.security-item { display: flex; align-items: center; gap: 15px; }
.security-item i { font-size: 24px; color: var(--primary-color); }
.security-item p { margin: 0; font-size: 13px; font-weight: bold; }

.banner-vertical { display: flex; flex-direction: column; gap: 20px; align-self: start; }
.banner-horizontal { text-align: center; margin: 20px auto; width: 90%; max-width: 1300px; }

@media (max-width: 1024px) {
    .home-container { grid-template-columns: 1fr; }
    .banner-vertical { display: none; }
    .carousel-item { flex: 0 0 calc(50% - 7.5px); }
}
@media (max-width: 600px) {
    .carousel-item { flex: 0 0 100%; }
}

.auth-container { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); max-width: 400px; margin: 50px auto; text-align: center; }
.auth-container h2 { color: var(--primary-color); margin-top: 0; }
.auth-form { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.auth-form input { padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; }
.auth-btn-submit { background: var(--accent-color); color: white; border: none; padding: 12px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; }

.detail-container { display: grid; grid-template-columns: 1fr 250px; gap: 30px; margin-top: 30px; }
.article-content { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.article-cover { width: 100%; max-height: 400px; object-fit: cover; object-position: center; border-radius: 10px; margin-bottom: 20px; display: block; }
