/* Landing Page Desktop Styles */

:root {
    --brand-blue: #1a1a3a;
    --brand-blue-light: #211e43;
    --brand-celeste: #bac5e6;
    --white: #ffffff;
    --gray-light: #f4f4f9;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Selection */
::selection {
    background-color: var(--brand-blue);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--brand-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-celeste);
    border-radius: 10px;
    border: 3px solid var(--brand-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--white);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-celeste) var(--brand-blue);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--white);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Header Styles */
.landing-header {
    background-color: var(--brand-blue);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-left {
    display: flex;
    gap: 30px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    transition: var(--transition-smooth);
}

.dropbtn::after {
    content: '▾';
    font-size: 12px;
}

.dropbtn:hover {
    color: var(--brand-celeste);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 0;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    font-family: inherit;
    line-height: normal;
}

.nav-link:hover {
    color: var(--brand-celeste);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--brand-blue);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.dropdown-content a:hover {
    background-color: var(--gray-light);
    color: var(--brand-blue-light);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    /* Hidden initially, revealed after splash animation */
    transition: opacity 0.3s;
}

.logo-center img {
    height: 50px;
    cursor: pointer;
}

/* Desktop Splash Styles */
#desktop-splash-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #211e43;
    z-index: 9998;
    transition: opacity 0.8s ease-in-out;
}

#desktop-splash-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 350px;
    /* Starts large */
    z-index: 9999;
    transition: height 2.5s ease-out, top 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

#desktop-splash-logo.loading-shrink {
    height: 180px;
    /* Shrinks to this size while loading */
}

#desktop-splash-logo.docked {
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    top: 40px;
    /* Center of the 80px header */
    height: 50px;
}

.search-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 15px 8px 35px;
    color: var(--white);
    width: 250px;
    outline: none;
    transition: var(--transition-smooth);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-container input:focus {
    background: rgba(255, 255, 255, 0.25);
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.filter-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-icon:hover {
    background: var(--brand-celeste);
    color: var(--brand-blue);
}

/* Hero Carousel Styles */
.hero-section {
    position: relative;
    height: 260px;
    /* Adapted height for 1366px */
    width: 100%;
    overflow: hidden;
}

@media (min-width: 1900px) {
    .hero-section {
        height: 360px;
        /* Perfect height for 1920px as requested */
    }
}

/* Carousel Container */
.carousel-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* Events Section Styles */
.events-section {
    padding: 20px 20px 80px;
    /* Reduced top/side padding */
    background-color: var(--white);
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    color: var(--brand-blue);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 5px;
    padding-left: 0;
    /* Fully to the left */
}

.events-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 60px;
    /* Increased space so absolute buttons don't overlap cards */
}

.events-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 10px 40px;
    scrollbar-width: none;
    width: 100%;
}

.events-slider::-webkit-scrollbar {
    display: none;
}

.slider-control {
    background-color: var(--brand-blue);
    /* Always blue */
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(26, 26, 58, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider-control.prev {
    left: 0;
    /* Positioned in the 60px padding area */
}

.slider-control.next {
    right: 0;
    /* Positioned in the 60px padding area */
}

.slider-control:hover {
    background-color: var(--brand-blue);
    /* Stays blue */
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    /* Only scale on hover */
}

.slider-control:disabled {
    background-color: var(--brand-blue);
    /* Stays blue */
    color: var(--white);
    opacity: 0.5;
    /* Just slightly faded to indicate disabled */
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

/* Loader Styles */
.loader-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 100px 0;
}

.hidden {
    display: none !important;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--brand-celeste);
    border-bottom-color: var(--brand-blue);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Event Card Styles */
.event-card {
    min-width: 380px;
    width: 380px;
    background: #ededf0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.event-card:hover {
    transform: translateY(-8px);
}

.event-card-img {
    width: 100%;
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
    padding: 0;
    /* No padding so image is full width of the card */
}

.event-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* All corners rounded */
    transition: transform 0.5s ease;
}

.event-card:hover .event-card-img img {
    transform: scale(1.05);
}

.event-card-info {
    padding: 15px 20px 24px;
    /* Added horizontal padding */
    background-color: #ededf0;
    /* Applied the requested gray here */
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    /* Ensure it fills the space if cards have different heights */
}

.event-date {
    color: #888;
    /* Gray color requested */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.event-title {
    color: var(--brand-blue);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.event-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.event-card-category {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cat-icon {
    width: 18px;
    height: 18px;
}

.event-card-category span {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-blue);
    text-transform: uppercase;
}

.btn-conoce-card {
    background-color: var(--brand-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-conoce-card:hover {
    background-color: var(--brand-blue-light);
    transform: scale(1.05);
}

#desktop-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Banner Section */
.app-banner-section {
    background-color: #211e43;
    padding: 60px 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.app-banner-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left: Mockup */
.app-banner-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup-img {
    max-width: 350px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
    transform: scale(1.1);
    /* Slightly larger */
}

/* Middle: Info */
.app-banner-middle {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.app-banner-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 50px;
    position: relative;
}

@media (max-width: 1400px) {
    .app-banner-title {
        font-size: 32px;
        margin-bottom: 35px;
    }
}

.app-banner-title .highlight {
    color: #bac5e6;
}

.app-banner-features {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background-color: var(--white);
    /* White bg */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(157, 133, 255, 0.15);
}

.feature-icon span {
    font-size: 28px;
    color: var(--white);
}

.feature-icon .svg-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--white);
}

.feature-item .highlight-text {
    color: var(--brand-celeste);
    font-weight: 700;
}

/* Right: QR */
.app-banner-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-scan-header {
    position: absolute;
    top: -45px;
    left: -50px;
    display: flex;
    align-items: center;
    gap: 5px;
    transform: rotate(-10deg);
}

.scan-text {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    color: #bac5e6;
    font-weight: 800;
    font-style: italic;
}

.scan-arrow {
    color: #bac5e6;
}

.qr-box {
    background-color: transparent;
    border: 1px solid rgba(157, 133, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 30px rgba(157, 133, 255, 0.05);
}

.qr-image-wrapper {
    background-color: var(--white);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.qr-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.qr-text h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.qr-text p {
    color: var(--white);
    font-size: 14px;
}

.qr-text .highlight-text {
    color: var(--brand-celeste);
}

/* Footer Styles */
.landing-footer {
    background-color: var(--brand-blue);
    padding: 60px 100px 30px;
    color: var(--white);
    margin-top: auto;
    /* Pushes footer to the bottom if content is short */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-logo img {
    height: 80px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--brand-celeste);
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* Mobile Hidden Helper */
@media (max-width: 1023px) {
    #desktop-landing {
        display: none;
    }
}

@media (min-width: 1024px) {
    #mobile-splash {
        display: none !important;
    }
}