/* Estilos principales del portafolio */

:root {
    --linear-ease: linear(
        0, .068, .19 2.7%, .804 8.1%, 1.037, 1.199 13.2%, 1.245, 1.27 15.8%,
        1.274, 1.272 17.4%, 1.249 19.1%, .996 28%, .949, .928 33.3%, .926,
        .933 36.8%, 1.001 45.6%, 1.013, 1.019 50.8%, 1.018 54.4%, 1 63.1%,
        .995 68%, 1.001 85%, 1
    );
    --color-1: #00e5d4;
    --color-2: #ffffff;
    --color-3: #2dd4bf;
    --color-4: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #06060e !important;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Bloqueo de desplazamiento para la portada (Hero) */
body.no-scroll,
.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
}

.scanner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Capa superior para el contenido */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding-top: 70px;
    padding-bottom: 40px;
}

/* =========================================
   COMPONENTE PARTICLE TEXT (React Bits)
   ========================================= */
.particle-text-container {
    width: 100%;
    max-width: 1400px;
    height: 185px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px;
    pointer-events: none;
    overflow: visible;
}

#particleTextCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    max-width: 1400px;
    height: 560px;
    display: block;
    pointer-events: none;
    overflow: visible;
}

/* Asegurar que botones y enlaces del Hero reciban clics sin interferencias */
.hero-content h1,
.hero-content p,
.hero-content .btn,
.hero-content .d-flex {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

@media (max-height: 850px) {
    .particle-text-container {
        height: 160px;
        margin-bottom: 5px;
    }
    #particleTextCanvas {
        height: 540px;
    }
}

@media (max-width: 768px) {
    .particle-text-container {
        height: 115px;
        margin-bottom: 5px;
    }
    #particleTextCanvas {
        height: 420px;
    }
}

/* Sección de proyectos: ajuste de espaciado limpio con respecto a la navbar fija */
.projects-section {
    scroll-margin-top: 90px;
    padding-top: 105px;
    padding-bottom: 70px;
    min-height: calc(100vh - 120px);
}

@media (max-width: 768px) {
    .projects-section {
        padding-top: 95px;
        padding-bottom: 45px;
    }
}

/* =========================================
   ESTADO INICIAL: barra de categorías oculta
   Se revela al hacer clic en "Explorar Proyectos"
   ========================================= */
#nav-categories-wrapper {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, max-width 0.45s cubic-bezier(0.25, 1, 0.5, 1), transform 0.35s ease;
    transform: translateY(-4px) scale(0.97);
}

#nav-categories-wrapper.nav-categories-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-width: 1400px;
    transform: translateY(0) scale(1);
    overflow: visible;
    flex-shrink: 1;
}

/* =========================================
   LOGOTIPO INDEPENDIENTE (Esquina Superior Izquierda)
   ========================================= */
.navbar-brand-standalone {
    position: fixed;
    top: 18px;
    left: 32px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.navbar-brand-standalone .brand-logo-img {
    height: 68px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 0 16px rgba(0, 229, 212, 0.45));
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.navbar-brand-standalone:hover .brand-logo-img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 24px rgba(0, 229, 212, 0.85));
}

@media (max-width: 768px) {
    .navbar-brand-standalone {
        top: 14px;
        left: 18px;
    }
    .navbar-brand-standalone .brand-logo-img {
        height: 46px;
        max-width: 180px;
    }
}

/* =========================================
   BARRA DE NAVEGACIÓN CENTRAL (Flotante & Compactable)
   ========================================= */
.header-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    pointer-events: none;
    transition: padding-top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header-nav-container.header-scrolled {
    padding-top: 12px;
}

/* =========================================
   COMPONENTE GOOEY NAV (React Bits → Vanilla CSS)
   ========================================= */
.gooey-nav-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(10, 15, 29, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 229, 212, 0.12);
    padding: 4px;
    pointer-events: auto;
    isolation: isolate;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-nav-container.header-scrolled .gooey-nav-container {
    background: rgba(10, 15, 28, 0.88);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 229, 212, 0.18);
    transform: translateY(0) scale(0.96);
}

