/*
Theme Name: Enamórate de Valledupar
Theme URI: https://enamoratedelcesar.co
Description: Tema para el micrositio de Gestión Cultural Municipal de Valledupar, Cesar, Colombia
Author: Alcaldía de Valledupar
Author URI: https://valledupar-cesar.gov.co
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enamorate-valledupar
Tags: cultura, valledupar, institucional, gobierno
*/

/* Variables de colores institucionales */
:root {
    --azul: #203A75;
    --rojo: #BD2E2E;
    --blanco: #FFFFFF;
    --gris-claro: #F5F5F5;
    --gris-oscuro: #333333;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #2C3E50;
    line-height: 1.6;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 1rem;
}

a {
    color: var(--azul);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--rojo);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    overflow-x: hidden;
}

.header-top {
    background: linear-gradient(135deg, #203A75 0%, #2a4a8f 100%);
    padding: 8px 0;
    color: #FFFFFF;
    font-size: 0.85rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links span {
    font-size: 0.9rem;
}

.social-links a {
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #FFD700;
    transform: scale(1.1);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.header-main {
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    height: auto;
}

.logo-escudo {
    width: 30px;
    max-width: 30px;
}

.logo-enamorate {
    width: 65px;
    max-width: 65px;
}

.logo-upc {
    width: 45px;
    max-width: 45px;
}

.site-info {
    display: flex;
    flex-direction: column;
}

.site-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--azul);
    line-height: 1.2;
}

.site-title a {
    color: var(--azul);
}

.site-description {
    color: var(--rojo);
    margin: 0;
    font-size: 0.85rem;
}

/* Navegación */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--azul);
    font-weight: 500;
    padding: 10px 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    display: block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: var(--rojo);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a.btn-especial {
    background-color: var(--rojo);
    color: #FFFFFF !important;
    border-radius: 5px;
}

.nav-menu a.btn-especial::after {
    display: none;
}

.nav-menu a.btn-especial:hover {
    background-color: #9a2424;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--azul);
    transition: 0.3s;
    border-radius: 2px;
}

/* ============================================
   HERO CON MAPA SVG
   ============================================ */
.hero-map {
    background: linear-gradient(135deg, #203A75 0%, #2a4a8f 50%, #BD2E2E 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.hero-map .container {
    position: relative;
    z-index: 1;
}

.map-svg {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.municipio {
    fill: #FFFFFF;
    transition: fill 0.3s ease;
}

.municipio:hover {
    fill: #FFD700;
}

.hero-text {
    color: #FFFFFF;
    margin-top: 5px;
}

.hero-text h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #F5F5F5;
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
    display: inline-block;
    background-color: var(--rojo);
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background-color: #9a2424;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 46, 46, 0.4);
}

/* ============================================
   SECCIONES
   ============================================ */
.section-programas,
.section-noticias {
    padding: 60px 20px;
    background-color: #F9F9F9;
}

.section-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #203A75 0%, #2a4a8f 100%);
    color: #FFFFFF;
}

.section-cta h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #F5F5F5;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--azul);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ============================================
   CARDS/TARJETAS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card-date {
    color: var(--rojo);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--azul);
    margin-bottom: 15px;
}

