/* ============================================
   UNIFICACIONTECH - Corporate Clean Edition
   ============================================ */

:root {
    /* Paleta Monocromática Corporativa */
    --black: #000000;
    --eerie-black: #1b1b1b;
    --chinese-black: #141414;
    --night-rider: #2e2e2e;
    --chinese-white: #e1e1e1;
    --anti-flash-white: #f3f3f3;
    --white: #ffffff;
    
    /* Color de acento azul */
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: #eff6ff;

    /* Colores semánticos */
    --primary: var(--accent-blue);
    --primary-hover: var(--accent-blue-hover);
    --text-primary: var(--eerie-black);
    --text-secondary: #6b6b6b;
    --text-muted: #999999;
    --bg-main: var(--white);
    --bg-secondary: var(--anti-flash-white);
    --border-color: var(--chinese-white);
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    
    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--eerie-black);
    color: var(--white);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
    background: var(--white);
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 2rem;
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--eerie-black);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--eerie-black);
}

.logo-accent {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--eerie-black);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--eerie-black);
}

.nav-link.active::after {
    width: 100%;
}

/* Contact Button */
.nav-btn {
    padding: 0.6rem 1.25rem;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
}

.nav-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.nav-btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--eerie-black);
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 2rem 60px;
    text-align: center;
    background: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background: var(--anti-flash-white);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--eerie-black);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--eerie-black);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--eerie-black);
    display: block;
}

.stat-number::after {
    content: '+';
    font-weight: 400;
    color: var(--accent-blue);
}

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

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 1.75rem;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--eerie-black);
    background: var(--anti-flash-white);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator span {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ============================================
   FEATURED EVENTS CAROUSEL
   ============================================ */
.featured-section {
    padding: 6rem 2rem;
    background: var(--bg-main);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--anti-flash-white);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

/* Featured Card */
.featured-card {
    position: relative;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--eerie-black);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--white);
}

.featured-category {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: var(--white);
    color: var(--eerie-black);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.featured-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.featured-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.featured-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--eerie-black);
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.featured-btn:hover {
    transform: translateX(4px);
}

.featured-btn svg {
    width: 16px;
    height: 16px;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

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

.carousel-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: center;
}

.carousel-counter strong {
    color: var(--eerie-black);
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.events-section {
    padding: 6rem 2rem;
    background: var(--white);
}

/* Filters */
.filters-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--eerie-black);
    color: var(--eerie-black);
}

.filter-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--white);
}

/* Search */
.search-container {
    position: relative;
    width: 280px;
}

.search-container input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.search-container input:focus {
    outline: none;
    border-color: var(--eerie-black);
}

.search-container input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

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

/* Event Card */
.event-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

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

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.event-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: var(--white);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-badge.destacado {
    background: var(--eerie-black);
    color: var(--white);
}

.event-badge.popular {
    background: var(--night-rider);
    color: var(--white);
}

.event-badge.vip {
    background: var(--chinese-black);
    color: var(--white);
}

.event-content {
    padding: 1.5rem;
}

.event-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.event-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.event-date svg {
    width: 14px;
    height: 14px;
}

.event-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.event-location svg {
    width: 14px;
    height: 14px;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.event-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-blue);
    background: none;
    border: none;
    cursor: pointer;
    transition: gap var(--transition-fast);
}

.event-cta:hover {
    gap: 10px;
}

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

/* Load More */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    background: var(--eerie-black);
    border-color: var(--eerie-black);
    color: var(--white);
}

/* ============================================
   REGISTRATION MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-medium);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: var(--anti-flash-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
    color: var(--eerie-black);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 0.5rem;
}

.modal-event-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--anti-flash-white);
    color: var(--eerie-black);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--eerie-black);
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--eerie-black);
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    transition: all var(--transition-fast);
}

.form-submit:hover {
    background: var(--accent-blue-hover);
}

.form-submit:disabled {
    background: var(--chinese-white);
    cursor: not-allowed;
}

/* Success Modal */
.modal-success {
    padding: 3rem 2rem;
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 32px;
    height: 32px;
    color: #4caf50;
}

