/* ==========================================================================
   PhotonCode - Design System & Stylesheet (Fase 1 - Réplica QuantumScripts)
   ========================================================================== */

/* Variables & Custom Tokens */
:root {
    --bg-color: #040408;
    /* Fondo oscuro azulado profundo */
    --grid-color: rgba(255, 255, 255, 0.02);
    /* Rejilla sutil */
    --accent-purple: #a855f7;
    --accent-cyan: #00b0ff;
    /* Cyan brillante de la imagen */
    --accent-gradient: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);

    --nav-bg: rgba(4, 4, 8, 0.4);
    --card-bg: rgba(255, 255, 255, 0.015);
    --card-border: rgba(255, 255, 255, 0.08);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    /* clip recorta igual que hidden pero no convierte al body en contenedor de scroll,
       así position: sticky sigue funcionando (tarjetas de proyectos, timeline) */
    overflow-x: clip;
    background-color: transparent;
}

body.no-scroll {
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #040408;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ==========================================================================
   Intro (receta de fluid.glass): el logo sube girando al centro, el nombre
   aparece letra por letra y la página entra desde abajo como una tarjeta que
   crece hasta llenar la pantalla. La coreografía está en main.js (initPreloader).
   ========================================================================== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.intro-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 45% at 50% 50%, rgba(0, 176, 255, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 70% 60% at 50% 55%, #0d0b1f 0%, #040408 70%);
}

/* Logo + nombre en línea; JS lo desplaza para que al inicio el logo quede centrado */
.intro-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 22px);
    visibility: hidden;
}

.intro-mark {
    display: block;
    flex: none;
    width: clamp(64px, 7vw, 92px);
    height: clamp(64px, 7vw, 92px);
    filter: drop-shadow(0 0 26px rgba(0, 176, 255, 0.35));
}

.intro-mark svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* El arco del logo gira mientras dura la intro */
.intro-mark .intro-ring {
    transform-origin: 50px 50px;
    animation: introRingSpin 1.6s linear infinite;
}

@keyframes introRingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Máscara de las letras: cada una sube desde abajo */
.intro-word {
    display: inline-flex;
    overflow: hidden;
    padding: 0.06em 0.04em 0.1em;
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--text-main);
}

.intro-word .intro-char {
    display: inline-block;
    will-change: transform;
}

.intro-word .intro-char.is-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mientras la página sube, el fondo fijo se ve como una tarjeta */
.intro-card {
    border-radius: 28px;
    box-shadow: 0 -30px 90px rgba(0, 176, 255, 0.14), 0 -10px 40px rgba(168, 85, 247, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    #preloader {
        display: none !important;
    }
}

/* ==========================================================================
   Barrido entre páginas y secciones (receta de agr.studio): un círculo con el
   degradado de la marca cubre la pantalla desde la esquina superior derecha,
   aparece el logo y se retira hacia la esquina inferior izquierda.
   La lógica está en transitions.js.
   ========================================================================== */
.page-veil {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 70%),
        linear-gradient(135deg, #00b0ff 0%, #5b6cff 50%, #a855f7 100%);
    clip-path: circle(0% at 100% 0%);
    pointer-events: none;
}

.page-veil.is-active {
    pointer-events: auto;
}

.page-veil-mark {
    display: block;
    width: clamp(64px, 7vw, 92px);
    height: clamp(64px, 7vw, 92px);
    opacity: 0;
    filter: drop-shadow(0 6px 24px rgba(4, 4, 8, 0.25));
}

.page-veil-mark svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.page-veil-mark .veil-ring {
    transform-origin: 50px 50px;
    animation: introRingSpin 1.2s linear infinite;
}

/* Al llegar desde un barrido, la página arranca cubierta (la clase la pone el <head>) */
html.veil-in .page-veil {
    clip-path: circle(150% at 0% 100%);
}

html.veil-in .page-veil-mark {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .page-veil {
        display: none !important;
    }
}

/* ==========================================================================
   Background, Video & Grid (Brillante y Dinámico como la imagen de Quantum)
   ========================================================================== */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Detrás de todo el contenido */
    background-color: transparent;
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Video de la espira de fondo brillante */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Detrás del overlay y rejilla, pero encima del fondo del contenedor */
    opacity: 0.9;
    /* Opacidad alta para que brille con fuerza */
    filter: saturate(1.4) contrast(1.1);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Viñeteado radial (centro transparente para ver la espira, bordes oscuros) */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(4, 4, 8, 0.05) 0%, rgba(4, 4, 8, 0.6) 80%, #040408 100%);
    z-index: 2;
}

/* Difuminado negro al inicio para fusionar el video con el header y mejorar legibilidad */
.bg-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    /* Aumentado de 25vh a 45vh para abarcar más espacio */
    background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(4, 4, 8, 0.4) 60%, rgba(4, 4, 8, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 65px 65px;
    background-position: center;
    z-index: 3;
    mask-image: radial-gradient(circle at center, #000 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, #000 65%, transparent 100%);
    opacity: 0.5;
}

/* Orbes muy suaves para añadir profundidad */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    mix-blend-mode: screen;
    z-index: 4;
}

.glow-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: -120px;
    left: -120px;
    animation: floatOrb1 22s infinite alternate ease-in-out;
}

.glow-2 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    bottom: -180px;
    right: -80px;
    animation: floatOrb2 28s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 40px) scale(1.08);
    }
}

@keyframes floatOrb2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-70px, -50px) scale(0.93);
    }
}

/* ==========================================================================
   Contenedor de Contenido y Capas
   ========================================================================== */
#content-wrapper {
    position: relative;
    z-index: 10;
    /* Claramente encima del fondo para evitar que se tape */
    opacity: 0;
    transition: opacity 1s ease;
}

body.ready #content-wrapper {
    opacity: 1;
}

/* ==========================================================================
   Header & Navbar (Seamless / Sin separación)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    /* Totalmente limpio y transparente sin separación */
    opacity: 0;
    transform: translateY(-20px);
}

body.ready .header {
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo con isotipo SVG y tipografía premium */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 6px rgba(0, 176, 255, 0.4));
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.logo-text-accent {
    background: linear-gradient(90deg, #00b0ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 8px;
    padding: 4px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 8px 18px;
    border-radius: 50px;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.nav-link-cta-mobile {
    display: none !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-nav-cta {
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
}

.btn-nav-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    font-size: 0.92rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-primary i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.btn-secondary i {
    font-size: 0.8rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 120px 24px 30px 24px;
    position: relative;
}

/* Difuminado negro scrollable al final del hero para transición imperceptible */
.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 380px;
    /* Suficiente altura para desvanecer suavemente */
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: auto 0;
    position: relative;
    z-index: 10;
    /* Encima del difuminado */
}

/* Animaciones de Entrada */
.animate-fade-in,
.animate-slide-up,
.animate-slide-up-delayed,
.animate-fade-in-delayed {
    opacity: 0;
}

body.ready .animate-fade-in {
    animation: fadeIn 0.55s ease forwards;
}

body.ready .animate-slide-up {
    animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.ready .animate-slide-up-delayed {
    animation: fadeInUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

body.ready .animate-fade-in-delayed {
    animation: fadeIn 0.55s ease 0.2s forwards;
}

/* Vision Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.hero-badge:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

/* Title & Typewriter */
.hero-title {
    font-size: clamp(2.4rem, 6.2vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    color: #ffffff;
    /* Texto blanco puro */
    max-width: 800px;
}

.typewriter-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cursor {
    color: #ffffff;
    font-weight: 400;
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 650px;
    margin: 4px 0 8px 0;
}

/* CTAs Container */
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   Keyframes de Animación
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.45rem;
    cursor: pointer;
    z-index: 101;
    /* Por encima de la barra lateral */
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background: rgba(4, 4, 8, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        padding: 100px 40px 40px 40px;
        gap: 20px;
        z-index: 99;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        border-radius: 0;
        text-align: left;
        color: rgba(255, 255, 255, 0.7);
    }

    .nav-link.active {
        background-color: transparent;
        color: var(--accent-cyan);
        box-shadow: none;
        border-bottom-color: var(--accent-cyan);
        font-weight: 700;
    }

    .nav-link-cta-mobile {
        display: block !important;
        margin-top: 15px;
        text-align: center;
        background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 100%) !important;
        color: #ffffff !important;
        font-weight: 700;
        border-radius: 50px;
        padding: 12px 24px;
        box-shadow: 0 4px 15px rgba(0, 176, 255, 0.3);
        border: none !important;
        border-bottom: none !important;
    }

    .nav-link-cta-mobile:hover {
        transform: scale(1.02);
    }

    .hero-ctas {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .hero-ctas .btn,
    .about-hero-ctas .btn,
    .form-actions-container .btn {
        width: 100%;
    }

    /* Evitar que el botón de agendar llamada en la navbar se estire */
    .btn-nav-cta {
        width: auto !important;
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .nav-actions {
        display: none !important;
        /* Ocultado en móvil para evitar amontonar el header */
    }
}

/* ==========================================================================
   Tech Stack Carousel (Infinite Scrolling)
   ========================================================================== */
.hero-tech-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    position: relative;
    z-index: 15;
}

.tech-stack-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.tech-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 15px 0;
    background: transparent;
    user-select: none;
}

/* Difuminado suave en los bordes izquierdo y derecho del carrusel */
.tech-carousel-container::before,
.tech-carousel-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.tech-carousel-container::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, rgba(4, 4, 8, 0) 100%);
}

.tech-carousel-container::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, rgba(4, 4, 8, 0) 100%);
}

.tech-carousel-track {
    display: flex;
    width: max-content;
    animation: infiniteScroll 28s linear infinite;
    gap: 50px;
}

.tech-carousel-list {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.tech-item i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.35);
    transition: var(--transition-fast);
}

.tech-item:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.tech-item:hover i {
    color: var(--accent-cyan);
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Services Section (Nuestras Soluciones)
   ========================================================================== */
.services-section {
    padding: 120px 24px;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.services-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.services-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    color: #ffffff;
}

.services-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.022);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-illustration {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.ill-svg {
    height: 100%;
    max-height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.02));
}

.card-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.card-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
}

.card-footer span.arrow {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 400;
}

/* ==========================================================================
   Scroll-Trigger Animations (Entradas Elegantes)
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Retardo de animación en columnas para efecto escalonado en Escritorio */
@media (min-width: 769px) {
    .services-grid .service-card:nth-child(even).animate-on-scroll {
        transition-delay: 0.15s;
    }
}

/* Responsive Queries */
@media (max-width: 768px) {
    .services-section {
        padding: 80px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 30px;
    }
}

/* ==========================================================================
   Animaciones SVG de Servicios (Efectos de Micro-interacción Premium)
   ========================================================================== */

/* --- GENERAL & UTILS --- */
.ill-svg {
    overflow: visible !important;
    /* Permitir que los resplandores salgan de los bordes del SVG */
}

/* --- TARJETA 1: DESARROLLO DE SOFTWARE (Chip & Circuitos) --- */
.animated-chip {
    transform-box: fill-box;
    transform-origin: center;
    animation: chipPulse 3s infinite ease-in-out;
}

.animated-chip-inner {
    transform-box: fill-box;
    transform-origin: center;
    animation: chipInnerPulse 3s infinite ease-in-out;
}

@keyframes chipPulse {

    0%,
    100% {
        stroke-width: 2px;
        filter: drop-shadow(0 0 2px rgba(0, 176, 255, 0.4));
        fill: rgba(0, 176, 255, 0.05);
    }

    50% {
        stroke-width: 2.5px;
        filter: drop-shadow(0 0 10px rgba(0, 176, 255, 0.8));
        fill: rgba(0, 176, 255, 0.15);
    }
}

@keyframes chipInnerPulse {

    0%,
    100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 2px rgba(0, 176, 255, 0.6));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(0, 176, 255, 1));
    }
}

/* --- TARJETA 2: DESARROLLO WEB (Navegador, Clic y Escritura) --- */
.web-cursor {
    transform-box: fill-box;
    transform-origin: top left;
    animation: cursorMove 7s infinite ease-in-out;
}

.click-panel {
    transform-box: fill-box;
    transform-origin: center;
    animation: clickReaction 7s infinite ease-in-out;
}

.typing-line {
    transform-box: fill-box;
    transform-origin: left center;
    transform: scaleX(0);
    /* Ocultas por defecto */
}

