:root {
    --bg: #000;
    --bg-soft: #0b0b0d;
    --bg-card: #111114;
    --text: #e9eaee;
    --text-dim: #9a9ba3;
    --accent: rgba(102, 140, 255, 1);
    --accent-2: rgba(120, 236, 255, 1);
    --accent-3: rgba(102, 140, 255, 0.604);
    --border: #1e1f25;
    --radius: 30px;
    --maxw: 1200px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --author-h: 0px;
    --gap-bottom: 64px;
    --header-h: 68px;
    /* altura de la cabecera fija */
    --pad-top: 48px;
    /* padding-top del hero */
    --pad-bot: 130px;
    /* padding-bottom del hero (incluye autor + LinkedIn) */
    --vid-h: min(700px, calc(100svh - var(--header-h) - var(--pad-top) - var(--pad-bot)));
    --vid-w: calc(var(--vid-h) * 754 / 983);
}

@font-face {
    font-family: 'Digital';
    src: url('assets/digital.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

img,
video {
    max-width: 100%;
    display: block
}

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

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px
}

/* ---------- HEADER ---------- */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    width: 100%;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 28px;
    width: auto
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-left: 40px;
}

.nav-links button,
.nav-links a {
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: color .25s;
    text-decoration: none;
}

.nav-links button:hover,
.nav-links a:hover {
    color: var(--accent);
}

.nav-mail img {
    height: 19px;
    width: auto;
    vertical-align: middle
}

/* Mail + Contactar alineados */
.nav-contactar {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    transition: color .25s;
}

.nav-contactar:hover {
    color: var(--accent);
}

.nav-contactar img {
    height: 18px;
    width: auto;
}

/* ---------- HERO ---------- */
.hero-brand {
    display: none;
}

.hero-media {
    position: relative;
    width: var(--vid-w);
    /* ← ancla el ancho al vídeo */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* alinea el autor a la derecha como antes */
    gap: 12px;
    /* distancia fija vídeo → autor */
    height: auto;
    /* ya no necesita altura fija */
    margin: 0 auto;
}

.hero-logo-img {
    position: absolute;
    width: clamp(160px, calc(var(--vid-w) * 0.71), 400px);
    right: calc(50% + var(--vid-w) / 2 + 40px);
    /* ← antes: right: calc(50% + 300px + 40px) */
    top: 50%;
    transform: translateY(-50%);
}

.hero {
    padding-top: var(--pad-top);
    padding-bottom: var(--pad-bot);
    min-height: 100svh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.hero-top {
    text-align: center;
    max-width: 700px;
}

.hero-tag {
    color: var(--text-dim);
    font-size: 17px;
    margin-bottom: 36px;
    display: none;
}

.hero-bullets {
    position: absolute;
    left: calc(50% + var(--vid-w) / 2 + 30px);
    /* ← antes: left: calc(50% + 280px + 30px) */
    top: 50%;
    transform: translateY(-50%);
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-bullets li {
    font-size: clamp(14px, calc(var(--vid-w) * 0.054), 30px);
    /* ← antes: font-size: 30px */
    font-weight: 500;
    transition: color 1.2s var(--ease);
    white-space: nowrap;
    margin-top: -8px;
    color: #656565;
}

.hero-bullets li.glow {
    color: var(--accent);
}

.hero-bullets li {
    cursor: pointer;
}

.hero-bullets li:hover {
    color: var(--accent);
}

/* ShowPad: blanco en reposo, amarillo cuando el li está en glow (azul) */
.hero-bullets li .showpad {
    color: #ffffff;
    transition: color 1.2s var(--ease);
}

.hero-bullets li.glow .showpad {
    color: #f5c842;
}

.hero-bullets li:hover .showpad {
    color: #f5c842;
}

.hero-author {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.hero-author-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
    line-height: 1.2;
}

.hero-author-role {
    font-size: 15px;
    color: #888;
    font-weight: 500;
    margin-top: 0;
    flex-shrink: 0;
    line-height: 1.2;
}

.hero-linkedin {
    color: #0A66C2;
    margin-top: 2px;
    transition: opacity .25s;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.hero-linkedin:hover {
    opacity: 0.75;
}

.hero-linkedin svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* --- VIDEO: 832×1104, centrado, con overlay de play --- */
.hero-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 754 / 983;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity .3s;
    z-index: 2;
}

.video-play-btn svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
    transition: transform .2s var(--ease);
}

.video-play-btn:hover svg {
    transform: scale(1.1);
}

.video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-video-caption {
    font-size: 10px;
    color: var(--text-dim);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: right;
    width: 100%;
    margin-top: 0;
}

/* ---------- SECTIONS ---------- */
section.block {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 78px;
    font-weight: 500;
    letter-spacing: -.5px;
    margin-bottom: 10px;
    color: rgba(102, 140, 255, 1);

    background-image: linear-gradient(90deg,
            rgba(102, 140, 255, 1) 0%,
            rgba(102, 140, 255, 1) 42%,
            rgba(120, 236, 255, 1) 47%,
            #ffffff 50%,
            rgba(120, 236, 255, 1) 53%,
            rgba(102, 140, 255, 1) 58%,
            rgba(102, 140, 255, 1) 100%);
    background-size: 400% 100%;
    background-position: 100% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title.shimmer-in {
    animation: sectionTitleShimmer 5s linear forwards;
}

@keyframes sectionTitleShimmer {
    0% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.section-sub {
    text-align: center;
    color: var(--accent-2);
    font-size: 28px;
    font-weight: 500;
    max-width: 880px;
    margin: -28px auto 20px;
    line-height: 1.2;
}

.section-sub-sub {
    text-align: center;
    color: var(--accent);
    font-size: 14px;
    max-width: 680px;
    margin: -16px auto 20px;
    font-weight: 600;
}

.btn-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap
}

.btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s var(--ease);
}

.btn:hover {
    background: var(--accent);
    color: #fff
}

.btn-solid {
    background: var(--accent);
    color: #fff
}

.btn-solid:hover {
    background: var(--accent-2)
}

.btn-2 {
    background: transparent;
    border: 2px solid var(--accent-2);
    color: var(--accent-2);
    padding: 6px 14px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s var(--ease);
}

.btn-2:hover {
    background: var(--accent-2);
    color: #000;
}

/* Carousels */
.carousel {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    cursor: grab;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
    transition: transform .7s var(--ease);
    will-change: transform;
}

.carousel-track img {
    flex-shrink: 0;
    height: 100%;
    width: auto;
    max-width: none;
    border-radius: var(--radius);
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #333;
    cursor: pointer;
    padding: 0;
    transition: background .3s
}

.carousel-dots button.active {
    background: var(--accent)
}

.carousel-caption {
    text-align: center;
    color: var(--text-dim);
    margin-top: 14px;
    font-size: 14px
}


/* 3-column grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.grid-3 img {
    border-radius: var(--radius);
    height: 550px;
    object-fit: cover;
    width: 100%
}

/* Pruébalo */
.pruebalo-title-img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    /* ← sube (negativo) o baja (positivo) la imagen */
    margin-bottom: -120px;
    /* ← mismo valor que margin-top pero negativo, cancela el empuje */
    position: relative;
    z-index: -1;
}

