:root {
    /* Base color palette extracted from the original Figma design */
    --purple: #7F56F4;
    --orange: #F6940F;
    --pink: #DA507D;
    --blue: #378CDF;
    --green: #7ABF98;
    --dark-bg: #0d1117;
    --dark-card: #141a27;
    /* Valores auxiliares usados en el CSS */
    --accent: var(--orange);
    --text-muted: #9ca3af;
    /* Colores por módulo (paleta de marca) */
    --inicioModulo-accent: #00c2cb;    /* Turquesa */
    --usuarios-accent: #1ca4cb;        /* celeste */
    --marketing-accent: #e6506b;       /* rosa */
    --ventas-accent: #f7b601;          /* amarillo */
    --compras-accent: #f46f1d;         /* naranja */
    --productos-accent: #e43b3b;       /* rosa */
    --fondos-accent: #8c4ff2;          /* violeta-azulado */
    --logistica-accent: #bd50a9;       /* violeta */
    --contabilidad-accent: #5a6cf9;    /* azul marino */

    
    /*Colores de prueba para Inicio [elementos/tutoriales.php] */
    --inicio-accent: #f1f1f1;          /* Blanco para Inicio general */
    --integraciones-accent: #606162;   /* Gris */
    /*
        amarillo: #f7b601
        naranja: #f46f1d
        rosa: #e6506b
        violeta: #bd50a9
        violeta-azulado: #8c4ff2
        azul marino: #5a6cf9
        celeste: #1ca4cb
    */
}



header {
    margin-bottom: 3rem;
}

/* Global body styles */
body {
    background-color: var(--dark-bg);
    background-image: url(../imagenes/bg-tech.png);
    background-repeat: no-repeat;
    background-position: top left;
    background-attachment: fixed;
    color: #f3f4f6;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

h4 {
    color: var(--orange);
    margin-bottom: 1rem;
}

h5 {
    font-size: 1.2rem;
    margin: 1.4rem 0 1rem;
}

.faq-link {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: color 0.3s ease;
}

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

.card-body {
    padding: 1.2rem;
}

/* Estilos específicos para el módulo Usuarios */
#usuarios h5 {
    color: var(--pink);
}

#usuarios-introduccion h3:first-of-type {
    color: var(--pink);
}

/* Titulos por módulo: aplica color de acento específico a cada módulo */
/* Ventas */
.row .contenido h1,
.row .contenido h2,
.row .contenido h3,
.row .contenido h4,
.row .contenido h5,
.row .contenido .card-title {
    color: var(--accent);
}

[id^="usuarios"] h1,
[id^="usuarios"] h2,
[id^="usuarios"] h3,
[id^="usuarios"] h4,
[id^="usuarios"] h5,
#usuarios .card-title {
    color: var(--usuarios-accent) !important;
}

[id^="marketing"] h1,
[id^="marketing"] h2,
[id^="marketing"] h3,
[id^="marketing"] h4,
[id^="marketing"] h5,
#marketing .card-title {
    color: var(--marketing-accent) !important;
}

[id^="compras"] h1,
[id^="compras"] h2,
[id^="compras"] h3,
[id^="compras"] h4,
[id^="compras"] h5,
#compras .card-title {
    color: var(--compras-accent) !important;
}

[id^="productos"] h1,
[id^="productos"] h2,
[id^="productos"] h3,
[id^="productos"] h4,
[id^="productos"] h5,
#productos .card-title {
    color: var(--productos-accent) !important;
}

[id^="fondos"] h1,
[id^="fondos"] h2,
[id^="fondos"] h3,
[id^="fondos"] h4,
[id^="fondos"] h5,
#fondos .card-title {
    color: var(--fondos-accent) !important;
}

[id^="logistica"] h1,
[id^="logistica"] h2,
[id^="logistica"] h3,
[id^="logistica"] h4,
[id^="logistica"] h5,
#logistica .card-title {
    color: var(--logistica-accent) !important;
}

[id^="contabilidad"] h1,
[id^="contabilidad"] h2,
[id^="contabilidad"] h3,
[id^="contabilidad"] h4,
[id^="contabilidad"] h5,
#contabilidad .card-title {
    color: var(--contabilidad-accent) !important;
}
/* Color para tu nuevo inicioModulo (Turquesa) */
[id^="inicioModulo"] h1,
[id^="inicioModulo"] h2,
[id^="inicioModulo"] h3,
[id^="inicioModulo"] h4,
[id^="inicioModulo"] h5,
#inicioModulo .card-title {
    color: var(--inicioModulo-accent) !important;
}