.typing-line.t-1 {
    animation: typeText1 7s infinite ease-in-out;
}

.typing-line.t-2 {
    animation: typeText2 7s infinite ease-in-out;
}

.typing-line.t-3 {
    animation: typeText3 7s infinite ease-in-out;
}

/* Animación del cursor que simula interacción humana */
@keyframes cursorMove {
    0% {
        transform: translate(140px, 90px);
    }

    22% {
        transform: translate(65px, 55px);
        /* Se mueve al centro del panel de clic (x=52, y=46) */
    }

    25% {
        transform: translate(65px, 55px) scale(0.8);
        /* Hace clic (escala abajo) */
    }

    28% {
        transform: translate(65px, 55px) scale(1);
        /* Suelta el clic */
    }

    45% {
        transform: translate(110px, 58px);
        /* Se mueve al área de texto */
    }

    75% {
        transform: translate(145px, 66px);
        /* Termina de "escribir" y baja */
    }

    90%,
    100% {
        transform: translate(140px, 90px);
        /* Regresa al inicio */
    }
}

/* Reacción al clic en el panel izquierdo */
@keyframes clickReaction {

    0%,
    24% {
        fill-opacity: 0.15;
        filter: none;
    }

    25% {
        fill-opacity: 0.5;
        filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8));
    }

    28%,
    100% {
        fill-opacity: 0.25;
        filter: drop-shadow(0 0 3px rgba(168, 85, 247, 0.4));
    }
}

/* Animaciones secuenciales de escritura para el texto simulado */
@keyframes typeText1 {

    0%,
    28% {
        transform: scaleX(0);
        opacity: 0.3;
    }

    40%,
    90% {
        transform: scaleX(1);
        opacity: 0.8;
    }

    95%,
    100% {
        transform: scaleX(0);
        opacity: 0.3;
    }
}

@keyframes typeText2 {

    0%,
    40% {
        transform: scaleX(0);
        opacity: 0.2;
    }

    55%,
    90% {
        transform: scaleX(1);
        opacity: 0.7;
    }

    95%,
    100% {
        transform: scaleX(0);
        opacity: 0.2;
    }
}

@keyframes typeText3 {

    0%,
    55% {
        transform: scaleX(0);
        opacity: 0.2;
    }

    70%,
    90% {
        transform: scaleX(1);
        opacity: 0.7;
    }

    95%,
    100% {
        transform: scaleX(0);
        opacity: 0.2;
    }
}

/* --- TARJETA 3: IA Y AUTOMATIZACIÓN (Red Neuronal) --- */
.signal-line {
    stroke-dasharray: 6 6;
    animation: signalFlow 1.5s infinite linear;
}

@keyframes signalFlow {
    to {
        stroke-dashoffset: -12;
    }
}

.ai-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: nodePulse 3.5s infinite ease-in-out;
}

/* Retardos secuenciales para los nodos de la red */
.ai-node.n-1,
.ai-node.n-2 {
    animation-delay: 0s;
}

.ai-node.n-3,
.ai-node.n-4,
.ai-node.n-5 {
    animation-delay: 1.1s;
}

.ai-node.n-6,
.ai-node.n-7 {
    animation-delay: 2.2s;
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.4));
        fill-opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 10px rgba(0, 176, 255, 0.9));
        fill-opacity: 1;
        fill: #00b0ff;
        /* Cambiar a cyan brillante a mitad de pulso */
    }
}

/* --- TARJETA 4: PLATAFORMA DE CURSOS (Cohete Flotante y Fuego) --- */
.rocket-ship {
    transform-box: fill-box;
    transform-origin: center;
    animation: rocketFloat 4s infinite ease-in-out;
}

.rocket-fire {
    transform-box: fill-box;
    transform-origin: top center;
    animation: fireFlicker 0.1s infinite alternate ease-in-out;
}

@keyframes rocketFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
        /* Flota ligeramente y rota 1 grado */
    }
}

@keyframes fireFlicker {
    0% {
        transform: scaleY(0.85) scaleX(0.9);
        opacity: 0.6;
        fill: #ff9100;
        /* Naranja fuego */
    }

    100% {
        transform: scaleY(1.15) scaleX(1.1);
        opacity: 1;
        fill: #00e676;
        /* Vuelve a verde de neón */
    }
}

/* ==========================================================================
   Sección de Contacto (Diseño Ultra-Premium e Interactivo)
   ========================================================================== */
.contact-section {
    padding: 120px 24px;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.contact-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    color: #ffffff;
}

.contact-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 24px;
}

/* Formulario Centrado */
.contact-form-container {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-form-container:hover {
    border-color: rgba(0, 176, 255, 0.25);
    box-shadow: 0 35px 70px -10px rgba(0, 0, 0, 0.6),
        0 0 40px -10px rgba(0, 176, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label-with-optional {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.optional-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Inputs con Icono */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.05rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.textarea-icon {
    top: 22px;
    transform: none;
}

.input-wrapper input,
.input-wrapper textarea {
    padding-left: 50px;
    width: 100%;
    background: rgba(4, 4, 8, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-right: 18px;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 20px rgba(0, 176, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.input-wrapper:focus-within .input-icon {
    color: var(--accent-cyan);
}

/* Botones de Envío Condicional */
.form-actions-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.btn-form-whatsapp-primary {
    width: 100%;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid rgba(37, 211, 102, 0.35);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(37, 211, 102, 0.05) 100%);
    color: #25d366;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.05);
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
}

.btn-form-whatsapp-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    transition: 0.5s;
}

.btn-form-whatsapp-primary:hover::before {
    left: 100%;
    transition: 0.6s ease-in-out;
}

.btn-form-whatsapp-primary:hover {
    background: #25d366;
    color: #040408;
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.btn-form-whatsapp-primary:active {
    transform: translateY(0);
}

.btn-form-whatsapp-primary i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-form-whatsapp-primary:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.email-fallback-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.email-fallback-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
    transition: var(--transition-fast);
}

.email-fallback-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--accent-gradient);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-fallback-link:hover {
    color: var(--accent-cyan);
}

.email-fallback-link:hover::after {
    transform: scaleX(1);
}

/* ==========================================================================
   Footer Section (Con Spotlight y Texto Gigante)
   ========================================================================== */
.footer {
    padding: 120px 24px 40px 24px;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Texto Gigante con Efecto Spotlight */
.footer-large-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    text-align: center;
    font-size: clamp(3.5rem, 11.5vw, 9.8rem);
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 1;

    /* Base faint color and sweep gradient */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.015) 0%,
            rgba(255, 255, 255, 0.015) 35%,
            rgba(0, 176, 255, 0.12) 48%,
            rgba(168, 85, 247, 0.12) 52%,
            rgba(255, 255, 255, 0.015) 65%,
            rgba(255, 255, 255, 0.015) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShine 7s infinite linear;
    user-select: none;
}

@keyframes textShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 2;
    /* Encima del texto gigante */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    justify-content: flex-start;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-col ul a:hover {
    color: #ffffff;
    transform: translateX(4px);
    display: inline-block;
}

.footer-col ul a i {
    width: 18px;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-fast);
}

.footer-col ul a:hover i {
    color: var(--accent-cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Responsive para Contacto y Footer
   ========================================================================== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info-panel {
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 80px 20px;
    }

    .contact-form-container {
        padding: 24px;
    }

    .actions-buttons-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ==========================================================================
   Sección Nosotros (about.html)
   ========================================================================== */
.about-hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 180px 24px 80px 24px;
    position: relative;
}

.about-hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, transparent 0%, #000000 100%);
    z-index: 1;
    pointer-events: none;
}

.about-hero-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 10;
}

.about-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    color: #ffffff;
    max-width: 850px;
}

.about-serif-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: #c084fc;
    /* Color morado lavanda de acento */
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.about-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 720px;
    margin: 4px 0 10px 0;
}

.about-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-details-section {
    padding: 100px 24px;
    position: relative;
    z-index: 10;
    background-color: #000000;
    /* Fondo negro */
}

.about-details-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-details-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
}

.about-section-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: #000000;
    /* Tarjetitas fondo negro */
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 45px 35px;
    border-radius: 20px;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-card-icon {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: max-content;
    position: relative;
    z-index: 2;
}

.about-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.about-card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .about-hero-section {
        padding-top: 140px;
    }

    .about-hero-ctas {
        width: 100%;
        flex-direction: column;
    }
}

/* ==========================================================================
   Misión y Visión (about.html): paneles que se quedan fijos y se apilan con
   el scroll (initEssence en motion.js). Sin JS se ven completos, uno debajo
   del otro.
   ========================================================================== */
.essence {
    position: relative;
    z-index: 10;
    padding-bottom: clamp(60px, 8vw, 120px);
    background-color: #000000;
}

.essence-intro {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(90px, 12vw, 150px) 24px clamp(30px, 5vw, 70px);
    text-align: center;
}

.essence-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.essence-kicker::before,
.essence-kicker::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.essence-heading {
    max-width: 16ch;
    margin: 0 auto;
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.essence-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 96px max(24px, 4vw) 40px;
}

@supports (min-height: 100svh) {
    .essence-panel {
        min-height: 100svh;
    }
}

.essence-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    width: min(1180px, 100%);
    padding: clamp(28px, 4vw, 56px);
    border-radius: 32px;
    border: 1px solid rgba(var(--tone), 0.18);
    background:
        radial-gradient(ellipse 60% 80% at 18% 50%, rgba(var(--tone), 0.13) 0%, transparent 65%),
        linear-gradient(160deg, #0b0b14 0%, #050509 100%);
    box-shadow:
        0 50px 120px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transform-origin: 50% 0%;
}

/* Línea de luz en el borde superior */
.essence-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--tone-2), 0.9) 50%, transparent 100%);
}

.essence-panel--reverse .essence-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    background:
        radial-gradient(ellipse 60% 80% at 82% 50%, rgba(var(--tone), 0.14) 0%, transparent 65%),
        linear-gradient(200deg, #0b0b14 0%, #050509 100%);
}

.essence-panel--reverse .essence-orbit {
    order: 2;
}

/* Ilustración orbital: anillos que giran, fotones y núcleo que late */
.essence-orbit {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
}

.essence-orbit::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--tone), 0.4) 0%, transparent 70%);
    filter: blur(40px);
}

.essence-orbit-svg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 14px rgba(var(--tone), 0.45));
}

.orbit-spin {
    transform-box: view-box;
    transform-origin: 50% 50%;
    animation: orbitSpin 30s linear infinite;
}

.orbit-spin-slow {
    animation-duration: 60s;
}

.orbit-spin-mid {
    animation-duration: 18s;
}

.orbit-spin-fast {
    animation-duration: 9s;
}

.orbit-spin-rev {
    animation-duration: 40s;
    animation-direction: reverse;
}

.orbit-core {
    transform-box: fill-box;
    transform-origin: center;
    animation: orbitPulse 3.2s ease-in-out infinite;
}