.gooey-nav-container nav {
    display: flex;
    position: relative;
    transform: translateZ(0.01px);
}

.gooey-nav-container nav ul {
    display: flex;
    gap: 0.5em;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 3;
    color: #fff;
    text-shadow: 0 1px 1px hsl(205deg 30% 10% / 0.2);
}

.gooey-nav-container nav ul li {
    border-radius: 100vw;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0.5px 1.5px transparent;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.92rem;
    user-select: none;
}

.gooey-nav-container nav ul li a {
    display: inline-block;
    padding: 0.6em 1.25em;
    color: inherit;
    text-decoration: none;
    border-radius: 100vw;
    transition: color 0.2s ease;
}

.gooey-nav-container nav ul li:hover a {
    color: #fff;
}

.gooey-nav-container nav ul li:focus-within:has(:focus-visible) {
    box-shadow: 0 0 0.5px 1.5px #fff;
}

.gooey-nav-container nav ul li:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 100vw;
    background: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: -1;
}

.gooey-nav-container nav ul li.active {
    color: #000;
    text-shadow: none;
}

.gooey-nav-container nav ul li.active a {
    opacity: 0;
}

.gooey-nav-container nav ul li.active:after {
    opacity: 1;
    transform: scale(1);
}

.gooey-nav-container .effect {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 1;
    pointer-events: none;
    display: grid;
    place-items: center;
    z-index: 1;
}

.gooey-nav-container .effect.text {
    color: #fff;
    transition: color 0.3s ease;
    font-weight: 600;
    font-size: 0.92rem;
    user-select: none;
    z-index: 4;
}

.gooey-nav-container .effect.text.active {
    color: #000;
}

.gooey-nav-container .effect.filter {
    filter: url('#gooeyNavFilter');
    -webkit-filter: url('#gooeyNavFilter');
}

.gooey-nav-container .effect.filter:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    transform: scale(0);
    opacity: 0;
    z-index: -1;
    border-radius: 100vw;
}

.gooey-nav-container .effect.active:after {
    animation: pill 0.3s ease both;
}

@keyframes pill {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.particle,
.point {
    display: block;
    opacity: 0;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    transform-origin: center;
}

.particle {
    --time: 5s;
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    animation: particle calc(var(--time)) ease 1 -0.35s;
}

.point {
    background: var(--color);
    opacity: 1;
    animation: point calc(var(--time)) ease 1 -0.35s;
}

@keyframes particle {
    0% {
        transform: rotate(0) translate(calc(var(--start-x)), calc(var(--start-y)));
        opacity: 1;
        animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
    }
    70% {
        transform: rotate(calc(var(--rotate) * 0.5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2));
        opacity: 1;
        animation-timing-function: ease;
    }
    85% {
        transform: rotate(calc(var(--rotate) * 0.66)) translate(calc(var(--end-x)), calc(var(--end-y)));
        opacity: 1;
    }
    to {
        transform: rotate(calc(var(--rotate) * 1.2)) translate(calc(var(--end-x) * 0.5), calc(var(--end-y) * 0.5));
        opacity: 1;
    }
}

@keyframes point {
    0% {
        transform: scale(0);
        opacity: 0;
        animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
    }
    25% {
        transform: scale(calc(var(--scale) * 0.25));
    }
    38% {
        opacity: 1;
    }
    65% {
        transform: scale(var(--scale));
        opacity: 1;
        animation-timing-function: ease;
    }
    85% {
        transform: scale(var(--scale));
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .header-nav-container {
        padding-top: 10px;
    }
    .gooey-nav-container {
        padding: 3px;
        max-width: 96vw;
    }
    .gooey-nav-container nav ul {
        gap: 0.2em;
    }
    .gooey-nav-container nav ul li {
        font-size: 0.82rem;
    }
    .gooey-nav-container nav ul li a {
        padding: 0.5em 0.85em;
    }
}

#nav-categories-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 2px 0;
    overflow: visible !important;
}

.custom-navbar .navbar-nav::-webkit-scrollbar {
    display: none;
}

/* =========================================
   ANIMACIÓN GOOEY NAV (React Bits Vanilla)
   ========================================= */
.gooey-nav-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    overflow: visible;
}