.pruebalo-title-img {
    max-width: 1616px;
    width: 100%;
    height: auto;
    display: block;
}

.pruebalo-img {
    overflow: hidden;
    width: 90vw;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%) translateY(-110px);
    margin-bottom: -110px;
    z-index: -1;
    /* ← se mete por detrás de todo */
}

/* Patentes columns */
.patentes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px
}

.patentes-col h3 {
    color: #111 !important;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: -6px;
    text-align: center
}

.patentes-col .sub {
    color: #323232 !important;
    font-size: 18px;
    text-align: center;
    margin-bottom: 38px
}

.patentes-col img {
    border-radius: var(--radius);
    margin-bottom: 36px;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover
}

.patentes-col p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
}

.patentes-col {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.patentes-col h3 {
    color: var(--accent);
    /* ya existía, se mantiene */
}

.patentes-col .sub {
    color: #888;
    /* ajustamos porque ahora el fondo es blanco */
}

.patentes-col p {
    color: #444;
    /* ídem */
}

.patentes-col .btn {
    margin-top: 20px;
    margin-bottom: auto;
    align-self: center;
}

#patentes {
    padding-bottom: 240px;
}

/* ---------- FOOTER / CONTACT ---------- */
footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    background: var(--bg-soft)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start
}

.footer-grid h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    margin-top: -20px;
}

.footer-grid p {
    color: var(--accent);
    margin-bottom: 20px;
    margin-top: -30px;
}

.footer-mail img {
    height: 22px
}

.contact-form {
    display: grid;
    gap: 14px
}

.contact-form input,
.contact-form textarea {
    background: #0f1015;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent)
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical
}

.contact-form label {
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    gap: 8px;
    align-items: flex-start
}

.contact-form button {
    justify-self: start
}

.form-msg {
    font-size: 14px;
    margin-top: 6px
}

.form-msg.ok {
    color: #5ad18e
}

.form-msg.err {
    color: #e25a5a
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 12px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border)
}

/* ---------- MODAL ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    z-index: 99999;
    padding: 20px;
    animation: fadeIn .25s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.modal {
    background: #fff;
    color: #222;
    border-radius: 25px;
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto;
    animation: slideUp .35s var(--ease);
}

#modalBody {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 50px 55px;
    flex: 1;
    min-height: 0;
}

#modalBody::-webkit-scrollbar {
    width: 6px;
}

#modalBody::-webkit-scrollbar-track {
    background: transparent;
    margin: 18px;
}

#modalBody::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 99px;
}

#modalBody::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.modal h2 {
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
    letter-spacing: -.5px;
}

.modal .modal-sub {
    color: #3b3b3b;
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 24px;
    margin-top: -14px;
}

.modal p {
    margin-bottom: 14px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.modal strong {
    color: #111;
}

.modal a {
    color: var(--accent);
    font-weight: 500;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
    margin: 18px;
    /* respeta el border-radius arriba y abajo */
}

.modal::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 99px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px) {

    .hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .hero-brand {
        font-size: 54px
    }

    .section-title {
        font-size: 32px
    }

    .grid-3,
    .patentes-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .nav-links {
        gap: 16px;
        font-size: 14px
    }

    .modal {
        padding: 40px 28px
    }

    .modal h2 {
        font-size: 26px
    }
}

@media (max-width:560px) {
    .hero-brand {
        font-size: 42px
    }

    .hero {
        padding: 50px 0 70px
    }

    section.block {
        padding: 60px 0
    }
}

.foto-caption {
    text-align: center;
    font-style: italic;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-top: 15px;
}

.foto-caption-demo {
    text-align: center;
    font-style: italic;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-top: -145px;
}

#presentaciones .btn-row {
    margin-bottom: 7px;
}

#presentaciones .carousel-track {
    gap: 40px;
}

/* El wrapper de cada slide de Presentaciones */
.pres-slide {
    flex-shrink: 0;
    position: relative;
    border-radius: 50px;
    outline: 4px solid #3a3a3a;
    outline-offset: 4px;
    border: 2px solid #111111;
    overflow: hidden;
    align-self: center;
    cursor: pointer;
}

/* La imagen dentro del wrapper */
.pres-slide img {
    width: 800px;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Botón play centrado sobre la imagen */
.pres-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
}

.pres-play-btn svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5));
    transition: transform .2s;
}

.pres-play-btn:hover svg {
    transform: scale(1.1);
}

/* Cuando el vídeo está activo, oculta el botón */
.pres-slide.playing .pres-play-btn {
    display: none;
}

/* El iframe de Vimeo ocupa todo el slide */
.pres-slide iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#pruebalo .section-sub {
    margin-top: 0;
}

#hiperrealismo .carousel {
    height: 600px;
}

#hiperrealismo {
    margin-top: 100px;
}

#diseno .carousel {
    height: 650px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.fci-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 16px;
}

.fci-row svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-dim);
}

.fci-row em {
    font-style: normal;
    color: #555;
    font-size: 16px;
    margin-left: 4px;
}

.privacy-link {
    color: #f5c842;
    text-decoration: none;
    transition: color .25s;
}

.privacy-link:hover {
    color: #ffd966;

}

#dial {
    width: 200px;
    height: 200px;
    position: relative;
    opacity: 0%;
    pointer-events: auto;
}

/* -- Menu flotante Demo --*/
.menu-contenedor-flotante {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    z-index: 2000;
}

.menu-selector {
    display: flex;
    align-items: center;
    gap: 0;
    background: none;
    border: 2px solid var(--accent-3);
    border-radius: 30px;
    padding: 4px 6px;
    box-shadow: none;
}

.menu-item {
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
    opacity: 0.45;
}

.menu-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.menu-item.activo {
    opacity: 1;
}

.menu-item:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.menu-item:active {
    transform: scale(0.92);
    opacity: 1;
}

.menu-item:active {
    transform: scale(0.92);
    opacity: 1;
}

/* --- ESTILOS VISTA 3D --- */

.icono-mano-centro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: auto;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
}

.icono-mano-centro.animar-gesto {
    animation: gestoMano 3s ease-in-out forwards;
}

@keyframes gestoMano {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    35% {
        transform: translate(calc(-50% - 60px), -50%);
    }

    65% {
        transform: translate(calc(-50% + 60px), -50%);
    }

    90% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}


#pruebalo {
    position: relative;
    margin-top: -100px;

}

.contenedor-3d {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    height: 100%;
    min-height: 600px;
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: transparent;
    border-radius: var(--radius);
}

.contenedor-3d::before {
    content: '';
    position: absolute;

    /* ── AQUÍ controlas el tamaño del fondo ── */
    top: 280px;
    /* distancia desde arriba */
    /* distancia desde la izquierda */
    width: 100%;
    /* ancho del fondo */
    height: 58%;
    /* alto del fondo */
    /* ──────────────────────────────────────── */

    background-color: #000000;
    z-index: -1;
    /* detrás del contenido del contenedor */
}

