/* ============================================ */
/* INICIO - VARIABLES GLOBALES                  */
/* ============================================ */
:root {
    --bg: #050505;
    --text: #fcfcfc;
    --accent: #1d4ed8;
    --muted: #888;
    --dim: #111;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.02);
    --shadow: rgba(0, 0, 0, 0.5);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.light-mode {
    --bg: #fcfcfc;
    --text: #0a0a0a;
    --accent: #1d4ed8;
    --muted: #666;
    --dim: #ebebeb;
    --border: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(0, 0, 0, 0.02);
    --shadow: rgba(0, 0, 0, 0.1);
}
/* ============================================ */
/* FIN - VARIABLES GLOBALES                     */
/* ============================================ */

/* ============================================ */
/* INICIO - RESET Y BASE                        */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    cursor: none;
    transition: background-color 0.5s ease, color 0.5s ease;
}
/* ============================================ */
/* FIN - RESET Y BASE                           */
/* ============================================ */

/* ============================================ */
/* INICIO - TRANSICIONES SUAVES                 */
/* ============================================ */
.navbar,
.slider,
.preloader-overlay,
.hero,
.profile-section,
.works,
.lab,
.contact,
.main-footer,
.visual-card,
.work-item {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
/* ============================================ */
/* FIN - TRANSICIONES SUAVES                    */
/* ============================================ */

/* ============================================ */
/* INICIO - DYNAMIC BACKGROUND BLOB             */
/* ============================================ */
.blob-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: background 0.5s ease;
}

body.light-mode .blob-bg {
    background: radial-gradient(circle, rgba(29, 78, 216, 0.1) 0%, transparent 70%);
}
/* ============================================ */
/* FIN - DYNAMIC BACKGROUND BLOB                */
/* ============================================ */

/* ============================================ */
/* INICIO - CANVAS DE ONDAS SALVAJES            */
/* ============================================ */
.hero-canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
}

.hero-wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
}

.contact-wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}
/* ============================================ */
/* FIN - CANVAS DE ONDAS SALVAJES               */
/* ============================================ */

/* ============================================ */
/* INICIO - PRELOADER CON ANIMACIÓN             */
/* ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: #050505;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preloader-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.preloader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.preloader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: preloaderFadeIn 1s ease forwards;
}

@keyframes preloaderFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    text-shadow: 10px 10px 10px solid #1d4ed8;
    letter-spacing: 0.5em;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.9);
    animation: logoPopIn 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes logoPopIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.preloader-line {
    width: 0;
    height: 2px;
    background: var(--accent);
    margin: 0 auto;
    animation: lineGrow 1.2s ease-out forwards;
}

@keyframes lineGrow {
    0% { width: 0; }
    100% { width: 200px; }
}

.btn-start {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: btnFadeIn 0.6s ease 0.8s forwards;
}

@keyframes btnFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.btn-start:hover {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 20px #1d4ed8;
}
/* ============================================ */
/* FIN - PRELOADER                              */
/* ============================================ */

/* ============================================ */
/* INICIO - CUSTOM CURSOR                       */
/* ============================================ */
.cursor {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    opacity: 0.6;
}

a, button, .nav-item, .work-item, .service-card, input, label {
    cursor: none !important;
}
/* ============================================ */
/* FIN - CUSTOM CURSOR                          */
/* ============================================ */

/* ============================================ */
/* INICIO - NAVEGACIÓN Y MENÚ RESPONSIVE        */
/* ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
}

body.light-mode .navbar {
    mix-blend-mode: normal;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text);
    letter-spacing: 0.2em;
    transition: opacity 0.3s;
    border-bottom: 2px solid var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    opacity: 1;
}

.nav-item:hover {
    opacity: 1;
    color: var(--accent);
}

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dim);
    border: 1px solid var(--border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Responsive Menu */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }
    
.nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #000000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s ease-in-out;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
    }
    
    body.light-mode .nav-links {
        background: #ffffff;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    body.light-mode .nav-item {
        color: #111111;
    }
    
    body.light-mode .menu-toggle span {
        background: #111111;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .navbar {
        padding: 2rem;
    }
    
    .menu-toggle {
        margin-left: auto;
    }
}
/* ============================================ */
/* FIN - NAVEGACIÓN                             */
/* ============================================ */

/* ============================================ */
/* INICIO - HERO SECTION                        */
/* ============================================ */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 18vw, 15rem);
    line-height: 0.50;
    letter-spacing: 0.50rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title .glitch {
    position: relative;
    display: inline-block;
    color: var(--text);
    text-shadow: 0 0 30px rgba(29, 78, 216, 0.5);
    transition: all 0.1s ease;
}

.hero-title .glitch::before,
.hero-title .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
}

.hero-title .glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff0040;
    clip: rect(0, 0, 0, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.hero-title .glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    clip: rect(0, 0, 0, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.outline{
    margin-bottom: 50px;
}

.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--text);
    opacity: 0.3;
    display: inline-block;
}

.hero-info {
    max-width: 600px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-meta {
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--text);
    display: flex;
    justify-content: center;
    gap: 1rem;
    opacity: 0.6;
}

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

