/*
Theme Name: Teatro Municipal de Chillán
Theme URI: https://teatrochillan.cl
Author: Teatro Municipal de Chillán
Author URI: https://teatrochillan.cl
Description: Tema oficial del Teatro Municipal de Chillán. Diseño moderno y elegante para instituciones culturales.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teatro-chillan
Tags: dark, one-column, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES - Brand System
   ========================================================================== */
:root {
    /* Brand Colors */
    --brand-red: #E31C25;
    --brand-red-dark: #b91c1c;
    --brand-red-glow: rgba(227, 28, 37, 0.4);
    
    /* Dark Mode Colors (default) */
    --brand-dark: #0a0a0a;
    --brand-gray: #171717;
    --brand-surface: #262626;
    --brand-light: #F5F5F5;
    --brand-muted: #A3A3A3;
    
    /* Semantic Colors */
    --color-bg: var(--brand-dark);
    --color-bg-alt: var(--brand-gray);
    --color-surface: var(--brand-surface);
    --color-text: var(--brand-light);
    --color-text-muted: var(--brand-muted);
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --section-padding: clamp(4rem, 8vw, 6rem);
    --container-max: 1400px;
    --container-padding: clamp(1rem, 4vw, 3rem);
    
    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.7s ease;
    
    /* Z-index layers */
    --z-background: -1;
    --z-content: 1;
    --z-header: 50;
    --z-overlay: 100;
    --z-modal: 200;
}

/* Light Mode */
[data-theme="light"] {
    --brand-dark: #ffffff;
    --brand-gray: #f5f5f5;
    --brand-surface: #e5e5e5;
    --brand-light: #171717;
    --brand-muted: #525252;
    
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-surface: #e5e5e5;
    --color-text: #171717;
    --color-text-muted: #525252;
    --color-border: rgba(0, 0, 0, 0.1);
}