.contenedor-3d.activo {
    opacity: 1;
    pointer-events: auto;
}

.elemento-2d-oculto {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

/* --- CONTENEDORES SIN CAJA (POSICIONAMIENTO ACTUALIZADO) --- */
.info-text-3d-bloque {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    pointer-events: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

#info-text-3d-left {
    left: auto;
    right: calc(50% + 17vw + 100px);
    text-align: right;
}

.info-derecha {
    right: auto;
    left: calc(50% + 17vw + 100px);
    text-align: left;
}

.titulo-3d {
    display: none;
}

/* --- GRID DE ACCESORIOS EN COLUMNA --- */
.accesorios-3d-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    pointer-events: auto;
    position: relative;
    z-index: 70;
}

/* --- BOTONES DE ACCESORIOS --- */
.accesorio-3d-btn {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    padding: 20px;
    cursor: pointer;
    outline: none;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 364px;
    height: 364px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.accesorio-3d-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.accesorio-3d-btn:hover {
    transform: scale(1.15);
    border: none;
    box-shadow: none;
}

.accesorio-3d-btn:hover img {
    filter:
        drop-shadow(0 0 2px rgba(0, 180, 255, 1)) drop-shadow(0 0 2px rgba(0, 212, 255, 0.9)) drop-shadow(0 0 3px rgba(0, 212, 255, 0.6));
}

.accesorio-3d-btn:active {
    transform: scale(1.05);
    border: none;
    box-shadow: none;
}

.contenedor-3d .accesorios-3d-grid {
    pointer-events: none;
}

.contenedor-3d.activo .accesorios-3d-grid {
    pointer-events: auto;
}

.contenedor-3d .accesorio-3d-btn {
    pointer-events: none;
}

.contenedor-3d.activo .accesorio-3d-btn {
    pointer-events: auto;
}

/* --- ANIMACIONES DE ENTRADA --- */
.contenedor-3d.activo #info-text-3d-left {
    animation: fadeInFromLeft 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.contenedor-3d.activo .info-derecha {
    animation: fadeInFromRight 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* --- LOADER 3D (INDICADOR DE CARGA) --- */
.loader-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    pointer-events: none;
}

.loader-3d-container.oculto {
    opacity: 0;
    visibility: hidden;
}

.spinner-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.loading-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #00d4ff;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================
   ESTILO SHARE mesingeni (CORREGIDO)
   ========================================= */

.panel-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel-share-overlay.activo {
    display: flex;
    opacity: 1;
}

.panel-share-content.mesingeni-style {
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: #333;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-share-overlay.activo .panel-share-content.mesingeni-style {
    transform: translateY(0);
}

.modal-header-share {
    padding: 35px 35px 10px 35px;
    background: #fff;
    text-align: left;
}

.modal-header-share h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 500;
    color: #000;
    line-height: 1.2;
}

.modal-header-share .modal-subtitle {
    display: block;
    font-size: 0.95rem;
    color: #666;
    margin-top: 8px;
    font-weight: 300;
}

.contacto-form-container-share {
    padding: 10px 35px 40px 35px;
}

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

.mesingeni-style input,
.mesingeni-style textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #000;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mesingeni-style input:focus,
.mesingeni-style textarea:focus {
    border-color: #3c63ff;
    box-shadow: 0 0 0 3px rgba(60, 99, 255, 0.1);
}

.mesingeni-style textarea {
    resize: none;
    min-height: 100px;
}

.cerrar-share-x-dark {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.cerrar-share-x-dark:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.btn-share-action {
    width: 100%;
    padding: 16px;
    background: #EDBB43 !important;
    color: #000 !important;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-share-action:hover {
    background: #f0c457 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 187, 67, 0.3);
}

.btn-share-action:active {
    transform: translateY(0);
}

.btn-share-action:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    background: #fff;
    transition: all 0.2s;
    margin-top: 1px;
}

.checkbox-container:hover .checkmark {
    border-color: #adb5bd;
}

.checkbox-container input:checked+.checkmark {
    background: #3c63ff;
    border-color: #3c63ff;
}