.hero-bottom {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-hint {
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    opacity: 0.4;
}
/* ============================================ */
/* FIN - HERO SECTION                           */
/* ============================================ */

/* ============================================ */
/* INICIO - CONTAINER Y LABEL                   */
/* ============================================ */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.label {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--accent);
    margin-bottom: 3rem;
    text-transform: uppercase;
    text-align: center;
}
/* ============================================ */
/* FIN - CONTAINER Y LABEL                      */
/* ============================================ */

/* ============================================ */
/* INICIO - PROFILE SECTION                     */
/* ============================================ */
.profile-section {
    padding: 10rem 0 0 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: end;
}

.profile-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 20px 20px  0 0;
    box-shadow: -20px 40px 90px var(--shadow);
}

.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 10rem;
}

.profile-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.profile-content p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 500px;
}

@media (max-width: 968px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-content {
        text-align: center;
        align-items: center;
        padding-bottom: 0;
    }

    .profile-img {
        max-height: 60vh;
    }
}
/* ============================================ */
/* FIN - PROFILE SECTION                        */
/* ============================================ */

/* ============================================ */
/* INICIO - WORKS SECTION                       */
/* ============================================ */
.works {
    padding: 10rem 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.works-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.work-item {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: pointer;
    transition: transform 0.6s var(--transition);
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.work-item:hover {
    transform: translateY(-10px);
    border-color: var(--border);
    background: var(--card-bg);
}

.work-img-container {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--dim);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.6s var(--transition);
}

.work-item:hover .work-img-container {
    transform: scale(1.03);
}

.work-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.6s ease;
}

.work-item:hover .work-img-container img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.work-details h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.work-details p {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.2em;
}

@media (max-width: 968px) {
    .works-gallery {
        grid-template-columns: 1fr;
    }
}
/* ============================================ */
/* FIN - WORKS SECTION                          */
/* ============================================ */

/* ============================================ */
/* INICIO - SERVICES SECTION                    */
/* ============================================ */
.services-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: var(--dim);
    width: 100%;
    max-width: 100%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 2rem;
    text-align: center;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: var(--text);
}

.services-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #1d4ed8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(29, 78, 216, 0.4);
    border-color: #1d4ed8;
}

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

.service-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text);
}

.service-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 2rem 1.5rem;
    }
}
/* ============================================ */
/* FIN - SERVICES SECTION                       */
/* ============================================ */

/* ============================================ */
/* INICIO - CONTACT SECTION                     */
/* ============================================ */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.wave-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 2rem;
}

.wave-bar {
    width: 3px;
    height: 15px;
    background: var(--accent);
    margin: 0 2px;
    transition: height 0.1s ease;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.8;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.contact-title .outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
}

.contact-email {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.3em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    transition: border-color 0.3s ease;
}

.contact-email:hover {
    border-color: var(--accent);
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 3rem;
    }
    .contact-email {
        font-size: 1rem;
    }
}
/* ============================================ */
/* FIN - CONTACT SECTION                        */
/* ============================================ */

/* ============================================ */
/* INICIO - FOOTER                              */
/* ============================================ */
.main-footer {
    padding: 3rem 5%;
    text-align: center;
}