#inicioModulo {
    --accent: var(--inicioModulo-accent);
}


/* Color para el Inicio tradicional (blanco) */
[id^="inicio"] h1, 
[id^="inicio"] h2, 
[id^="inicio"] h3, 
#inicio .card-title {
    color: var(--inicio-accent) !important;
}



hr {
    margin: 2rem 0;
}

.text-purple {
    color: var(--purple);
}

.text-orange {
    color: var(--orange);
}

.text-pink {
    color: var(--pink);
}

.bg-purple {
    background-color: var(--purple);
}

.bg-orange {
    background-color: var(--orange);
}

.bg-pink {
    background-color: var(--pink);
}

/* Card styling to match the dark theme */
.card {
    background-color: var(--dark-card);
    border: 1px solid #344155;
    border-radius: 1rem;
    color: #f3f4f6;
    margin-bottom: 1.5rem;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--text-muted);
}

.card h5 {
    margin: 1rem 0 1rem;
}

.card dt {
    position: relative;
    font-size: 1.1rem;
    margin: 0 0 0.2rem 1.4rem;
}

.card dt:before {
    position: absolute;
    content: "?";
    color: var(--accent);
    left: -20px;
    top: 3px;
    font-size: 22px;
    line-height: 1;
}

.card.card-faq dt {
    position: relative;
}

.card.card-faq dt::before {
    content: ">";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.card dd {
    margin: 0 0 1.4rem 1.4rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Category cards used on the home page */
.category-card {
    background-color: var(--dark-card);
    border-radius: 1rem;
    padding: 2rem 1rem 1rem;
    height: 100%;
    transition: box-shadow 0.2s;
}

.category-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

/* Icon colors for the category cards */
.text-purple {
    color: var(--purple);
}

.text-orange {
    color: var(--orange);
}

.text-pink {
    color: var(--pink);
}

/* Border colour helpers for the category cards.  These classes are applied
   directly on the card elements to set the coloured border around the card. */
.border-purple {
    border-color: var(--purple) !important;
}

.border-orange {
    border-color: var(--orange) !important;
}

.border-pink {
    border-color: var(--pink) !important;
}

/* Small tweak for outline buttons on dark backgrounds */
.btn-outline-light {
    border-color: #495057;
}

.btn-outline-light:hover {
    background-color: #495057;
    color: #fff;
}

/* Adjust the default muted colour to be more legible on dark backgrounds */
.text-muted {
    color: #9ca3af !important;
}

/* Separator styling – the horizontal rules either side of the astronaut image */
.separator .border-top {
    border-color: #344155 !important;
}

/* Custom accordion styles for the FAQ section.  Uses the blue colour from
   the Figma palette and ensures the backgrounds remain dark. */
.accordion.custom-accordion .accordion-item {
    border: 1px solid var(--blue);
    background-color: var(--dark-card);
    color: #f3f4f6;
}

.accordion.custom-accordion .accordion-button {
    background-color: var(--dark-card);
    color: #f3f4f6;
}

.accordion.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--blue);
    background-color: rgba(55, 140, 223, 0.15);
    box-shadow: none;
}

.accordion.custom-accordion .accordion-body {
    background-color: var(--dark-card);
    color: #9ca3af;
}

/* Custom colors for text for the FAQ section */

.text-blue {
    color: var(--blue);
}

.border-blue {
    border-color: var(--blue);
}

/* Form controls – dark backgrounds with subtle borders */
.form-control,
.form-select {
    background-color: #1f2937;
    border-color: #344155;
    color: #f3f4f6;
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control:focus {
    background-color: #1f2937;
    border-color: var(--accent);
    box-shadow: none;
    color: #f3f4f6;
}

/* Vertical pills navigation used on the secondary pages.  The active state
   picks up the accent colour defined on the body element. */
.nav-pills .nav-link {
    color: #9ca3af;
}

.nav-pills .nav-link:hover {
    background-color: #2d3748;
    color: #f3f4f6;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--accent) !important;
    color: #fff !important;
}

/* Utility class to set coloured text based on the accent. */
.text-accent {
    color: var(--accent);
}

/* Colors from contact form*/
.border-green {
    border-color: var(--green);
}

.text-green {
    color: var(--green);
}

.bg-green {
    background-color: var(--green);
}

/*.contenido p, .contenido ul {
    flex: 1 1 auto;
    padding: 1rem;
    color: #fff;
    background-color: #141a27;
    border: 1px solid #344155;
    border-radius: 1rem;
    color: #f3f4f6;
}*/

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

.contenido ul {
    margin: 0 0 1.2rem 1rem;
    list-style: none;
    padding-left: 0;
}

.contenido ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.2rem;
}