/* ========== LIGHT MODE - HEADER ========== */
[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .main-navigation a {
    color: #171717;
}

[data-theme="light"] .main-navigation a:hover {
    color: var(--brand-red);
}

[data-theme="light"] .main-navigation > ul > li > a {
    color: rgba(23, 23, 23, 0.8);
}

[data-theme="light"] .main-navigation > ul > li:hover > a,
[data-theme="light"] .main-navigation > ul > li.current-menu-item > a {
    color: #171717;
}

[data-theme="light"] .main-navigation ul ul {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .main-navigation ul ul a {
    color: rgba(23, 23, 23, 0.7);
}

[data-theme="light"] .main-navigation ul ul a:hover {
    color: #171717;
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .main-navigation ul ul .current-menu-item > a {
    color: var(--brand-red);
}

[data-theme="light"] .site-title,
[data-theme="light"] .site-subtitle {
    color: #171717;
}

[data-theme="light"] .mobile-menu-toggle {
    color: #171717;
}

[data-theme="light"] .mobile-navigation {
    background: #ffffff;
}

[data-theme="light"] .mobile-navigation > ul > li {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-navigation > ul > li > a,
[data-theme="light"] .mobile-navigation > ul > li > .menu-item-wrapper > a {
    color: #171717;
}

[data-theme="light"] .mobile-navigation .submenu-toggle {
    background: rgba(0, 0, 0, 0.05);
    color: #171717;
}

[data-theme="light"] .mobile-navigation .submenu-toggle:hover {
    background: var(--brand-red);
    color: white;
}

[data-theme="light"] .mobile-navigation ul ul {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mobile-navigation ul ul li {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mobile-navigation ul ul a {
    color: rgba(23, 23, 23, 0.7);
}

[data-theme="light"] .mobile-navigation ul ul a:hover {
    color: #171717;
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mobile-close {
    color: #171717;
}

/* ========== LIGHT MODE - HERO ========== */
/* Hero keeps dark text by default, customizable via hero options */

/* ========== LIGHT MODE - SECTIONS ========== */
[data-theme="light"] .section {
    background-color: #ffffff;
}

[data-theme="light"] .section:nth-child(even) {
    background-color: #f5f5f5;
}

[data-theme="light"] .section-header h2,
[data-theme="light"] .section h2 {
    color: #171717;
}

[data-theme="light"] .section-header p,
[data-theme="light"] .section p {
    color: #525252;
}

/* ========== LIGHT MODE - CARDS ========== */
[data-theme="light"] .event-card,
[data-theme="light"] .taller-card,
[data-theme="light"] .news-card {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .event-card:hover,
[data-theme="light"] .taller-card:hover,
[data-theme="light"] .news-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .event-card-content h3,
[data-theme="light"] .news-card h3 {
    color: #171717;
}

[data-theme="light"] .event-card-content p,
[data-theme="light"] .news-card p {
    color: #525252;
}

[data-theme="light"] .event-meta {
    color: #525252;
}

/* ========== LIGHT MODE - BUTTONS ========== */
[data-theme="light"] .btn-outline {
    border-color: #171717;
    color: #171717;
}

[data-theme="light"] .btn-outline:hover {
    background: #171717;
    color: #ffffff;
}

/* ========== LIGHT MODE - SOCIAL FEED ========== */
[data-theme="light"] .social-feed-section {
    background: #f5f5f5;
}

[data-theme="light"] .social-feed-item {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .social-feed-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .social-feed-name {
    color: #171717;
}

/* ========== LIGHT MODE - FOOTER ========== */
[data-theme="light"] .site-footer {
    background: #f5f5f5;
    border-top: 1px solid var(--color-border);
}

[data-theme="light"] .site-footer,
[data-theme="light"] .site-footer p,
[data-theme="light"] .site-footer a {
    color: #525252;
}

[data-theme="light"] .site-footer a:hover {
    color: var(--brand-red);
}

[data-theme="light"] .footer-title {
    color: #171717;
}

/* ========== LIGHT MODE - FORMS ========== */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    color: #171717;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] select:focus {
    border-color: var(--brand-red);
}

/* ========== LIGHT MODE - VISIT SECTION ========== */
[data-theme="light"] .visit-section {
    background: #f5f5f5;
}

[data-theme="light"] .visit-card {
    background: #ffffff;
}

[data-theme="light"] .visit-card h4 {
    color: #171717;
}

[data-theme="light"] .visit-card p {
    color: #525252;
}

/* ========== LIGHT MODE - TALLERES ========== */
[data-theme="light"] .talleres-section {
    background: #ffffff;
}

/* ========== LIGHT MODE - NEWS ========== */
[data-theme="light"] .news-section {
    background: #f5f5f5;
}

[data-theme="light"] .news-card {
    background: #ffffff;
}

[data-theme="light"] .news-card-title {
    color: #171717;
}

[data-theme="light"] .news-card-excerpt {
    color: #525252;
}

/* ========== LIGHT MODE - CTA ========== */
[data-theme="light"] .cta-section {
    /* CTA keeps its red background */
}

/* ========== LIGHT MODE - SPONSORS ========== */
[data-theme="light"] .footer-sponsors {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-sponsor-logo {
    filter: grayscale(100%) brightness(0.5);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--brand-dark);
    color: var(--brand-light);
    line-height: 1.6;
}

/* Selection */
::selection {
    background-color: var(--brand-red);
    color: white;
}

/* Screen Reader Text - Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--brand-surface);
    clip: auto !important;
    clip-path: none;
    color: var(--brand-light);
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 20px;
    height: 20px;
}

/* Show/hide icons based on theme */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--brand-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red-dark);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    color: var(--brand-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-red);
}

/* Text Outline Effect */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn:focus {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    box-shadow: 0 0 20px var(--brand-red-glow);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: white;
    color: var(--brand-dark);
}

.btn-white {
    background-color: white;
    color: var(--brand-red);
    border-color: white;
}

.btn-white:hover {
    background-color: var(--brand-dark);
    color: white;
    border-color: var(--brand-dark);
}

.btn-link {
    background: transparent;
    border: none;
    padding: 0;
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-link:hover {
    color: var(--brand-red);
}

.btn svg,
.btn .icon {
    width: 1rem;
    height: 1rem;
    transition: transform var(--transition-fast);
}

.btn:hover svg,
.btn:hover .icon {
    transform: translateX(4px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-header);
    padding: 1rem 0;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-medium);
}

@media (min-width: 768px) {
    .site-header {
        padding: 1.5rem 0;
    }
}

.site-header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 0;
}

@media (min-width: 768px) {
    .site-header.scrolled {
        padding: 1rem 0;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.site-branding {
    cursor: pointer;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-branding:hover {
    opacity: 0.85;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-branding .custom-logo {
    display: block;
    max-height: var(--logo-height-mobile, 40px);
    width: auto;
    height: auto;
}

@media (min-width: 768px) {
    .site-branding .custom-logo {
        max-height: var(--logo-height-desktop, 50px);
    }
}

.site-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    transition: color var(--transition-fast);
}

@media (min-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
}

.site-subtitle {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--brand-muted);
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .site-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.3em;
    }
}

/* Desktop Navigation */
.main-navigation {
    display: none !important;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: flex !important;
        align-items: center;
    }
}

.main-navigation > ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation > ul > li {
    position: relative;
}

.main-navigation > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.25rem;
    position: relative;
    transition: color var(--transition-fast);
}

.main-navigation > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background-color: var(--brand-red);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.main-navigation > ul > li:hover > a,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a {
    color: white;
}

.main-navigation > ul > li:hover > a::after,
.main-navigation > ul > li.current-menu-item > a::after,
.main-navigation > ul > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Dropdown indicator arrow */
.main-navigation .menu-item-has-children > a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 0.5rem;
    order: 1;
    transition: transform var(--transition-fast);
}

.main-navigation > ul > .menu-item-has-children:hover > a::before {
    transform: rotate(180deg);
}

/* ========================================
   DROPDOWN SUBMENUS - Desktop
   ======================================== */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--brand-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.main-navigation ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu items */
.main-navigation ul ul li {
    position: relative;
}

.main-navigation ul ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    letter-spacing: 0;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.main-navigation ul ul a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--brand-red);
}

.main-navigation ul ul .current-menu-item > a {
    color: var(--brand-red);
    border-left-color: var(--brand-red);
}

/* Nested submenus (level 3+) */
.main-navigation ul ul ul {
    top: -0.75rem;
    left: 100%;
    margin-left: 0;
}

/* Arrow for nested submenus */
.main-navigation ul ul .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
    margin-left: auto;
}