/* Capa de efecto viscoso con filtro SVG */
.gooey-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    filter: url('#goo');
    overflow: visible;
}

/* Pastilla líquida flotante */
.gooey-pill {
    position: absolute;
    top: 0;
    left: 0;
    background: #00b4a7;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 18px rgba(0, 180, 167, 0.75), 0 0 8px rgba(0, 229, 212, 0.5);
    opacity: 0;
    pointer-events: none;
    will-change: transform, width, height;
}

/* Contenedor de burbujas/partículas */
.gooey-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Burbujas metaball individuales */
.gooey-bubble {
    position: absolute;
    top: 0;
    left: 0;
    background: #00b4a7;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.55s ease-out;
}

/* Botones de categoría sobre el efecto líquido */
.nav-category-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #cbd5e1;
    text-decoration: none;
    background: transparent !important;
    border: 1px solid transparent;
    transition: color 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 1280px) {
    .nav-category-btn {
        padding: 5px 10px;
        font-size: 0.78rem;
        gap: 5px;
    }
}

.nav-category-btn:hover {
    color: #ffffff;
    background: transparent !important;
    border-color: transparent;
    transform: none;
}

.nav-category-btn.active {
    color: #ffffff;
    font-weight: 600;
    background: transparent !important;
    border-color: transparent;
    box-shadow: none;
}


/* Badge y Botones estilo React Bits */
.badge-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: #e2e8f0;
    display: inline-block;
}

.btn-main {
    background: linear-gradient(135deg, #00b4a7 0%, #007c72 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    padding: 10px 24px;
    border: 1px solid rgba(0, 229, 212, 0.35);
    box-shadow: 0 4px 16px rgba(0, 180, 167, 0.3);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #00c9b7 0%, #008f84 100%);
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(0, 180, 167, 0.55);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 24px;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary-glass:hover {
    background: rgba(0, 180, 167, 0.12);
    border-color: rgba(0, 180, 167, 0.4);
    box-shadow: 0 0 14px rgba(0, 180, 167, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

/* =========================================
   SECCIÓN PROYECTOS DESTACADOS
   ========================================= */
.projects-section {
    position: relative;
    z-index: 10;
    padding: 90px 0 110px;
}

/* Barra de Filtros */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.filter-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.filter-pill.active {
    color: #ffffff;
    background: #00bba6;
    border-color: #00bba6;
    box-shadow: 0 4px 16px rgba(0, 187, 166, 0.4);
}

/* Tarjetas de Proyecto */
.project-card {
    position: relative;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out, border-color 0.35s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 180, 167, 0.45);
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 180, 167, 0.35), 0 0 12px rgba(0, 229, 212, 0.2);
}

/* Contenedor de Imagen y Zoom */
.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #000000;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

/* Badge de categoría en la esquina de la imagen */
.card-category-badge {
    display: none !important;
}

/* Cuerpo de la tarjeta */
.project-card-body {
    background: #000000;
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.35;
}

.project-card-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mini Badges de Tecnologías */
.tech-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

/* Botón inferior de acción */
.btn-card-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    margin-top: auto;
}

.btn-card-action:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Grupo de botones de acción en tarjetas de proyectos */
.card-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.card-action-group .btn-card-action {
    margin-top: 0;
    flex: 1;
}

/* Botón llamativo para visitar la página principal o web promocional del proyecto */
.btn-card-demo {
    background: linear-gradient(135deg, rgba(0, 229, 212, 0.16) 0%, rgba(139, 92, 246, 0.16) 100%);
    border: 1px solid rgba(0, 229, 212, 0.45);
    color: #5eead4 !important;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-card-demo:hover {
    background: linear-gradient(135deg, #00e5d4 0%, #8b5cf6 100%);
    color: #06060e !important;
    border-color: #5eead4;
    box-shadow: 0 4px 18px rgba(0, 229, 212, 0.4);
    transform: translateY(-2px);
}

/* Badge flotante en la esquina superior de la imagen para proyectos con enlace web */
.card-promo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 229, 212, 0.45);
    color: #5eead4 !important;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.card-promo-badge:hover {
    background: #00e5d4;
    color: #06060e !important;
    box-shadow: 0 4px 14px rgba(0, 229, 212, 0.5);
    transform: scale(1.05);
}