.success-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-btn {
    padding: 0.875rem 2rem;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.success-btn:hover {
    background: var(--accent-blue-hover);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--anti-flash-white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--eerie-black);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-medium);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: 100px 1.5rem 40px;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .featured-card {
        height: 400px;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .featured-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .search-container {
        width: 100%;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-tagline {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .logo-text {
        display: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ============================================
   ADDITIONAL STYLES FOR PHP VERSION
   ============================================ */

/* Capacity Bar */
.event-capacity {
    margin: 1rem 0;
}

.capacity-bar {
    height: 4px;
    background: var(--anti-flash-white);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.capacity-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.capacity-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Event Badge - Sold Out */
.event-badge.sold-out {
    background: #dc2626;
    color: var(--white);
}

/* Event CTA Disabled */
.event-cta.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Featured Button Disabled */
.featured-btn.disabled {
    background: var(--chinese-white);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Form Error */
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.form-error.hidden {
    display: none;
}

/* Admin Link in Footer (optional) */
.admin-link {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
    display: inline-block;
}

.admin-link:hover {
    color: var(--accent-blue);
}

/* Logo Image */
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer .logo-img {
    height: 80px;
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
    }
}

/* ============================================
   PÁGINAS INTERNAS (Nosotros, Contacto, Legal)
   ============================================ */

/* Page Hero */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--white) 100%);
}

.page-hero-small {
    min-height: 40vh;
    padding: 120px 20px 60px;
}

.page-hero-content {
    max-width: 800px;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.page-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Content */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Intro */
.about-intro {
    padding: 80px 0;
}

.about-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-intro-text .lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-intro-text p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.about-intro-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Mission Section */
.about-mission {
    padding: 80px 20px;
    background: var(--bg-secondary);
    margin: 0 -20px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.mission-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-blue);
}

.mission-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* Services Section */
.about-services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-medium);
}

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

.service-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue-light);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

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

/* Stats Section */
.about-stats {
    padding: 60px 20px;
    background: var(--eerie-black);
    margin: 0 -20px;
}

.founders-banner {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.founders-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.founders-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.founders-logos img {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.founders-logos img:hover {
    opacity: 1;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-box .stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.stat-box .stat-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Partners Section */
.about-partners {
    padding: 80px 0;
    overflow: hidden;
}

.partners-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 40px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.partners-track {
    display: flex;
    gap: 60px;
    align-items: center;
    width: max-content;
    animation: scroll-partners 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    opacity: 0.45;
    transition: opacity 0.4s ease;
    filter: grayscale(100%);
}

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

.partner-logo img {
    height: 100%;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.partners-note {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.partners-note p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.partners-note a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* FODUPA Section */
.about-fodupa {
    padding: 80px 20px;
    background: var(--bg-secondary);
    margin: 0 -20px;
}

.fodupa-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.fodupa-logo {
    width: 200px;
    height: auto;
    margin: 1.5rem auto;
}

.fodupa-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.fodupa-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 1.5rem;
}

.fodupa-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.fodupa-text a {
    color: var(--accent-blue);
    font-weight: 500;
}

/* CTA Section */
.about-cta {
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   CONTACTO PAGE
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-blue-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-blue);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent-blue);
}

.contact-social {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-social h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-social .social-links {
    display: flex;
    gap: 0.75rem;
}

.contact-social .social-link {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.contact-social .social-link:hover {
    background: var(--accent-blue);
}

.contact-social .social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: var(--transition-fast);
}

.contact-social .social-link:hover svg {
    fill: var(--white);
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.contact-form h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.form-error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition-fast);
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-success {
    text-align: center;
    padding: 60px 40px;
}

.contact-success .success-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-success .success-icon svg {
    width: 40px;
    height: 40px;
    stroke: #10b981;
}

.contact-success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-success p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   LEGAL PAGES (Términos, Privacidad)
   ============================================ */
.legal-section {
    padding: 60px 0 100px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.legal-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--accent-blue);
}

.legal-footer {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
}

.legal-footer p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   RESPONSIVE - Páginas Internas
   ============================================ */
@media (max-width: 992px) {
    .about-intro-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-intro-image {
        order: -1;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .founders-banner {
        max-width: 600px;
        margin-bottom: 2.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-carousel {
        margin: 30px auto 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 40vh;
        padding: 100px 20px 60px;
    }
    
    .page-hero-small {
        min-height: 35vh;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .founders-banner {
        max-width: 100%;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .founders-logos {
        gap: 30px;
    }
    
    .founders-logos img {
        height: 34px;
        max-width: 140px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-box .stat-value {
        font-size: 2.25rem;
    }
    
    .fodupa-logo {
        width: 160px;
    }
    
    .partner-logo {
        height: 40px;
    }
    
    .partner-logo img {
        max-width: 120px;
    }
    
    .partners-track {
        gap: 40px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-cta {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .founders-banner {
        margin-bottom: 1.5rem;
    }
    
    .founders-logos {
        gap: 24px;
    }
    
    .founders-logos img {
        height: 28px;
        max-width: 120px;
    }
    
    .founders-label {
        font-size: 0.7rem;
    }
    
    .fodupa-logo {
        width: 140px;
    }
}