.orbit-photon {
    filter: drop-shadow(0 0 6px #ffffff);
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitPulse {
    50% {
        transform: scale(1.14);
        opacity: 0.85;
    }
}

.essence-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(12px, 1.7vh, 18px);
    min-width: 0;
}

.essence-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.essence-index {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(var(--tone), 0.5);
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    color: rgb(var(--tone-2));
}

.essence-tag {
    color: rgb(var(--tone-2));
}

/* Palabra gigante: contorno debajo y relleno de color encima que se destapa con el scroll */
.essence-word {
    margin: 0;
    font-size: clamp(3.2rem, min(10vw, 15vh), 9rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.essence-word-line {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0.02em 0.06em 0.06em 0;
}

.essence-word-outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(var(--tone-2), 0.55);
}

.essence-word-fill {
    position: absolute;
    inset: 0;
    display: block;
    padding: inherit;
    background: linear-gradient(90deg, rgb(var(--tone-2)) 0%, #ffffff 55%, rgb(var(--tone)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    clip-path: inset(0 calc(100% - var(--fill, 100%)) 0 0);
}

.essence-title {
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.essence-statement {
    max-width: 34ch;
    margin: 0;
    font-size: clamp(1.25rem, 2.1vw, 1.9rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: #f5f3ff;
}

.essence-statement em {
    font-style: normal;
    color: rgb(var(--tone-2));
}

.essence-text {
    max-width: 52ch;
    margin: 0;
    font-size: clamp(0.92rem, 1.1vw, 1.02rem);
    line-height: 1.7;
    color: var(--text-muted);
}

.essence-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.essence-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--tone), 0.25);
    background: rgba(var(--tone), 0.07);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.essence-points i {
    font-size: 0.75rem;
    color: rgb(var(--tone-2));
}

/* Espacio para que el primer panel se lea antes de que el segundo lo cubra (solo con el apilado) */
.essence-gap {
    height: 0;
}

@media (min-width: 993px) {
    .has-motion .essence-gap {
        height: 45vh;
    }
}

@media (max-width: 992px) {
    .essence-panel {
        min-height: 0;
        padding: 24px 16px;
    }

    .essence-card,
    .essence-panel--reverse .essence-card {
        grid-template-columns: 1fr;
        gap: 24px;
        border-radius: 24px;
    }

    .essence-orbit,
    .essence-panel--reverse .essence-orbit {
        order: 0;
        max-width: 240px;
    }

    .essence-word {
        font-size: clamp(2.8rem, 15vw, 5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-spin,
    .orbit-core {
        animation: none;
    }
}

/* Forzar fondo negro en el footer de Nosotros */
.about-details-section+.footer {
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animaciones de entrada por deslizamiento (slide in) */
.animate-on-scroll.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Ajustes adicionales para responsive en móvil y tabletas */
@media (max-width: 992px) {

    .animate-on-scroll.slide-left,
    .animate-on-scroll.slide-right {
        transform: translateY(30px);
        /* En móviles entra de abajo hacia arriba para evitar desborde horizontal */
    }

    .animate-on-scroll.slide-left.animated,
    .animate-on-scroll.slide-right.animated {
        transform: translateY(0);
    }
}

/* ==========================================================================
   Mobile Performance & Instant Rendering Overrides (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Evitar pantallas en blanco: Mostrar todo el contenido base de inmediato sin esperar a JS */
    #content-wrapper {
        opacity: 1 !important;
        transition: none !important;
    }

    /* 2. Revelar el header de navegación de inmediato sin animación retardada */
    .header {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* 3. Hacer que los elementos del Hero aparezcan de inmediato en móvil (sin esperar a DOMContentLoaded ni transiciones de 1.2s) */
    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-up-delayed,
    .animate-fade-in-delayed,
    .about-hero-section .animate-fade-in,
    .about-hero-section .animate-slide-up,
    .about-hero-section .animate-slide-up-delayed,
    .about-hero-section .animate-fade-in-delayed {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* 4. Optimizar animaciones al hacer scroll: transiciones un 60% más rápidas y con menos desplazamiento para evitar repaints pesados */
    .animate-on-scroll {
        opacity: 0;
        transform: translateY(15px) !important;
        transition: opacity 0.35s ease-out, transform 0.35s ease-out !important;
    }

    .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0) !important;
    }

    .animate-on-scroll.slide-left,
    .animate-on-scroll.slide-right {
        transform: translateY(15px) !important;
        transition: opacity 0.35s ease-out, transform 0.35s ease-out !important;
    }

    .animate-on-scroll.slide-left.animated,
    .animate-on-scroll.slide-right.animated {
        opacity: 1;
        transform: translateY(0) !important;
    }

    /* 5. Desactivar backdrop-filter: blur en móvil.
       Dado que estas tarjetas y formularios se renderizan sobre fondos de color sólido (#040408 / #000000),
       el desenfoque de fondo no aporta nada visual pero consume enormes recursos del procesador móvil. */
    .service-card,
    .about-card,
    .contact-form-container,
    .hero-badge,
    .btn-secondary {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 6. Desactivar animaciones continuas de orbes flotantes en móvil para ahorrar CPU/GPU */
    .glow-1,
    .glow-2 {
        animation: none !important;
    }

    /* 7. Altura del Hero en celulares para evitar desbordes */
    .hero-section {
        min-height: auto !important;
        padding: 90px 20px 40px 20px !important;
        justify-content: center !important;
        gap: 30px !important;
    }

    .hero-container {
        margin: 0 !important;
        gap: 16px !important;
    }

    .about-hero-section {
        min-height: auto !important;
        padding: 110px 20px 40px 20px !important;
    }

    /* 8. Evitar auto-zoom en campos de formulario en iOS/Safari */
    .input-wrapper input,
    .input-wrapper textarea {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   Sección de Proyectos (proyectos.html)
   ========================================================================== */

.projects-hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 180px 24px 80px 24px;
    position: relative;
    z-index: 10;
}

.projects-hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    z-index: 1;
    pointer-events: none;
}

.projects-hero-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 10;
}

.projects-badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.projects-badge:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.projects-main-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -2px;
    color: #ffffff;
    max-width: 850px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.projects-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 720px;
    margin: 4px 0 10px 0;
}

.projects-hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    padding: 14px 28px;
    font-size: 0.92rem;
}

.btn-primary-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.btn-primary-purple i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
    margin-left: 6px;
}

.btn-primary-purple:hover i {
    transform: translateY(3px);
}

/* Divider Title Section */
.projects-divider-section {
    padding: 60px 24px 30px 24px;
    text-align: center;
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

.projects-section-divider {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   Proyectos: carrusel 3D (work.js), inspirado en jesperlandberg.com
   Sin JS queda una fila horizontal con snap; con JS (.work--3d) las tarjetas
   se colocan en perspectiva y la sección se fija mientras se hace scroll.
   ========================================================================== */
html.lenis {
    scroll-behavior: auto;
}

.work {
    --work-card-h: clamp(300px, 54vh, 580px);
    --work-gap: clamp(16px, 2.2vw, 32px);
    --work-accent: 168, 85, 247;
    position: relative;
    z-index: 10;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background: #030307;
    isolation: isolate;
}

@supports (height: 100svh) {
    .work {
        --work-card-h: clamp(300px, 54svh, 580px);
        height: 100svh;
    }
}

/* Resplandor del color del proyecto activo y suelo de cuadrícula en perspectiva */
.work-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 42% at 50% 60%, rgba(var(--work-accent), 0.24) 0%, transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(var(--work-accent), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.work-floor {
    position: absolute;
    left: -35%;
    right: -35%;
    bottom: -4%;
    height: 50%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 96px 96px;
    background-position: calc(var(--work-shift, 0) * -1px) 0, 0 0;
    transform: perspective(560px) rotateX(62deg);
    transform-origin: 50% 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 32%);
    pointer-events: none;
}

/* Sin JS: fila horizontal con snap */
.work-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 0 max(24px, 8vw);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.work-stage::-webkit-scrollbar {
    display: none;
}

.work-track {
    display: flex;
    gap: var(--work-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.work-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

/* Con JS: las tarjetas flotan en perspectiva y work.js calcula cada transform */
.work--3d .work-stage {
    display: block;
    padding: 0;
    overflow: hidden;
    scroll-snap-type: none;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.work--3d .work-stage.is-dragging {
    cursor: grabbing;
}

.work--3d .work-track {
    position: absolute;
    inset: 0;
    display: block;
    perspective: 1700px;
    perspective-origin: 50% 44%;
}

.work--3d .work-item {
    position: absolute;
    left: 50%;
    top: 46%;
    will-change: transform;
}

.work-card {
    position: relative;
    display: block;
    height: var(--work-card-h);
    aspect-ratio: 5 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: #0b0b12;
    color: #ffffff;
    text-decoration: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 100px rgba(var(--accent), 0.16);
    transition: opacity 0.5s ease, box-shadow 0.6s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Degradado para leer el título sobre cualquier fondo */
.work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(3, 3, 7, 0.88) 0%, rgba(3, 3, 7, 0.35) 34%, transparent 58%);
    pointer-events: none;
}

/* Oscurece las tarjetas lejanas (work.js actualiza --dim en cada cuadro) */
.work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #030307;
    opacity: var(--dim, 0);
    pointer-events: none;
}

.work-card:focus-visible {
    outline: 2px solid rgba(var(--accent), 0.9);
    outline-offset: 3px;
}

.work-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.work-mock {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 46%;
    width: 90%;
    max-width: none;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.55));
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover,
.work-card:focus-visible {
    box-shadow:
        0 0 0 1px rgba(var(--accent), 0.55),
        0 40px 80px rgba(0, 0, 0, 0.55),
        0 0 130px rgba(var(--accent), 0.34);
}

.work-card:hover .work-bg,
.work-card:focus-visible .work-bg {
    transform: scale(1.07);
    opacity: 0.7;
}

.work-card:hover .work-mock,
.work-card:focus-visible .work-mock {
    transform: translate(-50%, -53%) scale(1.04);
}

/* Al pasar el cursor sobre una tarjeta, las demás bajan de intensidad */
.work-track:has(.work-card:hover) .work-item:not(:hover) .work-card {
    opacity: 0.6;
}

.work-meta {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 96px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.work-kicker {
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.7);
}

.work-kicker i {
    margin: 0 4px;
    font-style: normal;
    color: rgb(var(--accent));
}

.work-name {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: #ffffff;
}

/* Píldora con flecha: al pasar el cursor se abre y muestra "Probar demo" */
.work-arrow {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease, color 0.4s ease;
}

.work-arrow-label {
    max-width: 0;
    padding-left: 0;
    opacity: 0;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition:
        max-width 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease;
}

.work-arrow-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    font-size: 0.8rem;
}

.work-arrow-icon i {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-arrow,
.work-card:focus-visible .work-arrow {
    background: var(--accent-gradient);
    color: #ffffff;
}

.work-card:hover .work-arrow-label,
.work-card:focus-visible .work-arrow-label {
    max-width: 110px;
    padding-left: 18px;
    opacity: 1;
}

.work-card:hover .work-arrow-icon i,
.work-card:focus-visible .work-arrow-icon i {
    transform: translateX(3px);
}

/* Interfaz fija: etiqueta y contador arriba; navegación y llamadas a la acción abajo */
.work-ui {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(92px, 12vh, 120px) max(24px, 4vw) max(28px, 4.5vh);
    pointer-events: none;
}

.work-head,
.work-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.work-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.work-count {
    font-size: 0.9rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}

.work-total {
    color: rgba(255, 255, 255, 0.4);
}

/* Navegación, contador y "Probar demo" dependen de work.js */
.work-nav,
.work-count {
    display: none;
}

.work--3d .work-nav {
    display: flex;
}

.work--3d .work-count {
    display: inline;
}

/* Sin JS no hay carrusel activo: "Probar demo" no tendría a qué apuntar */
.work:not(.work--3d) .work-cta-demo {
    display: none;
}

.work-nav {
    align-items: center;
    gap: 14px;
    pointer-events: auto;
}

.work-nav-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.work-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(var(--work-accent), 0.7);
}

.work-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.work-progress {
    width: clamp(80px, 12vw, 160px);
    height: 2px;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}

.work-progress span {
    display: block;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(var(--work-accent), 0.9);
    transform: scaleX(0);
    transform-origin: left;
}

.work-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    pointer-events: auto;
}

.work-cta-demo {
    border-color: transparent;
    background: var(--accent-gradient);
    cursor: pointer;
    font-family: var(--font-primary);
}

.work-cta-demo:hover {
    background: var(--accent-gradient);
    filter: brightness(1.1);
}

.work-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    pointer-events: auto;
    transition: var(--transition-fast);
}

.work-cta:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(var(--work-accent), 0.6);
}

.work-cta i {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .work {
        --work-card-h: clamp(300px, 50svh, 460px);
    }

    .work-card {
        height: auto;
        width: min(74vw, 340px);
        aspect-ratio: 4 / 5;
        border-radius: 16px;
    }

    .work-mock {
        top: 42%;
        width: 112%;
    }

    .work-meta {
        left: 16px;
        right: 70px;
        bottom: 16px;
    }

    .work-arrow {
        right: 14px;
        bottom: 14px;
        height: 38px;
    }

    .work-arrow-icon {
        width: 38px;
        height: 38px;
    }

    .work-foot {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .work-nav {
        justify-content: center;
    }

    .work-actions {
        justify-content: center;
        margin-left: 0;
    }

    .work-cta {
        padding: 11px 16px;
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-bg,
    .work-mock {
        transition: none;
    }
}

/* Modal de demos interactivas: ventana tipo navegador con la demo en un iframe */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 40px);
}