.contenido ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 22px;
    line-height: 1;
}
/* Esta regla solo se aplicará cuando el div contenedor tenga .text-blue */
.contenido.text-blue ul li::before {
    content: ">";
    color: #0d6efd; /* O el color que corresponda a .text-blue */
}
.contenido ul li p {
    color: #9ca3af;
}

.contenido ul li ul {
    margin-top: 0.6rem;
}

.contenido ul li ul li::before {
    content: "•";
    color: var(--text-muted);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 22px;
    line-height: 1;
}

.help-step {
    list-style: none;
    counter-reset: circulo-numero;
    padding-left: 3rem;
    margin-top: 2rem;
}

.help-step li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    counter-increment: circulo-numero;
    font-size: 0.95rem;
    line-height: 1.4;
}

.help-step li ul li {
    counter-increment: none;
}

.help-step li.paso-final {
    counter-reset: circulo-numero 3;
}

.help-step ul {
    list-style: none;
    margin-top: 2rem;
    padding-left: 3rem;
}

.help-step li::before {
    content: counter(circulo-numero);
    position: absolute;
    left: 0;
    top: -3px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-size: 1rem;
    font-weight: bold;
}

.help-step-sublist {
    list-style: none;
    margin-top: 0.6rem;
    padding-left: 2.8rem;
}

ul.help-step-sublist li {
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

ul.help-step-sublist li::before {
    content: "";
    top: 7px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.hint {
    background: linear-gradient(90deg, rgba(246, 148, 15, 0.2) 0%, rgba(246, 148, 15, 0) 100%);
    border-left: 4px solid var(--accent);
}

.hint-danger,
.hint-marketing {
    background: linear-gradient(90deg, rgba(230, 80, 107, 0.2) 0%, rgba(230, 80, 107, 0) 100%);
    border-left: 4px solid var(--marketing-accent);
}

.hint-warning,
.hint-fondos {
    background: linear-gradient(90deg, rgba(140, 79, 242, 0.2) 0%, rgba(246, 148, 15, 0) 100%);
    border-left: 4px solid var(--accent);
}

.hint-info,
.hint-usuarios {
    background: linear-gradient(90deg,rgba(28, 165, 203, 0.478) 0%, rgba(28, 164, 203, 0) 100%);
    border-left: 4px solid var(--usuarios-accent);
}

.hint p {
    margin-bottom: 0;
}

figure {
    margin: 0;
}

figure img {
    padding: 0 1rem;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

#barra-navegacion {
    margin: 5rem 0 1rem;
}

/* nav bar */
.encabezado {
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.encabezado.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: fixed;
}

.encabezado.scrolled .nav-link {
    color: #000 !important;
}

.encabezado.scrolled .navbar-brand {
    color: #000 !important;
}

.encabezado.scrolled .elemento-back-button {
    border-color: #000 !important;
    color: #000 !important;
}

.encabezado.scrolled .elemento-back-button:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Estilos para el breadcrumb */
.elemento-breadcrumb-container {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 999;
    margin-top: 70px;
}

.elemento-breadcrumb-container .breadcrumb {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.elemento-breadcrumb-container .breadcrumb-item a {
    text-decoration: none;
    color: #6c757d;
}

.elemento-breadcrumb-container .breadcrumb-item a:hover {
    color: #000;
}

.elemento-breadcrumb-container .breadcrumb-item.active {
    color: #000;
    font-weight: 500;
}

/* Botón de volver */
.elemento-back-button {
    border-color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    color: white;
}

.elemento-back-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-glass {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Círculo perfecto */
    background: rgba(255, 255, 255, 0.1);
    /* Blanco al 10% */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Borde sutil */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    /* Efecto borroso detrás si pasa sobre algo */
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
    /* Pequeño movimiento a la izquierda al pasar el mouse */
    color: white;
}

/* Contenido principal */
.elemento-main-content {
    padding: 20px 0;
    min-height: 100vh;
}


/* Responsive */
@media (max-width: 992px) {
    .elemento-breadcrumb-container {
        margin-top: 60px;
    }

    .elemento-back-button {
        margin-right: 0.5rem !important;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .encabezado {
        padding: 10px 0;
    }
}

#navBar {
    position: sticky;

}

/* boton para volver atras */
#boton-volver {
    font-size: 1.5rem;
    color: #fff2f2;
    background: rgba(255, 255, 255, 0);

}

.elemento-breadcrumb-container {
    background: transparent !important;
}

/* BreadCrumb */

/* Estilos para breadcrumb blanco */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0.75rem 0 0 0.3rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
    opacity: 0.9;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #ffffff;
    opacity: 0.7;
    content: "/";
}

/* Hidden button */
@media (min-width: 992px) {
    #menu-boton,
    #menu-mascara {
        display: none;
    }
}

