@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');

@font-face {
    font-family: 'AristaPro';
    src: url('../fonts/arista/Arista-Pro-Light-trial.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Fuente global Raleway Light */
* {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

:root {

    --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("../assets/images/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("../assets/images/background/dots.svg");

}


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

.maccloud {
    font-family: 'AristaPro', sans-serif !important;
    letter-spacing: 0.5px;
}

body.modal-open {
    overflow: hidden;
}

/* Scroll seguro en contenidos de modales (iOS/Android) */
.modal-scroll {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: calc(100vh - 160px); /* evita recorte en móviles */
    /* Scrollbar fino y discreto */
    scrollbar-width: thin;                 /* Firefox */
    scrollbar-color: #c7c7c7 transparent;  /* Firefox: thumb / track */
}

/* WebKit (Chrome/Safari/Edge) – scrollbar fino para modales */
.modal-scroll::-webkit-scrollbar {
    width: 4px;
}
.modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.modal-scroll::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 8px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #b5b5b5;
}

/* Modo oscuro: tono más acorde */
.tw-dark .modal-scroll::-webkit-scrollbar-thumb {
    background: #6b7280; /* gray-500 */
}
.tw-dark .modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af; /* gray-400 */
}

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: rgb(126, 34, 206);
    background: linear-gradient(90deg, #7e22ce91 8%, #625aafae 31%, #7badbbbc 76%, #54d2d0ca 89%);
    filter: blur(50px);
    opacity: 0.5;
}

#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; */
    align-items: center; /* centra verticalmente el contenido */
    line-height: 1; /* evita empuje por baseline */
}

.dropdown-menu {
    /* Animated dropdown: hidden by default */
    display: block;
    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;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    max-height: 0;
    transition: opacity 200ms ease, transform 200ms ease, max-height 200ms ease;
    will-change: opacity, transform, max-height;
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    max-height: 400px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: saturate(160%) blur(6px);
}

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

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

/* Alineación de íconos en selector y menú: evitar baseline */
.dropdown-select-icon,
.dropdown-menu-icon {
    display: block;
}

/* -------------- carousel ------------------*/
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
    position: relative;
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Dark mode gradients */
.tw-dark .carousel-container::before {
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.tw-dark .carousel-container::after {
    background: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.carousel {
    display: inline-block;
    animation: scroll 10.4s linear infinite;
    padding-left: 50px;
    padding-right: 50px;
    width: 1410px;
    transform: translateX(0);
}

.carousel-img {
    display: inline-block;
    margin: 0 30px;
}

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

    100% {
        transform: translateX(-850px);
    }
}


/* ------ 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 */
    }
}

/* (revert) no IA hover en landing */

.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 not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 60px;
        left: 0px;
        flex-direction: column;
        opacity: 0;
        height: 0vh;
        min-height: 0vh;
        /* height: 100dvh; */
        width: 100vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: center;
        text-align: center;
        background-color: var(--header-bg);
        /* color: #373636; */
        overflow-y: auto;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0px 2px 3px 2px #9f9f9f7c;
    }

    /* .header-links{
        color: var(--he);
    } */

}

/* Iconos del tema */
#toggle-mode-icon {
    transition: opacity 0.3s ease;
}

/* Hover effect para los iconos */
#theme-toggle:hover #toggle-mode-icon {
    opacity: 0.7;
}

/* Iconos SVG de flecha */
img[src*="arrow-right.svg"] {
    transition: opacity 0.3s ease;
}

/* Hover effect para las flechas */
.btn:hover img[src*="arrow-right.svg"],
.group:hover img[src*="arrow-right.svg"] {
    opacity: 0.7;
}

/* Iconos SVG de dropdown */
img[src*="chevron-down.svg"] {
    transition: opacity 0.3s ease;
}

/* Hover effect para los dropdowns */
.dropdown:hover img[src*="chevron-down.svg"] {
    opacity: 0.7;
}

/* Iconos SVG de arrow-up */
img[src*="arrow-up.svg"] {
    transition: opacity 0.3s ease;
}

/* Hover effect para arrow-up */
.btn:hover img[src*="arrow-up.svg"] {
    opacity: 0.8;
}

/* Iconos SVG de list, close-circle y play-circle */
img[src*="list.svg"],
img[src*="close-circle.svg"],
img[src*="play-circle.svg"] {
    transition: opacity 0.3s ease;
}

/* Hover effect para estos iconos */
#collapse-btn:hover img[src*="list.svg"],
button[onclick="closeVideo()"]:hover img[src*="close-circle.svg"],
button[onclick="openVideo()"]:hover img[src*="play-circle.svg"] {
    opacity: 0.7;
}

/* Iconos específicos por contexto */

/* Botón de menú móvil - hereda color gris del texto */
#collapse-btn img[src*="list.svg"],
#collapse-btn img[src*="x.svg"] {
    filter: brightness(0) saturate(100%) invert(50%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(50%) contrast(100%);
    transition: transform 0.3s ease;
}

