/* assets/css/style.css - Estilos completos para Guinea Global */

/* ========== VARIABLES ========== */
:root {
    --primary: #D4AF37;
    --primary-dark: #B58B25;
    --secondary: #0B2D4A;
    --secondary-light: #244D6B;
    --dark: #0B2D4A;
    --gray: #4a5568;
    --light-gray: #6c757d;
    --bg-light: #f5f7fb;
    --border: #eef2f6;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-hover: 0 12px 24px rgba(0,0,0,0.1);
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== BOTÓN FLOTANTE ADMIN ========== */
.admin-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s;
}

.admin-float-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* ========== HEADER ========== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.top-bar {
    background: var(--secondary);
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-icons a {
    color: white;
    margin-left: 15px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #D4AF37;
}

.main-header {
    padding: 20px 0;
}

.logo-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-branding h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
}

.site-branding h1 a {
    color: var(--secondary);
}

.site-branding p {
    font-size: 14px;
    color: var(--light-gray);
}

.logo {
    max-height: 60px;
    margin-bottom: 10px;
}

/* ========== BÚSQUEDA ========== */
.search-area {
    position: relative;
    min-width: 300px;
}

.search-box {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 40px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: var(--primary);
    border: none;
    padding: 0 20px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.search-result-item span {
    font-size: 12px;
    color: var(--primary);
}

/* ========== NAVEGACIÓN ========== */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 600;
    color: var(--dark);
    transition: 0.3s;
}

.nav-menu > li > a:hover {
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark);
    transition: 0.3s;
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* ========== BREAKING NEWS ========== */
.breaking-news-bar {
    background: #FFF8E7;
    border-bottom: 1px solid #EBD9A8;
    padding: 10px 0;
}

.breaking-label {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
}

.breaking-ticker {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

.breaking-ticker span {
    display: inline-block;
    margin-right: 30px;
}

.breaking-ticker a {
    color: var(--primary);
    font-weight: 500;
}

/* ========== HERO BANNER ========== */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 20px;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.banner-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    color: white;
    text-align: center;
    z-index: 2;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.banner-content p {
    font-size: 20px;
}

.banner-btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.banner-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-prev:hover,
.banner-next:hover {
    background: var(--primary);
}

/* ========== GRID DE CONTENIDO ========== */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.section-widget {
    margin-bottom: 50px;
}

.section-header {
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.section-header a {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 18px;
}

.card-content .cat {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.card-content h4 a {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.card-content h4 a:hover {
    color: var(--primary);
}

.card-content p {
    color: var(--gray);
    font-size: 14px;
}

.post-meta {
    margin-top: 12px;
    font-size: 12px;
    color: var(--light-gray);
    display: flex;
    gap: 15px;
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.widget {
    margin-bottom: 35px;
}

.widget-title {
    font-size: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.subscribe-widget input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.subscribe-widget button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.subscribe-widget button:hover {
    background: var(--primary-dark);
}

.trending-list {
    list-style: none;
}

.trending-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.trending-number {
    font-weight: 800;
    color: var(--primary);
    font-size: 20px;
    min-width: 30px;
}

.trending-list a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.trending-list a:hover {
    color: var(--primary);
}

.ad-widget img {
    width: 100%;
    border-radius: 12px;
}

.stats-widget .stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--light-gray);
}

/* ========== PAGINACIÓN ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.2s;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: white;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--secondary);
    color: #ccddee;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccddee;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #D4AF37;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #244D6B;
    font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-hover);
        padding: 10px 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        background: transparent;
    }
    
    .hero-banner {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .logo-area {
        flex-direction: column;
        text-align: center;
    }
    
    .search-area {
        width: 100%;
    }
    
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 300px;
        margin: 20px 0;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .section-header h3 {
        font-size: 20px;
    }
    
    .site-branding h1 {
        font-size: 24px;
    }
}