.demo-modal[hidden] {
    display: none;
}

.demo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 8, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.demo-modal-window {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1280px, 100%);
    height: min(860px, 100%);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0b0b12;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-modal.is-open .demo-modal-backdrop {
    opacity: 1;
}

.demo-modal.is-open .demo-modal-window {
    opacity: 1;
    transform: none;
}

.demo-modal-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px 10px 16px;
    background: #15151f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-modal-dots {
    display: flex;
    gap: 6px;
}

.demo-modal-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
}

.demo-modal-dots span:nth-child(2) { background: #febc2e; }
.demo-modal-dots span:nth-child(3) { background: #28c840; }

.demo-modal-url {
    flex: 1;
    min-width: 0;
    padding: 7px 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-modal-url i {
    margin-right: 6px;
    font-size: 0.72rem;
    color: #28c840;
}

.demo-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.demo-modal-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.demo-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.demo-modal-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #ffffff;
}

@media (max-width: 768px) {
    .demo-modal {
        padding: 0;
    }

    .demo-modal-window {
        height: 100%;
        border-radius: 0;
    }

    .demo-modal-dots {
        display: none;
    }

    .demo-modal-cta {
        padding: 8px 12px;
        font-size: 0.78rem;
    }
}

/* Stacking Cards Deck */
.projects-deck-section {
    padding: 40px 24px 140px 24px;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.projects-deck-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* The Stacking Card */
.project-card {
    position: sticky;
    top: 110px;
    min-height: 480px;
    display: flex;
    align-items: stretch;
    border-radius: 28px;
    padding: 50px;
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    gap: 48px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Capa opaca que oscurece la tarjeta cuando la siguiente se apila encima (controlada desde main.js) */
.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 20;
    border-radius: inherit;
    background-color: var(--bg-color);
    opacity: var(--stack-dim, 0);
    pointer-events: none;
}

/* Tarjetas más altas que la pantalla: sin sticky para que la siguiente no tape su contenido */
.project-card.is-tall {
    position: relative;
    top: auto;
}

/* Cards gradient styles matching colors in visual layout */
.card-barber {
    background: linear-gradient(135deg, rgba(38, 18, 5, 0.88) 0%, rgba(4, 4, 8, 0.95) 100%), url('assets/card_bg_barber.webp') no-repeat center/cover;
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-barber:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 35px 80px rgba(249, 115, 22, 0.15), 0 25px 60px rgba(0, 0, 0, 0.7);
}

.card-clinic {
    background: linear-gradient(135deg, rgba(5, 22, 46, 0.88) 0%, rgba(4, 4, 8, 0.95) 100%), url('assets/card_bg_clinic.webp') no-repeat center/cover;
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-clinic:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 35px 80px rgba(6, 182, 212, 0.15), 0 25px 60px rgba(0, 0, 0, 0.7);
}

.card-restaurant {
    background: linear-gradient(135deg, rgba(2, 38, 20, 0.88) 0%, rgba(4, 4, 8, 0.95) 100%), url('assets/card_bg_restaurant.webp') no-repeat center/cover;
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-restaurant:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 35px 80px rgba(16, 185, 129, 0.15), 0 25px 60px rgba(0, 0, 0, 0.7);
}

.card-realestate {
    background: linear-gradient(135deg, rgba(25, 10, 46, 0.88) 0%, rgba(4, 4, 8, 0.95) 100%), url('assets/card_bg_realestate.webp') no-repeat center/cover;
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-realestate:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 35px 80px rgba(168, 85, 247, 0.15), 0 25px 60px rgba(0, 0, 0, 0.7);
}

/* Card columns */
.project-card-info {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: left;
}

.project-card-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.project-card-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1.2;
}

.project-card-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.project-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.project-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.02);
}

.card-barber .project-badge {
    border-color: rgba(249, 115, 22, 0.15);
    color: rgba(249, 115, 22, 0.85);
    background: rgba(249, 115, 22, 0.02);
}

.card-clinic .project-badge {
    border-color: rgba(6, 182, 212, 0.15);
    color: rgba(6, 182, 212, 0.85);
    background: rgba(6, 182, 212, 0.02);
}

.card-restaurant .project-badge {
    border-color: rgba(16, 185, 129, 0.15);
    color: rgba(16, 185, 129, 0.85);
    background: rgba(16, 185, 129, 0.02);
}

.card-realestate .project-badge {
    border-color: rgba(168, 85, 247, 0.15);
    color: rgba(168, 85, 247, 0.85);
    background: rgba(168, 85, 247, 0.02);
}