/* Remove bottom underline from submenu items */
.main-navigation ul ul a::after {
    display: none !important;
}

/* Dropdown appears on right if not enough space */
.main-navigation > ul > li:last-child ul,
.main-navigation > ul > li:nth-last-child(2) ul {
    left: auto;
    right: 0;
}

.main-navigation > ul > li:last-child ul ul,
.main-navigation > ul > li:nth-last-child(2) ul ul {
    left: auto;
    right: 100%;
}

/* ========================================
   MEGAMENU STYLE (optional class)
   Add 'mega-menu' class to parent menu item
   ======================================== */
.main-navigation .mega-menu > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    min-width: 500px;
    padding: 1.5rem;
    gap: 1rem;
}

.main-navigation .mega-menu > ul > li {
    padding: 0;
}

.main-navigation .mega-menu > ul > li > a {
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

.main-navigation .mega-menu > ul > li > ul {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
}

.main-navigation .mega-menu > ul > li > ul a {
    padding: 0.5rem 0;
    border-left: none;
    font-size: 0.8rem;
}

.main-navigation .mega-menu > ul > li > ul a:hover {
    background: transparent;
    color: var(--brand-red);
}

/* ========================================
   DROPDOWN STYLE VARIANTS
   ======================================== */
/* Minimal style */
body.nav-style-minimal .main-navigation ul ul {
    background: rgba(10, 10, 10, 0.98);
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.nav-style-minimal .main-navigation ul ul a {
    border-left: none;
    padding: 0.6rem 1.5rem;
}

body.nav-style-minimal .main-navigation ul ul a:hover {
    background: transparent;
    color: var(--brand-red);
}

/* Boxed style */
body.nav-style-boxed .main-navigation ul ul {
    background: var(--brand-surface);
    border: 2px solid var(--brand-red);
    border-radius: 0;
}

body.nav-style-boxed .main-navigation ul ul a {
    border-left: none;
}

body.nav-style-boxed .main-navigation ul ul a:hover {
    background: var(--brand-red);
    color: white;
}

/* ========================================
   DROPDOWN ANIMATION VARIANTS
   ======================================== */
/* Fade only */
body.nav-anim-fade .main-navigation ul ul {
    transform: none;
}

/* Scale animation */
body.nav-anim-scale .main-navigation ul ul {
    transform: scale(0.95);
    transform-origin: top center;
}

body.nav-anim-scale .main-navigation ul li:hover > ul {
    transform: scale(1);
}

/* Hide arrow option */
body.nav-hide-arrow .main-navigation .menu-item-has-children > a::before {
    display: none;
}

/* Header Actions */
.header-actions {
    display: none !important;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .header-actions {
        display: flex !important;
        gap: 1.5rem;
    }
}

.search-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.search-toggle:hover {
    color: var(--brand-red);
}

.search-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
    z-index: 100;
}

.mobile-menu-toggle:hover {
    color: var(--brand-red);
}

.mobile-menu-toggle svg {
    width: 2rem;
    height: 2rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-navigation {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background-color: var(--brand-dark);
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-medium);
    overflow-y: auto;
}

.mobile-navigation.active {
    transform: translateX(0);
}

/* Main menu items */
.mobile-navigation > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.mobile-navigation > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-navigation > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 1rem 0;
    transition: color var(--transition-fast);
}