/* =========================================
   FOOTER MINIMALISTA
   ========================================= */
.custom-footer {
    position: relative;
    z-index: 10;
    background: rgba(6, 6, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 0 30px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* =========================================
   GALERÍA ACORDEÓN (AccordionGallery)
   Basado en el componente AccordionGallery de React Bits
   ========================================= */
.accordion-gallery {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    height: 450px;
    margin-top: 16px;
}

.accordion-item {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.accordion-item:hover,
.accordion-item.active {
    flex: 3.5;
}

/* Imagen de fondo */
.accordion-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.75);
}

.accordion-item:hover img,
.accordion-item.active img {
    transform: scale(1.06);
    filter: brightness(0.6);
}

/* Degradado inferior oscuro para legibilidad del label */
.accordion-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 35%,
        rgba(0, 0, 0, 0.80) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Etiqueta/Label flotante en la esquina inferior izquierda */
.accordion-label {
    position: absolute;
    bottom: 22px;
    left: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
    pointer-events: none;
    min-width: 0;
    max-width: calc(100% - 44px);
}

.accordion-item:hover .accordion-label,
.accordion-item.active .accordion-label {
    opacity: 1;
    transform: translateY(0);
}

/* Número de índice lateral (visible siempre) */
.accordion-index {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.accordion-item:hover .accordion-index,
.accordion-item.active .accordion-index {
    color: rgba(255, 255, 255, 0.9);
}

.accordion-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(82, 39, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(82, 39, 255, 0.4);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.04em;
    width: fit-content;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accordion-tech-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
}

.accordion-tech-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 2px 9px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #e2e8f0;
    white-space: nowrap;
}

/* =========================================
   TRANSICIÓN DE VISTAS (Grid ↔ Acordeón)
   ========================================= */
#projects-grid {
    transition: opacity 0.3s ease;
}

#projects-grid.hidden-view {
    display: none !important;
}

#accordionGallery.hidden-view {
    display: none !important;
}

/* =========================================
   PANEL ADMINISTRATIVO & LOGIN (Devioz Admin)
   ========================================= */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: rgba(18, 18, 30, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.15);
}

.form-control-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control-glass:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
    color: #ffffff !important;
}

.form-control-glass::placeholder {
    color: #64748b !important;
}

