/* ============================================
   BOTONERA PRO — FuncionalBit
   Archivo único listo para integrar
   ============================================ */

:root {
    --bg-deep: #020617;
    --accent: #7c3aed;
    --glow: rgba(124, 58, 237, 0.4);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

/* ============================================
   BASE
   ============================================ */
body {
    background-color: transparent;
    color: var(--text-main);
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* ============================================
   HEADER
   ============================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
    animation: pulseDot 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

.logo-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-name em {
    color: var(--accent);
    font-style: normal;
}

.logo-tag {
    font-size: 10px;
    color: #475569;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 10px;
    display: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-main);
}

nav a.nav-cta {
    color: var(--text-main);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    padding: 7px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
}

nav a.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.lang-toggle {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.lang-toggle .active {
    color: var(--text-main);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

/* Badge "Disponible" */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    padding: 5px 14px;
    margin-bottom: 28px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-main);
}

.hero-sub {
    font-size: 17px;
    color: #e2e8f0;
    font-weight: 400;
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Tags de serveis */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.service-tags span {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 5px 12px;
    letter-spacing: 0.3px;
}

/* Botó CTA principal */
.btn-cta {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    padding: 13px 36px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 0;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px -4px rgba(124, 58, 237, 0.6);
}

.btn-cta:active {
    transform: translateY(-1px);
}

/* ============================================
   SECCIÓ DEMO LAB
   ============================================ */
.section-lab {
    position: relative;
    padding: 0;
    background: transparent;
}

.section-lab::before {
    display: none;
}

.section-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 60px;
    text-align: center;
}

.footer-inner {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-brand em {
    color: var(--accent);
    font-style: normal;
}

.footer-address {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.footer-address a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-address a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 12px;
    color: #334155;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.footer-links a {
    font-size: 12px;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-dim);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 12px;
    letter-spacing: -0.8px;
}

.section-header p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   BOTONERA — Contenedor
   ============================================ */

/* Registro de la propiedad custom para animar el ángulo */
@property --neon-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes neonRotate {
    to { --neon-angle: 360deg; }
}

.cta-lab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    width: 100%;
    max-width: 1300px;
    box-sizing: border-box;
    padding: 10px 14px 12px;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 2px solid transparent;
    border-radius: 28px;
    background:
        linear-gradient(175deg,
            rgba(14, 10, 26, 0.97) 0%,
            rgba(8, 8, 18, 0.99) 100%) padding-box,
        conic-gradient(from var(--neon-angle),
            transparent 0%,
            transparent 50%,
            #3b82f6     62%,
            #8b5cf6     74%,
            #ec4899     86%,
            transparent 96%,
            transparent 100%) border-box;
    animation: neonRotate 6s linear infinite;
    box-shadow:
        /* Profundidad 3D — capas blancas apiladas hacia arriba */
        0 -2px 0 rgba(255, 255, 255, 0.25),
        0 -4px 0 rgba(255, 255, 255, 0.12),
        0 -6px 0 rgba(255, 255, 255, 0.05),
        /* Sombra inferior para anclar */
        0 6px 0 rgba(0, 0, 0, 0.5),
        0 14px 30px -6px rgba(0, 0, 0, 0.9),
        /* Glow exterior del neon */
        0 0 18px rgba(124, 58, 237, 0.15),
        /* Bisel interior */
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.cta-lab::before {
    display: none;
}

/* Glow ambiental bajo el contenedor */
.cta-lab::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 10%;
    right: 10%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.2), transparent 70%);
    filter: blur(8px);
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 600px) {
    .section-lab {
        padding: 0 12px;
    }

    .cta-lab {
        padding: 14px 12px 16px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        border-radius: 20px;
    }

    .btns-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .banner-btn {
        height: 120px;
    }

    .btn-title {
        font-size: 15px;
    }

    .btn-subtitle {
        font-size: 12px;
        white-space: normal;
    }

    .lab-title {
        font-size: 22px;
    }

    .lab-subtitle {
        font-size: 11px;
    }
}

/* Label "Demo Lab" */
.lab-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-transform: none;
    white-space: nowrap;
    margin-bottom: 0;
    background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 60%, #f9a8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sin prefijo suelto */
.lab-title::before {
    display: none;
}

/* Subtítulo */
.lab-header {
    padding-top: 0;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.lab-subtitle {
    font-size: 10px;
    line-height: 1.2;
    color: #475569;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 1;
}

/* ============================================
   BOTONERA — Grid
   ============================================ */
.btns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
}

/* ---- Animación de entrada ---- */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Barrido de luz (sweep shine) individual por botón ---- */
@keyframes sweepShine {
    0% {
        left: -80%;
    }

    18%,
    100% {
        left: 160%;
    }
}

