* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gotham SSm', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    scroll-behavior: smooth;
    background-color: #000;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; }
.header-logo { height: 40px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); transition: height 0.4s ease; position: relative; z-index: 101; }
header.scrolled .header-logo { height: 26px; }

.nav-center a, .nav-right a {
    color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; margin: 0 16px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9); letter-spacing: 0.5px; transition: color 0.3s;
}
.nav-center a:hover, .nav-right a:hover { color: #d0d1d2; }
.mobile-only { display: none; }

.menu-toggle {
    display: none; background: rgba(255,255,255,0.15); color: #fff; border: none; padding: 8px 16px;
    border-radius: 6px; font-size: 13px; font-weight: 500; backdrop-filter: blur(5px); cursor: pointer; z-index: 101; transition: background 0.3s ease;
}


.tesla-section {
    height: 100vh; height: 100dvh; width: 100%; position: relative;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center; overflow: hidden;
}

.bg-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; filter: brightness(0.85); }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%); z-index: 1; }

.content-top { position: relative; z-index: 2; text-align: center; width: 100%; padding-top: 16vh; }
.content-bottom { position: relative; z-index: 2; text-align: center; width: 100%; padding-bottom: 8vh; display: flex; flex-direction: column; align-items: center; }

h1 { font-size: 42px; font-weight: 500; color: #fff; letter-spacing: 0.5px; margin-bottom: 8px; text-shadow: 0 3px 15px rgba(0,0,0,0.8); }
.subtitle { font-size: 15px; color: #fff; font-weight: 400; text-shadow: 0 2px 8px rgba(0,0,0,0.9); }

.button-group { display: flex; gap: 24px; justify-content: center; width: 100%; }
.btn {
    width: 260px; padding: 10px 0; border-radius: 4px; border: none; font-size: 14px; font-weight: 500; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.3); text-decoration: none; display: inline-block;
}
.btn-light { background-color: #f4f4f4; color: #393c41; }
.btn-light:hover { background-color: #fff; }
.btn-dark { background-color: rgba(23, 26, 32, 0.8); color: #fff; backdrop-filter: blur(5px); }
.btn-dark:hover { background-color: #171a20; }

.spec-text-block { max-width: 650px; margin: 0 auto 30px auto; color: #fff; font-size: 14px; line-height: 1.6; text-shadow: 0 2px 10px rgba(0,0,0,0.9); text-align: center; padding: 0 20px; }
.specs-group { display: flex; justify-content: center; gap: 70px; margin-bottom: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.9); }
.spec-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.spec-item h3 { font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.spec-item p { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }


.content-middle {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 40px 6vh;
}
#contacto-prensa .specs-group {
    gap: 80px;
    justify-content: center;
    flex-wrap: nowrap;
}
#contacto-prensa .spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
}
#contacto-prensa .spec-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    display: block;
    margin: 0 0 18px 0;
}
#contacto-prensa .spec-item h3 {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
#contacto-prensa .spec-item p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}


.collage-fullscreen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 47% 53%;
    z-index: 0;
    gap: 0px;
}

.collage-fullscreen img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}


.f-grande {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    object-position: center 20% !important;
}


.f-arriba {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    object-position: center center !important;
}


.f-abajo {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    object-position: center top !important;
}

.gradient-galeria {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
}


.bg-3-cols {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    z-index: 0;
}
.col-img { flex: 1; height: 100%; overflow: hidden; }

.col-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }

.gradient-disciplinas { background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 100%); pointer-events: none; }
.w-100 { width: 100%; }
.pointer-none { pointer-events: none; }
.align-3 { width: 100%; display: flex; justify-content: space-around; margin-bottom: 0; }


.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px 20px;
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    color: #fff;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.contact-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.info-details {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.info-details p {
    margin-bottom: 15px;
    font-size: 15px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #000;
}

.contact-form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #171a20;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f4f4f4;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}


.content-top.news-top { padding-top: 13vh; }
.content-bottom.news-bottom { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 2vh; margin-top: -4vh; }

.slider-wrapper { width: 100%; max-width: 1100px; margin: 0 auto; position: relative; padding: 0 50px; }

.slider-container {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 30px;
    scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; padding-bottom: 0;
}
.slider-container::-webkit-scrollbar { display: none; }