.mobile-navigation > ul > li > a:hover,
.mobile-navigation > ul > li.current-menu-item > a {
    color: var(--brand-red);
}

/* Submenu toggle button */
.mobile-navigation .menu-item-has-children > a {
    position: relative;
}

.mobile-navigation .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: all var(--transition-fast);
}

.mobile-navigation .submenu-toggle:hover {
    background: var(--brand-red);
}

.mobile-navigation .submenu-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.mobile-navigation .submenu-toggle.is-open svg {
    transform: rotate(180deg);
}

/* Mobile Submenus */
.mobile-navigation ul ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.mobile-navigation ul ul.is-open {
    display: block;
}

.mobile-navigation ul ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-navigation ul ul li:last-child {
    border-bottom: none;
}

.mobile-navigation ul ul a {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    letter-spacing: 0;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.mobile-navigation ul ul a:hover {
    color: white;
    border-left-color: var(--brand-red);
    background: rgba(255, 255, 255, 0.03);
}

.mobile-navigation ul ul .current-menu-item > a {
    color: var(--brand-red);
    border-left-color: var(--brand-red);
}

/* Nested submenus (level 3+) */
.mobile-navigation ul ul ul {
    margin-left: 1rem;
    background: transparent;
}

.mobile-navigation ul ul ul a {
    padding-left: 2rem;
    font-size: 0.9rem;
}

/* Menu divider */
.mobile-navigation .menu-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

/* Mobile close button */
.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
}

.mobile-close svg {
    width: 2rem;
    height: 2rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Background Wrapper */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero Overlay - gradient over images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background: linear-gradient(to right, var(--brand-dark) 0%, rgba(10, 10, 10, 0.8) 40%, transparent 100%);
    pointer-events: none;
}

/* Hero Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.hero-section:hover .hero-arrow,
.hero-arrow:focus {
    opacity: 1;
}

.hero-arrow:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

@media (max-width: 768px) {
    .hero-arrow {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    .hero-arrow-prev { left: 10px; }
    .hero-arrow-next { right: 10px; }
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dot.is-active {
    background: var(--brand-red);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .hero-dots { bottom: 80px; }
}

/* Hero Container - MUST be above overlay */
.hero-container {
    position: relative;
    z-index: 5;
}

/* Hero Alignment Classes */
.hero-section.hero-align-left .hero-container {
    justify-content: flex-start;
}

.hero-section.hero-align-center .hero-container {
    justify-content: center;
}

.hero-section.hero-align-right .hero-container {
    justify-content: flex-end;
}

.hero-section.hero-valign-top {
    align-items: flex-start;
    padding-top: 120px;
}

.hero-section.hero-valign-center {
    align-items: center;
}

.hero-section.hero-valign-bottom {
    align-items: flex-end;
    padding-bottom: 120px;
}

/* Hero container should be flex for horizontal alignment */
.hero-section .hero-container {
    display: flex;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: var(--z-content);
    padding-top: 5rem;
    max-width: 48rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fade-in 0.8s ease-out;
}

.hero-badge {
    background-color: var(--brand-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-hashtag {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    color: white;
    margin-bottom: 2rem;
    animation: fade-in 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    max-width: 36rem;
    font-weight: 300;
    line-height: 1.7;
    border-left: 4px solid var(--brand-red);
    padding-left: 1.5rem;
    animation: fade-in 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fade-in 0.8s ease-out 0.6s both;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    right: 3rem;
    display: none;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
    .scroll-indicator {
        display: flex;
    }
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.scroll-line {
    width: 1px;
    height: 6rem;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--brand-red);
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   EVENTS SECTION
   ========================================================================== */
.events-section {
    background-color: var(--brand-dark);
    position: relative;
    z-index: var(--z-content);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-header h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background-color: var(--brand-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--brand-red);
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 2rem 2rem;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem 2rem;
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Event Card */
.event-card {
    position: relative;
    background-color: var(--brand-surface);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-medium);
}

.event-card:hover {
    transform: translateY(-8px);
}

.event-card-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    filter: grayscale(20%);
}

.event-card:hover .event-card-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.event-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--brand-dark) 0%, transparent 50%);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.event-card:hover .event-card-image::after {
    opacity: 0.4;
}