.checkbox-container input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text a {
    color: #3c63ff;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* ============================================
   MODAL APP PREVIEW - CARRUSEL AUTOMÁTICO
   ============================================ */
.modal-app-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-app-overlay.activo {
    display: flex;
}

.modal-app-content {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-app-cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.modal-app-cerrar:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-app-cerrar svg {
    width: 20px;
    height: 20px;
}

.modal-app-slides {
    position: relative;
    width: 72vw;
    max-width: 900px;
    aspect-ratio: 4 / 3;
}

.modal-app-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.modal-app-slide.active {
    opacity: 1;
    z-index: 2;
}

/* ============================================
   MODAL VIDEO PREVIEW
   ============================================ */
.modal-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-video-overlay.activo {
    display: flex;
}

.modal-video-content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-video-cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.modal-video-cerrar:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-video-cerrar svg {
    width: 20px;
    height: 20px;
}

.modal-video-player {
    display: block;
    width: 72vw;
    max-width: 900px;
    height: auto;
    border-radius: 35px;
}

/* ============================================
   MODAL INFO (PDF) - SAFARI FIX
   ============================================ */
.modal-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-info-overlay.activo {
    display: flex;
}

.modal-info-content {
    position: relative;
    border-radius: 35px;
    background: white;
    width: 85vw;
    max-width: 1000px;
    height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-info-cerrar {
    position: absolute;
    top: 15px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.2s, transform 0.2s;
    z-index: 20;
}

.modal-info-cerrar:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-info-cerrar svg {
    width: 20px;
    height: 20px;
}

.pdf-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f4f4f4;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.modal-info-viewer {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    min-height: 100%;
}

/* ============================================
   SISTEMA DE NOTIFICACIONES TOAST MEJORADO
   ============================================ */

#toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);

    min-width: 320px;
    max-width: 500px;

    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: auto;

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-notification.hide {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.toast-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: none;
}

.toast-notification.success {
    border-left: 4px solid #27ae60;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.toast-notification.success .icon-success {
    display: block;
    color: #27ae60;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.toast-notification.error {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.toast-notification.error .icon-error {
    display: block;
    color: #e74c3c;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.toast-notification.info {
    border-left: 4px solid #3c63ff;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.toast-notification.info .icon-info {
    display: block;
    color: #3c63ff;
    animation: infoPulse 0.5s ease-in-out;
}

@keyframes infoPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.toast-notification.warning {
    border-left: 4px solid #f39c12;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.toast-notification.warning .icon-warning {
    display: block;
    color: #f39c12;
    animation: warningBounce 0.5s ease-in-out;
}

@keyframes warningBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.toast-message {
    flex: 1;
    margin: 0;
}

.toast-close {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #333;
}

/* ============================================
   ESTADO OVERLAY (Blur sobre formulario)
   ============================================ */
.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 35px;
}

.status-overlay.activo {
    opacity: 1;
    pointer-events: auto;
}

.status-card {
    background: #ffffff;
    width: 80%;
    max-width: 320px;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-overlay.activo .status-card {
    transform: scale(1);
}

.status-card h4 {
    margin: 15px 0 10px 0;
    font-size: 1.2rem;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.status-card p {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.status-icon svg {
    width: 50px;
    height: 50px;
}

.icon-success-anim {
    color: #27ae60;
    animation: popIcon 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-error-anim {
    color: #e74c3c;
    animation: shakeIcon 0.4s ease-in-out;
}

.status-btn-ok {
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.status-btn-ok:hover {
    background: #e0e0e0;
}

@keyframes popIcon {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shakeIcon {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ============================================
   ESTILOS VISOR DOCUMENTO JPG
   ============================================ */

.info-img-wrapper {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f4f4f4;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.info-document-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    transition: width 0.3s ease;
    cursor: zoom-in;
    transform-origin: top center;
}

.info-document-img.zoomed {
    width: 200%;
    cursor: zoom-out;
    cursor: -webkit-zoom-out;
}

.info-img-wrapper.has-zoom {
    overflow-x: auto;
    justify-content: flex-start;
}

/* =======================================================
   NUEVO ESTILO DE BOTÓN CERRAR
   ======================================================= */

.boton-cerrar-emmerson {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background-color: #333333;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    z-index: 20;
    transition: transform 0.2s ease, background-color 0.2s;
}

.boton-cerrar-emmerson svg {
    width: 18.5px;
    height: 18.5px;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(45deg);
}

.boton-cerrar-emmerson:hover {
    transform: scale(1.1);
    background-color: #000000;
}

.boton-cerrar-emmerson.tema-claro,
.boton-cerrar-emmerson.tema-oscuro {
    background-color: #333333;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
}

.boton-cerrar-emmerson.tema-claro svg,
.boton-cerrar-emmerson.tema-oscuro svg {
    stroke: #ffffff;
}

/* ============================================
   LOADER 3D (INDICADOR DE CARGA)
   ============================================ */
.loader-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s;
    pointer-events: none;
}

.loader-3d-container.oculto {
    opacity: 0;
    visibility: hidden;
}

.spinner-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.loading-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #00d4ff;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes parpadeoMouse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.mouse-blink-effect {
    animation: parpadeoMouse 0.5s ease-in-out 3;
}

/* =========================================
   AJUSTES FOOTER (TEXTO mesingeni)
   ========================================= */

.menu-subtexto {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}


.iframe-invisible {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease, visibility 0.5s;
}


/* ==================== ESTILOS SCROLL SPY (ICONOS ACTIVOS) ==================== */

.menu-links li a.active-scroll .menu-icon {
    transform: scale(1.35);
    opacity: 1 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.top-bar-menu.on-dark-section .menu-links li a.active-scroll .menu-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
    transform: scale(1.35);
}

/* ==================== BOTONES ACCESORIOS 3D VIEW ==================== */

.accesorios-3d-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    pointer-events: auto;
    position: relative;
    z-index: 70;
}

.accesorio-3d-btn {
    background: transparent;
    border: none;
    padding: 20px;
    cursor: pointer;
    outline: none;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 260px;
    box-shadow: none;
}

.accesorio-3d-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 15px;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.accesorio-3d-btn:hover {
    transform: scale(1.15);
}

.accesorio-3d-btn:hover img {
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 15px rgba(0, 180, 255, 0.6)) drop-shadow(0 0 25px rgba(0, 212, 255, 0.4));
}

.accesorio-3d-btn:active {
    transform: scale(1.05);
}

#info-text-3d-right p {
    pointer-events: none;
}

/* Estilo del enlace Demo Limitada */
.enlace-demo {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.enlace-demo:hover {
    color: #000000;
    text-decoration: none;
}

.menu-contenedor-flotante.modo-3d-menu .enlace-demo {
    color: #00d4ff;
}

.menu-contenedor-flotante.modo-3d-menu .enlace-demo:hover {
    color: #ffffff;
}

.menu-contenedor-flotante.modo-3d-menu .menu-item {
    opacity: 0.45;
}

.menu-contenedor-flotante.modo-3d-menu .menu-item.activo {
    opacity: 1;
}

.menu-contenedor-flotante.modo-3d-menu .menu-pastilla {
    background: linear-gradient(135deg, #0088aa 0%, #00b4d8 50%, #0088aa 100%);
    box-shadow: 0 0 15px rgba(0, 180, 220, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Cursor para indicar arrastre en carruseles */
.cards-container,
#ventas-cards-container {
    cursor: grab;
}

.cards-container:active,
#ventas-cards-container:active {
    cursor: grabbing;
}

/* ============================================
   MODAL DE ESTADO GLOBAL (Footer + formularios)
   ============================================ */
.status-modal-global-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.status-modal-global-overlay.activo {
    opacity: 1;
    pointer-events: auto;
}

.status-modal-global-overlay .status-card {
    background: #ffffff;
    width: 90%;
    max-width: 340px;
    padding: 36px 28px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-modal-global-overlay.activo .status-card {
    transform: scale(1);
}


/*****************************************/
/* EMMERSON */

/* ============================================================
   RESTRICCIÓN PARA PANTALLAS SUPERIORES A 1920px
   ============================================================ */
@media (min-width: 1920px) {
    .contenedor-metronomo {
        /* 1920 * 0.34 = 652.8px. Fijamos el ancho */
        width: 552.8px !important;
        /* Fijamos la unidad de medida: 652.8 / 100 = 6.528px */
        --m-unit: 5.528px !important;

        margin-left: auto !important;
        margin-right: auto !important;
        left: 0 !important;
        transform: translateX(0) !important;
    }

    .metronomo,
    .mascara {
        width: 100% !important;
        /* Que ocupen el 100% de los 652px fijos */
    }
}

.contenedor-metronomo {
    --m-unit: 0.34vw;
    position: relative;
    display: block;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px !important;
    margin-bottom: 0;
    overflow: visible;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s linear 0s;
}

.metronomo {
    width: 34vw;
    height: auto;
    display: block;
    position: relative;
    z-index: 999;
    -webkit-user-drag: none
}

.mascara {
    width: 34vw;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
    -webkit-user-drag: none;
    pointer-events: none;
}

.conexiones-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1350 !important;
    overflow: visible;
}

.conexiones-svg-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1150 !important;
    overflow: visible;
}

.curva-bezier {
    fill: none;
    stroke-width: 8px;
    stroke-linecap: square;
    stroke-linejoin: round;
}

.curva-instrumentos {
    stroke: #001281;
}

.curva-generador {
    stroke: #b70000;
}

#curva-generador-superior {
    z-index: auto;
}

#curva-generador-inferior {
    z-index: auto;
}

.topo-nodo {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #b70000;
    border-radius: 50%;
    z-index: 1351 !important;
    cursor: grab;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.topo-nodo:active {
    cursor: grabbing;
}

.cruceta,
.boton-nota,
.boton-instrumentos,
.boton-generador,
.boton-on-off,
.boton-play,
.dial,
.generador,
.generador-a,
.generador-b,
.generador-c,
.generador-d,
.guitarra,
.instruments-off,
.instruments-on,
.jack-instruments,
.jack-generador,
.led-off,
.led-on,
.pantalla-metronomo-1,
.pantalla-metronomo-2,
.pantalla-metronomo-3,
.pantalla-metronomo-4,
.pantalla-metronomo-5,
.pantalla-metronomo-6,
.pantalla-metronomo-7,
.pantalla-metronomo-8,
.pantalla-metronomo-9,
.pantalla-metronomo-10,
.ruleta-1,
.ruleta-2,
.saxo,
.topo-metronomo-generador,
.topo-metronomo-jack,
.topo-metronomo,
.violin,
.vista-2,
.vista-3,
.vista-4,
.vista-5,
.widget-boss,
.widget-integral,
.widget-junio,
.widget-kaotik,
.widget-linear,
.widget-permek {
    position: absolute;
    display: block;
}

.boton-nota,
.boton-instrumentos,
.boton-generador,
.boton-on-off,
.boton-play {
    transition: transform 0.08s ease-out,
        filter 0.08s ease-out;
    filter: drop-shadow(0px 3px 1px rgba(0, 0, 0, 0.4)) drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.2));
    transform-origin: center center;
}

.boton-pulsado {
    transform: scale(0.95) !important;
    filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0.0)) !important;
}