.btn-project-cta {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    align-self: flex-start;
    margin-top: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 12px 24px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.btn-project-cta i {
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.btn-project-cta:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.btn-project-cta:hover i {
    transform: translateX(4px);
}

.project-card-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 340px;
}

/* Dashboard Visualizer Layout */
.mock-db {
    width: 100%;
    min-height: 310px;
    max-width: 440px;
    background: rgba(4, 4, 8, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.barber-db {
    background: rgba(4, 4, 8, 0.78) !important;
    border-color: rgba(249, 115, 22, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.clinic-db {
    background: rgba(4, 4, 8, 0.78) !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.restaurant-db {
    background: rgba(4, 4, 8, 0.78) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.realestate-db {
    background: rgba(4, 4, 8, 0.78) !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.db-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-status {
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.db-status i {
    font-size: 0.45rem;
}

.text-green {
    color: #25d366;
}

.text-cyan {
    color: #00b0ff;
}

.text-emerald {
    color: #10b981;
}

.text-purple {
    color: #a855f7;
}

.db-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Barber Calendar Dashboard */
.barber-calendar-day {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
    text-align: left;
}

.appointment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    gap: 12px;
}

.appt-time {
    font-size: 0.72rem;
    font-weight: 800;
    color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.appt-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    text-align: left;
}

.appt-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appt-service {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appt-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.status-sent {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.status-sending {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
}

.db-mini-stats {
    display: flex;
    gap: 10px;
}

.mini-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-txt {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Clinic Expediente Dashboard & WhatsApp Live Chat Simulation */
.db-grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 576px) {
    .db-grid-two-cols {
        grid-template-columns: 1fr;
    }
}

.db-sub-panel {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* WhatsApp Chat Preview */
.whatsapp-chat-preview {
    background: #0b141a;
    /* WhatsApp dark theme background */
    border: 1px solid rgba(37, 211, 102, 0.15);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.chat-header {
    background: #1f2c34;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #00a884;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.chat-user-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chat-user-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e9edef;
    line-height: 1.2;
}

.chat-user-status {
    font-size: 0.6rem;
    color: #00a884;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.chat-user-status::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #00a884;
    border-radius: 50%;
    animation: chatPulseGreen 1.5s infinite;
}

@keyframes chatPulseGreen {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.chat-messages-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 10px 10px;
    max-height: 160px;
}

.chat-msg {
    max-width: 85%;
    padding: 6px 10px;
    font-size: 0.68rem;
    line-height: 1.4;
    border-radius: 8px;
    word-break: break-word;
    text-align: left;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.msg-received {
    align-self: flex-start;
    background: #202c33;
    color: #e9edef;
    border-top-left-radius: 0;
}

.msg-sent {
    align-self: flex-end;
    background: #005c4b;
    color: #e9edef;
    border-top-right-radius: 0;
}

.glow-msg-green {
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.25);
    border: 1px solid rgba(37, 211, 102, 0.4);
    animation: chatMsgGlow 2.5s infinite alternate ease-in-out;
}

@keyframes chatMsgGlow {
    0% {
        box-shadow: 0 0 4px rgba(37, 211, 102, 0.15);
        border-color: rgba(37, 211, 102, 0.3);
    }

    100% {
        box-shadow: 0 0 14px rgba(37, 211, 102, 0.45);
        border-color: rgba(37, 211, 102, 0.7);
    }
}

/* Clinic Patient Profile & Telemetry */
.clinic-patient-profile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.patient-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.patient-avatar-wrapper {
    position: relative;
}

.patient-pic-glowing {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.08);
    border: 1.5px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06b6d2;
    font-size: 0.95rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.patient-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border: 1.5px solid #040408;
    border-radius: 50%;
}

.patient-profile-meta {
    display: flex;
    flex-direction: column;
}

.patient-profile-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.patient-profile-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.patient-vitals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.vital-card {
    background: rgba(255, 255, 255, 0.012);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    transition: var(--transition-fast);
}

.vital-card:hover {
    background: rgba(255, 255, 255, 0.025);
}

.border-red {
    border-left: 2px solid #ff5252 !important;
}

.border-cyan {
    border-left: 2px solid #06b6d2 !important;
}

.border-purple {
    border-left: 2px solid #a855f7 !important;
}

.vital-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vital-value {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}

.text-red {
    color: #ff5252;
}

.text-cyan {
    color: #06b6d2;
}

.text-purple {
    color: #a855f7;
}

.vital-unit {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 1px;
}

/* ECG / Pulsing Heart Rate Graph */
.heartrate-graph {
    height: 40px;
    background: rgba(255, 82, 82, 0.02);
    border: 1px solid rgba(255, 82, 82, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 4px;
}

.heart-pulse-svg {
    width: 100%;
    height: 100%;
}

.heart-pulse-svg path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: heartBeatFlow 3s linear infinite;
}

@keyframes heartBeatFlow {
    0% {
        stroke-dashoffset: 600;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Activity Log */
.clinic-activity-log {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
}

.log-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 4px;
}

.log-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-list li {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
}

.log-list li::before {
    content: '•';
    color: #06b6d2;
    font-weight: bold;
}

.log-time {
    font-weight: 700;
    color: #06b6d2;
    white-space: nowrap;
}

/* Restaurant Kitchen Display System (KDS) */
.kds-dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kds-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.kds-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 8px;
}

.kds-column-header {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
}

.text-orange {
    color: #f97316;
}

.text-emerald {
    color: #10b981;
}

.kds-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.border-orange {
    border-left: 2.5px solid #f97316 !important;
}

.border-emerald {
    border-left: 2.5px solid #10b981 !important;
}

.kds-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
}

.kds-card-items {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 2px;
}

.kds-card-timer {
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.kds-card-timer.text-orange i {
    animation: clockBlink 1.5s infinite;
}

@keyframes clockBlink {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.restaurant-stats-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 8px 12px;
}

.rest-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rest-stat-val {
    font-size: 0.85rem;
    font-weight: 800;
    color: #10b981;
}

.rest-stat-lbl {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Real Estate CRM & Funnel */
.re-crm-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 12px;
}

@media (max-width: 576px) {
    .re-crm-layout {
        grid-template-columns: 1fr;
    }
}

.re-property-card-preview {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.property-img-placeholder {
    height: 80px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(8, 3, 16, 0.4) 100%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a855f7;
    position: relative;
    box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.1);
}

.property-tag-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #a855f7;
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.property-details-wrap {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.property-name-txt {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.property-price-txt {
    font-size: 0.72rem;
    color: #a855f7;
    font-weight: 800;
}

.property-specs {
    display: flex;
    gap: 8px;
    font-size: 0.6rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 4px;
    margin-top: 2px;
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.re-funnel-pipeline {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.funnel-pipeline-stage {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.fps-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
}

.fps-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fps-bar {
    height: 5px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.15);
    flex-grow: 1;
}

.bg-purple-light {
    background: #581c87;
}

.bg-purple-medium {
    background: #7e22ce;
}

.bg-purple-dark {
    background: #a855f7;
}

.fps-val {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 20px;
}

/* Stacking Deck Scroll Overlaps */
/* Para lograr que las tarjetas se encimen progresivamente con un efecto de escala */
.projects-deck-container {
    perspective: 1000px;
}

.project-card:nth-child(1) {
    transform: scale(1.0);
}

.project-card:nth-child(2) {
    transform: scale(1.0);
}

.project-card:nth-child(3) {
    transform: scale(1.0);
}

.project-card:nth-child(4) {
    transform: scale(1.0);
}

/* Custom adjustments for projects page responsive queries */
@media (max-width: 992px) {
    .project-card {
        padding: 35px;
        gap: 32px;
    }

    .project-card-title {
        font-size: 1.8rem;
    }

    .project-card-visual {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .projects-hero-section {
        padding-top: 140px;
    }

    .projects-hero-ctas {
        width: 100%;
        flex-direction: column;
    }

    .projects-hero-ctas .btn {
        width: 100%;
    }

    .project-card {
        /* En móviles las tarjetas son más altas que la pantalla: flujo normal, sin apilar */
        position: relative;
        top: auto;
        flex-direction: column;
        min-height: auto;
        padding: 24px;
        gap: 24px;
        margin-bottom: 30px;
        border-radius: 20px;
    }

    .project-card-title {
        font-size: 1.55rem;
    }

    .project-card-info {
        gap: 16px;
    }

    .project-card-visual {
        min-width: 100%;
        padding-top: 10px;
    }

    .mock-db {
        min-height: auto;
    }
}

/* Mockup Previews Details (Thumbnails & Alternating light/dark styles) */
.appt-details-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.appt-item-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.patient-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.kds-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.kds-food-thumb {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.property-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Alternating Light/Dark Dashboard Themes --- */

/* Clinic: LIGHT MODE Dashboard Override */
.clinic-db {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    color: #1e293b !important;
    box-shadow: 0 20px 45px rgba(6, 182, 212, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

.clinic-db .db-header {
    background: rgba(241, 245, 249, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.clinic-db .db-title {
    color: #0f172a !important;
}

.clinic-db .patient-profile-name {
    color: #0f172a !important;
}

.clinic-db .patient-profile-desc {
    color: #64748b !important;
}

.clinic-db .patient-online-dot {
    border-color: #ffffff !important;
}

.clinic-db .patient-pic-glowing {
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.25) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    background: rgba(6, 182, 212, 0.05) !important;
}

.clinic-db .vital-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.clinic-db .vital-card:hover {
    background: rgba(241, 245, 249, 0.4) !important;
}

.clinic-db .vital-label {
    color: #64748b !important;
}

.clinic-db .vital-value {
    color: #0f172a !important;
}

.clinic-db .vital-value.text-red {
    color: #ff5252 !important;
}

.clinic-db .vital-value.text-cyan {
    color: #06b6d2 !important;
}

.clinic-db .vital-value.text-purple {
    color: #a855f7 !important;
}

.clinic-db .vital-unit {
    color: #64748b !important;
}

.clinic-db .heartrate-graph {
    background: rgba(239, 68, 68, 0.03) !important;
    border: 1px solid rgba(239, 68, 68, 0.1) !important;
}

.clinic-db .clinic-activity-log {
    background: rgba(241, 245, 249, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.clinic-db .log-title {
    color: #64748b !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.clinic-db .log-list li {
    color: #334155 !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.clinic-db .log-list li::before {
    display: none !important;
}

.clinic-db .log-time {
    color: #06b6d2 !important;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Real Estate: LIGHT MODE Dashboard Override */
.realestate-db {
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
    color: #1e293b !important;
    box-shadow: 0 20px 45px rgba(168, 85, 247, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
}

.realestate-db .db-header {
    background: rgba(241, 245, 249, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.realestate-db .db-title {
    color: #0f172a !important;
}

.realestate-db .re-property-card-preview {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

.realestate-db .property-name-txt {
    color: #0f172a !important;
}

.realestate-db .property-specs {
    color: #64748b !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.realestate-db .re-funnel-pipeline {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03) !important;
}

.realestate-db .fps-label {
    color: #64748b !important;
}

.realestate-db .fps-val {
    color: #0f172a !important;
}

.realestate-db .fps-bar {
    background: #f1f5f9 !important;
}

/* Barber Services Menu Mockup Layout */
.barber-services-menu {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.barber-services-menu .menu-header {
    font-size: 0.68rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 4px;
}

.services-list-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 6px 10px;
    gap: 10px;
}

.service-menu-thumb {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.service-menu-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-menu-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.service-menu-price {
    font-size: 0.65rem;
    color: #f97316;
    font-weight: 600;
}

.service-menu-tag {
    font-size: 0.58rem;
    font-weight: 700;
    color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

/* ==========================================================================
   Nuevas Animaciones y Estilos de Dashboards (Clínica & Restaurante)
   ========================================================================== */

/* --- CLINICA: CONTENEDOR VISUAL APILADO & INTERACTIVO --- */
.clinic-visual-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel del Chatbot de IA */
.clinic-bot-panel {
    position: relative;
    z-index: 5;
    width: 270px;
    min-height: 290px;
    background: #ffffff !important;
    border: 1px solid rgba(6, 182, 212, 0.25) !important;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 15px rgba(6, 182, 212, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-45px) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* Panel del Doctor (Expediente y Triage) */
.clinic-dashboard-panel {
    position: absolute;
    z-index: 2;
    width: 300px;
    min-height: 310px;
    background: #ffffff !important;
    border: 1px solid rgba(6, 182, 212, 0.2) !important;
    transform: translateX(75px) translateY(-20px) scale(0.96);
    opacity: 0.92;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, z-index 0.5s;
}

/* Efecto de desplazamiento y escala interactivo al pasar el cursor */
.clinic-visual-container:hover .clinic-bot-panel {
    transform: translateX(-80px) translateY(35px) scale(0.98);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.clinic-visual-container:hover .clinic-dashboard-panel {
    transform: translateX(50px) translateY(-30px) scale(1.03);
    opacity: 1;
    z-index: 6;
    /* Trae al frente */
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.18), 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Estilos de Chat Clínico (Modo Claro) */
.clinic-bot-panel .chat-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clinic-bot-panel .clinic-avatar {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.clinic-bot-panel .chat-user-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.clinic-bot-panel .chat-user-status {
    font-size: 0.6rem;
    color: #06b6d2;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clinic-bot-panel .chat-user-status i {
    font-size: 0.45rem;
    animation: chatPulseCyan 1.5s infinite;
}

@keyframes chatPulseCyan {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.clinic-chat-messages {
    background: #f8fafc;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 210px;
}

.clinic-bot-panel .chat-msg {
    max-width: 85%;
    padding: 8px 11px;
    font-size: 0.68rem;
    line-height: 1.4;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.clinic-bot-panel .msg-received {
    align-self: flex-start;
    background: #ffffff;
    color: #334155;
    border-top-left-radius: 0;
    border: 1px solid #e2e8f0;
}

.clinic-bot-panel .msg-sent {
    align-self: flex-end;
    background: #e0f2fe;
    color: #0369a1;
    border-top-right-radius: 0;
}

.clinic-bot-panel .clinic-ai-highlight {
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.2);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.1);
    animation: clinicMsgGlow 2.5s infinite alternate ease-in-out;
}

@keyframes clinicMsgGlow {
    0% {
        border-color: rgba(13, 148, 136, 0.2);
        box-shadow: 0 0 4px rgba(13, 148, 136, 0.08);
    }

    100% {
        border-color: rgba(13, 148, 136, 0.5);
        box-shadow: 0 0 12px rgba(13, 148, 136, 0.2);
    }
}

/* Expediente y Dashboard del Doctor (Modo Claro) */
.clinic-dashboard-panel .db-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clinic-patient-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.clinic-dashboard-panel .patient-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clinic-dashboard-panel .patient-avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
}

.clinic-dashboard-panel .patient-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #06b6d2;
}

.clinic-dashboard-panel .patient-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
}

.clinic-dashboard-panel .patient-header-info {
    display: flex;
    flex-direction: column;
}

.clinic-dashboard-panel .p-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.clinic-dashboard-panel .p-age {
    font-size: 0.65rem;
    color: #64748b;
}

.patient-ai-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ai-card-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #06b6d2;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ai-card-text {
    font-size: 0.68rem;
    color: #334155;
    line-height: 1.35;
}

.ai-card-badges {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.ai-badge {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
}

.badge-warning-light {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-info-light {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Botones de acción clínica */
.clinic-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.clinic-action-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.clinic-action-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-send-prescription {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.btn-send-prescription:hover {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.btn-call-patient {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

.btn-call-patient:hover {
    background: #00b0ff;
    color: #ffffff;
    border-color: #00b0ff;
    box-shadow: 0 4px 10px rgba(0, 176, 255, 0.15);
}


/* --- RESTAURANTE: MENÚ DIGITAL & RECEPTOR DE PEDIDOS --- */
.restaurant-visual-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Teléfono móvil - Menú digital */
.restaurant-visual-container .phone-mockup-wrapper {
    position: relative;
    z-index: 5;
    width: 215px;
    height: 350px;
    background: #0f0f15 !important;
    border: 7px solid #272730 !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-45px) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* Panel del Administrador / Receptor de cocina */
.restaurant-admin-panel {
    position: absolute;
    z-index: 2;
    width: 290px;
    min-height: 320px;
    background: rgba(4, 4, 8, 0.78) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    transform: translateX(75px) translateY(-20px) scale(0.96);
    opacity: 0.92;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, z-index 0.5s;
}

/* Efecto hover interactivo para el restaurante */
.restaurant-visual-container:hover .phone-mockup-wrapper {
    transform: translateX(-80px) translateY(35px) scale(0.98);
}

.restaurant-visual-container:hover .restaurant-admin-panel {
    transform: translateX(50px) translateY(-30px) scale(1.03);
    opacity: 1;
    z-index: 6;
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.18), 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Barra de Estado del Celular */
.restaurant-visual-container .phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 14px 2px 14px;
    background: #0f0f15;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.restaurant-visual-container .phone-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Cabecera del menú en celular */
.phone-menu-header {
    background: #0f0f15 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 6px 14px !important;
}

.phone-menu-header .db-title {
    font-size: 0.65rem !important;
}

.phone-menu-header .db-status {
    font-size: 0.58rem !important;
}

/* Cuerpo del celular */
.phone-menu-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 10px 58px 10px !important;
    /* Espacio para el nav bar flotante */
    gap: 10px;
    overflow-y: auto;
    background: #0f0f15 !important;
    scrollbar-width: none;
}

.phone-menu-body::-webkit-scrollbar {
    display: none;
}

/* Categorías del menú en celular */
.phone-menu-categories {
    display: flex;
    gap: 6px;
    padding: 2px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.phone-menu-categories::-webkit-scrollbar {
    display: none;
}

.phone-menu-categories .category-pill {
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-fast);
}

.phone-menu-categories .category-pill.active {
    background: #a855f7 !important;
    color: #ffffff !important;
    border-color: #a855f7 !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}

/* Cuadrícula horizontal de comida en celular */
.phone-food-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
}

.phone-food-grid::-webkit-scrollbar {
    display: none;
}

.phone-food-grid .food-menu-card {
    flex: 0 0 95px;
    background: #171721;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-food-grid .food-img-container {
    height: 60px;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-food-grid .food-menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-food-grid .food-popular-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.45rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.phone-food-grid .food-menu-info {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-food-grid .food-name {
    font-size: 0.58rem;
    font-weight: 700;
    color: #ffffff;
}

.phone-food-grid .food-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phone-food-grid .food-price {
    font-size: 0.58rem;
    font-weight: 800;
    color: #10b981;
}

.phone-food-grid .btn-add-food {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a855f7;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(168, 85, 247, 0.2);
}

/* Nav flotante inferior de celular */
.phone-bottom-nav {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 40px;
    background: rgba(23, 23, 33, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.phone-bottom-nav .phone-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    gap: 1px;
}

.phone-bottom-nav .phone-nav-item span {
    font-size: 0.48rem;
    font-weight: 600;
}

.phone-bottom-nav .phone-nav-item.active,
.phone-bottom-nav .phone-nav-item:hover {
    color: #a855f7;
}

.phone-bottom-nav .cart-item {
    position: relative;
}

.phone-bottom-nav .cart-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.45rem;
    font-weight: 800;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #171721;
}

/* Panel de Administración de Pedidos (Cocina) */
.admin-orders-body {
    padding: 12px !important;
}

.admin-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 230px;
    scrollbar-width: none;
}

.admin-orders-list::-webkit-scrollbar {
    display: none;
}

.order-admin-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.new-order-pulse {
    border-color: rgba(16, 185, 129, 0.3) !important;
    animation: orderGlowPulse 2.5s infinite alternate ease-in-out;
}

@keyframes orderGlowPulse {
    0% {
        border-color: rgba(16, 185, 129, 0.2);
        box-shadow: 0 0 4px rgba(16, 185, 129, 0.08);
    }

    100% {
        border-color: rgba(16, 185, 129, 0.5);
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }
}

.order-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 4px;
}

.order-table-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
}

.order-time-stamp {
    font-size: 0.58rem;
    color: var(--text-muted);
}

.order-admin-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
}

.admin-item-thumb {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}

.order-admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 4px;
    margin-top: 2px;
}

.order-total-price {
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
}

.order-status-badge {
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-kitchen {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.status-ready {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}


/* --- BARBERIA: CONTENEDOR VISUAL APILADO & INTERACTIVO (OSCURO / NARANJA) --- */
.barber-visual-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel del Catálogo de Barbería */
.barber-catalog-panel {
    position: relative;
    z-index: 5;
    width: 270px;
    min-height: 290px;
    background: #0b141a !important;
    /* WhatsApp Dark style */
    border: 1px solid rgba(249, 115, 22, 0.25) !important;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(249, 115, 22, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-45px) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* Panel de Agenda / Dashboard */
.barber-dashboard-panel {
    position: absolute;
    z-index: 2;
    width: 300px;
    min-height: 310px;
    background: rgba(4, 4, 8, 0.8) !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
    transform: translateX(75px) translateY(-20px) scale(0.96);
    opacity: 0.92;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, z-index 0.5s;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* Efecto hover interactivo */
.barber-visual-container:hover .barber-catalog-panel {
    transform: translateX(-80px) translateY(35px) scale(0.98);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.barber-visual-container:hover .barber-dashboard-panel {
    transform: translateX(50px) translateY(-30px) scale(1.03);
    opacity: 1;
    z-index: 6;
    box-shadow: 0 25px 50px rgba(249, 115, 22, 0.18), 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Scheduler y totalizador de Barbería */
.scheduler-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    margin-bottom: 2px;
}

.group-title {
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chip-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.date-chip,
.time-chip,
.barber-chip {
    font-size: 0.62rem;
    font-weight: 700;
    color: #e9edef;
    background: #202c33;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    user-select: none;
}

.date-chip:hover,
.time-chip:hover,
.barber-chip:hover {
    background: #2a3942;
    border-color: rgba(249, 115, 22, 0.35);
}

.date-chip.active,
.time-chip.active,
.barber-chip.active {
    background: #f97316;
    color: #ffffff;
    border-color: #f97316;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.catalog-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.total-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e9edef;
}

.total-val {
    font-size: 0.85rem;
    font-weight: 800;
    color: #f97316;
}

.catalog-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.catalog-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #202c33;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.catalog-item:hover {
    background: #2a3942;
    border-color: rgba(249, 115, 22, 0.35);
}

.catalog-item.active {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.15);
}

.catalog-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.catalog-item-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-item-info {
    display: flex;
    flex-direction: column;
}

.catalog-item-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e9edef;
}

.catalog-item-price {
    font-size: 0.62rem;
    color: #f97316;
    font-weight: 600;
}

.catalog-checkbox {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.catalog-checkbox.checked {
    color: #25d366;
    /* Verde WhatsApp */
    animation: scaleCheck 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleCheck {
    from {
        transform: scale(0.6);
    }

    to {
        transform: scale(1);
    }
}

.catalog-scheduler {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.scheduler-row {
    display: flex;
    gap: 6px;
}

.schedule-pill {
    font-size: 0.62rem;
    font-weight: 700;
    color: #e9edef;
    background: #202c33;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-catalog-whatsapp {
    background: #00a884;
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 168, 132, 0.2);
}

.btn-catalog-whatsapp:hover {
    background: #00c69d;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 168, 132, 0.3);
}

.btn-catalog-whatsapp i {
    font-size: 0.95rem;
}

/* Dashboard del Barbero */
.barber-dashboard-panel .db-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.barber-appointments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.barber-appt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 10px;
    gap: 8px;
    text-align: left;
}

.barber-appt-item .appt-details {
    display: flex;
    flex-direction: column;
}

.barber-appt-item .appt-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
}

.barber-appt-item .appt-service {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.appt-time-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.appt-status-badge {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.appt-status-badge.status-confirmed {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.appt-status-badge.status-pending {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.barber-stats-row {
    display: flex;
    gap: 8px;
}

.barber-mini-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}


/* --- INMOBILIARIA: CONTENEDOR VISUAL APILADO & INTERACTIVO (CLARO / MORADO) --- */
.realestate-visual-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Panel de Búsqueda de Inmobiliaria (Modo Claro) */
.realestate-search-panel {
    position: relative;
    z-index: 5;
    width: 270px;
    min-height: 290px;
    background: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.25) !important;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 15px rgba(168, 85, 247, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-45px) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

/* Panel CRM (Modo Claro) */
.realestate-dashboard-panel {
    position: absolute;
    z-index: 2;
    width: 300px;
    min-height: 310px;
    background: #ffffff !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    transform: translateX(75px) translateY(-20px) scale(0.96);
    opacity: 0.92;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, z-index 0.5s;
}

/* Efecto hover interactivo */
.realestate-visual-container:hover .realestate-search-panel {
    transform: translateX(-80px) translateY(35px) scale(0.98);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.realestate-visual-container:hover .realestate-dashboard-panel {
    transform: translateX(50px) translateY(-30px) scale(1.03);
    opacity: 1;
    z-index: 6;
    box-shadow: 0 25px 50px rgba(168, 85, 247, 0.18), 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Trivago search styling */
.search-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    background: #f8fafc;
}

.search-filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.search-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    font-size: 0.62rem;
    font-weight: 700;
    color: #475569;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.filter-pill:hover {
    background: #f1f5f9;
    border-color: rgba(168, 85, 247, 0.35);
}

.filter-pill.active {
    background: #a855f7;
    color: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.2);
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 200px;
    padding-right: 2px;
    text-align: left;
}

.search-results-list::-webkit-scrollbar {
    width: 4px;
}

.search-results-list::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.search-property-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.search-property-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    background: #faf5ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(168, 85, 247, 0.05);
}

.search-property-card.active {
    border-color: #a855f7;
    background: #f5f3ff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

.search-prop-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.search-prop-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
    flex-grow: 1;
}

.search-prop-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
}

.search-prop-price {
    font-size: 0.68rem;
    color: #a855f7;
    font-weight: 800;
}

.search-prop-specs {
    font-size: 0.58rem;
    color: #64748b;
}

.search-prop-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.rating-num {
    font-size: 0.62rem;
    font-weight: 850;
    color: #ffffff;
    background: #10b981;
    padding: 2px 4px;
    border-radius: 4px;
}

.rating-text {
    font-size: 0.52rem;
    font-weight: 700;
    color: #10b981;
}

/* CRM Dashboard (Modo Claro) */
.realestate-dashboard-panel .db-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.re-lead-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.re-lead-detail .lead-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.re-lead-detail .lead-avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
}

.re-lead-detail .lead-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #a855f7;
}

.re-lead-detail .lead-hot-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    /* Rojo para lead caliente */
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    animation: hotLeadGlow 1.5s infinite ease-in-out;
}

@keyframes hotLeadGlow {

    0%,
    100% {
        box-shadow: 0 0 2px #ef4444;
    }

    50% {
        box-shadow: 0 0 8px #ef4444;
    }
}

.re-lead-detail .lead-header-info {
    display: flex;
    flex-direction: column;
}

.re-lead-detail .l-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.re-lead-detail .l-status {
    font-size: 0.65rem;
    color: #8b5cf6;
    font-weight: 600;
}

.re-property-mini-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.re-property-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.re-property-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rp-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
}

.rp-price {
    font-size: 0.7rem;
    color: #a855f7;
    font-weight: 800;
}

.rp-specs {
    font-size: 0.58rem;
    color: #64748b;
}

/* Botones de acción CRM */
.re-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.re-action-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.re-action-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-view-property {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.btn-view-property:hover {
    background: #a855f7;
    color: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.15);
}

.btn-assign-agent {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.btn-assign-agent:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}


/* --- ADAPTACIONES DE APILAMIENTO 3D EN RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {

    .clinic-visual-container,
    .restaurant-visual-container,
    .barber-visual-container,
    .realestate-visual-container {
        height: auto !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 10px 0 !important;
    }

    .clinic-bot-panel,
    .restaurant-visual-container .phone-mockup-wrapper,
    .barber-catalog-panel,
    .realestate-search-panel {
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        max-width: 290px !important;
    }

    .clinic-dashboard-panel,
    .restaurant-admin-panel,
    .barber-dashboard-panel,
    .realestate-dashboard-panel {
        position: relative !important;
        transform: none !important;
        width: 100% !important;
        max-width: 290px !important;
        opacity: 1 !important;
    }

    .clinic-visual-container:hover .clinic-bot-panel,
    .clinic-visual-container:hover .clinic-dashboard-panel,
    .restaurant-visual-container:hover .phone-mockup-wrapper,
    .restaurant-visual-container:hover .restaurant-admin-panel,
    .barber-visual-container:hover .barber-catalog-panel,
    .barber-visual-container:hover .barber-dashboard-panel,
    .realestate-visual-container:hover .realestate-search-panel,
    .realestate-visual-container:hover .realestate-dashboard-panel {
        transform: none !important;
    }
}

/* Animación y efecto de pulso para nueva reserva en dashboard */
@keyframes newBookingAppt {
    0% {
        background: rgba(249, 115, 22, 0.4);
        border-color: rgba(249, 115, 22, 0.8);
    }

    100% {
        background: rgba(255, 255, 255, 0.015);
        border-color: rgba(255, 255, 255, 0.04);
    }
}

.new-booking-pulse {
    animation: newBookingAppt 2s ease-out forwards;
}

/* --- BARBER ADMIN TAB NAVIGATION --- */
.admin-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
    margin: 0;
    width: 100%;
}

.admin-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 10px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.admin-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.015);
}

.admin-tab.active {
    color: #f97316;
    border-bottom-color: #f97316;
    background: rgba(249, 115, 22, 0.03);
}

/* Tab contents and body */
.tab-content-body {
    position: relative;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tab-content {
    display: none;
    flex-direction: column;
    padding: 12px 14px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 235px;
}

.tab-content.active {
    display: flex;
}

/* Stats Row aligned at the bottom */
.admin-stats-row {
    margin-top: auto;
    padding: 8px 14px 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 4, 8, 0.5);
}

/* --- TAB 1: WHATSAPP CHAT INBOX --- */
.wa-chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
    text-align: left;
}

.wa-chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00a884;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.wa-chat-info {
    display: flex;
    flex-direction: column;
}

.wa-chat-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.wa-chat-status {
    font-size: 0.58rem;
    color: #8696a0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.text-success-dot {
    color: #25d366;
    font-size: 0.45rem;
}

.wa-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    overflow-y: auto;
    padding: 2px;
    margin-bottom: 8px;
    min-height: 110px;
}

.wa-msg {
    max-width: 85%;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.68rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.wa-msg.wa-received {
    align-self: flex-start;
    background: #202c33;
    color: #e9edef;
    border-top-left-radius: 0;
}

.wa-msg.wa-sent {
    align-self: flex-end;
    background: #005c4b;
    color: #e9edef;
    border-top-right-radius: 0;
}

.wa-msg-time {
    display: block;
    font-size: 0.52rem;
    color: #8696a0;
    text-align: right;
    margin-top: 4px;
}

.wa-msg-time i {
    color: #53bdeb;
    margin-left: 2px;
}

.wa-chat-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 4px;
}

.btn-wa-action {
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-wa-action.confirm-btn {
    background: #00a884;
    color: #ffffff;
}

.btn-wa-action.confirm-btn:hover {
    background: #00c69d;
}

.btn-wa-action.reschedule-btn {
    background: #202c33;
    color: #e9edef;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-wa-action.reschedule-btn:hover {
    background: #2a3942;
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- TAB 2 & 3: SETTINGS AND TOGGLES --- */
.content-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    margin-bottom: 8px;
    border-left: 2.5px solid #f97316;
    padding-left: 6px;
}

.section-title-spacing {
    margin-top: 14px;
}

.admin-settings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 10px;
    gap: 8px;
    text-align: left;
}

.setting-info {
    display: flex;
    flex-direction: column;
}

.setting-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.setting-desc {
    font-size: 0.58rem;
    color: var(--text-muted);
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 28px;
    height: 16px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #f97316;
}

input:checked+.toggle-slider:before {
    transform: translateX(12px);
}

/* Service disabled state on client side */
.catalog-item.disabled {
    opacity: 0.35;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.04) !important;
    position: relative;
}

.catalog-item.disabled::after {
    content: "No disponible";
    position: absolute;
    right: 8px;
    font-size: 0.52rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1px 4px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ==========================================================================
   Sección Cómo Trabajamos
   ========================================================================== */
.como-trabajamos-section {
    padding: 100px 24px;
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

.como-trabajamos-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.como-trabajamos-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Bloque 1: Soluciones y Métricas (Bento Grid) */
.how-we-work-block-1 {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.how-we-work-block-1 .block-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    max-width: 700px;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-main);
}

.metrics-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bento-card-large {
    grid-column: span 2;
    grid-row: span 2;
    height: 100%;
}

.card-tag {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-architecture .card-tag {
    color: #3b82f6;
}

.card-scalability .card-tag {
    color: #a855f7;
}

.card-clean-code .card-tag {
    color: #6366f1;
}

.card-analytics .card-tag {
    color: #10b981;
}

.card-performance .card-tag {
    color: #f59e0b;
}

.bento-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 15px;
    z-index: 2;
}

.bento-card-large .bento-card-title {
    font-size: 2rem;
    max-width: 480px;
    margin-bottom: 20px;
}

.bento-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    z-index: 2;
}

.bento-card-large .bento-card-desc {
    max-width: 480px;
    font-size: 0.95rem;
}

/* Bento Metrics Decoratives */
.bento-grid-deco {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(2, 60px);
    gap: 15px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

.deco-box {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.deco-box.highlight {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 176, 255, 0.3);
    background: rgba(0, 176, 255, 0.05);
}

.bento-card:hover .deco-box.highlight {
    transform: scale(1.1);
}

.bento-metric-badge {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    margin-top: auto;
}

.bento-metric-badge .metric-label {
    font-size: 0.55rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.bento-metric-badge .metric-value {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-cyan .metric-value {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 176, 255, 0.4);
}

.text-green .metric-value {
    color: #00e676;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.4);
}

/* SVG Waves in Scalability Card */
.svg-wave-container {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 1;
}

.svg-waves {
    width: 100%;
    height: 100%;
}

/* Clean code code block decorative icon */
.card-flex-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.code-icon-deco {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* SVG Chart in Analytics Card */
.svg-chart-container {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    z-index: 1;
}

.svg-chart {
    width: 100%;
    height: 100%;
}

.svg-chart path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawChart 3s ease-out forwards infinite alternate;
}

@keyframes drawChart {
    to {
        stroke-dashoffset: 0;
    }
}

/* Grid specifics */
.card-scalability {
    grid-column: span 1;
    grid-row: span 1;
}

.card-clean-code {
    grid-column: span 1;
    grid-row: span 1;
}

.card-analytics {
    grid-column: span 1;
    grid-row: span 1;
}

.card-performance {
    grid-column: span 1;
    grid-row: span 1;
}


/* Bloque 2: Pilares y Virtudes de Excelencia */
.how-we-work-block-2 {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 20px;
}

.values-header {
    max-width: 700px;
    margin: 0 auto;
}

.values-header .block-subtitle {
    font-size: 0.7rem;
    color: var(--accent-purple);
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.values-header .block-title-large {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.values-header .block-desc-center {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.values-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.value-card {
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.value-tag {
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.value-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.value-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.value-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Grid Layout definitions for the 5 cards */
.val-claridad {
    grid-column: span 6;
}

.val-colaboracion {
    grid-column: span 6;
}

.val-calidad {
    grid-column: span 4;
}

.val-agilidad {
    grid-column: span 4;
}

.val-innovacion {
    grid-column: span 4;
}

/* Custom Neon Color Themes for each Value card */
/* 1. Claridad (Morado / Purple) */
.val-claridad {
    border-color: rgba(168, 85, 247, 0.15);
}

.val-claridad .value-tag {
    color: #a855f7;
}

.val-claridad .value-icon-box {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.val-claridad:hover {
    border-color: #a855f7;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15), inset 0 0 20px rgba(168, 85, 247, 0.05);
}

/* 2. Colaboración (Azul / Blue) */
.val-colaboracion {
    border-color: rgba(59, 130, 246, 0.15);
}

.val-colaboracion .value-tag {
    color: #3b82f6;
}

.val-colaboracion .value-icon-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.val-colaboracion:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(59, 130, 246, 0.05);
}

/* 3. Calidad (Naranja / Rojo) */
.val-calidad {
    border-color: rgba(249, 115, 22, 0.15);
}

.val-calidad .value-tag {
    color: #f97316;
}

.val-calidad .value-icon-box {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

.val-calidad:hover {
    border-color: #f97316;
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15), inset 0 0 20px rgba(249, 115, 22, 0.05);
}

/* 4. Agilidad (Verde / Emerald) */
.val-agilidad {
    border-color: rgba(16, 185, 129, 0.15);
}

.val-agilidad .value-tag {
    color: #10b981;
}

.val-agilidad .value-icon-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.val-agilidad:hover {
    border-color: #10b981;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15), inset 0 0 20px rgba(16, 185, 129, 0.05);
}

/* 5. Innovación (Magenta / Rosa) */
.val-innovacion {
    border-color: rgba(236, 72, 153, 0.15);
}

.val-innovacion .value-tag {
    color: #ec4899;
}

.val-innovacion .value-icon-box {
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.val-innovacion:hover {
    border-color: #ec4899;
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.15), inset 0 0 20px rgba(236, 72, 153, 0.05);
}


/* Bloque 3: Línea de tiempo (Process vertical timeline) */
.how-we-work-block-3 {
    margin-top: 40px;
}

.timeline-container-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: flex-start;
}

.timeline-info-side {
    position: sticky;
    top: 120px;
}

.timeline-tag {
    font-size: 0.7rem;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.timeline-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    color: var(--text-main);
    margin-bottom: 25px;
}

.timeline-main-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.timeline-cta-wrapper {
    display: flex;
}

.btn-huge-cta {
    background: var(--accent-gradient);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 22px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    box-shadow: 0 0 30px rgba(0, 176, 255, 0.3);
    transition: var(--transition-smooth);
}

.btn-huge-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 0 45px rgba(168, 85, 247, 0.5);
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);
}

.btn-primary-pulse {
    animation: ctaPulse 2s infinite;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 176, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 176, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 176, 255, 0);
    }
}

.timeline-steps-side {
    position: relative;
    padding-left: 60px;
}

/* Timeline Vertical Line */
.timeline-vertical-line {
    position: absolute;
    left: 20px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan) 0%, var(--accent-purple) 50%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 0 15px rgba(0, 176, 255, 0.5);
}

.timeline-step {
    position: relative;
    margin-bottom: 60px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number-container {
    position: absolute;
    left: -60px;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #040408;
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 176, 255, 0.3);
    transition: var(--transition-smooth);
}

.timeline-step:nth-child(even) .step-number-container {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.timeline-step:last-child .step-number-container {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.step-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.step-content {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.timeline-step:hover .step-content {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.timeline-step:hover .step-number-container {
    transform: scale(1.1);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.step-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* "Primero entendemos. Luego programamos." */
.timeline-title-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.timeline-principle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: -16px 0 36px;
}

.principle-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.principle-chip i {
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

.principle-chip.is-code {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.08);
}

.principle-chip.is-code i {
    color: var(--accent-purple);
}

.principle-arrow {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive styles for Como Trabajamos */
@media (max-width: 992px) {
    .metrics-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }

    .bento-card-large {
        grid-column: span 2;
    }

    .timeline-container-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .timeline-info-side {
        position: relative;
        top: 0;
    }

    .values-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .val-claridad,
    .val-colaboracion,
    .val-calidad,
    .val-agilidad,
    .val-innovacion {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .como-trabajamos-section {
        padding: 60px 16px;
    }

    .como-trabajamos-container {
        gap: 80px;
    }

    .metrics-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 16px;
    }

    .bento-card-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-card {
        padding: 24px;
    }

    .bento-card-large .bento-card-title {
        font-size: 1.6rem;
    }

    .bento-grid-deco {
        display: none;
    }

    .values-bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .val-claridad,
    .val-colaboracion,
    .val-calidad,
    .val-agilidad,
    .val-innovacion {
        grid-column: span 1;
    }

    .value-card {
        padding: 28px;
    }

    .timeline-steps-side {
        padding-left: 45px;
    }

    .timeline-vertical-line {
        left: 15px;
    }

    .step-number-container {
        left: -45px;
        width: 32px;
        height: 32px;
    }

    .step-content {
        padding: 20px;
    }
}

/* Updated premium diagram styles and animations */
.block-subtitle-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-top: 10px;
    margin-bottom: 30px;
    line-height: 1.6;
}

@keyframes nodePulse {
    0% {
        transform: scale(0.9) translate(0, 0);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4) translate(0, 0);
        opacity: 0;
    }
}

.pulse-node {
    transform-origin: center;
    animation: nodePulse 2.5s infinite ease-out;
}

.bento-arch-svg,
.bento-scale-svg,
.bento-analytics-svg {
    pointer-events: none;
    transition: var(--transition-smooth);
}

.bento-card:hover .bento-arch-svg {
    transform: translateY(-50%) scale(1.05) !important;
    opacity: 0.55 !important;
}

.bento-card:hover .bento-scale-svg {
    transform: scale(1.05) !important;
    opacity: 0.55 !important;
}

.bento-card:hover .bento-analytics-svg {
    opacity: 0.65 !important;
}


/* ==========================================================================
   Agendar llamada (llamada.html): información y pasos a la izquierda;
   calendario, formulario y confirmación en una tarjeta a la derecha
   ========================================================================== */
.booking-main-section {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 130px 24px 90px;
    overflow: hidden;
}

/* Fondo: cuadrícula que se desvanece y dos resplandores de marca */
.booking-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 45% 40% at 78% 38%, rgba(168, 85, 247, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 40% 35% at 18% 70%, rgba(0, 176, 255, 0.12) 0%, transparent 70%);
}

.booking-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 75%);
}

.booking-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.booking-split-layout {
    display: grid;
    grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr);
    gap: clamp(36px, 5vw, 64px);
    align-items: center;
}

/* Columna Izquierda: Información */
.booking-info-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.booking-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-cyan);
}

.booking-main-title {
    font-size: clamp(2.4rem, 4.6vw, 3.9rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: #ffffff;
}

.booking-title-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.booking-main-desc {
    max-width: 42ch;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Pasos de la reserva */
.booking-steps {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

/* Línea que une los pasos */
.booking-steps::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(0, 176, 255, 0.5), rgba(168, 85, 247, 0.5));
    opacity: 0.4;
}

.booking-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.booking-step-num {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #07070d;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}

.booking-step-num i {
    position: absolute;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.booking-step-num span {
    transition: opacity 0.3s ease;
}

.booking-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-step-text strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.4s ease;
}

.booking-step-text small {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.4);
}

.booking-step.is-active .booking-step-num {
    border-color: transparent;
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(0, 176, 255, 0.12), 0 0 22px rgba(0, 176, 255, 0.35);
}

.booking-step.is-active .booking-step-text strong,
.booking-step.is-done .booking-step-text strong {
    color: #ffffff;
}

.booking-step.is-done .booking-step-num {
    border-color: rgba(0, 230, 118, 0.5);
    background: rgba(0, 230, 118, 0.12);
    color: #00e676;
}

.booking-step.is-done .booking-step-num span {
    opacity: 0;
}

.booking-step.is-done .booking-step-num i {
    opacity: 1;
    transform: none;
}

.booking-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bullet-check-icon {
    margin-top: 2px;
    font-size: 1rem;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 5px rgba(0, 176, 255, 0.4));
}

.bullet-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Detalles de la llamada */
.booking-host-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    overflow: hidden;
}

.booking-host-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.5;
}

.host-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00e676;
}

.status-pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #00e676;
    box-shadow: 0 0 8px #00e676;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 12px #00e676;
    }
}

.booking-details-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.detail-badge i {
    color: var(--accent-cyan);
}

.booking-alternative-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.alternative-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Columna Derecha: tarjeta negra con borde degradado de marca que contiene los tres paneles */
.booking-action-panel {
    position: relative;
    height: 620px;
    padding: 30px;
    border-radius: 28px;
    background: #000000;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.65),
        0 0 80px rgba(168, 85, 247, 0.08);
    overflow: hidden;
}

.booking-action-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(0, 176, 255, 0.55) 0%, rgba(255, 255, 255, 0.06) 40%, rgba(168, 85, 247, 0.55) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.booking-panels-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-panel {
    position: absolute;
    inset: 0;
    display: none;
    opacity: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.slider-panel.active {
    display: block;
    opacity: 1;
}

/* Transiciones entre paneles: el actual sube y se va, el siguiente entra desde abajo */
.slide-out-left {
    display: block;
    animation: slideOutUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-out-left-instant {
    display: none !important;
}

.slide-in-right {
    display: block;
    animation: slideInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-60px);
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(60px);
        opacity: 0;
        filter: blur(6px);
    }

    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Calendario y horarios */
.panel-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 30px;
    height: 100%;
}

.panel-section-title {
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff;
}

.calendar-picker-side {
    display: flex;
    flex-direction: column;
}

.calendar-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-month-year {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.calendar-nav-buttons {
    display: flex;
    gap: 8px;
}

.cal-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.cal-nav-btn:hover {
    border-color: rgba(0, 176, 255, 0.5);
    background: rgba(0, 176, 255, 0.12);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    animation: dayIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--i, 0) * 9ms);
}

@keyframes dayIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.92);
    }
}

.pad-day {
    color: rgba(255, 255, 255, 0.12);
    cursor: default;
    pointer-events: none;
}

.current-month-day {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
    color: #ffffff;
}

.current-month-day:hover {
    border-color: rgba(0, 176, 255, 0.55);
    background: rgba(0, 176, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hoy: anillo y punto debajo del número */
.calendar-day-cell.is-today::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.calendar-day-cell.is-today {
    border-color: rgba(0, 176, 255, 0.45);
}

.disabled-day {
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    pointer-events: none;
}

.active-day {
    border-color: transparent !important;
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    font-weight: 800;
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(0, 176, 255, 0.35), 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 3px;
}

.legend-dot.is-free {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.legend-dot.is-today {
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
}

.legend-dot.is-off {
    background: rgba(255, 255, 255, 0.12);
    opacity: 0.4;
}

/* Panel de horarios: estado vacío hasta elegir un día */
.time-slots-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.time-slots-side:not(.active) .panel-section-title {
    color: rgba(255, 255, 255, 0.45);
}

.time-slots-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: center;
}

.time-slots-empty p {
    max-width: 22ch;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

.time-slots-empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(0, 176, 255, 0.08);
    font-size: 1.3rem;
    color: var(--accent-cyan);
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
    50% {
        transform: translateY(-6px);
    }
}

.time-slots-side.active .time-slots-empty {
    display: none;
}

.time-slots-wrapper {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.time-slots-side:not(.active) .time-slots-wrapper {
    display: none;
}

.time-slots-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.time-slots-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 2px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.time-slots-group:first-child {
    margin-top: 0;
}

.time-slots-group i {
    color: var(--accent-cyan);
}

.time-slot-item {
    padding: 11px 8px;
    border-radius: 12px;
    border: 1px solid rgba(0, 176, 255, 0.18);
    background: rgba(0, 176, 255, 0.04);
    text-align: center;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent-cyan);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    animation: dayIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: calc(var(--i, 0) * 28ms);
}

.time-slot-item:hover {
    border-color: rgba(0, 176, 255, 0.6);
    background: rgba(0, 176, 255, 0.14);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 176, 255, 0.2);
}

.time-slot-item.active {
    border-color: transparent;
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.time-slot-item.disabled-slot {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--text-muted) !important;
    text-decoration: line-through;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Formulario de reserva */
.booking-form-wrapper {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
}

.form-header-block {
    margin-bottom: 16px;
}

.btn-back-to-calendar {
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-bottom: 2px;
    border: none;
    background: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-back-to-calendar:hover {
    color: var(--accent-cyan);
}

.form-hero-title {
    margin: 8px 0 12px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

/* Píldora con la fecha y hora elegidas */
.form-datetime-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 176, 255, 0.3);
    background: linear-gradient(90deg, rgba(0, 176, 255, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
}

.form-datetime-pill i {
    color: var(--accent-cyan);
}

.form-hero-sub {
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-form-wrapper .form-group {
    margin-bottom: 12px;
}

.booking-form-wrapper label {
    margin-bottom: 6px;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
}

/* Campos tipo píldora (como el formulario de contacto de laboiteaslides.fr) */
.booking-form-wrapper .input-wrapper {
    border-radius: 14px;
}

.booking-form-wrapper input,
.booking-form-wrapper textarea {
    padding: 13px 16px 13px 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.booking-form-wrapper input:focus,
.booking-form-wrapper textarea:focus {
    border-color: rgba(0, 176, 255, 0.6);
    background: rgba(0, 176, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 176, 255, 0.12);
}

.booking-form-wrapper textarea {
    height: 64px;
    resize: none;
}

.booking-form-wrapper .input-select-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.booking-form-wrapper .custom-select-trigger {
    padding: 13px 16px 13px 42px;
}

.input-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    color: #ffffff;
    cursor: pointer;
}

.input-select-wrapper select option {
    background: #0d0d14;
    color: #ffffff;
}

.btn-confirm-booking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    padding: 15px 22px;
    border: none;
    border-radius: 999px;
    background: var(--accent-gradient);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

.btn-confirm-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 176, 255, 0.35);
    filter: brightness(1.06);
}

.btn-confirm-booking i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.btn-confirm-booking:hover i {
    transform: translateX(4px);
}

/* Confirmación: la palomita se dibuja al aparecer el panel */
.booking-success-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 20px 0;
    text-align: center;
}

.success-icon-box {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.08);
    box-shadow: 0 0 0 10px rgba(0, 230, 118, 0.04), 0 0 40px rgba(0, 230, 118, 0.25);
}

.success-check {
    width: 56px;
    height: 56px;
}

.success-check-ring,
.success-check-mark {
    stroke: #00e676;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.success-check-ring {
    stroke-dasharray: 145;
    stroke-dashoffset: 145;
    opacity: 0.5;
}

.success-check-mark {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.slider-panel.active .success-check-ring {
    animation: drawStroke 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.slider-panel.active .success-check-mark {
    animation: drawStroke 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.75s forwards;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.success-desc {
    max-width: 460px;
    margin-bottom: 26px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.success-details-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 460px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.success-detail-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.row-label {
    color: var(--text-muted);
}

.row-value {
    font-weight: 700;
    text-align: right;
    color: #ffffff;
}

#success-folio {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--accent-cyan);
}

.success-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* Botón de WhatsApp Directo (también se usa en el inicio) */
.btn-whatsapp-direct {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    border: 1px solid rgba(37, 211, 102, 0.2);
    background-color: rgba(37, 211, 102, 0.08);
    font-weight: 700;
    color: #25d366;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-whatsapp-direct:hover {
    background-color: #25d366;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Responsive para la sección de reserva */
@media (max-width: 992px) {
    .booking-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .booking-action-panel {
        height: 760px;
    }

    .panel-calendar-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 24px;
    }

    .time-slots-side {
        padding: 24px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
    }

    .time-slots-wrapper {
        overflow: visible;
    }
}

@media (max-width: 768px) {
    .booking-main-section {
        padding: 100px 16px 60px;
    }

    .booking-action-panel {
        height: 820px;
        padding: 20px;
        border-radius: 22px;
    }

    .time-slots-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .success-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }

    .time-slots-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .calendar-day-cell,
    .time-slot-item,
    .time-slots-empty-icon {
        animation: none;
    }
}

/* ==========================================================================
   Custom Select Dropdown (con iconos FA, sin emojis)
   ========================================================================== */
.input-select-wrapper {
    position: relative;
    overflow: visible !important;
}

.custom-select {
    position: relative;
    width: 100%;
    z-index: 50;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 38px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    user-select: none;
    gap: 8px;
    transition: color 0.2s ease;
}

.custom-select.has-value .custom-select-trigger {
    color: #ffffff;
}

.custom-select-arrow {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: -38px;
    right: 0;
    background: #0d0d18;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    z-index: 200;
}

.custom-select.open .custom-select-dropdown {
    display: block;
    animation: dropdownFadeIn 0.2s ease forwards;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option i {
    width: 18px;
    text-align: center;
    color: var(--accent-cyan);
    font-size: 0.82rem;
}

.custom-select-option:hover {
    background: rgba(0, 176, 255, 0.06);
    color: #ffffff;
}

.custom-select-option.selected {
    background: rgba(0, 176, 255, 0.08);
    color: var(--accent-cyan);
    font-weight: 700;
}

/* ==========================================================================
   Animaciones de marca (inspiradas en laboiteaslides.fr): manifiesto con
   transición curva, texto que se ilumina con el scroll, marquesina,
   insignia giratoria y títulos con máscara por línea (motion.js + GSAP)
   ========================================================================== */
.split-line {
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

/* Botones magnéticos: GSAP mueve el transform, CSS solo anima colores y sombras */
.has-motion .btn-primary,
.has-motion .btn-nav-cta,
.has-motion .btn-primary-purple,
.has-motion .work-cta {
    transition-property: background, background-color, color, border-color, box-shadow, opacity;
}

/* Manifiesto: sección negra entre la portada y los servicios */
.manifesto-section {
    --manifesto-ink: #f5f3ff;
    position: relative;
    z-index: 10;
    padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px);
    background: var(--bg-color);
    color: var(--manifesto-ink);
}

/* Onda entre secciones (motion.js): la sección siguiente sube con un borde curvo
   y una línea de luz con el degradado de marca que se apaga al aplanarse */
.section-wave {
    position: relative;
    z-index: 12;
    height: var(--wave-h);
    margin-top: calc(-1 * var(--wave-h));
    margin-bottom: -1px;
    pointer-events: none;
    --wave-h: clamp(120px, 20vw, 320px);
}

.section-wave svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.section-wave .wave-rim {
    fill: none;
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
}

/* Capa de luz separada para que el resplandor siga solo a la línea curva */
.section-wave .wave-light {
    filter: drop-shadow(0 0 6px rgba(0, 176, 255, 0.75)) drop-shadow(0 0 22px rgba(168, 85, 247, 0.45));
}

@media (max-width: 768px) {
    .section-wave {
        --wave-h: clamp(80px, 24vw, 140px);
    }
}

.manifesto-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.manifesto-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.manifesto-kicker::before,
.manifesto-kicker::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.manifesto-text {
    font-size: clamp(1.7rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.035em;
    color: var(--manifesto-ink);
}

.manifesto-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Las palabras empiezan tenues y se iluminan con el scroll (motion.js) */
.manifesto-text .word {
    opacity: 0.14;
}

/* Con SplitText el degradado se aplica por palabra para que también se ilumine con el scroll */
.has-motion .manifesto-accent {
    background: none;
    color: var(--manifesto-ink);
}

.has-motion .manifesto-accent .word {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.manifesto-marquee {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: clamp(60px, 8vw, 110px);
    overflow: hidden;
    transform: rotate(-2deg);
}

.marquee-row {
    display: flex;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: clamp(18px, 2.4vw, 36px);
    padding-right: clamp(18px, 2.4vw, 36px);
    font-size: clamp(2.6rem, 7.5vw, 6.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--manifesto-ink);
    will-change: transform;
}

.marquee-track .is-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(245, 243, 255, 0.55);
}

.marquee-track i {
    font-style: normal;
    font-size: 0.5em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Sin JS la marquesina corre con CSS; motion.js la toma y la acelera con el scroll */
.marquee-row .marquee-track {
    animation: marqueeLeft 40s linear infinite;
}

.marquee-row-reverse .marquee-track {
    animation-name: marqueeRight;
}

.has-motion .marquee-row .marquee-track {
    animation: none;
}

@keyframes marqueeLeft {
    to { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (max-width: 768px) {
    .marquee-track .is-outline {
        -webkit-text-stroke-width: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-row .marquee-track {
        animation: none;
    }

    .manifesto-text .word {
        opacity: 1;
    }
}

/* Texto que rueda al pasar el cursor (initTextRoll en motion.js) */
.roll {
    position: relative;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

.roll-a {
    display: block;
}

.roll-b {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
}
