@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poly:ital@0;1&display=swap');

:root{
    --header-h: 60px;
    --header-offset: 0px;
    
    --primary-text-color: #000;
    --bg-color: #ffffff;

    --btn-color: #fdfdfd;/* button color*/
    --btn-bg: #000;/* button bg color*/

    
    --header-link-hover: #000000;
    --header-link-hover-bg: #bababa36;

    --input-hover-bd-color: #232323;
    
    --dropdown-bg: #f3f4f6;
    --dropdown-hover-bg: #dddddd84;

    --faq-h-text: #0e0e0e;
    --faq-content-text: #1e1e1e;

    --hr-color: #e5e7eb;

    --footer-link: #282828;
    --footer-link-hover: #000;

    --header-bg: #edececa5;
    /* color: #312f2f; */
    --hero-gradient: #fcfcfc;
    --hero-bg-img: url("/static/img/background/dots-dark.svg");

}

.tw-dark {
    --primary-text-color: #fff;
    --bg-color: #000000;

    --btn-color: #000000;/* button color*/
    --btn-bg: #ffffff;/* button bg color*/

    --header-link-hover: #ffffff;
    --header-link-hover-bg: #8a8a8a5e;

    --input-hover-bd-color: #f8f8f8;

    --dropdown-bg: #171717;
    --dropdown-hover-bg: #2d2d2ddb;

    --faq-h-text: #efefef;
    --faq-content-text: #d4d4d4;

    --hr-color: #e1e1e195;

    --footer-link: #cfcfcf;
    --footer-link-hover: #ffffff;

    --header-bg: #232323a5;

    --hero-gradient: #000;
    --hero-bg-img: url("/static/img/background/dots.svg");

  }


html {
    scroll-behavior: smooth;
    /* font-family: "Ubuntu", sans-serif; */
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

.header-activated {
  color: #9B68E8 !important;
}

header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

hr{
    border-color:var(--hr-color); 
    border-style: solid;
}

.animated-collapse{
    transition: width 0.3s ease;
}


.header-links {
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 8px 15px;
    z-index: 2; 
    cursor: pointer;
    transition: background-color 0.5s, color 0.3s;
}

.header-links::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; 
    width: 100%;
    height: 100%;
    /* color: var(--header-link-hover); */
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    border-radius: 8px;
    transition: all 300ms;
}

.header-links:hover{
    color: var(--header-link-hover);
}

.header-links:hover::after {
    transform: scale(100%);
    opacity: 1;
}

.hero-section{
    background-image: var(--hero-bg-img);
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-size: cover;
}

.hero-bg-gradient{
    /* background: linear-gradient(180deg, var(--hero-gradient) 13%, rgba(0,0,0,0.258140756302521) 87%); */
    background: linear-gradient(180deg, var(--hero-gradient) 23%, rgba(0,0,0,0) 87%, var(--hero-gradient) 97%);
}


.gradient-text{
    background: rgb(215,215,215);
    background: linear-gradient(90deg, rgba(215,215,215,1) 18%, rgba(136,136,136,1) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.purple-bg-grad{
    background: linear-gradient(
      90deg,
      #7e22ce91 8%,
      #625aafae 31%,
      #7badbbbc 76%,
      #54d2d0ca 89%
    );
    filter: blur(38px);
    opacity: 0.55;

    will-change: transform, opacity, filter;
    -webkit-transform: translate3d(0,0,0);
            transform: translate3d(0,0,0);
    pointer-events: none;
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .purple-bg-grad{
      filter: blur(30px); 
      opacity: 0.6;
    }
  }
}

#dashboard {
    /* transform-origin: bottom center; */
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8)
        rotate(0deg) rotateX(70deg);
    transition: transform 0.5;
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 10px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover{

}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    min-width: 100px;
    border: 1px solid #979797;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 1px solid var(--input-hover-bd-color) !important;
}

/* ------------------- scrollbar ------------- */
.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 20px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 25px;
/* background: #f7f4ed; */
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 25px;
}


/* ---------------- dropdown --------------------- */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    outline: none;
    /* background-color: #000; */
    /* border: 1px solid #ccc; */
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    /* border: 1px solid #c9c9c9; */
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    /* top: 105%; */
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: var(--dropdown-hover-bg);
}

/* -------------- carousel ------------------*/
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
}
  
.carousel {
    display: inline-block;
    animation: scroll 10s linear infinite;
}
  
.carousel-img {
    display: inline-block;
    margin: 0 20px;
}
  
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ------ animated border ------- */

.animated-border {
    position: relative;
    overflow: visible;
}