.draggable {
    user-select: none;
    transition: box-shadow 0.2s ease;
}

.instrumento-conectable {
    cursor: grab;
}

.instrumento-conectable:active {
    cursor: grabbing;
}

.boton-nota {
    left: 18.8%;
    top: 45.7%;
    width: 16.92%;
    z-index: 999;
}

.boton-instrumentos {
    left: 64%;
    top: 45.59%;
    width: 16.95%;
    z-index: 999;
}

.boton-generador {
    left: 31%;
    top: 52.6%;
    width: 17.95%;
    z-index: 999;
}

.boton-on-off {
    left: 34.6%;
    top: 45.71%;
    width: 30.45%;
    z-index: 999;
}

.boton-play {
    left: 49.70%;
    top: 52.03%;
    width: 19.77%;
    z-index: 999;
}

.dial {
    left: 56.19%;
    top: 61.16%;
    width: 38.78%;
    z-index: 1100 !important;
    transform-origin: center center;
    transition: transform 0.1s linear;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.generador {
    left: -72.03%;
    top: 26.06%;
    width: 45.85%;
    z-index: 1250 !important;
}

.generador-a {
    left: -72.03%;
    top: 26.06%;
    width: 45.85%;
    z-index: 1250 !important;
    display: none;
}

.generador-b {
    left: -72.03%;
    top: 26.06%;
    width: 45.85%;
    z-index: 1250 !important;
    display: none;
}

.generador-c {
    left: -72.03%;
    top: 26.06%;
    width: 45.85%;
    z-index: 1250 !important;
    display: none;
}

.generador-d {
    left: -72.03%;
    top: 26.06%;
    width: 45.85%;
    z-index: 1250 !important;
    display: none;
}

.generador,
.generador-d {
    left: -72.03%;
    top: 26.06%;
    width: 45.85%;
    z-index: 1250 !important;
}

.guitarra {
    left: 117%;
    top: 4.73%;
    width: 42.98%;
    z-index: 1400 !important;
}

.saxo {
    left: 117%;
    top: 3.9261%;
    width: 43.2612%;
    z-index: 1400 !important;
    display: none;
}

.violin {
    left: 117%;
    top: 4.77585%;
    width: 42.4293%;
    z-index: 1400 !important;
    display: none;
}

.jack-instruments {
    left: 96.992%;
    top: 58.2546%;
    width: 18.49%;
    z-index: 1150 !important;
}

.jack-generador {
    left: -15.727%;
    top: 58.7207%;
    width: 18.50%;
    transform: scaleX(-1);
    z-index: 1150 !important;
}

.topo-metronomo-generador {
    left: 5.6%;
    top: 56.3%;
    width: 9.05%;
    z-index: 1200 !important;
    -webkit-user-drag: none;
    opacity: 100%;
}

.topo-metronomo-jack {
    left: 85.6%;
    top: 56.3%;
    width: 9.0573%;
    z-index: 1200 !important;
    -webkit-user-drag: none;
    opacity: 100%;
}

.topo-metronomo {
    left: 91.4523%;
    top: 31.237%;
    width: 5.54529%;
    z-index: 1020;
    -webkit-user-drag: none;
}

.led-off {
    left: 16.6208%;
    top: 10.3941%;
    width: 4.15973%;
    z-index: 1010;
    -webkit-user-drag: none
}

.led-on {
    left: 16.6208%;
    top: 10.3941%;
    width: 4.15973%;
    z-index: 1010;
    display: none;
    -webkit-user-drag: none
}

.pantalla-metronomo-1 {
    left: 31.5%;
    top: 31.0809%;
    width: 4.8%;
    z-index: 1030;
    -webkit-user-drag: none
}

.pantalla-metronomo-2 {
    left: 66.1413%;
    top: 30.452%;
    width: 7.07856%;
    z-index: 1030;
    -webkit-user-drag: none;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity;
    perspective: 1000px;
}

.pantalla-metronomo-2.elemento-2d-oculto {
    opacity: 0 !important;
    pointer-events: none !important;
    animation: none !important;
}

.pantalla-metronomo-3 {
    left: 56.1618%;
    top: 21.3974%;
    width: 4.62107%;
    z-index: 1030;
    -webkit-user-drag: none
}

.pantalla-metronomo-4 {
    left: 53.3934%;
    top: 19.2108%;
    width: 7.57856%;
    z-index: 1030;
    -webkit-user-drag: none
}

.pantalla-metronomo-5 {
    left: 23.0178%;
    top: 27.8639%;
    width: 8.5%;
    z-index: 1030;
    -webkit-user-drag: none
}

.pantalla-metronomo-6 {
    left: 52.1001%;
    top: 15.7723%;
    width: 8.68762%;
    z-index: 1030;
    -webkit-user-drag: none
}

.pantalla-metronomo-7 {
    left: 45.449%;
    top: 25.4%;
    width: 10%;
    z-index: 1030;
    -webkit-user-drag: none
}

.pantalla-metronomo-8 {
    left: 32.1469%;
    top: 18.4%;
    width: 15.5268%;
    z-index: 1030;
    -webkit-user-drag: none
}

.pantalla-metronomo-9 {
    left: 65.0005%;
    top: 27.86%;
    width: 11%;
    z-index: 1030;
    -webkit-user-drag: none
}

.pantalla-metronomo-10 {
    left: 62.4462%;
    top: 19.6793%;
    width: 5.54529%;
    z-index: 1030;
    -webkit-user-drag: none
}

.ruleta-1 {
    left: 93.1%;
    top: 26.6%;
    width: 8.5%;
    z-index: 1200 !important;
}

.ruleta-2 {
    left: 93.1%;
    top: 26.6%;
    width: 8.5%;
    z-index: 1200 !important;
    display: none;
}

.ruleta-1,
.ruleta-2 {
    transition: opacity 0.05s ease-out;
}

.widget-boss,
.widget-integral,
.widget-junio,
.widget-kaotik,
.widget-linear,
.widget-permek {
    left: 0%;
    top: 0%;
    width: 20%;
    z-index: 2;
    display: none;
    -webkit-user-drag: none
}

.draggable,
.metronomo,
.mascara,
.dial {
    transition: transform 0.1s linear;
}

/* DISPLAY DE TEMPO */
@font-face {
    font-family: 'Digital';
    src: url('assets/digital.ttf') format('truetype');
}

.tempo-display {
    position: absolute;
    left: 48%;
    transform: translateX(-50%);
    top: 27.8%;
    z-index: 1030;
    font-family: 'Digital', monospace;
    font-size: calc(var(--m-unit) * 14.7) !important;
    line-height: 1;
    -webkit-user-drag: none;
    pointer-events: none;
}

.tempo-fondo {
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(79, 195, 247, 0.12);
}

.tempo-valor {
    position: relative;
    color: #4FC3F7;
}

.digito {
    display: inline-block;
    width: 0.48em;
    text-align: right;
}

.digito#digito-3,
.digito#digito-punto-fondo {
    width: 0.3em;
    margin-left: -0.15em;
}