.footer-hr {
    border-color: var(--border);
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

.footer-copy {
    color: var(--muted);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
}

.footer-tagline {
    color: var(--muted);
    font-size: 0.7rem;
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.2rem;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: 0.3s;
}

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

/* ============================================ */
/* FIN - FOOTER                                 */
/* ============================================ */

/* ============================================ */
/* INICIO - REPRODUCTOR FLOTANTE                */
/* ============================================ */
.floating-player {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-player.hidden {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

.floating-player-content {
    background: var(--bg);
    backdrop-filter: blur(12px);
    border-radius: 60px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.floating-player-content:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.player-info i {
    font-size: 1.3rem;
    color: var(--accent);
}

.player-track strong {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 600;
}

.player-track span {
    font-size: 0.65rem;
    color: var(--muted);
}

.player-progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    max-width: 120px;
}

.player-progress-container span {
    font-size: 0.65rem;
    color: var(--muted);
    font-family: monospace;
}

.player-progress-bar {
    flex: 1;
    height: 3px;
    background: var(--dim);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.player-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.player-control-btn {
    background: var(--accent);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fcfcfc;
}

.player-control-btn i {
    font-size: 0.8rem;
}

.player-control-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.player-prev-btn,
.player-next-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}

.player-prev-btn i,
.player-next-btn i {
    font-size: 0.7rem;
}

.player-prev-btn:hover,
.player-next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}
.player-volume.active {
    width: 100px;
    opacity: 1;
}
.player-volume i {
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease;
}
.player-volume i:hover {
    color: var(--accent);
}
.player-volume input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 2px;
    background: var(--dim);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.player-volume input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

@media (max-width: 968px) {
    .floating-player {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
    }
    .floating-player-content {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px 20px 0 0;
        padding: 0.6rem;
        gap: 0.8rem;
    }
    .player-progress-container {
        order: 3;
        width: 100%;
        min-width: unset;
    }
    .player-info {
        order: 1;
    }
    .player-controls {
        order: 2;
    }
}

@media (max-width: 480px) {
    .player-info i {
        display: none;
    }
    .player-drag-handle {
        display: none;
    }
    .floating-player {
        transform: translateX(0);
        opacity: 1;
    }
    .floating-player.hidden {
        transform: translateY(100%);
    }
    .floating-player-content {
        padding: 0.5rem;
    }
    .player-control-btn {
        width: 28px;
        height: 28px;
    }
    .player-volume.active {
        width: 60px;
    }
}
/* ============================================ */
/* FIN - REPRODUCTOR FLOTANTE                   */
/* ============================================ */

/* ============================================ */
/* INICIO - RESPONSIVE EXTRA                   */
/* ============================================ */
@media (max-width: 768px) {
    .preloader-logo {
        font-size: 3rem;
    }
    .btn-start {
        padding: 0.8rem 2rem;
        font-size: 0.6rem;
    }
    .hero {
        padding: 0 5%;
    }
    .hero-tagline {
        font-size: 0.9rem;
    }
    .profile-content p {
        font-size: 1rem;
    }
    .label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    .contact-wrap p {
        font-size: 0.85rem;
    }
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .footer-rights {
        font-size: 0.7rem;
    }
}

/* ============================================ */
/* FIN - RESPONSIVE EXTRA                       */
/* ============================================ */

/* ============================================ */
/* INICIO - MODAL                               */
/* ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: var(--bg);
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    position: relative;
    padding: 0;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(29, 78, 216, 0.3);
    display: flex;
    overflow: hidden;
}

.modal-left {
    width: 290px;
    min-height: 100%;
    background: var(--dim);
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-right {
    flex: 1;
    padding: 2rem ;
    order: 1;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--accent);
}

.modal-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.modal-icon i {
    font-size: 3rem;
    color: var(--accent);
}

.modal-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-content p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-features {
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.modal-features h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.modal-features li i {
    color: var(--accent);
    font-size: 0.8rem;
}

.modal-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--accent);
    color: #fcfcfc;
    padding: 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.modal-btn:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

@media (max-width: 968px) {
    .modal-content {
        width: 95%;
        padding: 0;
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-left {
        width: 100%;
        height: 200px;
        order: 1;
    }
    
    .modal-right {
        order: 2;
        padding: 1.5rem;
    }
}
/* ============================================ */
/* FIN - MODAL                                  */
/* ============================================ */

/* ============================================ */
/* INICIO - REVEAL ANIMATION                    */
/* ============================================ */
.reveal {
    opacity: 0;
}

.reveal.visible {
    opacity: 1;
}
/* ============================================ */
/* FIN - REVEAL ANIMATION                       */
/* ============================================ */

/* ============================================ */
/* INICIO - RESPONSIVE GENERAL                  */
/* ============================================ */
@media (max-width: 968px) {
    .hero-title {
        font-size: clamp(4rem, 15vw, 8rem);
    }
    .hero-info {
        margin: 0 auto 2rem;
    }
    .hero-meta {
        justify-content: center;
    }
}
/* ============================================ */
/* FIN - RESPONSIVE GENERAL                     */
/* ============================================ */

/* ============================================ */
/* INICIO - 404 NOT FOUND                       */
/* ============================================ */
.not-found-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.not-found-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.not-found-title {
    font-family: var(--font-heading);
    font-size: clamp(8rem, 20vw, 15rem);
    color: var(--accent);
    line-height: 1;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 0.1em;
}

.not-found-title .glitch {
    position: relative;
    display: inline-block;
    text-shadow: 0 0 30px rgba(29, 78, 216, 0.5);
    transition: all 0.1s ease;
}

.not-found-title .glitch::before,
.not-found-title .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
}

.not-found-title .glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff0040;
    clip: rect(0, 0, 0, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.not-found-title .glitch::after {
    left: -2px;
    text-shadow: 2px 0 #00ffff;
    clip: rect(0, 0, 0, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    20% { clip: rect(50px, 9999px, 80px, 0); }
    40% { clip: rect(10px, 9999px, 40px, 0); }
    60% { clip: rect(70px, 9999px, 30px, 0); }
    80% { clip: rect(30px, 9999px, 60px, 0); }
    100% { clip: rect(60px, 9999px, 20px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 20px, 0); }
    20% { clip: rect(10px, 9999px, 50px, 0); }
    40% { clip: rect(80px, 9999px, 10px, 0); }
    60% { clip: rect(30px, 9999px, 70px, 0); }
    80% { clip: rect(50px, 9999px, 30px, 0); }
    100% { clip: rect(20px, 9999px, 60px, 0); }
}

.not-found-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text);
    margin: 1rem 0 0.5rem;
    letter-spacing: 0.1em;
}

.not-found-subtext {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #fcfcfc;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(29, 78, 216, 0.3);
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.5);
}

/* ============================================ */
/* FIN - 404 NOT FOUND                           */
/* ============================================ */