/* Date Sticker */
.event-date-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--brand-red);
    color: white;
    padding: 0.75rem;
    text-align: center;
    min-width: 70px;
    z-index: 2;
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Event Card Content */
.event-card-content {
    position: relative;
    z-index: var(--z-content);
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: -2rem 1rem 0;
    background-color: var(--brand-surface);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.event-card:hover .event-card-content {
    border-bottom-color: var(--brand-red);
}

.event-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.event-company {
    font-size: 0.85rem;
    color: var(--brand-muted);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card:hover .event-title {
    color: var(--brand-red);
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-muted);
}

.event-meta-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--brand-red);
}

.event-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-price {
    font-weight: 700;
    color: white;
}

.event-link {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-link:hover {
    color: var(--brand-red);
}

.event-link span {
    transition: transform var(--transition-fast);
}

.event-link:hover span {
    transform: translateX(4px);
}

.section-cta {
    text-align: center;
    margin-top: 5rem;
}

/* ==========================================================================
   COMMUNITY SECTION
   ========================================================================== */
.community-section {
    background-color: var(--brand-gray);
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 33%;
    height: 100%;
    background-color: rgba(227, 28, 37, 0.05);
    transform: skewX(12deg);
    transform-origin: top right;
}

.community-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .community-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.community-content {
    position: relative;
    z-index: var(--z-content);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.community-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.community-content > p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Workshop Cards */
.workshops-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workshop-card {
    background-color: var(--brand-surface);
    padding: 1.5rem;
    border-left: 4px solid var(--brand-red);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.workshop-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.workshop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workshop-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-transform: none;
    letter-spacing: 0;
    transition: color var(--transition-fast);
}

.workshop-card:hover .workshop-title {
    color: var(--brand-red);
}

.workshop-arrow {
    color: #4b5563;
    transition: color var(--transition-fast);
}

.workshop-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
}

.workshop-card:hover .workshop-arrow {
    color: white;
}

.workshop-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.workshop-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 1rem;
}

/* Community Image */
.community-image-wrapper {
    position: relative;
    height: 600px;
    display: none;
}

@media (min-width: 1024px) {
    .community-image-wrapper {
        display: block;
    }
}

.community-image {
    position: absolute;
    inset: 0;
    background-color: #374151;
    transform: rotate(3deg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity var(--transition-medium);
}

.community-image:hover img {
    opacity: 1;
}

.community-stat {
    position: absolute;
    bottom: -2.5rem;
    left: -2.5rem;
    background-color: var(--brand-dark);
    padding: 2rem;
    max-width: 16rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.community-stat .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.community-stat p {
    font-size: 0.875rem;
}

/* ==========================================================================
   INFO CARDS SECTION
   ========================================================================== */
.info-section {
    background-color: var(--brand-dark);
}

.info-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    background-color: var(--brand-surface);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color var(--transition-medium);
}

.info-card:hover {
    background-color: var(--brand-red);
}

.info-card-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--brand-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    transition: color var(--transition-fast);
}

.info-card:hover .info-card-icon {
    color: var(--brand-red);
}

.info-card-icon svg {
    width: 2rem;
    height: 2rem;
}

.info-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.info-card p {
    transition: color var(--transition-fast);
}