.banner-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-18deg);
    z-index: 3;
    pointer-events: none;
    animation: sweepShine 14s ease-in-out infinite;
}

.banner-btn:nth-child(1)::after {
    animation-delay: 0s;
}

.banner-btn:nth-child(2)::after {
    animation-delay: 2s;
}

.banner-btn:nth-child(3)::after {
    animation-delay: 5s;
}

.banner-btn:nth-child(4)::after {
    animation-delay: 7s;
}

/* ---- Botón base ---- */
.banner-btn {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    height: 158px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    background: #060c1a;
    cursor: pointer;
    animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.banner-btn:nth-child(1) {
    animation-delay: 0.05s;
}

.banner-btn:nth-child(2) {
    animation-delay: 0.15s;
}

.banner-btn:nth-child(3) {
    animation-delay: 0.25s;
}

.banner-btn:nth-child(4) {
    animation-delay: 0.35s;
}

/* ---- Imagen de fondo ---- */
.banner-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease, filter 0.4s ease;
    filter: brightness(0.6) saturate(0.9) contrast(1.05);
}

/* ---- Overlay degradado ---- */
.banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 14px;
    text-align: left;
    background: linear-gradient(160deg,
            rgba(0, 0, 0, 0.1) 0%,
            transparent 35%,
            rgba(2, 6, 23, 0.8) 100%);
    z-index: 2;
}

/* ---- Fila superior: número + badge ---- */
.btn-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.btn-num {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.btn-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

/* Colores individuales por botón */
.banner-btn:nth-child(1) .btn-tag {
    color: #a78bfa;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.banner-btn:nth-child(2) .btn-tag {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.banner-btn:nth-child(3) .btn-tag {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.banner-btn:nth-child(4) .btn-tag {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ---- Efecto En Construcción ---- */
.banner-btn.is-building {
    border-color: #f59e0b !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.3) !important;
    animation: wiggleWarn 0.4s ease-in-out infinite alternate !important;
}

.banner-btn.is-building img {
    filter: sepia(0.8) hue-rotate(320deg) saturate(1.5) brightness(0.3) !important;
}

.banner-btn.is-building .btn-title {
    color: #fcd34d !important;
}

.banner-btn.is-building .btn-arrow {
    background: transparent !important;
    border-color: transparent !important;
    font-size: 16px;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

@keyframes wiggleWarn {
    0% {
        transform: rotate(-1deg) scale(0.98);
    }

    100% {
        transform: rotate(1deg) scale(1.02);
    }
}

/* ---- Fila inferior: texto + flecha ---- */
.btn-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.btn-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.btn-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    transition: color 0.3s ease;
}

.btn-subtitle {
    font-size: 12px;
    color: #b7c8e0;
    display: block;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Flecha (aparece en hover) ---- */
.btn-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-10px);
    opacity: 0;
}

/* ============================================
   HOVER
   ============================================ */
.banner-btn:hover {
    transform: translateY(-6px);
    z-index: 10;
}

.banner-btn:nth-child(1):hover {
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 20px 40px -12px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.banner-btn:nth-child(2):hover {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 20px 40px -12px rgba(34, 197, 94, 0.25), 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.banner-btn:nth-child(3):hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 20px 40px -12px rgba(6, 182, 212, 0.25), 0 0 0 1px rgba(6, 182, 212, 0.08);
}

.banner-btn:nth-child(4):hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 20px 40px -12px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.banner-btn:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.3);
}

.banner-btn:hover .btn-title {
    color: #ffffff;
}

.banner-btn:hover .btn-subtitle {
    color: #e2e8f0;
}

.banner-btn:hover .btn-arrow {
    opacity: 1;
    transform: translateX(0);
}

.banner-btn:nth-child(1):hover .btn-arrow {
    color: #a78bfa;
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.1);
}

.banner-btn:nth-child(2):hover .btn-arrow {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.banner-btn:nth-child(3):hover .btn-arrow {
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.08);
}

.banner-btn:nth-child(4):hover .btn-arrow {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.08);
}

.banner-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    header {
        padding: 16px 24px;
    }

    .logo-tag {
        display: none;
    }

    nav {
        gap: 16px;
    }

    nav a:not(.nav-cta) {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .hero-bg {
        opacity: 0.08;
    }

    footer {
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {
    .lang-toggle {
        display: none;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .btns-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .banner-btn {
        height: 130px;
    }
}

.lab-header {
    width: 100%;
    padding: 0;
    margin-bottom: 12px;
    background: none;
    border: none;
    position: relative;
}