/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --primary-color: #BF0413;
    --secondary-color: #1D2659;
    --accent-color: #D90404;
    --dark-primary: #051926;
    --dark-secondary: #590202;
    --text-primary: #051926;
    --text-secondary: #1D2659;
    --text-light: #ffffff;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --background-dark: linear-gradient(135deg, #051926 0%, #1D2659 100%);
    --gradient-primary: linear-gradient(135deg, #BF0413 0%, #D90404 50%, #590202 100%);
    --gradient-secondary: linear-gradient(135deg, #1D2659 0%, #051926 100%);
    --gradient-accent: linear-gradient(45deg, #D90404 0%, #BF0413 100%);
    --border-color: rgba(29, 38, 89, 0.1);
    --success-color: #10b981;
    --error-color: #BF0413;
    --shadow: 0 4px 20px rgba(5, 25, 38, 0.15);
    --shadow-lg: 0 25px 50px rgba(5, 25, 38, 0.25);
    --shadow-colored: 0 8px 32px rgba(191, 4, 19, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}



/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 20px rgba(5, 25, 38, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 120px;
    min-height: 100vh;
    background: var(--background-dark);
    color: var(--text-light);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(191, 4, 19, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(217, 4, 4, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(29, 38, 89, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.detail-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(217, 4, 4, 0.3));
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 1.25rem 2.5rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-colored);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(191, 4, 19, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

/* About Section */
.about {
    padding: 80px 0;
    background: var(--background-alt);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

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

/* Location Section */
.location {
    padding: 80px 0;
    background: white;
}

.location h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.location-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.location-link:hover {
    color: var(--secondary-color);
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Organizer Section */
.organizer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #0d1117 100%);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.organizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(191, 4, 19, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(13, 17, 23, 0.8) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.organizer > * {
    position: relative;
    z-index: 2;
}

.organizer h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

/* New organizer card styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.g-4 {
    gap: 1.5rem;
}

.center {
    justify-content: center;
}

.col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
    max-width: 400px;
    padding: 0 15px;
}

.hover {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.relative {
    position: relative;
}

.rounded-1 {
    border-radius: 12px;
}

.overflow-hidden {
    overflow: hidden;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.abs {
    position: absolute;
}

.start-0 {
    left: 0;
}

.top-0 {
    top: 0;
}

.bottom-0 {
    bottom: 0;
}

.z-2 {
    z-index: 2;
}

.z-3 {
    z-index: 3;
}

.organizer-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hover-scale-1-1:hover {
    transform: scale(1.05);
}

.radial-gradient-color {
    background: radial-gradient(circle at center, transparent 0%, transparent 30%, rgba(191, 4, 19, 0.4) 60%, rgba(29, 38, 89, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover:hover .hover-op-1 {
    opacity: 1;
}

.bg-blur {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.p-4 {
    padding: 1.5rem;
}

.m-4 {
    margin: 1.5rem;
}

.text-light {
    color: white;
}

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

.mb-0 {
    margin-bottom: 0;
}

.ms-2 {
    margin-left: 0.5rem;
}

.gradient-edge-bottom {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
}

.op-8 {
    opacity: 0.8;
}

.organizer .hover h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.organizer .hover span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.organizer .hover a {
    color: #0077b5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.organizer .hover a:hover {
    color: #00a0dc;
}

.organizer .hover .fa-linkedin {
    font-size: 1.2rem;
}

/* Animation effects */
.scale-in-mask {
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover:hover.scale-in-mask {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(191, 4, 19, 0.3);
}

.fadeIn {
    animation: fadeInUp 0.8s ease-out;
}

.wow {
    visibility: visible;
    animation-name: fadeInUp;
}

/* Community Section */
.community {
    padding: 80px 0;
    background: white;
}

.community h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(191, 4, 19, 0.2);
}

/* Community Links */
.community-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.community-link i {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.community-link span {
    position: relative;
    z-index: 2;
}

.community-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-link:hover::before {
    opacity: 0.1;
}

.community-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-colored);
    color: var(--primary-color);
    border-color: rgba(191, 4, 19, 0.3);
}

.community-link.discord {
    background: #5865f2;
    color: white;
}

.community-link.discord:hover {
    background: #4752c4;
}

.community-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.community-rules {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 16px;
}

.community-rules h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    background: white;
}

.rule-item.allowed {
    border-left: 4px solid var(--success-color);
}

.rule-item.forbidden {
    border-left: 4px solid var(--error-color);
}

.rule-item.allowed i {
    color: var(--success-color);
}

.rule-item.forbidden i {
    color: var(--error-color);
}

.rule-item p {
    margin: 0;
    color: var(--text-secondary);
}

.community-message {
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(191, 4, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(217, 4, 4, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer p {
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}



/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--background-alt);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(29, 38, 89, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(191, 4, 19, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

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

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

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

/* Location Section */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.location-map {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 300px;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Organizer Section */
.organizer-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.organizer-image {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-colored);
    border: 4px solid transparent;
    background: var(--gradient-primary);
    padding: 4px;
}

.organizer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
}

.organizer-info h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.organizer-info p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Community Showcase Section */
.community-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.community-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

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

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

.community-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(5, 25, 38, 0.9));
    padding: 2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.community-image:hover .community-overlay {
    transform: translateY(0);
}

.community-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    color: var(--text-light);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.community-description h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.community-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Floating Astronaut - Only in About Section */
.floating-astronaut {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 100px;
    height: 100px;
    pointer-events: auto;
    z-index: 10;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: none;
}

.floating-astronaut:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.floating-astronaut:active {
    transform: translateY(-50%) scale(0.95);
}

/* Show astronaut only in evento section */
#evento {
    position: relative;
}

#evento .floating-astronaut {
    display: block;
    opacity: 0.7;
}

.astronaut-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 20px rgba(191, 4, 19, 0.3)) brightness(1.1);
    animation: floatAstronaut 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Disable animation when astronaut is positioned and maintain orientation */
.floating-astronaut.positioned .astronaut-svg {
    animation: none;
    transform: translateY(-50%) scaleX(-1) !important;
}

/* Normal orientation when positioned on right */
.floating-astronaut.positioned.right .astronaut-svg {
    transform: translateY(-50%) scaleX(1) !important;
}

@keyframes floatAstronaut {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) rotate(7deg);
    }
}

/* Astronaut animation only in evento section */
#evento .floating-astronaut {
    animation: floatAstronaut 6s ease-in-out infinite;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-200px) translateY(0px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px) translateY(0px);
        opacity: 1;
    }
}

