/* index.css v7.6 */

/* CSS Variables - Nordic Modern with Warm Accent */
:root {
    color-scheme: light only;
    --bg-primary: #faf9f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #faf9f7;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-muted: #8c8c8c;
    --accent: #c9a962;
    --accent-dark: #b8944d;
    --accent-light: #e5d4a8;
    --accent-soft: #faf6ed;
    --border: #e8e6e3;
    --border-light: #f0eeeb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: grab;
}

a, button, input, select, textarea {
    cursor: pointer;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.875rem 2rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

header.scrolled .logo-icon img {
    height: 50px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon img {
    height: 90px;
    width: auto;
    transition: height 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:not(.nav-cta):hover::after {
    width: calc(100% - 2rem);
}

nav a:hover {
    color: var(--text-primary);
}

nav .nav-cta {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

nav .nav-cta:hover {
    background: var(--accent-dark);
    color: white;
}

nav .nav-cta svg {
    width: 16px;
    height: 16px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle,
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-toggle svg,
.nav-dropdown-trigger svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    z-index: 100;
}

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

.nav-dropdown-menu a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 0;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    z-index: 1002;
    position: relative;
}

.menu-toggle svg {
    transition: all 0.3s ease;
}

.menu-toggle.active svg {
    transform: rotate(90deg);
}

/* =============================================
   MOBILE MENU STYLES
   ============================================= */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: white;
    flex-shrink: 0;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-logo img {
    height: 48px;
    width: auto;
}

.mobile-menu-close {
    background: var(--bg-tertiary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--accent);
    color: white;
    transform: rotate(90deg);
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.mobile-menu-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: white;
    flex-shrink: 0;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.1) 0%, transparent 100%);
    color: var(--accent);
    border-left-color: var(--accent);
}

.mobile-menu a::after {
    display: none;
}

.mobile-menu a svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    flex-shrink: 0;
}

.mobile-menu-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.mobile-menu-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.mobile-menu-title svg {
    width: 14px;
    height: 14px;
}

.mobile-menu-section a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.mobile-menu-section a:hover {
    color: var(--accent);
}

.mobile-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    color: white !important;
    text-align: center;
    padding: 1rem 1.5rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
    border-left: none !important;
    transition: all 0.3s ease !important;
}

.mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.4) !important;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%) !important;
}

.mobile-cta svg {
    width: 18px;
    height: 18px;
    opacity: 1 !important;
}

/* Mobile Menu Link */
.mobile-menu-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover {
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.1) 0%, transparent 100%);
    color: var(--accent);
    border-left-color: var(--accent);
}

.mobile-menu-link::after {
    display: none;
}

.mobile-menu-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Mobile Accordion */
.mobile-accordion {
    border-top: 1px solid var(--border-light);
}

.mobile-accordion:first-of-type {
    margin-top: 0.5rem;
}

.mobile-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-accordion-header:hover {
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.1) 0%, transparent 100%);
    color: var(--accent);
    border-left-color: var(--accent);
}

.accordion-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-header-content svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.accordion-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.mobile-accordion.active .accordion-arrow {
    transform: rotate(180deg);
}

.mobile-accordion.active .mobile-accordion-header {
    color: var(--accent);
    border-left-color: var(--accent);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-tertiary);
}

.mobile-accordion.active .mobile-accordion-content {
    max-height: 300px;
}

.mobile-accordion-content a {
    display: block;
    padding: 0.65rem 1.5rem 0.65rem 3.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-accordion-content a::after {
    display: none;
}

.mobile-accordion-content a:hover {
    color: var(--accent);
    background: rgba(201, 169, 98, 0.08);
    border-left-color: var(--accent-light);
}

/* =============================================
   END MOBILE MENU STYLES
   ============================================= */

/* Main Content */
main {
    padding-top: 0;
}

/* Hero Section */
.hero {
    padding: 5rem 2rem 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-light);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Ubuntu Highlight */
.ubuntu-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 1.25rem 2rem;
    max-width: 700px;
    margin: 2rem auto;
}

.ubuntu-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ubuntu-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
}

.ubuntu-highlight p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    text-align: left;
}