#menu-boton {
    position: sticky;
    top: 10px;
    left: 1rem;
    bottom: 1rem;
    z-index: 9002;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: none;
    background-color: var(--accent);
    color: #fff;
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    cursor: pointer;
    display: none;
}

#menu-boton span {
    position: absolute;
    left: 12px;
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#menu-boton span:nth-child(1) {
    top: 17px;
}

#menu-boton span:nth-child(2),
#menu-boton span:nth-child(3) {
    top: 25px;
}

#menu-boton span:nth-child(4) {
    top: 33px;
}

#menu-boton.open span:nth-child(1) {
    top: 18px;
    left: 50%;
    width: 0%;
}

#menu-boton.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#menu-boton.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#menu-boton.open span:nth-child(4) {
    top: 18px;
    left: 50%;
    width: 0%;
}

#menu-mascara {
    top: 10px;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

#menu-secciones {
    position: sticky;
    top: 90px;
}

@media (max-width: 992px) {
    #menu-boton {
        display: block;
    }

    #menu-secciones {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 82vw;
        max-width: 420px;
        background-color: var(--dark-card);
        padding: 1.25rem;
        z-index: 9001;
        transform: translateX(-110%);
        transition: transform .25s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-right: 1px solid rgba(255, 255, 255, .06);
    }

    body.mobile-menu-open #menu-secciones {
        transform: translateX(0);
    }

    body.mobile-menu-open #menu-mascara {
        opacity: 1;
        pointer-events: auto;
    }

    #menu-secciones .nav-link {
        color: #e9ecef;
    }

    #menu-secciones .nav-link.active {
        background-color: var(--accent) !important;
        color: #fff;
    }

    #menu-secciones .card {
        border: none;
    }
}

/* Custom accordion dark theme */

.dark-accordion {
    color: white !important;
    background-color:  #141a27 !important;
    border: none;
}

.dark-accordion-button {
    background-color: rgb(33, 37, 41) !important;
    color: orange !important;
    border: none !important;
    box-shadow: none !important;
}
.dark-accordion-button-contabilidad{
    background-color: rgb(33, 37, 41) !important;
    color: #5a6cf9 !important;
    border: none !important;
    box-shadow: none !important;
}

.dark-accordion-button-fondos {
    background-color: rgb(33, 37, 41) !important;
    color: var(--fondos-accent) !important;
    border: none !important;
    box-shadow: none !important;
}

.dark-accordion-button-logistica {
    background-color: rgb(33, 37, 41) !important;
    color: rgb(177, 73, 187) !important;
    border: none !important;
    box-shadow: none !important;
}

.accordion-button:after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffa500'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}

.dark-card-header{
    background-color: rgb(33, 37, 41) !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}

/* Module cards styling */
.modulo-card {
    border-top: 4px solid var(--card-color) !important;
    transition: all 0.3s ease;
}

.modulo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.modulo-card .btn {
    border: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.modulo-card .btn:hover {
    filter: brightness(0.9);
}

em {
    text-decoration: underline ;
}

/* colores */

.color-inicioModulo {
    color: var(--inicioModulo-accent) !important;
}

.color-usuarios {
    color: var(--usuarios-accent) !important;
}

.color-marketing {
    color: var(--marketing-accent) !important;
}

.color-ventas {
    color: var(--ventas-accent) !important;
}

.color-compras {
    color: var(--compras-accent) !important;
}

.color-productos {
    color: var(--productos-accent) !important;
}

.color-fondos {
    color: var(--fondos-accent) !important;
}

.color-logistica {
    color: var(--logistica-accent) !important;
}

.color-contabilidad {
    color: var(--contabilidad-accent) !important;
}

.color-integraciones {
    color: var(--integraciones-accent) !important;
}

/* footer */
footer {
    margin: 4rem 0 2rem;
}

footer h4 {
    color: #ddd;
    font-size: 1rem;
    font-weight: bolder;
    margin-bottom: 0.8rem;
}

footer a {
    color: #aaa;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 0.6rem;
    display: inline-block;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

footer .btn {
    color: #ddd;
    font-size: 0.85rem;
}

.placeholder-muted::placeholder {
    color: #6c757d !important;
    opacity: 1;
}
    
#search-results-container {
    position: fixed;
    right: 15px;
    background-color: #000000;
    max-height: 75vh;
    overflow-y: scroll;
}

#search-results {
    transition: all 0.3s ease;
}