.animated-border::after{
    content: '';
    position: absolute;
    top: 0px; 
    left: -100%; 
    width: 30%;
    height: 100%;
    border-radius: inherit; 
    /* background: linear-gradient(#6366f1 23%, rgba(124,190,255,0) 87%); */
    background-color: #6366f1;
    background-repeat: no-repeat;
    /* background-size: 200% 200%; */
    background-position: 0% 0%;
    filter: blur(1.5rem);
    opacity: 0.8;
    box-shadow: inset 0px 0px 20px 5px #6366f1;
    /* transform: rotate(90deg); */
    z-index: -2;
    pointer-events: none;
    animation: slide 10s ease-in-out infinite;
   
}

.animated-border::before{
    filter: blur(1.5rem);
    opacity: 0.3;
    will-change: transform;
}

@keyframes slide{
    0% {
        left: -100%; /* Start completely outside the left edge */
        right: 100%; /* End completely outside the right edge */
    }
   
    100% {
        left: 100%; /* Move completely outside the right edge */
        right: -100%; /* End completely outside the left edge */
    }
}

.footer-link{
    width: -moz-fit-content;
    width: fit-content;
    color: var(--footer-link);
    transition: color 0.3s;
}

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


/* Style for the collapsible content such as faq commonly known as: accordion */

.faq-accordion {
    background-color: inherit;
    color: var(--faq-h-text);
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: var(--faq-content-text);
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}
@media (max-width: 1024px) {
  header .collapsible-header {
    position: fixed;
    top: calc(var(--header-offset) + var(--header-h));
    left: 0;
    right: 0;
    height: calc(100dvh - (var(--header-offset) + var(--header-h)));
    width: 100vw;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    place-items: center;
    text-align: center;

    padding: 5% 5px;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 2px 3px 2px #9f9f9f7c;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 19;

    /* Estado cerrado */
    opacity: 0;
    pointer-events: none;

    /* 🔑 Animación “toggle” anclada al borde superior del header */
    transform-origin: top center;
    transform: translateY(-10px) scaleY(0.9);
    transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .25s ease;
    will-change: transform, opacity;
  }

  /* Estado abierto (toggle) */
  header .collapsible-header.is-open {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
  }

  /* 💅 Rebote suave SOLO al abrir (opcional) */
  header .collapsible-header.animate-open {
    animation: drop-in .38s cubic-bezier(.22,1,.36,1);
  }
  @keyframes drop-in {
    0%   { transform: translateY(-12px) scaleY(.86); opacity: 0; }
    60%  { transform: translateY(0)    scaleY(1.02); opacity: 1; }
    100% { transform: translateY(0)    scaleY(1);    opacity: 1; }
  }

  /* Accesibilidad: si el usuario prefiere menos motion, reducimos */
  @media (prefers-reduced-motion: reduce) {
    header .collapsible-header {
      transition: opacity .2s linear;
      transform: none !important;
    }
    header .collapsible-header.animate-open {
      animation: none !important;
    }
  }
}

/* Evita que el body haga scroll por detrás al abrir */
body.modal-open { overflow: hidden; }
.scroller{
  animation: scroll 40s forwards linear infinite;
}

.scroller[data-direction="right"] {
  animation-direction: reverse;
}