/* Estilos adicionales para JavaScript */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border-color);
}

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-brand h2 {
        font-size: 1.5rem;
    }

    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 80px;
        min-height: 100vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    .floating-astronaut {
        width: 80px;
        height: 80px;
        right: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .about-content,
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .col-lg-4 {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .organizer-img {
        height: 400px;
    }

    .m-4 {
        margin: 1rem;
    }

    .p-4 {
        padding: 1rem;
    }

    .community-showcase-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .community-image img {
        height: 300px;
    }

    .floating-astronaut {
        display: none;
    }
    
    .helmet-bubbles {
        display: none;
    }
    
    .community-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .community-link {
        padding: 1.25rem;
    }

    .card {
        padding: 2rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 80px;
        min-height: 100vh;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .nav-brand h2 {
        font-size: 1.3rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .card {
        padding: 1.5rem;
    }

    .community-link {
        padding: 1rem;
        gap: 0.75rem;
    }

    .organizer-img {
        height: 350px;
    }

    .organizer .hover h3 {
        font-size: 1.3rem;
    }

    .organizer .hover span {
        font-size: 0.9rem;
    }
}

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

.hero-text, .about-content, .location-content, .organizer-card, .community-rules {
    animation: fadeInUp 0.8s ease-out;
}

/* Helmet Bubbles */
.helmet-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.helmet-bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    animation: floatBubble 4s ease-in-out infinite;
}

.helmet-bubble:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.helmet-bubble img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 15px rgba(191, 4, 19, 0.2));
}

.helmet-bubble[data-type="mono"] img {
    filter: drop-shadow(0 5px 15px rgba(29, 29, 27, 0.3));
}

.helmet-bubble[data-type="color"] img {
    filter: drop-shadow(0 5px 15px rgba(191, 4, 19, 0.3));
}

/* Positioning for each bubble */
.helmet-bubble:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.helmet-bubble:nth-child(2) {
    top: 25%;
    right: 20%;
    animation-delay: 0.5s;
}

.helmet-bubble:nth-child(3) {
    top: 45%;
    left: 10%;
    animation-delay: 1s;
}

.helmet-bubble:nth-child(4) {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.helmet-bubble:nth-child(5) {
    top: 80%;
    left: 25%;
    animation-delay: 2s;
}

.helmet-bubble:nth-child(6) {
    top: 15%;
    left: 50%;
    animation-delay: 2.5s;
}

.helmet-bubble:nth-child(7) {
    top: 35%;
    right: 40%;
    animation-delay: 3s;
}

.helmet-bubble:nth-child(8) {
    top: 70%;
    right: 30%;
    animation-delay: 3.5s;
}

.helmet-bubble:nth-child(9) {
    top: 90%;
    right: 45%;
    animation-delay: 4s;
}

.helmet-bubble:nth-child(10) {
    top: 5%;
    right: 5%;
    animation-delay: 4.5s;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
    75% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Click animation */
.helmet-bubble.clicked {
    animation: bubbleClick 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes bubbleClick {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    30% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Community section positioning */
.community {
    position: relative;
    overflow: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}