.info-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */
.news-section {
    background-color: black;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile: más angosto */
@media (max-width: 767px) {
    .news-section .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .news-section .news-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .news-section .news-header > a {
        align-self: flex-start;
    }
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.news-header > div {
    flex: 1;
}

.news-header h2 {
    font-size: 1.875rem;
    color: white;
    margin-bottom: 0.5rem;
}

.news-header p {
    color: var(--brand-muted);
    font-size: 1rem;
    margin: 0;
}

.news-header > a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.news-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* News Card */
.news-card {
    background: var(--brand-surface);
    border-radius: 8px;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.news-card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card-meta .news-date {
    color: var(--brand-red);
    font-weight: 700;
}

.news-card-meta .news-category {
    color: var(--brand-muted);
    font-weight: 600;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    transition: color var(--transition-fast);
    text-transform: none;
}

/* Tamaños de título de tarjetas */
.news-card-title.title-size-small {
    font-size: 0.9rem;
}

.news-card-title.title-size-medium {
    font-size: 1.25rem;
}

.news-card-title.title-size-large {
    font-size: 1.5rem;
}

.news-card:hover .news-card-title {
    color: var(--brand-red);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--brand-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card-readmore svg {
    transition: transform var(--transition-fast);
}

.news-card:hover .news-card-readmore svg {
    transform: translateX(4px);
}

/* Light mode news cards */
[data-theme="light"] .news-card {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .news-card-title {
    color: #171717;
}

[data-theme="light"] .news-card-excerpt {
    color: #6b7280;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 8rem 0;
    background-color: var(--brand-red);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: var(--z-content);
    max-width: 56rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 2rem;
}

.cta-section p {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-section .btn-white {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--brand-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 5fr 3fr 4fr;
    }
}

/* Footer Brand */
.footer-brand h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.footer-brand h2 span {
    color: var(--brand-red);
}

.footer-brand > p {
    max-width: 24rem;
    margin-bottom: 2rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer Navigation */
.footer-nav h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: var(--brand-muted);
}

.footer-nav a:hover {
    color: var(--brand-red);
}

/* Newsletter */
.footer-newsletter h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-newsletter > p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    background-color: var(--brand-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--brand-red);
}

.newsletter-form input::placeholder {
    color: var(--brand-muted);
}

.newsletter-form button {
    background-color: var(--brand-red);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: var(--brand-red-dark);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--brand-muted);
}

.contact-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--brand-red);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Contact links */
.contact-link,
.contact-email,
.contact-phone {
    color: var(--brand-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover,
.contact-email:hover,
.contact-phone:hover {
    color: var(--brand-red);
}

/* Multiple emails/phones list */
.contact-emails-list,
.contact-phones-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-item-emails,
.contact-item-phones {
    align-items: flex-start;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a:hover {
    color: white;
}

/* ==========================================================================
   SINGLE EVENT PAGE
   ========================================================================== */
.single-event-header {
    position: relative;
    padding-top: 80px; /* Espacio para header fijo */
    background: var(--brand-dark);
}

.single-event-hero-bg {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .single-event-hero-bg {
        height: 400px;
    }
}

.single-event-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-event-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--brand-dark) 0%, transparent 100%);
    pointer-events: none;
}

.single-event-hero-content {
    padding: 2rem 0 3rem;
}

.single-event-hero-content .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.single-event-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.single-event-company {
    font-size: 1.125rem;
    color: var(--brand-muted);
    margin: 0 0 1rem;
    font-style: italic;
}

.single-event-excerpt {
    font-size: 1rem;
    color: var(--brand-muted);
    margin: 0;
    max-width: 700px;
    line-height: 1.6;
}

.single-event-content {
    padding: var(--section-padding) 0;
}

.single-event-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .single-event-grid {
        grid-template-columns: 1fr 380px;
        gap: 4rem;
    }
}

.event-main-content {
    min-width: 0;
}

.event-details-sidebar {
    background-color: var(--brand-surface);
    padding: 2rem;
    height: fit-content;
    border-radius: 8px;
}

@media (min-width: 1024px) {
    .event-details-sidebar {
        position: sticky;
        top: 6rem;
    }
}

/* ==========================================================================
   SINGLE POST PAGE (Noticias)
   ========================================================================== */
.single-post-header {
    position: relative;
    padding: 10rem 0 3rem;
    background-color: var(--brand-gray);
    text-align: center;
}

.single-post-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.single-post-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.single-post-header .container {
    position: relative;
    z-index: 1;
}

.single-post-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header .hero-badge {
    margin-bottom: 1rem;
    display: inline-block;
}

.single-post-title {
    color: white;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    letter-spacing: -0.02em;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--brand-muted);
    font-size: 0.9rem;
}

.single-post-meta .meta-separator {
    opacity: 0.5;
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */
.page-header {
    padding: 10rem 0 4rem;
    background-color: var(--brand-gray);
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-content {
    padding: var(--section-padding) 0;
}

/* Entry Content - Single Posts */
.entry-content {
    color: #d1d5db; /* Gris claro legible */
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: white;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--brand-red);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--brand-red-dark);
}