.search-form-navbar {
    min-width: auto;
}

.search-form-navbar .input-group {
    /*width: 420px;*/
    /*max-width: 100%;*/
}

.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    padding: 1rem;
    display: none;
    overflow-y: auto;
}

.search-overlay.active {
    display: block;
}

.search-panel {
    max-width: 760px;
    margin: 0 auto;
    border:0px;
    border-radius: 1rem;
    padding: 1rem;
    position: relative;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.45);
}

.search-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #f3f4f6;
    font-size: 2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.search-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.highlight {
    background-color: #ffeb3b;
    color: #000000;
    padding: 0 2px;
    border-radius: 2px;
}

.search-results-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.search-results-item a {
    text-decoration: none;
    margin: 0.4rem 0;
}

.search-results-item .item-url {
    font-size: 0.75rem;
}

body.search-overlay-open {
    overflow: hidden;
}

body.search-overlay-open #search-results-container {
    position: static;
    width: 100%;
    max-height: 70vh;
    padding: 0;
    background: #0f1522;
    border: 1px solid #344155;
    border-radius: 0.75rem;
    box-shadow: none;
}

body.search-overlay-open #search-results {
    max-height: 60vh;
    overflow-y: scroll !important;
    
}

@media (min-width: 768px) {
    .search-overlay {
        display: none !important;
    }
}

.h50px {
    height: 50px;
    line-height: 37px;
}

/* Chat UI */

.chat-container {
    max-width: 800px;
    height: 85vh;
    margin: 30px auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #7b68ee);
    color: white;
    padding: 20px;
    text-align: center;
}

.chat-header h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

.chat-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #000000;
}

.message {
    margin-bottom: 20px;
    display: flex;
    animation: popIn 0.3s ease-out;
}

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

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
    position: relative;
}

.bot-message .message-content {
    background-color: #2a2a2a;
    color: #e1e1e1;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background-color: #333333;
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background-color: #333333;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    max-width: 80px;
    margin-bottom: 20px;
    animation: popIn 0.3s ease-out;
}

.typing-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: #888;
    margin: 0 3px;
    animation: typingAnimation 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chat-input-area {
    padding: 20px;
    background-color: #000000;
    border-top: 1px solid #444444;
    display: flex;
}

.chat-input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    border-radius: 30px;
    background-color: #f0f2f5;
    outline: none;
    font-size: 1rem;
}

.send-button {
    background-color: #666666;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-button:hover {
    background-color: #4a4cff;
    transform: scale(1.05);
}

.send-button:active {
    transform: scale(0.95);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.bot-avatar {
    background-color: #4a4cff;
    color: white;
}

.user-avatar {
    background-color: #e0e0e0;
    color: #666;
}

.bot-message .chat-avatar {
    align-self: flex-end;
}

.user-message .chat-avatar {
    order: 1;
    margin-left: 10px;
    margin-right: 0;
    align-self: end;
}

.character-by-character {
    display: inline-block;
}

.character-by-character span {
    opacity: 0;
    animation: fadeInChar 0.1s forwards;
}

@keyframes fadeInChar {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .chat-container {
        height: 90vh;
        margin: 15px;
        border-radius: 15px;
    }

    .message-content {
        max-width: 85%;
    }
}

/* Estilos para la barra de desplazamiento */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* --- ESTILO PARA BOTÓN MERCADO LIBRE. es para acceder al boton ML ubicado en marketing, y te dirije al tutorial */

/* Estado Normal boton sin hover*/
a.btn-tutorial-ml, 
.btn-tutorial-ml {
    background-color: var(--marketing-accent) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    transition: all 0.4s ease !important;
    display: inline-block;
    text-decoration: none;
}
/*boton al hacer hover y transicion*/
a.btn-tutorial-ml:hover, 
.btn-tutorial-ml:hover {
    background-color: #2d3277 !important;
    color: #fff159 !important;
    border-color: #fff159 !important;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}

.btn-tutorial-ml:hover i {
    color: #fff159 !important;
}

