:root {
    --bg-main: #0a0a0a;
    --bg-secondary: #121212;
    --bg-darker: #050505;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #8b5cf6; /* Violet */
    --accent-secondary: #3b82f6; /* Blue */
    --accent-hover: #7c3aed;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

/* Utilities */
.bg-darker {
    background-color: var(--bg-darker);
}

.bg-image {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.accent {
    color: var(--accent-primary);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 span {
    color: var(--accent-primary);
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--text-main);
}

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

/* Navbar Redesign - Dark Theme */
.navbar.custom-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent; /* Original */
    border-bottom: 1px solid transparent;
}

.navbar.custom-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 3%;
    border-bottom: 1px solid var(--border-color);
}

.custom-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0;
}

.nav-img-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.custom-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.custom-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

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

.custom-links i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.custom-links a:hover i {
    color: var(--accent-primary);
}

.nav-gradient-icon {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #8b5cf6 !important;
}

.badge-nav {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 5px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-menu-header, .mobile-menu-footer {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Nosotros Section - Modern Layout */
.about-modern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-modern-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Images Composition */
.about-visuals {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.img-main {
    width: 85%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: block;
}

.img-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    border-radius: 12px;
    border: 8px solid var(--bg-main); /* Match background color to create cut-out effect */
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.experience-badge {
    position: absolute;
    top: -20px;
    right: 5%;
    width: 130px;
    height: 130px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 4px solid var(--border-color);
}

.badge-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    .badge-icon { font-size: 1.8rem; }
}

/* Text Content */
.about-content .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.about-content h2 span {
    color: var(--accent-primary);
}

.about-content .desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-features {
    margin-bottom: 2.5rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.about-features li i {
    color: var(--accent-secondary);
    font-size: 1.2rem;
}

.btn-about {
    border-radius: 6px; /* Slightly less rounded for a corporate look matching the image */
    text-transform: none;
    font-size: 1rem;
}

/* Cursos Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.course-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

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

.course-info {
    padding: 2rem;
}

.course-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Content Slider Section */
.content-slider-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: var(--bg-secondary);
}

.content-slider-wrapper.full-width {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.content-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.c-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .c-slide {
        flex-direction: row;
        height: 400px;
    }
    .content-slider-wrapper.full-width .c-slide {
        height: 600px;
    }
}

.c-slide-img {
    height: 300px;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .c-slide-img {
        width: 50%;
        height: auto;
    }
}

.c-slide-text {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .c-slide-text {
        width: 50%;
        padding: 3rem;
    }
}

.c-slide-text h3 {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.content-slider-wrapper button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 92, 246, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.content-slider-wrapper button:hover {
    background: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.c-prev {
    left: 10px;
}

.c-next {
    right: 10px;
}

.c-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.c-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.c-dot.active {
    background: var(--accent-primary);
    transform: scale(1.2);
}

/* Horarios Section - Interactive Cards */
.schedule-interact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.s-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.s-card:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

@media (min-width: 768px) {
    .s-card {
        flex-direction: row;
        height: 200px;
    }
    .s-card:hover {
        transform: translateX(20px);
    }
}

.s-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .s-card-img {
        width: 300px;
        height: auto;
    }
}

.s-card:hover .s-card-img {
    filter: brightness(1.2);
}

.s-time {
    background: rgba(10, 10, 10, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.s-time.mobile-only {
    position: absolute;
    top: 15px;
    left: 15px;
}

.s-time.desktop-only {
    display: none;
    margin-bottom: 0.5rem;
    background: transparent;
    padding: 0;
}

@media (min-width: 768px) {
    .s-time.mobile-only {
        display: none;
    }
    .s-time.desktop-only {
        display: inline-flex;
    }
}

.s-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.s-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.s-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.s-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Eventos Section */
.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .events-container {
        grid-template-columns: 1fr 1fr;
    }
}

.event-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.event-poster {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.8s ease;
}

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

.event-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 2;
}

.event-date.highlight {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.2);
}

.event-date .day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.event-date .month {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.event-date.highlight .month {
    color: white;
}

.event-info {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2; /* To cover scaled image overflow */
}

.event-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.event-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.tag-primary {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.tag-primary.highlight {
    background: var(--accent-primary);
    color: white;
}

.tag-secondary {
    background: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.event-info h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.event-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex: 1;
}

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

.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.event-location i {
    color: var(--accent-secondary);
}

.btn-reserve {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-reserve span {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.events-all {
    text-align: center;
    margin-top: 2rem;
}

/* Ad Banner Section */
.ad-banner {
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.ad-banner h2 {
    font-size: 3rem;
    color: white;
}

.ad-banner p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

/* Precios Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.pricing-card.featured {
    background: linear-gradient(145deg, var(--bg-secondary), #171120);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--accent-primary);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    color: var(--text-main);
}

.pricing-card ul li i {
    color: var(--accent-primary);
    margin-right: 10px;
}

.pricing-card ul li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-card ul li.disabled i {
    color: var(--text-muted);
}

/* Contacto Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 0.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0,0,0,0.8);
}

.form-group select option {
    background: var(--bg-main);
    color: var(--text-main);
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
footer {
    background: #030303;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-img-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.creator {
    color: var(--accent-primary);
    font-weight: 600;
    margin-left: 10px;
}

/* Animations classes */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .nav-actions {
        display: none; /* Hide on small screens to fit menu */
    }
}

@media (max-width: 768px) {
    .nav-links.custom-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--bg-main) 0%, #17112c 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 4rem 2rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        gap: 1.5rem;
    }

    .nav-links.custom-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Pantalla de Precarga */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.loader-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
    animation: pulseLogo 2s infinite ease-in-out;
}

.loader-spinner {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    animation: spinLoader 1s ease-in-out infinite;
}

@keyframes pulseLogo {
    0% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3)); }
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6)); }
    100% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3)); }
}

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

@media (max-width: 768px) {
    .mobile-menu-header {
        display: block;
        margin-bottom: 2rem;
    }
    
    .mobile-menu-header img {
        height: 60px;
        width: auto;
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
    }
    
    .mobile-menu-footer {
        display: flex;
        gap: 1.5rem;
        margin-top: auto;
        padding-top: 2rem;
    }
    
    .mobile-menu-footer a {
        color: var(--text-main);
        font-size: 1.5rem;
        transition: color 0.3s ease, transform 0.3s ease;
    }
    
    .mobile-menu-footer a:hover {
        color: var(--accent-primary);
        transform: translateY(-3px) scale(1.1);
    }
    
    /* Make nav links larger for mobile */
    .custom-links a {
        font-size: 1.2rem;
    }
}