.entry-content ul,
.entry-content ol {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--brand-red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #9ca3af;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content figure {
    margin: 2rem 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.entry-content pre,
.entry-content code {
    background: var(--brand-surface);
    color: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

.entry-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
}

.entry-content th {
    background: var(--brand-surface);
    color: white;
    font-weight: 700;
}

/* Light mode entry content */
[data-theme="light"] .entry-content,
[data-theme="light"] .entry-content p,
[data-theme="light"] .entry-content ul,
[data-theme="light"] .entry-content ol,
[data-theme="light"] .entry-content li,
[data-theme="light"] .entry-content td {
    color: #374151;
}

[data-theme="light"] .entry-content h1,
[data-theme="light"] .entry-content h2,
[data-theme="light"] .entry-content h3,
[data-theme="light"] .entry-content h4,
[data-theme="light"] .entry-content h5,
[data-theme="light"] .entry-content h6,
[data-theme="light"] .entry-content th {
    color: #171717;
}

/* ==========================================================================
   ARCHIVE / BLOG PAGES
   ========================================================================== */
.archive-header {
    padding: 10rem 0 4rem;
    background-color: var(--brand-gray);
}

.posts-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--brand-surface);
    color: white;
    font-weight: 700;
    transition: all var(--transition-fast);
}

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

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    text-align: center;
    margin: 2rem auto;
}

.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Comments */
.comments-area {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--brand-surface);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    background-color: var(--brand-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    margin-bottom: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-brand-red {
    color: var(--brand-red);
}

.bg-brand-dark {
    background-color: var(--brand-dark);
}

.bg-brand-gray {
    background-color: var(--brand-gray);
}

.bg-brand-surface {
    background-color: var(--brand-surface);
}

/* ==========================================================================
   SOCIAL FEED SECTION
   ========================================================================== */
.social-feed-section {
    background: var(--brand-gray);
}

.social-feed-grid {
    display: grid;
    gap: 2rem;
}

/* Layout: Row (horizontal) */
.social-feed-row {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Layout: Column (vertical/stacked) */
.social-feed-column {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

/* Layout: Grid (2x2 or similar) */
.social-feed-grid.social-feed-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.social-feed-item {
    background: var(--brand-surface);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.social-feed-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.social-feed-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-feed-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.social-feed-embed {
    flex: 1;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-feed-embed iframe,
.social-feed-embed blockquote {
    max-width: 100% !important;
    width: 100% !important;
}

.social-feed-embed .instagram-media,
.social-feed-embed .twitter-tweet,
.social-feed-embed .tiktok-embed {
    margin: 0 auto !important;
}

.social-feed-follow {
    display: block;
    text-align: center;
    padding: 0.875rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-feed-follow:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Social Feed - Light mode */
[data-theme="light"] .social-feed-section {
    background: var(--color-bg-alt);
}

[data-theme="light"] .social-feed-item {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .social-feed-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .social-feed-name {
    color: var(--color-text);
}

/* Social Feed - Responsive */
@media (max-width: 768px) {
    .social-feed-grid {
        grid-template-columns: 1fr !important;
    }
    
    .social-feed-item {
        max-width: 100% !important;
    }
}

/* ==========================================================================
   FOOTER SPONSORS
   ========================================================================== */
.footer-sponsors {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-sponsors-title {
    text-align: center;
    color: var(--brand-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
}

.footer-sponsor-logo {
    max-height: 45px;
    width: auto;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-sponsor-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-sponsors-grid {
        gap: 1.5rem 2rem;
    }
    
    .footer-sponsor-logo {
        max-height: 35px;
    }
}


/* ==========================================================================
   ELEMENTOR PAGE STYLES
   ========================================================================== */

/* Elementor page content - minimal styling */
.elementor-page-content {
    padding: 0;
}

.elementor-page-content .elementor-section:first-child {
    margin-top: 0;
}

/* Elementor front page */
.elementor-front-page {
    padding: 0;
}

/* Full width content for Elementor */
.elementor-full-width-content {
    max-width: 100%;
    padding: 0;
}

/* Fix for Elementor sections inside theme */
.site-main .elementor-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* Override when in full width template */
.elementor-full-width-content .elementor-section,
.elementor-page-content .elementor-section,
.elementor-front-page .elementor-section {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Elementor editor styles */
.elementor-editor-active .site-header {
    position: relative;
    z-index: 99999;
}