.ubuntu-highlight strong {
    color: var(--accent-dark);
    font-weight: 700;
}

.ubuntu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
    outline: none;
}

.ubuntu-btn:hover {
    background: var(--accent);
    color: white;
}

.ubuntu-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.ubuntu-btn:active {
    outline: none;
    transform: scale(0.98);
}

.ubuntu-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .ubuntu-highlight {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.5rem;
    }
    
    .ubuntu-highlight p {
        text-align: center;
    }
}

/* Upcoming Events Section */
.upcoming-events-section {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.upcoming-events-section > .section-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.upcoming-events-section > .section-header .section-header-left {
    max-width: 600px;
}

.upcoming-events-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-event {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
}

.upcoming-event:first-child {
    border-color: var(--accent-light);
    box-shadow: 0 2px 12px rgba(184, 157, 107, 0.15);
}

.upcoming-event-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.upcoming-event-logo {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upcoming-event-logo img {
    max-height: 70px;
    max-width: 100px;
    width: auto;
    object-fit: contain;
}

.upcoming-event-info {
    flex: 1;
    text-align: left;
}

.upcoming-event-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.upcoming-event-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.upcoming-event-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.upcoming-event-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.upcoming-event-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upcoming-event-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--accent-soft);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    min-width: 70px;
    text-decoration: none;
    transition: var(--transition);
}

.upcoming-event-stand:hover {
    background: var(--accent-light);
}

.upcoming-event-stand svg {
    display: none;
}

.upcoming-event-stand-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.upcoming-event-stand-number {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--accent-soft);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    min-width: 70px;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .upcoming-event-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .upcoming-event-logo {
        width: auto;
    }
    
    .upcoming-event-info {
        text-align: center;
    }
    
    .upcoming-event-logo img {
        max-height: 50px;
    }
    
    .upcoming-event-actions {
        justify-content: center;
    }
}

/* Category Toggle */
.filter-section {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.filter-header {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.filter-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.category-toggle {
    display: flex;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.toggle-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Section Styles */
.section-divider {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.section-header-left h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.section-header-left p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.section-title-small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* Category Sections */
.category-section {
    padding: 3rem 2rem;
    background: var(--bg-tertiary);
    transition: background 0.3s ease;
}

.category-section.alt-bg {
    background: var(--bg-secondary);
}

.category-section > .section-header,
.category-section > .projects-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-section > .section-header {
    margin-bottom: 2rem;
}

.category-section > .section-header .section-header-left {
    width: 100%;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: flex-start;
}

.projects-grid .project-card {
    width: calc(33.333% - 1rem);
    max-width: 380px;
}

@media (max-width: 1024px) {
    .projects-grid .project-card {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 640px) {
    .projects-grid .project-card {
        width: 100%;
        max-width: 100%;
    }
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-light);
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 567 / 401;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.project-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

/* Ocultar controles del navegador en videos */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-internal-media-controls-overlay-cast-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Ocultar overlay de controles de Chrome en todos los videos */
video {
    pointer-events: none;
}

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

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-dark);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-content {
    padding: 1.5rem;
    padding-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
    border: 1px solid var(--accent-light);
}

.project-icon svg {
    width: 24px;
    height: 24px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.project-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

/* Ocultar footer de tarjetas (tags y Ver más) */
.project-meta {
    display: none !important;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-arrow {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-card:hover .project-arrow {
    background: var(--accent);
    color: white;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.3s ease;
}

.about-section.alt-bg {
    background: var(--bg-secondary);
}

/* Content Sections (Conferencias, Exposiciones, Reconocimientos) */
.content-section {
    padding: 4rem 2rem;
    background: var(--bg-tertiary);
    transition: background 0.3s ease;
}

.content-section.alt-bg {
    background: var(--bg-secondary);
}

.content-section > .section-header,
.content-section > .awards-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-section > .conference-video-card {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.content-section > .events-photo-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-section > .section-header {
    margin-bottom: 2rem;
}

.content-section > .section-header .section-header-left {
    width: 100%;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.about-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.about-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--accent);
}

.value-icon svg {
    width: 28px;
    height: 28px;
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    margin-top: 4rem;
}

.team-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.team-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--accent-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-member:hover .team-photo {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.team-role {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
    }
}

/* Events Section */
.events-section {
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

.events-section.alt-bg {
    background: var(--bg-tertiary);
}

.events-section > .section-header,
.events-section > .events-photo-grid,
.events-section > .awards-section,
.events-section > .conference-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

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

.event-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.event-card:hover {
    border-color: var(--accent-light);
    box-shadow: var(--shadow-sm);
}

.event-year {
    width: 50px;
    height: 50px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.event-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Events Photo Grid */
.events-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

@media (max-width: 640px) {
    .events-photo-grid {
        grid-template-columns: 1fr;
    }
}

.event-photo-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.event-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-light);
}

.event-photo {
    height: 180px;
    overflow: hidden;
    background: #f5f3f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.event-photo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
}

.event-photo-card:hover .event-photo img {
    transform: scale(1.05);
}

.event-photo-info {
    padding: 1.25rem;
}

.event-photo-year {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.event-photo-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.event-photo-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Expo Carousel */
.expo-carousel-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.expo-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    cursor: grab;
    touch-action: none;
}

.expo-carousel-wrapper::before,
.expo-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.expo-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-tertiary) 0%, transparent 100%);
}

.expo-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-tertiary) 0%, transparent 100%);
}

.expo-carousel {
    display: flex;
    gap: 1.5rem;
    transition: none;
    padding-left: 60px;
    padding-right: 60px;
    will-change: transform;
}

.expo-carousel .event-photo-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: calc((100% - 3rem) / 3);
}