/* ============================================
   GRÁFICO DE VOLUMEN
   ============================================ */
.volumen-grafico {
    position: absolute;
    left: 21.0%;
    top: 30%;
    width: 9%;
    height: 7%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 4%;
    z-index: 1030;
    padding: 0;
    -webkit-user-drag: none;
    pointer-events: none;
}

.volumen-barra {
    width: 16%;
    flex-shrink: 0;
    border-radius: 1px;
    transition: all 0.15s ease-out;
    position: relative;
    background: transparent;
}

.volumen-barra[data-barra="1"] {
    height: 20%;
}

.volumen-barra[data-barra="2"] {
    height: 35%;
}

.volumen-barra[data-barra="3"] {
    height: 50%;
}

.volumen-barra[data-barra="4"] {
    height: 70%;
}

.volumen-barra[data-barra="5"] {
    height: 90%;
}

.volumen-barra.activa {
    background: linear-gradient(180deg,
            #7dd8f7 0%,
            #4fc3f7 20%,
            #29b6f6 50%,
            #0288d1 80%,
            #01579b 100%) !important;
}

/* ============================================
   ESTADO DE BIENVENIDA - PARPADEO
   ============================================ */

.tempo-display.parpadeando .tempo-valor {
    animation: parpadeoTempo 0.8s ease-in-out infinite;
}

@keyframes parpadeoTempo {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.boton-play.glow-verde {
    filter: drop-shadow(0px 3px 1px rgba(0, 0, 0, 0.4)) drop-shadow(0px 0px 3px rgba(0, 255, 0, 0.64)) drop-shadow(0px 0px 6px rgba(0, 255, 0, 0.64)) drop-shadow(0px 0px 10px rgba(0, 255, 0, 0.51));
}

.boton-play.glow-verde.parpadeando {
    animation: parpadeoGlowVerde 0.8s ease-in-out infinite;
}

@keyframes parpadeoGlowVerde {

    0%,
    100% {
        filter: drop-shadow(0px 3px 1px rgba(0, 0, 0, 0.4)) drop-shadow(0px 0px 3px rgba(0, 255, 0, 0.64)) drop-shadow(0px 0px 6px rgba(0, 255, 0, 0.64)) drop-shadow(0px 0px 10px rgba(0, 255, 0, 0.51));
    }

    50% {
        filter: drop-shadow(0px 3px 1px rgba(0, 0, 0, 0.4)) drop-shadow(0px 0px 1px rgba(0, 255, 0, 0.32)) drop-shadow(0px 0px 2px rgba(0, 255, 0, 0.19));
    }
}

.boton-play.glow-rojo {
    filter: drop-shadow(0px 3px 1px rgba(0, 0, 0, 0.4)) drop-shadow(0px 0px 3px rgba(255, 0, 0, 0.64)) drop-shadow(0px 0px 6px rgba(255, 0, 0, 0.64)) drop-shadow(0px 0px 10px rgba(255, 0, 0, 0.51));
}

/* ============================================
   SECUENCIA DE ARCOS
   ============================================ */
.contenedor-arcos {
    position: absolute;
    left: 15.7%;
    top: 9.3%;
    width: 67.8%;
    aspect-ratio: 2 / 1;
    height: auto;
    z-index: 1030;
    pointer-events: none;
    overflow: hidden;
    transform-origin: bottom center;
    transform: scaleY(0.98);
}

.arco-segmento {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    border-radius: 50%;
    box-sizing: border-box;
    border-style: solid;
    border-color: rgba(0, 170, 228, 0.15);
    clip-path: polygon(50% 50%, calc(50% + 1px) 0%, 100% 0%);
    transition: opacity 0.1s, border-color 0.1s, filter 0.1s;
    transform-origin: center center;
}

.arco-segmento.activo {
    border-color: #00aae4;
    filter: drop-shadow(0 0 1vw rgba(0, 170, 228, 0.6));
    z-index: 2;
}

.arco-1 {
    transform: rotate(-90deg);
}

.arco-2 {
    transform: rotate(-45deg);
}

.arco-3 {
    transform: rotate(0deg);
}

.arco-4 {
    transform: rotate(45deg);
}

/* ============================================
   ANIMACIÓN PARPADEO ROJO (PAUSA)
   ============================================ */

@keyframes parpadeoGlowRojo {

    0%,
    100% {
        filter: drop-shadow(0px 3px 1px rgba(0, 0, 0, 0.4)) drop-shadow(0px 0px 3px rgba(255, 0, 0, 0.64)) drop-shadow(0px 0px 6px rgba(255, 0, 0, 0.64)) drop-shadow(0px 0px 10px rgba(255, 0, 0, 0.51));
    }

    50% {
        filter: drop-shadow(0px 3px 1px rgba(0, 0, 0, 0.4)) drop-shadow(0px 0px 1px rgba(255, 0, 0, 0.32)) drop-shadow(0px 0px 2px rgba(255, 0, 0, 0.19));
    }
}

.boton-play.glow-rojo.parpadeando {
    animation: parpadeoGlowRojo 0.8s ease-in-out infinite;
}

/* ============================================
   EFECTOS DE ESTADO
   ============================================ */

@keyframes parpadeoArcoVerde {

    0%,
    100% {
        border-color: #00d857;
        filter: drop-shadow(0 0 1vw rgba(0, 216, 87, 0.8));
        opacity: 1;
    }

    50% {
        border-color: rgba(0, 216, 87, 0.05);
        filter: none;
        opacity: 0.5;
    }
}

.arco-parpadeo-verde {
    animation: parpadeoArcoVerde 0.8s ease-in-out infinite;
    z-index: 2;
}

@keyframes parpadeoArcoRojo {

    0%,
    100% {
        border-color: #ff0000;
        filter: drop-shadow(0 0 1vw rgba(255, 0, 0, 0.8));
        opacity: 1;
    }

    50% {
        border-color: rgba(255, 0, 0, 0.05);
        filter: none;
        opacity: 0.5;
    }
}

.arco-parpadeo-rojo {
    animation: parpadeoArcoRojo 0.8s ease-in-out infinite;
    z-index: 2;
}

@keyframes parpadeoSimple {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.parpadeo-default {
    animation: parpadeoSimple 0.8s ease-in-out infinite;
}

.punto-beat-golpe {
    opacity: 0.3 !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transition: all 0.05s ease-out;
}

.estatico-tenue {
    opacity: 0.3 !important;
    animation: none !important;
    filter: none !important;
    transition: opacity 0.3s ease;
}

@keyframes parpadeoPuntoSincrono {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.parpadeo-default {
    animation: parpadeoPuntoSincrono 0.8s ease-in-out infinite;
}

/* ============================================
   TÍTULO 3D VIEW
   ============================================ */
.titulo-3d {
    font-size: 24px;
    font-weight: 500;
    color: #0288d1;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-text-3d {
    position: absolute;
    left: 100%;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 30px;
    width: 22vw;
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    color: #ffffff;
    font-weight: 300;
    display: none;
    z-index: 2000;
    pointer-events: none;
    user-select: none;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.9);
}

/* ============================================
   CONTENEDOR SYNTHWAVE + OSCILOSCOPIO
   ============================================ */
.synthwave-container {
    position: absolute;
    z-index: 1260;
    pointer-events: none;
    user-select: none;
}

.synthwave-label {
    position: absolute;
    color: #00aae4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    text-shadow: 0 0 8px rgba(0, 170, 228, 0.6);
    text-align: center;
    transform: translateX(-50%);
    transition: opacity 0.5s ease-out;
}

@keyframes parpadeoElectricoTexto {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 0.8;
    }

    5% {
        opacity: 0;
    }

    8% {
        opacity: 0.6;
    }

    12% {
        opacity: 0;
    }

    15% {
        opacity: 0.9;
    }

    18% {
        opacity: 0.2;
    }

    22% {
        opacity: 0.7;
    }

    25% {
        opacity: 0.1;
    }

    28% {
        opacity: 0.8;
    }

    32% {
        opacity: 0;
    }

    35% {
        opacity: 0.6;
    }

    40% {
        opacity: 0;
    }

    45% {
        opacity: 0.9;
    }

    48% {
        opacity: 0.2;
    }

    52% {
        opacity: 0.7;
    }

    55% {
        opacity: 0.1;
    }

    60% {
        opacity: 1;
    }

    65% {
        opacity: 0.3;
    }

    70% {
        opacity: 0.9;
    }

    75% {
        opacity: 0.5;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.synthwave-label.parpadeo-electrico {
    animation: parpadeoElectricoTexto 1.2s ease-out forwards;
}

.synthwave-label.fade-out {
    opacity: 0 !important;
    animation: none;
}

.osciloscopio {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.osciloscopio.visible {
    opacity: 1;
}

.osciloscopio-rejilla {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(0, 170, 228, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 170, 228, 0.15) 1px, transparent 1px);
    background-size: 10% 20%;
    border: 1px solid rgba(0, 170, 228, 0.3);
    border-radius: 2px;
}

.osciloscopio-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* ============================================
   MANOS INDICADORAS DE ARRASTRE
   ============================================ */
.mano-hint {
    position: absolute;
    display: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    z-index: 1100 !important;
    opacity: 0;
    width: 6%;
    height: auto;
}

.mano-instrumentos {
    left: 100%;
    top: 68%;
    transform: translateY(-50%);
}

.mano-generador {
    left: -8%;
    top: 68%;
    transform: translateY(-50%) scaleX(-1);
}

@keyframes deslizarManoIzquierda {
    0% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-50%) translateX(-30px);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

@keyframes deslizarManoIzquierdaVolteada {
    0% {
        transform: translateY(-50%) scaleX(-1) translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-50%) scaleX(-1) translateX(-30px);
        opacity: 1;
    }

    100% {
        transform: translateY(-50%) scaleX(-1) translateX(0);
        opacity: 1;
    }
}

.mano-instrumentos.animando {
    display: block;
    opacity: 1;
    animation: deslizarManoIzquierda 0.6s ease-in-out 3;
}

.mano-generador.animando {
    display: block;
    opacity: 1;
    animation: deslizarManoIzquierdaVolteada 0.6s ease-in-out 3;
}

.mano-hint.fade-out {
    animation: none;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* ============================================
   PARPADEO AMARILLO (INTENSO)
   ============================================ */
@keyframes parpadeoGlowAmarillo {

    0%,
    100% {
        filter: drop-shadow(0px 0px 8px rgba(255, 215, 0, 1)) drop-shadow(0px 0px 25px rgba(255, 200, 0, 0.8)) brightness(1.1);
    }

    50% {
        filter: drop-shadow(0px 0px 4px rgba(255, 215, 0, 0.5)) brightness(1.0);
        transform: scale(0.98);
    }
}

.glow-amarillo {
    animation: parpadeoGlowAmarillo 0.6s ease-in-out infinite !important;
}

.nota-display {
    position: absolute;
    left: 38.3%;
    top: 21.8%;
    z-index: 1030;
    font-family: 'Digital', monospace;
    color: #4FC3F7;
    font-size: calc(var(--m-unit) * 6.1) !important;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 5px rgba(79, 195, 247, 0.4);
    transition: opacity 0.2s ease-out;
}

/* =========================================
   BOTÓN SHARE Y PANEL
   ========================================= */
.boton-share-superior {
    position: absolute;
    top: 3%;
    right: 3%;
    width: 4vw;
    height: 4vw;
    max-width: 40px;
    max-height: 40px;
    min-width: 25px;
    min-height: 25px;
    z-index: 2000;
    cursor: pointer;
    color: #4FC3F7;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.boton-share-superior svg {
    width: 60%;
    height: 60%;
}

.boton-share-superior:hover {
    transform: scale(1.1);
    background: rgba(79, 195, 247, 0.1);
    filter: drop-shadow(0 0 5px #4FC3F7);
}

.oculto-por-ondas {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
    animation: none !important;
    filter: none !important;
}

.pantalla-metronomo-2.oculto-por-ondas {
    display: none !important;
    animation: none !important;
}

.wave-overlay {
    position: absolute;
    display: none;
    z-index: 1030;
    width: 68%;
    height: auto;
    pointer-events: auto;
    cursor: pointer;
    filter: none;
    box-shadow: none;
    transition: opacity 0.3s ease;
}

.info-texto,
.mod-label {
    font-family: 'Digital', monospace;
    color: #4FC3F7;
    position: absolute;
    z-index: 1030;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 5px rgba(79, 195, 247, 0.4);
}

.info-hz {
    left: 26%;
    top: 35.5%;
    font-size: 1.1vw;
}

.info-v {
    left: 50%;
    top: 35.5%;
    font-size: 1.1vw;
}

.info-pct {
    left: 73.5%;
    top: 35.5%;
    font-size: 1.1vw;
}

.mod-level-container {
    position: absolute;
    left: 21%;
    top: 30.5%;
    width: 12%;
    height: 4%;
    z-index: 1030;
    pointer-events: none;
}

.mod-label {
    position: relative;
    font-size: 0.8vw;
    margin-bottom: 2px;
    width: 100%;
    text-align: left;
}

.mod-bars-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.mod-bar {
    width: 8%;
    background-color: rgba(79, 195, 247, 0.15);
    border-radius: 1px;
    transition: background-color 0.1s;
}

.mod-bar.active {
    background-color: #00aae4;
    box-shadow: 0 0 5px rgba(0, 170, 228, 0.8);
}

.mini-onda-canvas {
    position: absolute;
    left: 35.5%;
    top: 26.8%;
    width: 28.5%;
    height: 8.5%;
    z-index: 1030;
    pointer-events: none;
}

.elemento-onda-exclusivo {
    display: none;
    pointer-events: none;
}

.elemento-onda-exclusivo.activo {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mod-level-container,
.mini-onda-canvas,
.info-cluster {
    z-index: 1030;
    pointer-events: none !important;
}

.wave-overlay {
    pointer-events: auto;
}

.led-conexion {
    position: absolute;
    width: 1.4%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    z-index: 1030;
    display: none;
    pointer-events: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

#led-status-generador {
    left: 71.32%;
    top: 33%;
}

#led-status-instrumentos {
    left: 75.1%;
    top: 29.8%;
}

.led-rojo-blink {
    background-color: #ff3333;
    box-shadow: 0 0 0.8vw #ff0000;
    animation: parpadeoLed 0.4s infinite alternate;
}

.led-verde-fijo {
    background-color: #00ff00;
    box-shadow: 0 0 0.8vw #00ff00;
    animation: none;
}

@keyframes parpadeoLed {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.3;
        transform: scale(0.9);
    }
}

@keyframes flashNotaAccion {
    0% {
        transform: scale(1);
        color: #4FC3F7;
        text-shadow: 0 0 5px rgba(79, 195, 247, 0.4);
    }

    15% {
        transform: scale(1.3);
        color: #ffffff;
        text-shadow: 0 0 20px #ffffff, 0 0 40px #4FC3F7;
    }

    100% {
        transform: scale(1);
        color: #4FC3F7;
        text-shadow: 0 0 5px rgba(79, 195, 247, 0.4);
    }
}

.animacion-flash-nota {
    animation: flashNotaAccion 0.3s ease-out forwards;
}

.contenedor-metronomo:has(.contenedor-3d.activo)::before {
    opacity: 1;
}

/* ============================================
   ACTUALIZACIÓN ESTILOS VISTA 3D
   ============================================ */

.mouse-hint {
    position: absolute;
    left: 0;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    margin-left: -22vw;
    margin-right: 0;
    width: 15vw;
    height: auto;
    z-index: 2000;
    display: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.info-text-3d {
    position: absolute;
    left: 100%;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 30px;
    margin-right: 0;
    width: 22vw;
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    color: #ffffff;
    font-weight: 300;
    display: none;
    z-index: 2000;
    pointer-events: none;
    user-select: none;
}

.titulo-3d {
    font-size: 28px;
    font-weight: 600;
    color: #00d4ff;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3);
}

/* ============================================
   ALERTA DE VOLUMEN
   ============================================ */
.volume-alert {
    position: absolute;
    top: -2%;
    left: -4%;
    transform: translateX(-50%) scale(1.1);
    font-size: 0.85vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.5em 1.2em;
    width: auto;
    white-space: nowrap;
    background: rgba(10, 25, 40, 0.95);
    border: 0.15em solid #4FC3F7;
    border-radius: 5em;
    filter: drop-shadow(0 0 0.5em rgba(0, 0, 0, 0.6));
    z-index: 5000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
    user-select: none;
}

.volume-alert.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.volume-alert::after {
    content: '';
    position: absolute;
    width: 1.5em;
    height: 1.5em;
    background: rgba(10, 25, 40, 0.95);
    border-bottom: 0.15em solid #4FC3F7;
    border-right: 0.15em solid #4FC3F7;
    transform: rotate(45deg);
    bottom: -0.75em;
    left: 78%;
    margin-left: -0.4em;
    z-index: 1;
}

.volume-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4FC3F7;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.volume-icon svg {
    width: 1.8em;
    height: 1.8em;
}

.volume-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    line-height: 1;
    font-weight: 500;
    text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* ============================================================
   BADGE "TÓCALO TODO"
   ============================================================ */
.tocalo-todo-badge {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    animation: tocaloFlota 2.8s ease-in-out infinite;
    transition: opacity 0.6s ease;
}

.tocalo-todo-badge.oculto {
    opacity: 0 !important;
    animation: none !important;
    transform: translate(-50%, -50%) scale(0.88) !important;
}

@keyframes tocaloFlota {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}


/* ============================================
   SISTEMA DE NOTIFICACIONES TOAST (EMMERSON)
   ============================================ */

#toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    padding: 18px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 320px;
    max-width: 500px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-notification.hide {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.toast-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: none;
}

.toast-notification.success {
    border-left: 4px solid #27ae60;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.toast-notification.success .icon-success {
    display: block;
    color: #27ae60;
}

.toast-notification.error {
    border-left: 4px solid #e74c3c;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

.toast-notification.error .icon-error {
    display: block;
    color: #e74c3c;
}

.toast-message {
    flex: 1;
    margin: 0;
}

.toast-close {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #333;
}




/* ================================================================
   VIDEO PLACEHOLDERS (Placeholders de carga para videos)
   ================================================================ */

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    border-radius: inherit;
    /* Hereda el border-radius del contenedor */
}

.video-placeholder.active {
    opacity: 1;
    visibility: visible;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

.video-loader img {
    width: 60px;
    height: 60px;
    animation: pulse-loader 1.5s ease-in-out infinite;
}

@keyframes pulse-loader {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .video-loader img {
        width: 45px;
        height: 45px;
    }
}

.carousel-wrapper {
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.7);
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav img {
    width: 50px;
    height: auto;
    display: block;
}

.carousel-nav-prev {
    left: 20px;
}

.carousel-nav-next {
    right: 20px;
}

/* Ocultar el banner de recomendación en iPads y Escritorios */
@media (max-width: 768px) {
    #desktop-notice-banner {
        display: block;
    }
}

/* ============================================
   BANNER AVISO ESCRITORIO (móvil)
   ============================================ */
#desktop-notice-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #111;
    border-top: 1px solid #333;
    border-radius: 20px 20px 0 0;
    padding: 16px 20px 28px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
}

#desktop-notice-banner.active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    #desktop-notice-banner {
        display: block;
    }
}

.banner-drag-handle {
    width: 40px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    margin: 0 auto 14px;
}

.banner-content p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
}

.banner-content strong {
    color: #fff;
}

.banner-accept-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.modal a.enlace-clasico,
.modal a.enlace-clasico strong {
    color: #0066cc !important;
}

.modal a.enlace-clasico:hover,
.modal a.enlace-clasico:hover strong {
    color: #004499 !important;
}