.form-label-custom {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Navbar Admin */
.admin-navbar {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Tabla oscura Glassmorphism */
.admin-table-container {
    background: rgba(18, 18, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.admin-table {
    margin-bottom: 0;
    color: #e2e8f0;
    vertical-align: middle;
    width: 100%;
}

.admin-table thead th {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    color: #f1f5f9;
}

.admin-table th:first-child,
.admin-table td:first-child {
    padding-left: 24px;
}

.admin-table th:last-child,
.admin-table td:last-child {
    padding-right: 24px;
}

.admin-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-thumb-img {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: inline-block;
}

.admin-thumb-img:hover {
    transform: scale(1.08);
    border-color: rgba(0, 229, 212, 0.5);
    box-shadow: 0 6px 16px rgba(0, 229, 212, 0.25);
}

/* Botones de acción */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-action-edit:hover {
    background: rgba(0, 180, 167, 0.2);
    border-color: rgba(0, 180, 167, 0.5);
    color: #5eead4;
    transform: translateY(-2px);
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    transform: translateY(-2px);
}

/* =========================================
   LAYOUT UNIFICADO ADMIN (100% Pantalla Completa)
   ========================================= */
.admin-full-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #06060e;
    overflow-x: hidden;
}

/* Contenedor Principal de Ancho Completo */
.admin-main-col {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    height: auto;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    background: #06060e;
    position: relative;
    overflow-x: hidden;
}

/* Encabezado con ParticleText Canvas Centrado */
.admin-particle-header {
    height: 105px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 22, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    flex-shrink: 0;
}

.admin-header-center {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 540px;
    margin: 0 auto;
}

#adminParticleText {
    width: 100%;
    max-width: 500px;
    height: 85px;
    display: block;
    cursor: default;
}

/* Contenido de gestión de proyectos a lo ancho de la pantalla */
.admin-content-area {
    flex: 1;
    padding: 32px 40px 48px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* =========================================
   BARRA DE BÚSQUEDA DEL ADMIN (Glassmorphism Oscuro)
   ========================================= */
.admin-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 320px;
}

.admin-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.admin-search-box:focus-within .admin-search-icon {
    color: #00e5d4;
}

.admin-search-input {
    background: rgba(18, 18, 32, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 10px 16px 10px 42px !important;
    font-size: 0.88rem !important;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease !important;
    box-shadow: none !important;
}

.admin-search-input:focus {
    background: rgba(22, 22, 40, 0.95) !important;
    border-color: rgba(0, 229, 212, 0.55) !important;
    box-shadow: 0 0 16px rgba(0, 229, 212, 0.2) !important;
    color: #ffffff !important;
}

.admin-search-input::placeholder {
    color: #64748b !important;
}

@media (max-width: 992px) {
    .admin-content-area {
        padding: 24px 18px 40px;
    }
    .admin-search-box {
        min-width: 100%;
    }
}

/* =========================================
   COMPONENTE 3D INFINITE SPIRAL & RESALTADO
   ========================================= */
@import url('infinite-spiral.css');

/* Resaltado interactivo de tarjeta al navegar desde la Espiral 3D */
@keyframes pulseProjectCard {
    0% {
        border-color: rgba(0, 229, 212, 0.4);
        box-shadow: 0 0 20px rgba(0, 229, 212, 0.3), 0 10px 30px rgba(0, 0, 0, 0.7);
        transform: translateY(-4px) scale(1.01);
    }
    50% {
        border-color: #00e5d4;
        box-shadow: 0 0 45px rgba(0, 229, 212, 0.8), 0 22px 50px rgba(0, 0, 0, 0.9);
        transform: translateY(-10px) scale(1.035);
    }
    100% {
        border-color: #00e5d4;
        box-shadow: 0 0 32px rgba(0, 229, 212, 0.6), 0 18px 40px rgba(0, 0, 0, 0.85);
        transform: translateY(-8px) scale(1.025);
    }
}

.project-card-highlight {
    border-color: #00e5d4 !important;
    animation: pulseProjectCard 1.4s ease-in-out infinite alternate !important;
    z-index: 10 !important;
    position: relative;
}

/* ==========================================================================
   ESTUDIO DE CREACIÓN & EDICIÓN DE PROYECTOS (Admin Modern Editor Studio)
   ========================================================================== */

/* Contenedor y Paneles Glass */
.editor-glass-panel {
    background: rgba(15, 15, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.editor-glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

/* Encabezado e Iconos de Pasos (1, 2, 3) */
.editor-step-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 229, 212, 0.22), rgba(0, 180, 167, 0.08));
    border: 1px solid rgba(0, 229, 212, 0.45);
    color: #00e5d4;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(0, 229, 212, 0.2);
    flex-shrink: 0;
    line-height: 1;
}

/* Botón secundario Glass (Volver a la lista, etc.) */
.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Etiquetas y Controles de Formulario */
.form-label-custom {
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.01em;
}

.form-control-glass {
    background: rgba(10, 10, 22, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    transition: all 0.25s ease !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-control-glass:focus {
    background: rgba(14, 14, 30, 0.95) !important;
    border-color: rgba(0, 229, 212, 0.55) !important;
    box-shadow: 0 0 16px rgba(0, 229, 212, 0.2) !important;
    color: #ffffff !important;
}

.form-control-glass::placeholder {
    color: #64748b !important;
}

/* Dropzone de Carga de Imagen */
.dropzone-area {
    border: 2px dashed rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.dropzone-area:hover,
.dropzone-area.dragover {
    border-color: #00e5d4;
    background: rgba(0, 229, 212, 0.05);
    box-shadow: 0 0 25px rgba(0, 229, 212, 0.12);
}

.dropzone-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 229, 212, 0.08);
    border: 1px solid rgba(0, 229, 212, 0.25);
    margin-bottom: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dropzone-area:hover .dropzone-icon-box {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 0 18px rgba(0, 229, 212, 0.3);
}

/* Sugerencias Rápidas de Tecnologías (Pills) */
.quick-tech-wrapper {
    margin-bottom: 14px;
}

.quick-tech-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quick-tech-btn::before {
    content: '+';
    font-weight: 700;
    color: #00e5d4;
    font-size: 0.84rem;
    margin-right: 2px;
    opacity: 0.65;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.quick-tech-btn:hover {
    background: rgba(0, 229, 212, 0.14);
    border-color: rgba(0, 229, 212, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 229, 212, 0.22);
}

.quick-tech-btn:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.quick-tech-btn:active {
    transform: translateY(0);
}

.quick-tech-btn.is-added {
    background: rgba(0, 229, 212, 0.16);
    border-color: rgba(0, 229, 212, 0.55);
    color: #5eead4;
}

.quick-tech-btn.is-added::before {
    content: '✓';
    color: #00e5d4;
    opacity: 1;
}

/* Contenedor de Etiquetas / Tags */
.tech-tags-input-container {
    background: rgba(10, 10, 22, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    min-height: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: text;
}

.tech-tags-input-container:focus-within {
    border-color: rgba(0, 229, 212, 0.55) !important;
    box-shadow: 0 0 16px rgba(0, 229, 212, 0.2) !important;
    background: rgba(14, 14, 30, 0.95) !important;
}

.tech-tags-input-container input#editorTechInput {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    flex: 1;
    min-width: 140px;
    padding: 4px 6px;
}

.tech-tags-input-container input#editorTechInput::placeholder {
    color: #64748b;
}

/* Badge de Tag Activo */
.active-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(0, 229, 212, 0.18), rgba(0, 180, 167, 0.08));
    border: 1px solid rgba(0, 229, 212, 0.42);
    color: #5eead4;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 229, 212, 0.12);
    animation: tagFadeIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.2s ease;
}

.active-tag-badge:hover {
    border-color: rgba(0, 229, 212, 0.65);
    box-shadow: 0 2px 12px rgba(0, 229, 212, 0.25);
}

@keyframes tagFadeIn {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

/* Botón para Eliminar Tag */
.btn-tag-remove {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #cbd5e1;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tag-remove:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Simulador en Vivo Sticky & Tarjeta de Previsualización */
.editor-sidebar-sticky {
    position: sticky;
    top: 24px;
}

.live-card-preview {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(15, 15, 28, 0.85) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease;
}

/* Panel y Subida de Archivo ZIP (Exclusivo Administrador) */
.zip-admin-panel {
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    background: rgba(14, 15, 30, 0.78) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dropzone-zip-box {
    border: 2px dashed rgba(167, 139, 250, 0.35);
    border-radius: 14px;
    padding: 22px 14px;
    text-align: center;
    background: rgba(139, 92, 246, 0.035);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.dropzone-zip-box:hover,
.dropzone-zip-box.dragover {
    border-color: #a78bfa;
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.22);
}

.zip-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dropzone-zip-box:hover .zip-icon-wrapper {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

/* =========================================
   DESENFOQUE DE FONDO EN VISTA DE PROYECTO (MODAL)
   ========================================= */

/* Fondo oscuro (backdrop) con desenfoque de cristal */
.modal-backdrop {
    background-color: rgba(4, 4, 10, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}

.modal-backdrop.show {
    opacity: 1 !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Modal abierto con desenfoque nativo */
.modal.show {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Transición suave para los elementos del fondo de la página */
.navbar-brand-standalone,
.header-nav-container,
.hero-content,
.spiral-section,
.projects-section,
footer,
#scanner-bg {
    transition: filter 0.35s ease, -webkit-filter 0.35s ease, opacity 0.35s ease;
}

/* Desenfoque profundo y ajuste sutil de contraste al visualizar un proyecto */
body.modal-open .navbar-brand-standalone,
body.modal-open .header-nav-container,
body.modal-open .hero-content,
body.modal-open .spiral-section,
body.modal-open .projects-section,
body.modal-open footer,
body.modal-open #scanner-bg,
body.project-modal-active .navbar-brand-standalone,
body.project-modal-active .header-nav-container,
body.project-modal-active .hero-content,
body.project-modal-active .spiral-section,
body.project-modal-active .projects-section,
body.project-modal-active footer,
body.project-modal-active #scanner-bg {
    filter: blur(12px) brightness(0.85);
    -webkit-filter: blur(12px) brightness(0.85);
    pointer-events: none;
    user-select: none;
}

/* =========================================
   BARRA DE PROGRESO DE SCROLL SUPERIOR
   ========================================= */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #00e5d4 0%, #38bdf8 50%, #818cf8 100%);
    box-shadow: 0 0 14px rgba(0, 229, 212, 0.8), 0 0 28px rgba(56, 189, 248, 0.4);
    z-index: 1200;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* =========================================
   TIPOGRAFÍA DESTACADA DE PORTAFOLIO
   ========================================= */
.portfolio-section-title {
    font-size: clamp(2.3rem, 4.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 20%, #f1f5f9 55%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.85rem;
    position: relative;
    display: inline-block;
}

.portfolio-section-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.65;
    color: #94a3b8 !important;
    max-width: 680px;
    font-weight: 400;
}

/* Ajuste proporcional para el título principal del Hero */
.hero-content h1 {
    font-size: clamp(2.8rem, 5.8vw, 4.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
    background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   ANIMACIONES DE REVELADO AL BAJAR EN LA PÁGINA (SCROLL REVEAL)
   ========================================= */

/* Revelado universal para secciones y encabezados */
.scroll-reveal {
    opacity: 0;
    transform: translateY(44px) scale(0.98);
    filter: blur(5px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.85s ease;
    will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Animación de entrada para las tarjetas de la Galería de Proyectos */
.project-item {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s ease;
    will-change: opacity, transform, filter;
}

.project-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Accesibilidad: desactivar si el usuario prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .project-item {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* =========================================
   BOTÓN Y VISTA DE PERFIL DE ADMINISTRADOR
   ========================================= */
/* Botón de Perfil Animado (Avatar Interactivo que reemplaza al botón con texto) */
.btn-profile-avatar {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    outline: none;
    user-select: none;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.btn-profile-avatar:hover,
.btn-profile-avatar:focus-visible {
    transform: scale(1.12);
    filter: drop-shadow(0 0 16px rgba(0, 229, 212, 0.75));
}

.btn-profile-avatar:active {
    transform: scale(0.95);
}

.btn-profile-avatar.is-active {
    filter: drop-shadow(0 0 16px rgba(0, 229, 212, 0.85));
    transform: scale(1.06);
}

.profile-lottie-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: visible;
}

.profile-lottie-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
    overflow: visible;
}

.profile-avatar-glow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 229, 212, 0.6) !important;
}

.btn-toggle-pw {
    cursor: pointer;
    font-size: 1.05rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.btn-toggle-pw:hover {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.15) !important;
}

/* =========================================
   ESTILOS PARA VIDEO CORTO Y GALERÍA (HASTA 4 IMÁGENES)
   ========================================= */

/* =========================================
   REPRODUCTOR MULTIMEDIA DE PROYECTO (DISEÑO PROFESIONAL & ELEGANTE)
   ========================================= */

.modal-media-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    max-height: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.9), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    user-select: none;
}

@media (max-width: 576px) {
    .modal-media-wrapper {
        height: 280px;
        max-height: 280px;
    }
}

/* Video Container & Reproductor */
.modal-video-container {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    cursor: pointer;
}

.modal-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Overlay sutil para Play / Pause en Video */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 5;
    pointer-events: none;
}

.video-play-overlay.paused,
.modal-video-container:hover .video-play-overlay {
    opacity: 1;
}

.video-play-btn-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 229, 212, 0.45);
    color: #00e5d4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 212, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-video-container:hover .video-play-btn-circle {
    transform: scale(1.08);
    border-color: #00e5d4;
    color: #fff;
    background: rgba(0, 229, 212, 0.25);
}

/* Contenedor de Diapositivas */
#modalProjectSlideshow {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #030712;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalProjectImg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #030712;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease;
}

/* Badge de tipo de medio superior */
.media-type-badge {
    background: rgba(11, 15, 25, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.media-type-badge svg {
    color: #00e5d4;
}

/* Botón píldora superior (Audio) */
.btn-media-pill {
    background: rgba(11, 15, 25, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 6px 13px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-media-pill:hover {
    background: rgba(0, 229, 212, 0.15);
    border-color: rgba(0, 229, 212, 0.4);
    color: #00e5d4;
    transform: translateY(-1px);
}

/* Selector Segmentado Video vs Fotos */
.media-segmented-switcher {
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.segmented-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.segmented-btn:hover {
    color: #e2e8f0;
}

.segmented-btn.active {
    background: rgba(0, 229, 212, 0.18);
    color: #5eead4;
    box-shadow: 0 2px 8px rgba(0, 229, 212, 0.25);
    border: 1px solid rgba(0, 229, 212, 0.35);
}

/* Flechas Laterales de Navegación */
.modal-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.modal-media-wrapper:hover .modal-side-arrow {
    opacity: 1;
}

.modal-side-arrow.prev-arrow {
    left: 14px;
}

.modal-side-arrow.next-arrow {
    right: 14px;
}

.modal-side-arrow:hover {
    background: rgba(0, 229, 212, 0.22);
    border-color: #00e5d4;
    color: #00e5d4;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 16px rgba(0, 229, 212, 0.4);
}

.modal-side-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Barra Inferior & Dots de Navegación */
.modal-media-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.85) 0%, rgba(3, 7, 18, 0.4) 60%, transparent 100%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.media-dots-track {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.media-dot-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.media-dot-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.2);
}

.media-dot-btn.active {
    width: 24px;
    border-radius: 12px;
    background: #00e5d4;
    box-shadow: 0 0 10px rgba(0, 229, 212, 0.7);
}

/* Barra de progreso sutil para autoplay de diapositivas */
.slideshow-progress-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #00e5d4, #3b82f6);
    z-index: 15;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* =========================================
   ESTILOS PARA PANEL ADMIN (MÁXIMO 4 IMÁGENES & VIDEO)
   ========================================= */

.editor-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .editor-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.editor-gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.22s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.editor-gallery-card:hover {
    border-color: rgba(0, 229, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 229, 212, 0.15);
}

.editor-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.editor-gallery-card .gallery-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-weight: 500;
}

.editor-gallery-card .gallery-badge.is-primary {
    background: rgba(0, 229, 212, 0.25);
    border-color: #00e5d4;
    color: #5eead4;
    font-weight: 700;
}

.editor-gallery-card .btn-remove-gallery-img {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(239, 68, 68, 0.85);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.editor-gallery-card .btn-remove-gallery-img:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.editor-gallery-add-slot {
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s ease;
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    text-align: center;
    padding: 8px;
}

.editor-gallery-add-slot:hover {
    border-color: #00e5d4;
    background: rgba(0, 229, 212, 0.06);
    color: #00e5d4;
}

.editor-video-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 229, 212, 0.3);
    border-radius: 14px;
    overflow: hidden;
    padding: 14px;
}

.editor-video-player {
    width: 100%;
    max-height: 200px;
    border-radius: 8px;
    background: #000;
    object-fit: contain;
}