.tw-dark #collapse-btn img[src*="list.svg"],
.tw-dark #collapse-btn img[src*="x.svg"] {
    filter: brightness(0) saturate(100%) invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(70%) contrast(100%);
}

/* Botón cerrar video - hereda color del texto del contenedor */
button[onclick="closeVideo()"] img[src*="close-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark button[onclick="closeVideo()"] img[src*="close-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Botón play video - hereda color del texto del botón */
button[onclick="openVideo()"] img[src*="play-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark button[onclick="openVideo()"] img[src*="play-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Icono de play en enlaces (para el teaser) */
a[href*="youtube.com"] img[src*="play-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark a[href*="youtube.com"] img[src*="play-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Icono de WhatsApp en botones - misma lógica que arrow-right en botones */
.btn img[src*="whatsapp.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.tw-dark .btn img[src*="whatsapp.svg"] {
    filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(30%) contrast(100%);
}

/* Icono de cierre en modal de Términos: negro en claro, blanco en oscuro */
.modal-close-icon,
img[src*="close-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark .modal-close-icon,
.tw-dark img[src*="close-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Icono de Email en botones - misma configuración que WhatsApp */
.btn img[src*="email.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.tw-dark .btn img[src*="email.svg"] {
    filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(30%) contrast(100%);
}

/* Iconos de redes sociales - usar currentColor para adaptarse al tema */
img[src*="facebook.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark img[src*="facebook.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

img[src*="instagram.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark img[src*="instagram.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

img[src*="linkedin.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark img[src*="linkedin.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

img[src*="youtube.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark img[src*="youtube.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Iconos de eMCy - color cyan Maccloud en ambos modos */
img[src*="icon-emcy-"] {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(176deg) brightness(118%) contrast(119%);
}

/* Iconos de eMCy en la grilla de analítica - tema-aware y grandes */
.tw-grid img[src*="icon-emcy-"] {
    /* Light mode: negro */
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto !important;
}

.tw-dark .tw-grid img[src*="icon-emcy-"] {
    /* Dark mode: blanco */
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Chat container - asegurar ancho completo */
#emcy-conversation {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Mensajes del usuario - alineación a la derecha */
#emcy-conversation .tw-justify-end {
    justify-content: flex-end !important;
}

#emcy-conversation .tw-justify-end>div {
    margin-left: auto !important;
}

/* Globo de texto de eMCy - estilo distintivo */
#emcy-conversation .tw-bg-cyan-100 {
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
    position: relative;
}

#emcy-conversation .tw-bg-cyan-900 {
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
    position: relative;
}

/* Borde izquierdo cyan para eMCy */
#emcy-conversation .tw-border-cyan-500 {
    border-left-width: 4px !important;
    border-left-color: #08abf7 !important;
}

/* Iconos del sidebar - usar currentColor para adaptarse al tema */
img[src*="asset.svg"],
img[src*="assessment.svg"],
img[src*="risk.svg"],
img[src*="tool.svg"],
img[src*="trending-down.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark img[src*="asset.svg"],
.tw-dark img[src*="assessment.svg"],
.tw-dark img[src*="risk.svg"],
.tw-dark img[src*="tool.svg"],
.tw-dark img[src*="trending-down.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}



/* Íconos del ecosistema - usar el mismo filtro que las tarjetas */
img[src*="mham-assessment.svg"],
img[src*="cumplimiento-shield.svg"],
img[src*="tree-green.svg"],
img[src*="cumplimiento-ecosistema.svg"],
img[src*="features-dashboard.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark img[src*="mham-assessment.svg"],
.tw-dark img[src*="cumplimiento-shield.svg"],
.tw-dark img[src*="tree-green.svg"],
.tw-dark img[src*="cumplimiento-ecosistema.svg"],
.tw-dark img[src*="features-dashboard.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Ícono eMCy específico - usar currentColor sin filtros */
img[src*="icon-emcy-ecosistema.svg"] {
    color: #000000 !important;
    /* Ajuste de tamaño ~35% más pequeño y corrección leve de alineación */
    transform: translateX(-3px) scale(0.65);
    transform-origin: center center;
    /* Forzar estado correcto en modo claro */
    filter: none !important;
}

/* Ícono Cumplimiento-Ecosistema: aumentar 20% el tamaño visual */
img[src*="cumplimiento-ecosistema.svg"] {
    transform: scale(1.3);
    transform-origin: center center;
}

/* Dropdown Ecosistema: reducir padding izquierdo y gap en eMCy */
#nav-dropdown-list-0 a[href="https://emcy.maccloudai.com"] {
    padding-left: 0.125rem !important; /* 2px */
    padding-right: 0.1875rem !important; /* 3px */
    gap: 0.25rem !important; /* 4px entre icono y texto */
}

.tw-dark img[src*="icon-emcy-ecosistema.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) !important;
}

/* Iconos de las tarjetas - tamaño grande y centrado */
img[src*="control-activos.svg"],
img[src*="reciclaje.svg"],
img[src*="cumplimiento.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    width: 84px !important;
    height: 84px !important;
    margin: 0 auto !important;
}

img[src*="analitica.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    width: 84px !important;
    height: 84px !important;
    margin: 0 auto !important;
}

.tw-dark img[src*="control-activos.svg"],
.tw-dark img[src*="reciclaje.svg"],
.tw-dark img[src*="cumplimiento.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    width: 84px !important;
    height: 84px !important;
    margin: 0 auto !important;
}

.tw-dark img[src*="analitica.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
    width: 84px !important;
    height: 84px !important;
    margin: 0 auto !important;
}

/* Contenedores de iconos - centrado forzado */
div[class*="tw-flex tw-items-center tw-justify-center"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

/* HEADER ESPECÍFICO - Dropdown en header-links (color del texto del menú) */
.header-links img[src*="chevron-down.svg"] {
    filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(30%) contrast(100%);
}

.tw-dark .header-links img[src*="chevron-down.svg"] {
    filter: brightness(0) saturate(100%) invert(80%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(80%) contrast(100%);
}

/* HEADER ESPECÍFICO - Botón de tema en header-links (color del texto del menú) */
.header-links img[src*="sun.svg"],
.header-links img[src*="moon.svg"] {
    filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(30%) contrast(100%);
}

.tw-dark .header-links img[src*="sun.svg"],
.tw-dark .header-links img[src*="moon.svg"] {
    filter: brightness(0) saturate(100%) invert(80%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(80%) contrast(100%);
}

/* HEADER ESPECÍFICO - Botón "Try playground" (colores inversos al selector de tema) */
.btn img[src*="arrow-right.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.tw-dark .btn img[src*="arrow-right.svg"] {
    filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(30%) contrast(100%);
}

/* Flechas en enlaces (fuera del header) - heredan color del texto del enlace */
a:not(.btn) img[src*="arrow-right.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark a:not(.btn) img[src*="arrow-right.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Dropdowns fuera del header - heredan color del texto del dropdown */
.dropdown:not(.header-links) img[src*="chevron-down.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark .dropdown:not(.header-links) img[src*="chevron-down.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Botón submit - siempre blanco en botón azul */
button[type="submit"] img[src*="arrow-up.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Learn more en Pre-built AI Tools - hereda color del texto del enlace */
a[href="#"] img[src*="arrow-up-right.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark a[href="#"] img[src*="arrow-up-right.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Check circles en tabla de precios - heredan color del texto del plan */
ul li img[src*="check-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark ul li img[src*="check-circle.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Check circles outline en tabla de precios - color gris */
ul li img[src*="check-circle-outline.svg"] {
    filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(40%) contrast(100%);
}

.tw-dark ul li img[src*="check-circle-outline.svg"] {
    filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(60%) contrast(100%);
}

/* Plus icons en FAQ - heredan color del texto del acordeón */
.faq-accordion img[src*="plus.svg"] {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.tw-dark .faq-accordion img[src*="plus.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Ícono de usuarios */
img[src*="users.svg"] {
    filter: brightness(0) saturate(100%);
}

.tw-dark img[src*="users.svg"] {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Ícono de inventario */
img[src*="inventory.svg"] {
    filter: brightness(0) saturate(100%);
}

.tw-dark img[src*="inventory.svg"] {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Ícono de mantenimiento */
img[src*="maintenance.svg"] {
    filter: brightness(0) saturate(100%);
}

.tw-dark img[src*="maintenance.svg"] {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Ícono de valoración */
img[src*="valuation.svg"] {
    filter: brightness(0) saturate(100%);
}

.tw-dark img[src*="valuation.svg"] {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Ícono de gestión de riesgos */
img[src*="risk-management.svg"] {
    filter: brightness(0) saturate(100%);
}

.tw-dark img[src*="risk-management.svg"] {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Ícono de panel de operaciones */
img[src*="operations-dashboard.svg"] {
    filter: brightness(0) saturate(100%);
}

.tw-dark img[src*="operations-dashboard.svg"] {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Toggle switches para selector de planes */
img[src*="toggle-on.svg"] {
    filter: brightness(0) saturate(100%);
}

.tw-dark img[src*="toggle-on.svg"] {
    filter: brightness(0) saturate(100%) invert(1);
}

img[src*="toggle-off.svg"] {
    filter: brightness(0) saturate(100%);
}

.tw-dark img[src*="toggle-off.svg"] {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Toggle activado - color cyan Maccloud */
img[src*="toggle-on.svg"] {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(176deg) brightness(118%) contrast(119%);
}

.tw-dark img[src*="toggle-on.svg"] {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(176deg) brightness(118%) contrast(119%);
}

/* Iconos de Google Play y App Store en botones - misma lógica que arrow-right en botones */
.btn img[src*="google-play.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.tw-dark .btn img[src*="google-play.svg"] {
    filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(30%) contrast(100%);
}

.btn img[src*="app-store.svg"] {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.tw-dark .btn img[src*="app-store.svg"] {
    filter: brightness(0) saturate(100%) invert(30%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(30%) contrast(100%);
}