.edge-gradient{
  position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(90deg,#fff 0%,transparent 15%,transparent 85%,#fff 100%);
}
.tw-dark .edge-gradient{
  background: linear-gradient(90deg,#000 0%,transparent 15%,transparent 85%,#000 100%);
}

.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: max-content;
  min-width: fit-content;
  padding: .5rem .75rem;
  border: 1px solid #000;
  border-radius: .375rem;
}

.tw-dark .chip {
  border-color: #fff;
}

.correct-option {
  background-color: #dcfce7;   /* tw-bg-green-100 */
  border-color: #86efac;       /* tw-border-green-300 */
  color: #14532d;              /* tw-text-green-900 */
  border-width: 1px;           /* por si no la tienes ya en la clase base */
  border-style: solid;
}

.tw-dark .correct-option {
  background-color: rgba(20, 83, 45, 0.3); /* tw-bg-green-900/30  (#14532d con 0.3) */
  border-color: #86efac;                   /* puedes mantener el mismo borde */
  color: #86efac;                          /* tw-text-green-300 */
}

/* opcional: heredar el color al texto interno */
.correct-option * {
  color: inherit;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

            .header-links.active {
                color: #874EE3 !important; /* Morado */
                font-weight: 600;
                position: relative;
            }
            
            .header-links.active::after {
                content: '';
                position: absolute;
                bottom: -2px;
                left: 0;
                right: 0;
                height: 2px;
                background-color: #874EE3;
                border-radius: 2px;
            }
            
            /* Para el título específico en dropdown cuando está activo */
            .header-links.active .tw-text-black,
            .header-links.active .dark\:tw-text-white {
                color: #874EE3 !important;
            }
            
            /* Para el modo oscuro */
            .dark .header-links.active {
                color: #A569F5 !important; /* Morado más claro para modo oscuro */
            }
            
            .dark .header-links.active::after {
                background-color: #A569F5;
            }
            
            .dark .header-links.active .tw-text-black,
            .dark .header-links.active .dark\:tw-text-white {
                color: #A569F5 !important;
            }
            
            /* Para móviles */
            @media (max-width: 1024px) {
                .header-links.active::after {
                    display: none;
                }
                
                .header-links.active {
                    background-color: #F3EBFF;
                    border-radius: 8px;
                    padding: 8px 12px;
                }
                
                .dark .header-links.active {
                    background-color: #4A1B66;
                }
            }

/* Espaciado visual idéntico entre logos */
.carousel-container .carousel{
  display: flex;
  align-items: center;
  gap: 0;                            /* el espacio lo da la caja, no gap */
  animation: scroll 10s linear infinite;
}

.carousel-container .carousel-img{
  flex: 0 0 auto;
  width: 160px;                      /* o el valor que ya uses en desktop */
  height: 50px;
  padding-inline: 8px;               /* ⬅️ aire simétrico a ambos lados */
  margin: 0;
  display: flex;                     /* centramos el logo dentro */
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px){
  .carousel-container .carousel-img{
    width: clamp(120px, 38vw, 200px);
    height: 46px;
    padding-inline: 6px;             /* un pelín menos en móvil */
  }
}

.carousel-container .carousel-img img{
  max-height: 100%;
  max-width: 100%;
  width: auto;                       /* respeta proporción */
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-container{ overflow:hidden; }
.carousel{
  display:flex;
  width:max-content;              /* que mida lo que necesite */
  animation: marquee 20s linear infinite;
  will-change: transform;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }  /* recorre justo la mitad (A) */
}

/* 🚫 La pista NO debe medir 100% ni tener gap: */
.carousel.tw-w-full{
  width: max-content !important;
}

.carousel.tw-gap-5,
.carousel.max-md\:tw-gap-2{
  gap: 0 !important;
}

/* Forzamos que la animación aplicada sea la de la pista duplicada: */
.carousel-container > .carousel{
  animation: marquee 20s linear infinite !important; /* misma velocidad que ya tienes */
  will-change: transform;
}
/* =========================
   SAFARI / iOS RENDER FIX (desactivado temporalmente)
   =========================

   // Suaviza texto en WebKit y evita repintados raros
   html, body{
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
   }

   // Fuerza capa de composición en los decorativos y el header blur
   .purple-bg-grad,
   .animated-border::after,
   .edge-gradient,
   header .collapsible-header {
     will-change: transform, opacity, filter;
     -webkit-transform: translate3d(0,0,0);
             transform: translate3d(0,0,0);
     backface-visibility: hidden;
     contain: paint;
     isolation: isolate;              // aísla efectos sin alterar apariencia
   }

   // Mantén tu blur del borde animado, pero fuerza GPU y prefijo
   .animated-border::after{
     // conservamos tu filter original, solo le añadimos prefijo
     -webkit-filter: blur(1.5rem);
             filter: blur(1.5rem);
     will-change: transform, filter;
   }

   // El wrapper también aísla pintura para que el ::after no “ensucie”
   .animated-border{ isolation:isolate; contain: paint; }

   // Backdrop-filter del menú móvil con prefijo (mismo aspecto)
   header .collapsible-header{
     -webkit-backdrop-filter: blur(10px);
             backdrop-filter: blur(10px);
   }

   // Cuando un padre tiene transform/perspective, ayuda a los hijos 3D
   #dashboard,
   #dashboard *{
     transform-style: preserve-3d;
     // no cambia el ángulo ni escala existentes; solo estabiliza capas
   }

   // Imágenes/vídeo dentro de contenedores con transform -> evita
   // raster a baja resolución en el primer frame
   img, video, canvas{
     image-rendering: -webkit-optimize-contrast; // sin cambio visual notable
     -webkit-transform: translateZ(0);
             transform: translateZ(0);
   }

   // Carrusel: igual aspecto, pero con pista “compuesta” para que no
   // aparezca borroso al cargar en iOS
   .carousel{
     will-change: transform;
     -webkit-transform: translateZ(0);
             transform: translateZ(0);
     -webkit-backface-visibility: hidden;
             backface-visibility: hidden;
   }

   // iOS-only: pequeños ajustes de composición sin afectar estilos
   @supports (-webkit-touch-callout: none) {
     .purple-bg-grad,
     .edge-gradient{
       // solo pista de composición extra; NO cambia color/blur
       -webkit-transform: translateZ(0);
               transform: translateZ(0);
     }
   }

*/
