:root {
    --naranja: #E67E22;
    --naranja-oscuro: #D35400;
    --crema: #FFF8E7;
    --gris-claro: #F5F5F5;
    --texto: #333;
    --blanco: #FFFFFF;
    --negro: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--texto);
    line-height: 1.6;
    background-color: var(--blanco);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--naranja-oscuro);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.logo-text small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
}

.nav-main ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-main a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-main a:hover,
.nav-main a.active {
    color: var(--naranja);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-naranja {
    background: var(--naranja);
    color: white;
}

.btn-naranja:hover {
    background: var(--naranja-oscuro);
}

.btn-outline {
    border: 2px solid var(--naranja);
    color: var(--naranja);
    background: transparent;
}

.btn-outline:hover {
    background: var(--naranja);
    color: white;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 10;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: var(--naranja);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background: white;
    padding: 16px;
    border-top: 1px solid #eee;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin: 12px 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-main, .header-actions {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .mobile-nav.active {
        display: block;
    }
}

/* Carrusel */
.hero-carrusel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.activo {
    opacity: 1;
    z-index: 1;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    max-width: 600px;
    z-index: 2;
}

.slide-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.carrusel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 3;
    border-radius: 4px;
}

.arrow-prev { left: 16px; }
.arrow-next { right: 16px; }

.carrusel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carrusel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.carrusel-dot.activo {
    background: white;
}

/* Bicentenario badge */
.bicentenario-badge {
    background: var(--naranja-oscuro);
    color: white;
    padding: 24px 0;
}

.badge-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.badge-num {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.badge-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.badge-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.3);
}

/* Secciones */
.seccion {
    padding: 60px 0;
}

.seccion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.seccion-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #222;
}

.seccion-sub {
    color: #666;
    margin-top: 8px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.post-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-cat {
    display: inline-block;
    background: var(--naranja);
    color: white;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 16px 16px 8px;
    text-decoration: none;
}

.post-title {
    font-size: 1.2rem;
    margin: 8px 16px;
    font-weight: 700;
}

.post-title a {
    text-decoration: none;
    color: #222;
}

.post-excerpt {
    margin: 8px 16px;
    color: #555;
    font-size: 0.9rem;
}

.post-meta {
    margin: 16px;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* Top lista */
.top-lista {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
}

.top-item:last-child {
    border-bottom: none;
}

.top-pos {
    font-size: 1.5rem;
    width: 50px;
}

.top-pos.oro { color: #F5A623; }
.top-pos.plata { color: #9E9E9E; }
.top-pos.bronce { color: #CD7F32; }

.top-nombre {
    flex: 1;
    font-weight: 600;
    margin-left: 16px;
}

.top-ciudad {
    font-size: 0.75rem;
    color: #888;
    font-weight: normal;
}

.top-pts {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Concurso card */
.concurso-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
}

.concurso-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #10B981;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
}

.badge-activo {
    background: #10B981;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 16px;
}

.footer-desc {
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--naranja);
}

.footer-title {
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--naranja);
}

.footer-patros {
    border-top: 1px solid #333;
    padding-top: 24px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-patros-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-patros-logos img {
    height: 30px;
    width: auto;
}

.footer-bottom {
    background: #111;
    padding: 16px 0;
    text-align: center;
    font-size: 0.75rem;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .badge-inner {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    .badge-sep {
        display: none;
    }
    .seccion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}