.expo-carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.expo-carousel-btn:hover:not(.disabled) {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.expo-carousel-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.expo-carousel-btn svg {
    width: 20px;
    height: 20px;
}

.expo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.expo-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.expo-carousel-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .expo-carousel .event-photo-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        min-width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 600px) {
    .expo-carousel .event-photo-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .expo-carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .expo-carousel-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Releases/Últimos Lanzamientos Section */
.releases-section {
    padding: 4rem 2rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.releases-section > .section-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.releases-section > .section-header .section-header-left {
    max-width: 600px;
}

.releases-carousel-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.releases-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    cursor: grab;
    touch-action: none;
}

.releases-carousel-wrapper::before,
.releases-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.releases-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-tertiary) 0%, transparent 100%);
}

.releases-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-tertiary) 0%, transparent 100%);
}

.releases-carousel {
    display: flex;
    gap: 1.5rem;
    transition: none;
    padding-left: 60px;
    padding-right: 60px;
    will-change: transform;
}

.release-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 340px;
}

.release-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-light);
}

.releases-carousel .release-card {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.releases-carousel .release-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-light);
}

.release-card-image {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

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

.release-card-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding: 0.75rem;
    background: var(--accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    margin-left: 2px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.release-card-player .time {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

.release-card-content {
    padding: 1.25rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.release-card-category {
    display: inline-block;
    align-self: flex-start;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.release-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.release-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.releases-carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.releases-carousel-btn:hover:not(.disabled) {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.releases-carousel-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.releases-carousel-btn svg {
    width: 20px;
    height: 20px;
}

.releases-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.releases-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.releases-carousel-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .releases-carousel .release-card {
        flex: 0 0 280px;
        width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .releases-carousel .release-card {
        flex: 0 0 260px;
        width: 260px;
        max-width: 260px;
    }
    
    .releases-carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .releases-carousel-btn svg {
        width: 16px;
        height: 16px;
    }
}

.award-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255,255,255,0.3);
}

.award-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Awards/Reconocimientos Section */
.awards-section {
    margin-top: 3rem;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.award-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.award-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-light);
}

.award-card-photo {
    height: 180px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.award-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.award-card:hover .award-card-photo img {
    transform: scale(1.05);
}

.award-card-content {
    padding: 1.25rem;
}

.award-card-year {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.award-card-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.award-card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Conference Section */
.conference-section {
    margin-top: 3rem;
}

.conference-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.conference-badge {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.conference-video-link {
    text-decoration: none;
    color: inherit;
    display: block;
    max-width: 700px;
    margin: 0 auto;
}

.conference-video-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.conference-video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.conference-video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.conference-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.conference-video-card:hover .conference-video-thumbnail img {
    transform: scale(1.03);
}

.conference-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.conference-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
    cursor: pointer;
}

.conference-video-card:hover .play-button {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    width: 30px;
    height: 30px;
    color: var(--accent);
    margin-left: 4px;
}

.conference-video-card:hover .play-button svg {
    color: white;
}

.conference-video-info {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.conference-speaker {
    display: flex;
    flex-direction: column;
}

.speaker-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.speaker-role {
    font-size: 0.85rem;
    color: var(--accent);
}

.conference-cta {
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.conference-video-card:hover .conference-cta {
    background: var(--accent-dark);
}

.conference-logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

.conference-logo em {
    color: var(--accent);
    font-style: normal;
}

.conference-video-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.conference-video-footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.conference-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.conference-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
}

.conference-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.conference-photo:hover img {
    transform: scale(1.05);
}

/* Project Detail View */
.project-detail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 2000;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-detail.active {
    display: block;
    opacity: 1;
    transform: scale(1);
    animation: modalFadeIn 0.35s ease forwards;
}

.project-detail.closing {
    animation: modalFadeOut 0.25s ease forwards;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
}

/* View Transitions API styles */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.3s;
}

.detail-header {
    position: sticky;
    top: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 10;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.back-button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.back-button svg {
    width: 18px;
    height: 18px;
}

.detail-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
}

.project-detail.active .detail-image {
    animation: slideInLeft 0.4s ease forwards;
}

.project-detail.active .detail-media-column {
    animation: slideInLeft 0.4s ease forwards;
}

.project-detail.active .detail-info {
    animation: slideInRight 0.4s ease 0.1s forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.detail-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 567 / 401;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Columna de media (video + capturas) */
.detail-media-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Carrusel vertical de capturas */
.detail-captures-carousel {
    width: 100%;
    aspect-ratio: 567 / 401;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f3f0 100%);
    box-shadow: var(--shadow-lg);
}

.detail-captures-carousel .swiper-wrapper {
    height: 100%;
}

.detail-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.detail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-slide:hover img {
    transform: scale(1.03);
}

.detail-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: default;
}

/* Loading spinner */
.detail-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Botones de ejemplo */
.detail-example-section {
    margin-top: 1.5rem;
}

.detail-example-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.detail-example-title::before,
.detail-example-title::after {
    content: '';
    height: 1px;
    width: 40px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.detail-example-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.detail-example-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.detail-example-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-example-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.detail-carousel-nav-vertical {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.detail-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.detail-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.detail-nav-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
}

.detail-carousel-pagination {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-carousel-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin: 0 !important;
}

.detail-carousel-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
    transform: scale(1.4);
}

/* Lightbox */
.detail-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.detail-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 90vw;
    max-height: 90vh;
    transition: transform 0.3s ease;
}

.detail-lightbox.active .lightbox-content {
    transform: translate(-50%, -50%) scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

@media (max-width: 768px) {
    .detail-carousel-nav-vertical {
        right: 0.5rem;
        gap: 0.3rem;
    }
    
    .detail-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .detail-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .lightbox-close {
        top: -45px;
        right: 0;
    }
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-soft);
    color: var(--accent-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--accent-light);
}

.detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.detail-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.detail-audio-player {
    background: var(--accent-soft);
    border: 1px solid var(--accent-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.detail-audio-player h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.detail-features {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.detail-features h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.features-list svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-cta {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

.cta-close-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cta-close-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.cta-close-btn svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .detail-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: transparent;
        padding: 1rem 1.5rem;
        margin: 0;
        justify-content: center;
        z-index: 10;
    }
    
    .detail-content {
        padding-bottom: 80px;
    }
    
    .detail-example-links {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand img {
    height: 48px;
    width: auto;
}

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

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 169, 98, 0.3);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: white;
    color: var(--accent-light);
}

.float-btn svg {
    width: 26px;
    height: 26px;
}

.whatsapp-btn {
    background: white;
    color: var(--accent-light);
}

.whatsapp-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.scroll-top-btn {
    background: white;
    color: var(--accent-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.scroll-top-btn.visible:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
    }
    
    .float-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1rem;
    }
    
    header.scrolled {
        padding: 0.5rem 1rem;
    }
    
    header .logo-icon img {
        height: 54px;
        transition: height 0.3s ease;
    }
    
    header.scrolled .logo-icon img {
        height: 40px;
    }
    
    nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 3rem 1.5rem 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .category-toggle {
        flex-wrap: wrap;
        max-width: 100%;
    }
    
    .toggle-btn {
        flex: 1 1 45%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .category-section {
        padding: 2rem 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .detail-content {
        padding: 2rem 1.5rem;
    }
    
    /* Carousel mobile: hide buttons, center cards, auto-advance */
    .expo-carousel-btn,
    .releases-carousel-btn {
        display: none !important;
    }
    
    .expo-carousel-container,
    .releases-carousel-container {
        padding: 0;
    }
    
    .expo-carousel-wrapper,
    .releases-carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .expo-carousel-wrapper::-webkit-scrollbar,
    .releases-carousel-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .expo-carousel,
    .releases-carousel {
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-snap-type: x mandatory;
    }
    
    .expo-carousel .event-photo-card,
    .releases-carousel .release-card {
        scroll-snap-align: center;
        flex: 0 0 85%;
        max-width: 85%;
    }
    
    .expo-carousel-wrapper::before,
    .expo-carousel-wrapper::after,
    .releases-carousel-wrapper::before,
    .releases-carousel-wrapper::after {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* Detail header mobile */
    .detail-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .detail-header .logo {
        order: -1;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .detail-header .logo-icon {
        display: flex;
        justify-content: center;
    }
    
    .detail-header .logo-icon img {
        height: 36px !important;
        width: auto !important;
    }
    
    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        align-self: flex-start;
    }
    
    .back-button svg {
        width: 16px;
        height: 16px;
    }
    
    .detail-content {
        padding: 1.5rem 1rem;
    }
    
    .detail-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .detail-image img {
        max-height: 250px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================================
   VIEW TRANSITIONS API
   ============================================ */

/* Assign transition names to shared elements */
header {
    view-transition-name: header;
}

.logo {
    view-transition-name: logo;
}

main, #main-view {
    view-transition-name: main-content;
}

footer {
    view-transition-name: footer;
}

/* Default transition animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slide-from-right {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-to-left {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-50px); opacity: 0; }
}

@keyframes slide-from-left {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-to-right {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(50px); opacity: 0; }
}

/* View Transition pseudo-elements */
::view-transition-old(root) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out;
}

::view-transition-new(root) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in;
}

/* Header stays in place */
::view-transition-old(header),
::view-transition-new(header) {
    animation: none;
    mix-blend-mode: normal;
}

/* Logo morphs smoothly */
::view-transition-old(logo),
::view-transition-new(logo) {
    animation-duration: 400ms;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main content slides */
::view-transition-old(main-content) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::view-transition-new(main-content) {
    animation: 300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

/* Footer fades */
::view-transition-old(footer),
::view-transition-new(footer) {
    animation-duration: 200ms;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root),
    ::view-transition-old(main-content),
    ::view-transition-new(main-content) {
        animation: none;
    }
}

/* Swiper Carousel Overrides */
#expo-swiper,
#releases-swiper {
    overflow: hidden;
    padding: 0 60px;
}

#expo-swiper .swiper-wrapper,
#releases-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

#expo-swiper .swiper-slide,
#releases-swiper .swiper-slide {
    width: auto;
}

.swiper-slide.event-photo-card {
    width: 300px;
    flex-shrink: 0;
}

.swiper-slide.release-card {
    width: 300px;
    height: 340px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.swiper-slide.release-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-light);
}

@media (max-width: 768px) {
    #expo-swiper,
    #releases-swiper {
        padding: 0 20px;
    }
    
    .swiper-slide.event-photo-card {
        width: 260px;
    }
    
    .swiper-slide.release-card {
        width: 260px;
    }
}