.slide { min-width: 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.slide-title { color: #fff; font-size: 18px; font-weight: 500; margin-bottom: 10px; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

.instagram-container {
    width: 100%; max-width: 850px;
    height: auto;
    background: rgba(15, 15, 15, 0.7); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden;
}

.instagram-container iframe,
.instagram-container .elfsight-app { width: 100% !important; height: 100% !important; border: none; border-radius: 8px; }


.insta-profile-card { display: flex; flex-direction: column; width: 100%; }
.insta-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.insta-avatar img { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; border: 2px solid #cc0000; padding: 2px; }
.insta-info { flex: 1; text-align: left; }
.insta-info h3 { color: #fff; font-size: 16px; margin-bottom: 4px; letter-spacing: 0.5px; }
.insta-info p { color: #aaa; font-size: 13px; }
.insta-btn { background: #0095f6; color: #fff; text-decoration: none; padding: 8px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background 0.3s; }
.insta-btn:hover { background: #1877f2; }


.insta-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.insta-grid a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 6px; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.insta-grid a:hover img { transform: scale(1.1); }

.insta-footer-link { display: inline-block; text-align: center; color: #fff; text-decoration: none; margin-top: 15px; font-size: 14px; font-weight: 500; opacity: 0.7; transition: opacity 0.3s; }
.insta-footer-link:hover { opacity: 1; }

.slider-controls {
    position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%);
    display: flex; justify-content: space-between; pointer-events: none; z-index: 10;
}
.arrow-btn {
    pointer-events: auto; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff;
    width: 45px; height: 45px; border-radius: 50%; font-size: 20px; cursor: pointer; backdrop-filter: blur(5px);
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.arrow-btn:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.1); }


.insta-post {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insta-post:hover img {
    transform: scale(1.1);
}


.insta-post.visible {
    opacity: 1;
    transform: translateY(0);
}


.insta-header-info {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.insta-header-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.insta-header-info span {
    font-size: 14px;
    color: #ccc;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
}


.insta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
}


.insta-post-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background-color: #222;
}

.insta-post-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-caption {
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insta-post-wrapper:hover .insta-overlay {
    opacity: 1;
}

.insta-post-wrapper:hover img {
    transform: scale(1.1);
}

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

    .insta-overlay {
        display: none;
    }
}

@media (max-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .insta-post-wrapper:nth-child(odd):last-child {
        display: none;
    }
}

.logo-colab {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-x {
    color: white;
    font-size: 14px;
    font-weight: 300;
    opacity: 0.6;
    margin-top: 2px;
}


.logo-surne {
    height: 28px !important;
    width: auto !important;
}

@media (max-width: 480px) {
    .logo-surne { height: 18px !important; }
    .logo-x { font-size: 11px; }
}


.footer-section { background-color: #000; justify-content: center; padding: 0 20px; }
.footer-content { position: relative; z-index: 2; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 0 40px; }
.logos-title { font-size: 20px; color: #fff; margin-top: 40px; margin-bottom: 50px; font-weight: 500; letter-spacing: 1px; }
.logos-sponsor { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 50px; max-width: 1000px; margin: 0 auto 30px auto; }
.logos-sponsor a { transition: transform 0.3s ease; display: inline-block; }
.logos-sponsor a:hover { transform: scale(1.05); }
.sponsor-logo { width: auto; height: auto; max-width: 200px; max-height: 95px; object-fit: contain; filter: grayscale(100%) brightness(300%); }
.footer-links { display: flex; justify-content: center; gap: 20px; font-size: 12px; font-weight: 500; color: #a2a3a5; margin-bottom: 20px; }
.footer-links a { color: inherit; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }


@media (max-width: 768px) {

    header { padding: 0 20px; height: 65px; }
    header.scrolled { height: 55px; }
    .menu-toggle { display: block; position: relative; z-index: 200; }
    .nav-right.desktop-only { display: none; }
    .header-logo { position: relative; z-index: 200; }
    header > a:first-child { position: relative; z-index: 200; }
    .logo-colab { position: relative; z-index: 200; }

    .nav-center {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 100% !important; height: 100dvh !important;
        background-color: rgba(8, 8, 8, 0.97) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important; margin: 0 !important;
        transform: translateY(-100%) !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 150 !important;
    }
    .nav-center.active { transform: translateY(0) !important; }
    .nav-center a {
        margin: 0 !important;
        padding: 20px 0 !important;
        font-size: 24px !important;
        font-weight: 400 !important;
        letter-spacing: 0.5px !important;
        width: 100% !important;
        text-align: center !important;
        border: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        background: transparent !important;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s !important;
    }
    .nav-center.active a { opacity: 1 !important; transform: translateY(0) !important; }
    .nav-center.active a:nth-child(1) { transition-delay: 0.06s; }
    .nav-center.active a:nth-child(2) { transition-delay: 0.11s; }
    .nav-center.active a:nth-child(3) { transition-delay: 0.16s; }
    .nav-center.active a:nth-child(4) { transition-delay: 0.21s; }
    .nav-center.active a:nth-child(5) { transition-delay: 0.26s; }
    .nav-center.active a:nth-child(6) { transition-delay: 0.31s; }
    .nav-center a:active, .nav-center a:focus { color: #ccc !important; background: transparent !important; }
    .mobile-only { display: block; }


    .tesla-section { height: auto !important; min-height: 100vh; padding-bottom: 50px; }
    .content-top { padding-top: 20vh; }
    .content-bottom { padding-bottom: 50px; }
    h1 { font-size: 32px; }
    .subtitle { font-size: 14px; margin-bottom: 20px; }
    .button-group { flex-direction: column; align-items: center; gap: 15px; }
    .btn { width: 90%; max-width: 350px; }
    .spec-text-block { font-size: 14px; padding: 0 15px; line-height: 1.5; }
    #filosofia h2 { font-size: 20px !important; padding: 0 15px; }
    .specs-group { gap: 30px; flex-wrap: wrap; margin-top: 30px; justify-content: center; }
    .spec-item { width: 45%; }
    .spec-item h3 { font-size: 24px; }


    #actividades .col-img:nth-child(1), #actividades .col-img:nth-child(2) { display: none; }
    #actividades .col-img:nth-child(3) { display: block; height: 100%; position: absolute; width: 100%; z-index: -1; top: 0; left: 0; }


    #disciplinas .bg-3-cols { flex-direction: column; height: 100%; }
    #disciplinas .col-img { display: block !important; height: 33.33vh !important; width: 100%; position: relative !important; }
    .bg-3-cols { flex-direction: column; }
    .align-3 { flex-direction: column; gap: 40px; align-items: center; }
    .align-3 .spec-item { width: 100%; text-align: center; padding: 0 20px; }


    #horarios .spec-text-block { padding: 20px !important; width: 90%; margin: 0 auto; }

    .collage-fullscreen { grid-template-columns: 1fr; grid-template-rows: 1fr; }
    .f-grande { grid-column: 1 / -1; grid-row: 1 / -1; object-position: center center !important; }
    .f-arriba, .f-abajo { display: none !important; }


    .content-top.news-top { padding-top: 14vh !important; }
    .content-bottom.news-bottom { justify-content: flex-start; padding-bottom: 2vh; margin-top: 2vh; }
    .slider-wrapper { padding: 0 10px; }
    .slider-controls { display: none; }
    .instagram-container { height: auto; padding: 20px; max-width: 95%; border-radius: 8px; }
    .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .img-equipo { object-position: 80% center !important; }
    .insta-header-info { flex-wrap: wrap; gap: 8px; }
    .insta-header-info h3 { font-size: 15px; }
    .insta-header-info span { font-size: 12px; padding: 4px 8px; white-space: nowrap; }


    .footer-section { padding: 60px 20px 40px !important; }
    .footer-content { padding: 0 !important; }
    .logos-sponsor { gap: 25px; margin-bottom: 40px; }
    .sponsor-logo { max-width: 130px; max-height: 60px; }
    .footer-links { flex-direction: column; gap: 10px; }


    .contact-section { height: auto !important; min-height: auto !important; padding: 90px 20px 60px !important; }
    .contact-container { grid-template-columns: 1fr; gap: 30px; padding: 0; }
    .contact-info { text-align: center; }
    .contact-info h1 { text-align: center !important; }
    .contact-form-wrapper { padding: 25px; }


    #contacto-prensa { height: auto !important; min-height: auto !important; padding-bottom: 60px; }
    #contacto-prensa .content-middle { padding: 20px 20px 40px; flex: none; }
    #contacto-prensa .specs-group { flex-direction: column; align-items: center; gap: 40px; margin-top: 0; flex-wrap: nowrap; }
    #contacto-prensa .spec-item { width: 85%; max-width: 300px; }
    #contacto-prensa .spec-item img { width: 100% !important; height: 220px !important; object-fit: cover; object-position: center top; }
}


.swipe-instruction {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.swipe-instruction.hidden {
    opacity: 0;
}

.hand-icon {
    font-size: 40px;
    margin-bottom: 5px;
    animation: swipeAnim 2s infinite;
}

@keyframes swipeAnim {
    0% { transform: translateX(0) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translateX(-40px) rotate(-10deg); opacity: 1; }
    100% { transform: translateX(-40px) rotate(-10deg); opacity: 0; }
}


.news-bottom { padding-bottom: 40px; }


.legal-section {
    height: auto !important;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: #000;
    display: block;
}

.legal-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 25px;
}

.legal-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.legal-text {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
}

.legal-text h2 {
    color: #fff;
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-text h3 {
    color: #ccc;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 500;
}

.legal-text p {
    margin-bottom: 20px;
}

.legal-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-text li {
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    .legal-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .legal-text {
        font-size: 14px;
    }
}

.nav-center a,
.nav-right a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin: 0 16px;
    letter-spacing: 0.5px;

    text-shadow: 0 2px 5px rgba(0,0,0,0.9);

    transition: color 0.3s, text-shadow 0.3s;
}


.nav-center a:hover,
.nav-right a:hover {
    color: #d0d1d2;
}


.nav-center a.active,
.nav-right a.active {
    color: #ffffff;

    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}


.nav-center a::after, .nav-center a::before,
.nav-right a::after, .nav-right a::before {
    content: none !important;
    display: none !important;
}

.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.4s ease;
}

header.scrolled {
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    margin: 0;
}

.logo-colab {
    display: flex;
    align-items: center;
    height: 100%;
}


video.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}


.bajar-titulo {
    padding-top: 22vh !important;
    margin-bottom: 5vh;
}


@media (max-width: 768px) {
    .bajar-titulo {
        padding-top: 25vh !important;
    }
}



.cards-container {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 60px;
    perspective: 2000px;
    overflow: hidden;
}

.card-stack {
    position: relative;
    width: 300px;
    height: 420px;
    transform-style: preserve-3d;
    margin-bottom: 30px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 18px;


    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.2);

    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    top: 0;
    left: 0;
    backface-visibility: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(1.1);
}

.card[data-status="active"] {
    transform: translateX(0) scale(1) translateZ(150px);
    z-index: 20;
    opacity: 1;
    filter: none;
    border: 1.5px solid #fff;
    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.6),
        0 30px 60px rgba(0,0,0,1);
}


.card[data-status="next"], .card[data-status="prev"] {
    z-index: 10;
    opacity: 0.8;
    filter: brightness(0.6) blur(1px);
}

.card[data-status="next"] { transform: translateX(180px) scale(0.85) rotateY(-25deg); }
.card[data-status="prev"] { transform: translateX(-180px) scale(0.85) rotateY(25deg); }


.card[data-status="next2"], .card[data-status="prev2"] {
    z-index: 5;
    opacity: 0.4;
    filter: brightness(0.3) blur(3px);
}

.card[data-status="next2"] { transform: translateX(300px) scale(0.7) rotateY(-35deg); }
.card[data-status="prev2"] { transform: translateX(-300px) scale(0.7) rotateY(35deg); }

.card[data-status="unknown"] {
    transform: scale(0) translateY(200px);
    opacity: 0;
}


.card-controls {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px #fff;
}


@media (max-width: 768px) {
    .card-stack {
        width: 240px;
        height: 350px;
    }
    .card[data-status="next"] { transform: translateX(90px) scale(0.75) rotateY(-20deg); }
    .card[data-status="prev"] { transform: translateX(-90px) scale(0.75) rotateY(20deg); }
    .card[data-status="next2"], .card[data-status="prev2"] { display: none; }
}

.tesla-section {
    overflow-x: hidden;
    touch-action: pan-y;
}


.card-stack {
    cursor: grab;
}
.card-stack:active {
    cursor: grabbing;
}


.card-stack {
    position: relative;
    width: 300px;
    height: 420px;
    transform-style: preserve-3d;
    margin-bottom: 30px;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    top: 0;
    left: 0;
}


.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
}


.card-front {
    transform: rotateY(0deg);
    z-index: 2;
}


.card-back {
    background: #111;
    background-image: url('imagenes/logo_reverso.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    transform: rotateY(180deg);
    z-index: 1;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}


.card[data-status="active"] {
    transform: translateX(0) scale(1) translateZ(150px) rotateY(0deg);
    z-index: 20;
    opacity: 1;
}

.card[data-status="next"] {
    transform: translateX(180px) scale(0.85) rotateY(-180deg);
    z-index: 10;
    opacity: 0.8;
    filter: brightness(0.6);
}


.card[data-status="prev"] { transform: translateX(-180px) scale(0.85) rotateY(0deg); opacity: 0.6; }
.card[data-status="next2"] { transform: translateX(300px) scale(0.7) rotateY(-180deg); opacity: 0.4; }
.card[data-status="prev2"] { transform: translateX(-300px) scale(0.7) rotateY(0deg); opacity: 0.2; }



.static-deck {
    position: absolute;
    width: 300px;
    height: 420px;


    transform: translateX(200px) scale(0.85);


    z-index: -5;

    border-radius: 18px;


    box-shadow:
        2px 2px 0 #333,
        4px 4px 0 #222,
        6px 6px 0 #333,
        8px 8px 0 #222,
        10px 10px 0 #333,
        25px 25px 40px rgba(0,0,0,0.5);

    border: 1px solid rgba(255,255,255,0.2);
}

.static-deck img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    filter: brightness(0.6);
}


@media (max-width: 768px) {
    .static-deck {
        width: 240px;
        height: 350px;
        transform: translateX(100px) scale(0.8);
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}
