@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600&display=swap');

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

/* BASE */
body {
    background: #000;
    color: #ef8f2d;
    font-family: 'Inter', sans-serif;
    cursor: none;
    overflow-x: hidden;
}

/* HEADER */
.main-header {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 1000;
}

.logo img {
    width: 180px;
}

/* SIDE NAV */
.side-nav {
    position: fixed;
    right: 35px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    z-index: 1000;

    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #e8f8ac;

    pointer-events: none;
}

/* SCROLL CONTAINER */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

/* PANELS */
.panel {
    position: relative;
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    scroll-snap-align: start;
}

/* BACKGROUND VIDEO */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transform: scale(1.02);
    z-index: 0;
}

/* DARK OVERLAY */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* GLASSMORPHISM CARD */
.glass {
    position: relative;
    z-index: 2;

    width: 85%;
    max-width: 650px;
    padding: 50px;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;

    text-align: center;
}

/* TAG */
.tag {
    display: inline-block;

    padding: 5px 15px;
    margin-bottom: 20px;

    background: #0c3f24;
    border-radius: 20px;

    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

/* TITLES */
.title,
.main-title {
    font-family: 'Orbitron', sans-serif;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.main-title {
    font-size: 2.8rem;
}

.main-title span {
    color: #9de5bf;
}

/* TEXT */
p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #eee;
}

.subtitle {
    margin-bottom: 30px;

    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.5;

    color: #ccc;
}

.microcopy {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: #9de5bf;
}

.text-block {
    padding-top: 20px;

    font-size: 1.3rem;
    font-style: italic;

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

/* ALT LAYOUT */
.layout-alt {
    text-align: left;
    border-left: 4px solid #7b61ff;
}

.layout-alt .main-title {
    font-size: 2.2rem;
}

/* CUSTOM CURSOR */
.cursor {
    position: fixed;
    z-index: 9999;

    width: 25px;
    height: 25px;

    border: 2px solid #7b61ff;
    border-radius: 50%;

    pointer-events: none;

    mix-blend-mode: difference;
    transition: transform 0.1s;
}

/* PROGRESS BAR */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;

    width: 0%;
    height: 4px;

    background: #7b61ff;
}

/* ======================================================
   RESPONSIVE SYSTEM
====================================================== */

/* VARIABLES */
:root {
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 60px;

    --glass-padding: clamp(24px, 5vw, 50px);

    --title-size: clamp(2rem, 6vw, 4rem);
    --subtitle-size: clamp(1rem, 2vw, 1.2rem);
    --body-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* ======================================================
   GENERAL IMPROVEMENTS
====================================================== */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* iPhone Safari fix */
.scroll-container,
.panel {
    min-height: 100svh;
}

/* ======================================================
   GLASS CARD
====================================================== */

.glass {
    width: min(90%, 700px);
    padding: var(--glass-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.10),
            rgba(255,255,255,0.03)
        );

    box-shadow:
        0 10px 40px rgba(0,0,0,0.35),
        inset 0 1px 1px rgba(255,255,255,0.08);
}

/* ======================================================
   TYPOGRAPHY
====================================================== */

.title,
.main-title {
    font-size: var(--title-size);
    line-height: 1.05;
}

.subtitle {
    font-size: var(--subtitle-size);
}

p {
    font-size: var(--body-size);
    line-height: 1.8;
}

/* ======================================================
   MEDIA
====================================================== */

.bg-video {
    object-position: center center;
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1024px) {

    .main-header {
        top: 20px;
        left: 20px;
    }

    .logo img {
        width: 140px;
    }

    .glass {
        width: 92%;
    }

    .side-nav {
        right: 10px;
        font-size: 0.55rem;
        letter-spacing: 0.25em;
    }
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 768px) {

    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .panel {
        padding: 20px;
    }

    .glass {
        width: 100%;
        border-radius: 24px;
        backdrop-filter: blur(12px);
    }

    .main-header {
        top: 15px;
        left: 15px;
    }

    .logo img {
        width: 120px;
    }

    .side-nav {
        display: none;
    }

    .tag {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .subtitle {
        margin-bottom: 10px;
    }

    p {
        line-height: 1.7;
    }

    .layout-alt {
        border-left: none;
        border-top: 3px solid #7b61ff;

        padding-top: 20px;
    }
}

/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 480px) {

    .glass {
        padding: 22px;
    }

    .title,
    .main-title {
        line-height: 1.1;
    }

    .microcopy {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .progress-bar {
        height: 3px;
    }
}

/* ======================================================
   LANDSCAPE MOBILE
====================================================== */

@media (max-height: 600px) and (orientation: landscape) {

    .panel {
        height: auto;
        min-height: 100svh;
        padding: 80px 20px;
    }

    .glass {
        margin: 40px 0;
    }

    .title,
    .main-title {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }
}

/* ======================================================
   ULTRAWIDE SCREENS
====================================================== */

@media (min-width: 1600px) {

    .glass {
        max-width: 850px;
    }

    p {
        font-size: 1.2rem;
    }
}
img,
video {
    max-width: 100%;
    display: block;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================
FLOATING BUTTONS
========================================= */

.fab {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    z-index: 99999;

    background: #ef8f2d;
    color: white;

    font-size: 1.5rem;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1);
}

.accessibility-btn {
    bottom: 100px;
}

.help-btn {
    bottom: 30px;
}

/* =========================================
ACCESSIBILITY PANEL
========================================= */

.accessibility-panel {
    position: fixed;
    right: 90px;
    bottom: 90px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 15px;

    background: rgba(0,0,0,0.85);
    border-radius: 16px;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.3s ease;
}

.accessibility-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.accessibility-panel button {
    border: none;
    padding: 10px 14px;
    border-radius: 10px;

    background: #222;
    color: white;

    cursor: pointer;
}

/* =========================================
HELP MODAL
========================================= */

.help-modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.75);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999999;

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;
}

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