.card-text {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-link {
    color: var(--rojo);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.card-link:hover {
    gap: 10px;
}

/* ============================================
   CONTENIDO INTERNO
   ============================================ */
.content-page {
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.content-page h2 {
    font-size: 2rem;
    color: var(--azul);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid var(--rojo);
    padding-left: 15px;
}

.content-page h3 {
    font-size: 1.5rem;
    color: var(--azul);
    margin-top: 25px;
    margin-bottom: 12px;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #444;
}

.content-page ul,
.content-page ol {
    margin: 20px 0 20px 30px;
    line-height: 1.8;
}

.content-page li {
    margin-bottom: 10px;
    color: #444;
}

.content-intro {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #F5F5F5;
    border-left: 5px solid var(--rojo);
    border-radius: 5px;
}

.info-box {
    background-color: #F0F8FF;
    border: 2px solid var(--azul);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
}

.info-box h3 {
    color: var(--azul);
    margin-top: 0;
}

.highlight-box {
    background-color: #FFF5F5;
    border-left: 5px solid var(--rojo);
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: #1a2850;
    color: #FFFFFF;
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #FFFFFF;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #CCC;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #CCC;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-section .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-section .social-links a {
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.footer-section .social-links a:hover {
    color: #FFD700;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #AAA;
    font-size: 0.9rem;
}

/* ============================================
   BOTÓN SCROLL TO TOP
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--rojo);
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #9a2424;
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Pantallas grandes (1200px y menores) */
@media (max-width: 1200px) {
    .header-content {
        gap: 25px;
    }
    
    .logo-section {
        gap: 15px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}

/* Tablets (1024px y menores) */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 15px;
    }
    
    .header-top {
        padding: 6px 0;
        font-size: 0.8rem;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-content {
        gap: 20px;
    }
    
    .logo-escudo {
        width: 28px;
        max-width: 28px;
    }
    
    .logo-enamorate {
        width: 60px;
        max-width: 60px;
    }
    
    .logo-upc {
        width: 40px;
        max-width: 40px;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    .nav-menu {
        gap: 12px;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Tablets medianas (900px y menores) */
@media (max-width: 900px) {
    .header-content {
        gap: 15px;
    }
    
    .logo-section {
        gap: 10px;
    }
    
    .logos-container {
        gap: 12px;
    }
    
    .logo-escudo {
        width: 26px;
        max-width: 26px;
    }
    
    .logo-enamorate {
        width: 55px;
        max-width: 55px;
    }
    
    .logo-upc {
        width: 36px;
        max-width: 36px;
    }
    
    .site-title {
        font-size: 1.15rem;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Tablets pequeñas y móviles grandes (768px y menores) */
@media (max-width: 768px) {
    .header-top {
        font-size: 0.8rem;
        padding: 8px 0;
    }
    
    .header-top .container {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        gap: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .social-links span {
        display: none;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }
    
    .logos-container {
        gap: 10px;
        justify-content: center;
    }
    
    .logo-escudo {
        width: 28px;
    }
    
    .logo-enamorate {
        width: 60px;
    }
    
    .logo-upc {
        width: 40px;
    }
    
    .site-info {
        text-align: center;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .site-description {
        font-size: 0.85rem;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        gap: 5px;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a.btn-especial {
        margin-top: 10px;
        text-align: center;
    }
    
    .hero-map {
        min-height: 350px;
        padding: 30px 15px;
    }
    
    .map-svg {
        max-width: 180px;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section-programas,
    .section-noticias {
        padding: 40px 15px;
    }
    
    .section-cta {
        padding: 50px 15px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 25px;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .section-cta h2 {
        font-size: 1.8rem;
    }
    
    .section-cta p {
        font-size: 1.1rem;
    }
    
    .content-page {
        padding: 40px 15px;
    }
    
    .content-page h2 {
        font-size: 1.6rem;
    }
    
    .content-page h3 {
        font-size: 1.3rem;
    }
    
    .info-box,
    .highlight-box {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .site-footer {
        padding: 40px 15px 15px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Móviles pequeños (480px y menores) */
@media (max-width: 480px) {
    .header-top span {
        font-size: 0.75rem;
    }
    
    .logo-escudo {
        width: 22px;
    }
    
    .logo-enamorate {
        width: 45px;
    }
    
    .logo-upc {
        width: 30px;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .site-description {
        font-size: 0.75rem;
    }
    
    .hero-map {
        min-height: 300px;
        padding: 25px 10px;
    }
    
    .map-svg {
        max-width: 150px;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
    
    .section-cta h2 {
        font-size: 1.5rem;
    }
    
    .section-cta p {
        font-size: 1rem;
    }
    
    .content-page h2 {
        font-size: 1.4rem;
    }
    
    .content-page h3 {
        font-size: 1.2rem;
    }
    
    .content-intro {
        font-size: 1rem;
        padding: 15px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
}

/* Móviles extra pequeños (360px y menores) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .card {
        padding: 15px;
    }
    
    .nav-menu {
        width: 90%;
    }
}