.help-content {
    position: relative;

    width: 90%;
    max-width: 1000px;
    height: 80vh;

    background: #111;
    border-radius: 20px;
    overflow: hidden;
}

.help-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-help {
    position: absolute;
    top: 15px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #ef8f2d;
    color: white;

    cursor: pointer;

    z-index: 2;
}

/* =========================================
ACCESSIBILITY STATES
========================================= */

.high-contrast {
    filter: contrast(1.3);
}

.reduce-motion * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

/* =========================================
FOOTER
========================================= */

.main-footer {
    position: relative;
    z-index: 5;

    background: #050505;

    padding: 80px 10% 40px;

    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-logo {
    width: 160px;
    margin-bottom: 20px;
}

.main-footer h4 {
    margin-bottom: 20px;
    color: #9de5bf;
    font-family: 'Orbitron', sans-serif;
}

.main-footer ul {
    list-style: none;
}

.main-footer li {
    margin-bottom: 10px;
    color: #ccc;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.socials a {
    color: #ccc;
    text-decoration: none;
}

.socials a:hover {
    color: #ef8f2d;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;

    border-top: 1px solid rgba(255,255,255,0.08);

    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* MOBILE */

@media (max-width: 768px) {

    .fab {
        width: 52px;
        height: 52px;
    }

    .help-content {
        width: 95%;
        height: 75vh;
    }

    .main-footer {
        padding: 60px 24px 30px;
    }
}

/* =========================================
LIGHT MODE
========================================= */

body.light-mode {
    background: #f4f4f4;
    color: #111;
}

body.light-mode .glass {
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(0,0,0,0.08);
}

body.light-mode p,
body.light-mode .subtitle,
body.light-mode li {
    color: #222;
}

body.light-mode .overlay {
    background: rgba(255,255,255,0.35);
}

body.light-mode .main-footer {
    background: #e9e9e9;
}

body.light-mode .fab {
    background: #111;
}

/* TRANSICIÓN SUAVE */

body,
.glass,
.overlay,
.main-footer,
p,
.subtitle,
li {
    transition:
        background 0.4s ease,
        color 0.4s ease,
        border 0.4s ease;
}

/* =========================================
HIDE GOOGLE TRANSLATE UI
========================================= */

.goog-te-banner-frame.skiptranslate,
.goog-te-gadget,
.goog-logo-link,
.goog-te-gadget span,
.goog-te-balloon-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Remove ugly highlight */

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

/* =========================================
PREMIUM LANGUAGE SELECT
========================================= */

#languageSwitcher {
    width: 100%;

    padding: 12px 16px;

    background:
        rgba(255,255,255,0.08);

    color: white;

    border:
        1px solid rgba(255,255,255,0.12);

    border-radius: 12px;

    outline: none;

    backdrop-filter: blur(10px);

    font-size: 0.95rem;

    cursor: pointer;

    transition: all 0.3s ease;
}

#languageSwitcher:hover {
    border-color: #7b61ff;
}

#languageSwitcher option {
    background: #111;
    color: white;
}

/* LIGHT MODE */

body.light-mode #languageSwitcher {
    background: rgba(255,255,255,0.7);
    color: #111;
}

.language-wrapper {
    position: relative;
}

/* =========================================
VOICE BUTTON
========================================= */

.voice-btn {
    position: fixed;
    left: 20px;
    bottom: 100px;

    padding: 12px 18px;

    background: rgba(123, 97, 255, 0.9);
    color: white;

    border: none;
    border-radius: 14px;

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    z-index: 99999;

    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    transition: transform 0.2s ease;
}

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

.voice-btn.listening {
    background: #e8f8ac;
    color: #111;
}