/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* INICIO - IMADIS */
.imadis {
    background-image: url("images/fondo-imadis-home.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.imadis .logo {
    height: 160px;
}

.imadis .contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    max-width: 90vw;
}

.imadis header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    width: 100%;
}

.imadis header nav ul {
    list-style: none;
    display: flex;
    gap: 70px;
}

.imadis header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: normal;
    font-size: 1.3em;
    position: relative;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.imadis header nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: -5px;
}

.imadis header nav ul li a:hover::after,
.imadis header nav ul li a.active::after {
    width: 100%;
}

.imadis header nav ul li a.active {
    color: #fff;
}

.imadis .contenido .texto h2 {
    font-size: 3.8em;
    font-weight: 600;
    margin: 5px 0px;
    font-style: italic;
}

.imadis .contenido .texto h3 {
    font-size: 2.2em;
    font-weight: 400;
    margin: 5px 0px;
}

.imadis .texto {
    max-width: 80%;
    padding: 18px;
    padding-top:0;
    color: white;
    display: flex;
    flex-direction: column;
}

.imadis .texto p {
    line-height: 1.5em;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-align: justify;
    text-align-last: left;
    margin: 0;
    word-spacing: 0.5px;
    hyphens: auto;
    font-weight: 300;
    width: 45%;
    margin: 5px 0px;
}

.imadis .footer-servicios {
    margin-top: 20px;
    display: flex;
    gap: 90px;
    list-style: none;
    margin-left: 10px;
    position: relative;
}

.imadis .footer-servicios li {
    position: relative;
    display: inline-block;
    padding: 0px 30px;
}

.imadis .footer-servicios li a {
    display: block;
    position: relative;
}

.imadis .footer-servicios li img {
    width: 90px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.imadis .footer-servicios li img.color {
    opacity: 0;
    z-index: 2;
    transform: translate(0, 0);
}

.imadis .footer-servicios li img.blanco {
    opacity: 1;
}

.imadis .footer-servicios li:hover img.color {
    opacity: 1;
    transform: translate(0, 0);
    cursor: pointer;
}

.imadis .footer-servicios li:hover img.blanco {
    opacity: 0;
}

.tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px 8px;
    border-radius: 4px;
    width: 170px;
    
    /* Posicionamiento */
    position: absolute;
    z-index: 1;
    bottom: 125%; /* 25% arriba de la parte inferior del li */
    left: 50%;
    transform: translateX(-50%);
    
    /* Flecha */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* Parte inferior del tooltip */
    left: 80%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.footer-servicios li:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* EMPRESA - IMADIS */

.empresa {
    background-image: url("images/fondo-imadis-empresa.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.empresa .logo {
    width: 160px;
}

.empresa .contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    max-width: 90vw;
}

.empresa .contenido .texto h2 {
    font-size: 2.8em;
    font-weight: 600;
    margin: 5px 0px;
    font-style: italic;
    color: #1f1f1f;
}

.sobre-nosotros{
    display:none;
}

.empresa .contenido .texto h3 {
    font-size: 2em;
    font-weight: 400;
    margin: 5px 0px;
    color: #1f1f1f;
}

.empresa .texto {
    max-width: 80%;
    padding: 18px;
    color: white;
    display: flex;
    flex-direction: column;
}

.empresa .texto p {
    line-height: 1.5em;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-align: justify;
    text-align-last: left;
    margin: 0;
    word-spacing: 0.5px;
    hyphens: auto;
    font-weight: 300;
    width: 60%;
    margin: 10px 0px;
    color: #1f1f1f;
}

/* IMADIS - SERVICIOS */

.servicios {
    background-image: url("images/fondo-imadis-servicios.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.servicios .contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    max-width: 100vw;
}

.servicios .contenido .texto h2 {
    font-size: 2.8em;
    font-weight: 600;
    margin: 5px 0px;
    font-style: italic;
    color: #1f1f1f;
}

.servicios .contenido .texto h3 {
    font-size: 2em;
    font-weight: 400;
    margin: 5px 0px;
    color: #1f1f1f;
}

.servicios .texto {
    max-width: 80%;
    padding: 18px;
    color: white;
    display: flex;
    flex-direction: column;
}

.servicios .texto p {
    line-height: 1.5em;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-align: justify;
    text-align-last: left;
    margin: 0;
    word-spacing: 0.5px;
    hyphens: auto;
    font-weight: 300;
    width: 85%;
    margin: 10px 0px;
    color: #1f1f1f;
}

.servicios .contenedor-servicios {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

.servicios .servicio {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    width: 45%;
}

.servicios .imagen {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.servicios .detalle-servicio {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.servicios .titulo-servicio {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: #333;
    text-align: left;
    font-weight: 600 !important;
}

.servicios .titulo-servicio a{
    text-decoration: none;
    color:#333;
    text-transform: uppercase;
}

.servicios .texto-servicio {
    font-size: 1em;
    color: #666;
    text-align: left;
}

/* ESTANCOS - INICIO */
.estancos {
    background-image: url("images/fondo-estancos-home.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.estancos .logo {
    width: 120px;
}

.estancos header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    width: 100%;
}

.estancos .contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    max-width: 90vw;
}

.estancos header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    width: 100%;
}

.estancos .contenido .texto h2 {
    font-size: 3.8em;
    font-weight: 600;
    margin: 5px 0px;
    font-style: italic;
}

.estancos .contenido .texto h3 {
    font-size: 1.8em;
    font-weight: 400;
    margin: 5px 0px;
}

.estancos .texto {
    max-width: 80%;
    padding: 18px;
    color: white;
    display: flex;
    flex-direction: column;
}

.estancos .texto p {
    line-height: 1.5em;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-align: justify;
    text-align-last: left;
    margin: 0;
    word-spacing: 0.5px;
    hyphens: auto;
    font-weight: 300;
    width: 45%;
    margin: 5px 0px;
}

.estancos .tipos-servicios{
    list-style:none;
}

.estancos .tipos-servicios li{
    padding:3px 0px;
}

.estancos .btn-proyectos {
    margin-top: 30px;
    padding: 10px 20px;
    color: #99142b;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    height: 55px;
    font-weight: bold;
    background: #fff;
    transition: all ease 0.5s;
}

.estancos .btn-proyectos:hover{
    background-color: transparent;
    color: #fff;
}

.estancos .btn-contacto {
    margin-top: 30px;
    padding: 10px 20px;
    color: white;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    height: 55px;
    font-weight: bold;
    background: transparent;
    transition: all ease 0.5s;
}

.estancos .btn-contacto:hover{
    background-color: #fff;
    color: #99142b;
}

.estancos .footer-redes {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    list-style: none;
    margin-left: 10px;
}

.estancos .footer-redes li img {
    width: 36px;
}

.estancos .footer-redes li span {
    line-height: 40px;
}

/* MOBIDEC - INICIO */
.mobidec {
    background-image: url("../assets/images/fondo-mobidec-home.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.mobidec .logo {
    height: 160px;
}

.mobidec .contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    max-width: 72vw;
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    width: 100%;
}

.mobidec .contenido .texto h2 {
    font-size: 3.8em;
    font-weight: 600;
    margin: 5px 0px;
    font-style: italic;
}

.mobidec .contenido .texto h3 {
    font-size: 1.8em;
    font-weight: 400;
    margin: 5px 0px;
}

.mobidec .texto {
    max-width: 80%;
    padding: 18px;
    color: white;
    display: flex;
    flex-direction: column;
}

.mobidec .texto p {
    line-height: 1.5em;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-align: justify;
    text-align-last: left;
    margin: 0;
    word-spacing: 0.5px;
    hyphens: auto;
    font-weight: 300;
    width: 45%;
    margin: 5px 0px;
}

.mobidec .tipos-servicios{
    list-style:none;
}

.mobidec .tipos-servicios li{
    padding: 3px 0px;
}

.mobidec .btn-proyectos {
    margin-top: 30px;
    padding: 10px 20px;
    color: #8b745c;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    height: 55px;
    font-weight: bold;
    background: #fff;
    transition: all ease 0.5s;
}

.mobidec .btn-proyectos:hover{
    background-color: transparent;
    color: #fff;
}

.mobidec .btn-contacto {
    margin-top: 30px;
    padding: 10px 20px;
    color: white;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    height: 55px;
    font-weight: bold;
    background: transparent;
    transition: all ease 0.5s;
}

.mobidec .btn-contacto:hover{
    background-color: #fff;
    color: #8b745c;
}

.mobidec .footer-redes {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    list-style: none;
    margin-left: 10px;
}

.mobidec .footer-redes li img {
    width: 36px;
}

.mobidec .footer-redes li span {
    line-height: 40px;
}

/* LOTERÍAS */

.loterias {
    background-image: url("../assets/images/fondo-loterias-home.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.loterias .logo {
    width: 120px;
}

.loterias .contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    max-width: 90vw;
}

.loterias header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    width: 100%;
}

.loterias .contenido .texto h2 {
    font-size: 3.8em;
    font-weight: 600;
    margin: 5px 0px;
    font-style: italic;
}

.loterias .contenido .texto h3 {
    font-size: 1.8em;
    font-weight: 400;
    margin: 5px 0px;
}

.loterias .texto {
    max-width: 80%;
    padding: 18px;
    color: white;
    display: flex;
    flex-direction: column;
}

.loterias .texto p {
    line-height: 1.5em;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-align: justify;
    text-align-last: left;
    margin: 0;
    word-spacing: 0.5px;
    hyphens: auto;
    font-weight: 300;
    width: 45%;
    margin: 5px 0px;
}

.loterias .tipos-servicios{
    list-style:none;
}

.loterias .btn-proyectos {
    margin-top: 30px;
    padding: 10px 20px;
    color: #242c7c;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    height: 55px;
    font-weight: bold;
    background: #fff;
    transition: all ease 0.5s;
}

.loterias .btn-proyectos:hover{
    background-color: transparent;
    color: #fff;
}

.loterias .btn-contacto {
    margin-top: 30px;
    padding: 10px 20px;
    color: white;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    height: 55px;
    font-weight: bold;
    background: transparent;
    transition: all ease 0.5s;
}

.loterias .btn-contacto:hover{
    background-color: #fff;
    color: #242c7c;
}

.loterias .footer-redes {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    list-style: none;
    margin-left: 10px;
}

.loterias .footer-redes li img {
    width: 36px;
}

.loterias .footer-redes li span {
    line-height: 40px;
}

/* BOTIKANOVA */
.farmacias {
    background-image: url("images/fondo-farmacias-home.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.farmacias .logo {
    width: 120px;
}

.farmacias .contenido {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
    max-width: 90vw;
}

.farmacias header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: transparent;
    width: 100%;
}

.farmacias .contenido .texto h2 {
    font-size: 3.8em;
    font-weight: 600;
    margin: 5px 0px;
    font-style: italic;
}

.farmacias .contenido .texto h3 {
    font-size: 1.8em;
    font-weight: 400;
    margin: 5px 0px;
}

.farmacias .texto {
    max-width: 80%;
    padding: 18px;
    color: white;
    display: flex;
    flex-direction: column;
}

.farmacias .texto p {
    line-height: 1.5em;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    text-align-last: left;
    margin: 0;
    word-spacing: 0.5px;
    hyphens: auto;
    font-weight: 300;
    width: 45%;
    margin: 5px 0px;
}

.farmacias .tipos-servicios{
    list-style:none;
}

.farmacias .btn-proyectos {
    margin-top: 30px;
    padding: 10px 20px;
    color: #4c9494;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    height: 55px;
    font-weight: bold;
    background: #fff;
    transition: all ease 0.5s;
}

.farmacias .btn-proyectos:hover{
    background-color: transparent;
    color: #fff;
}

.farmacias .btn-contacto {
    margin-top: 30px;
    padding: 10px 20px;
    color: white;
    border: 1px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    width: 250px;
    height: 55px;
    font-weight: bold;
    background: transparent;
    transition: all ease 0.5s;
}

.farmacias .btn-contacto:hover{
    background-color: #fff;
    color: #4c9494;
}

.farmacias .footer-redes {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    list-style: none;
    margin-left: 10px;
}

.farmacias .footer-redes li img {
    width: 36px;
}

.farmacias .footer-redes li span {
    line-height: 40px;
}

/* FOOTER */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

footer >.links a {
    text-decoration: none;
    margin-right: 15px;
}

footer > .links a:last-child {
    margin-right: 0;
}

/* ESTILOS GENERALES SCROLLBARS */

*::-webkit-scrollbar-thumb {
    background-color: #000;
}

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

/* Estilo general del scrollbar */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-thumb {
    background-color: #fcbc24;
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: content-box;
}

/* PANEL DE COOKIES */
/* COOKIES */
.cookie-consent-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 25%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
}

.cookie-consent-content {
    width: 100%;
    max-width: 100%;
}

.cookie-consent-content h2 {
    margin: 0;
    color: #4A4A4A;
    font-size: 1em;
    text-align: center;
}

.cookie-consent-content p {
    color: #4A4A4A;
    font-size: 0.8em;
    line-height: 1.5;
}

.cookie-consent-buttons {
    margin-top: 20px;
    text-align: center;
}

.cookie-consent-buttons button:first-child {
    margin-right: 10px;
    background-color: #fcbc24;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cookie-consent-buttons button:nth-child(2),
.cookie-consent-buttons button:nth-child(3) {
    margin-right: 10px;
    background-color: #f9f9f9;
    border: none;
    border-radius: 4px;
    color: #222222;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cookie-consent-links {
    margin-top: 10px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #E0E0E0;
}

.cookie-consent-links a {
    color: #fcbc24;
    margin: 0 5px;
    font-size: 0.8em;
}

.close-cookie-consent {
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;
    font-size: 20px;
    color: #4A4A4A;
    background-color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border: 1px solid #ccc;
}

/* BOTÓN DE WHATSAPP FLOTANTE */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20c35d;
}

.whatsapp-float i {
    font-size: 30px;
}

/* EFECTOS EN REDES SOCIALES */

.footer-redes li img {
    transition: transform 0.4s ease-in-out;
}

.footer-redes li img:hover {
    transform: rotate(360deg);
    cursor:pointer;
}

.footer-redes li span {
    display: inline-block;
    font-size: 1em;
    color: #fff;
    position: relative;
    transition: color 0.3s ease;
}

.footer-redes li span:hover {
    color: #f39c12;
    cursor:pointer;
}

.footer-redes li span:hover .char {
    animation: wave 0.6s ease-in-out infinite;
}

.footer-redes li span .char {
    display: inline-block;
    transition: transform 0.3s ease;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    50% {
        transform: translateY(3px);
    }
    75% {
        transform: translateY(-2px);
    }
}

/* RESPONSIVE */

/* Botón de hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-icon {
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: background 0.3s;
}

/* Mostrar el menú cuando está activo */
.nav-active {
    display: flex;
}

/* Media Query para pantallas de hasta 800px */
@media (max-width: 800px) {
    
    /* NAVEGACIÓN VERTICAL */
    .navigation-slider{
        display:none !important;    
    }
    
    /* PANEL DE COOKIES */
    .cookie-consent-container{
        right: 9px;
        width: 85%;
        bottom: 15px;
    }
    
    .cookie-consent-buttons button:nth-child(3){
        display:none;
    }
    
    /* INICIO */
    .imadis {
        background-image: url(images/fondo-imadis-home-movil.jpg);
        height:1200px;
        /*height:1100px;*/
    }
    
    .imadis .logo {
        height: 160px;
    }

    header {
        display: flex;
        justify-content: space-around; /* Espacio entre logo y menú */
        align-items: center;
        padding: 10px;
        position: relative; /* Asegura que el menú se posicione correctamente */
        padding-inline:0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100; /* Asegura que el botón esté encima del menú */
    }

    .menu-icon {
        width: 30px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
        transition: background 0.3s;
    }

    nav {
        display: none; /* Ocultar menú por defecto en móvil */
    }

    nav.nav-active {
        display: contents; /* Mostrar menú cuando esté activo */
    }

    nav ul {
        display: flex; /* Cambia a flex para que el menú se alinee verticalmente cuando se muestra */
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 0; /* Coloca el menú debajo del header */
        left: 0;
        width: 100%;
        z-index: 1000;
        transition: opacity 0.3s ease, transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Oculta el menú inicialmente */
        opacity: 0;
        height:100vh;
        justify-content:center;
    }

    nav.nav-active ul {
        transform: translateY(0); /* Muestra el menú cuando está activo */
        opacity: 1;
    }

    nav ul li a {
        font-size: 1em;
        padding: 15px;
        color: #fff;
        display: block;
        text-align: center;
        font-size:1.5em;
        letter-spacing:2px;
    }
    
    .no-scroll {
        overflow: hidden;
    }
    
    /* Transformar el icono de hamburguesa en una "X" cuando el menú está activo */
    .menu-toggle.nav-active .menu-icon:nth-child(1) {
        transform: rotate(45deg) translate(13px, 6px);
    }
    
    .menu-toggle.nav-active .menu-icon:nth-child(2) {
        opacity: 0; /* Ocultamos la barra del medio */
    }
    
    .menu-toggle.nav-active .menu-icon:nth-child(3) {
        transform: rotate(-45deg) translate(12px, -6px);
    }
    
    .imadis .contenido{
        max-width: 100vw;
        max-height:80%;
    }
    
    .imadis .texto{
        max-width: 100%;
        text-align: center;
        padding-block: 18px !important;
        padding-inline: 0 !important;
    }
    
    .imadis .contenido .texto h2{
        font-size:2.8em;
    }
    
    .imadis .contenido .texto h3{
        font-size: 2em;
        margin: 10px 0px;
    }
    
    .imadis .texto p{
        font-size: 1.3em;
        width: 90%;
        margin: auto;
        margin-block: 20px;
    }
    
    /*.imadis .footer-servicios {
        display:none;
    }*/
    
    .imadis .footer-servicios {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Dos columnas */
        gap: 90px; /* Ajustar el espacio entre elementos */
        padding: 0;
    }

    .imadis .footer-servicios li {
        padding: 10px; /* Reducir el padding */
        text-align: center; /* Centrar el contenido */
    }

    .imadis .footer-servicios li img {
        width: 100px; /* Mantener el tamaño de las imágenes */
    }

    .tooltip {
        width: 150px; /* Ajustar el tamaño del tooltip */
        font-size: 12px; /* Reducir el tamaño de la fuente */
        bottom: 110%; /* Ajustar la posición del tooltip */
    }
    /* EMPRESA */
    
    .empresa {
        background-image: url("images/fondo-imadis-empresa-movil.jpg"); /* Cambia a una imagen adaptada para móviles si es necesario */
        background-size: cover;
        background-position: center;
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        padding: 20px; /* Añade padding para el contenido */
    }

    .empresa .logo {
        width: 120px; /* Ajusta el tamaño del logo para móviles */
    }

    .empresa .contenido {
        flex-direction: column; /* Cambia la dirección del flex para alinear los elementos verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
        max-width: 100%; /* Asegura que el contenido no se desborde */
        padding: 0; /* Elimina el padding si es necesario */
    }

    .empresa .contenido .texto {
        max-width: 90%; /* Ajusta el máximo ancho para pantallas pequeñas */
        padding: 10px; /* Ajusta el padding para móviles */
        text-align: center; /* Centra el texto */
    }

    .empresa .contenido .texto h2 {
        font-size: 2.5em; /* Reduce el tamaño de fuente para pantallas pequeñas */
        margin: 10px 0; /* Ajusta el margen para que no se vea tan apretado */
    }
    
    .reformas{
        display:none;
    }
    
    .sobre-nosotros{
        display:block;
    }

    .empresa .contenido .texto p {
        font-size: 1.2em; /* Ajusta el tamaño de fuente del párrafo */
        width: 100%; /* Asegura que el párrafo ocupe todo el ancho disponible */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }
    
    /* SERVICIOS */
    
    .servicios {
        background-image: url("images/fondo-imadis-servicios-movil.jpg"); /* Cambia a una imagen adaptada para móviles si es necesario */
        height: auto; /* Ajusta la altura para que se adapte al contenido */
    }

    .servicios .contenido {
        flex-direction: column; /* Cambia la dirección del flex para alinear los elementos verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
        max-width: 100%; /* Asegura que el contenido no se desborde */
    }

    .servicios .texto {
        max-width: 100%; /* Asegura que el texto ocupe el ancho disponible */
        text-align: center; /* Centra el texto */
    }

    .servicios .texto h2 {
        font-size: 2em; /* Ajusta el tamaño de fuente del encabezado */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }
    
    .servicios .contenido .texto h3{
        text-align:center;
    }

    .servicios .texto p {
        font-size: 1.2em; /* Ajusta el tamaño de fuente del párrafo */
        width: 100%; /* Asegura que el párrafo ocupe todo el ancho disponible */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }

    .servicios .contenedor-servicios {
        flex-direction: column; /* Cambia la dirección del flex a columna para alinear los servicios verticalmente */
        gap: 20px; /* Añade espacio entre los servicios */
        padding: 0; /* Elimina el padding para móviles */
        align-items:center;
    }

    .servicios .servicio {
        flex-direction: column; /* Cambia la dirección del flex a columna para alinear la imagen y el detalle verticalmente */
        width: 100%; /* Asegura que cada servicio ocupe el ancho completo */
        padding: 10px; /* Ajusta el padding para móviles */
        gap: 10px; /* Añade espacio entre la imagen y el detalle del servicio */
    }

    .servicios .imagen {
        max-width: 120px; /* Ajusta el tamaño máximo de la imagen */
        margin:auto;
    }

    .servicios .detalle-servicio {
        margin-top:10px;
        align-items: center; /* Centra el contenido del detalle del servicio */
    }

    .servicios .titulo-servicio {
        font-size: 1.2em; /* Ajusta el tamaño de fuente del título */
        margin: 0 0 5px 0; /* Ajusta el margen para un espaciado adecuado */
    }

    .servicios .texto-servicio {
        font-size: 0.9em; /* Ajusta el tamaño de fuente del texto del servicio */
        text-align: center; /* Centra el texto */
    }
    
    /* ESTANCOS */
    
    .estancos {
        background-image: url("images/fondo-estancos-home-movil.jpg"); /* Cambia a una imagen adaptada para móviles si es necesario */
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        padding: 20px; /* Añade padding para el contenido */
    }

    .estancos .logo {
        width: 100px; /* Ajusta el tamaño del logo */
    }

    .estancos header {
        justify-content: center; /* Centra el contenido del header */
    }

    .estancos .contenido {
        flex-direction: column; /* Cambia la dirección del flex para alinear los elementos verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
        max-width: 100%; /* Asegura que el contenido no se desborde */
        padding: 0; /* Elimina el padding en móviles */
    }

    .estancos .contenido .texto h2 {
        font-size: 2.8em; /* Ajusta el tamaño de fuente del encabezado */
        text-align: center; /* Centra el texto */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }

    .estancos .contenido .texto h3 {
        font-size: 1.4em; /* Ajusta el tamaño de fuente del subencabezado */
        text-align: center; /* Centra el texto */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }

    .estancos .texto {
        max-width: 100%; /* Asegura que el texto ocupe el ancho disponible */
        padding: 10px; /* Ajusta el padding para móviles */
        text-align: center; /* Centra el texto */
    }

    .estancos .tipos-servicios {
        list-style: none; /* Elimina el estilo de lista */
        padding: 0; /* Elimina el padding de la lista */
        margin: 0; /* Elimina el margen de la lista */
    }

    .estancos .tipos-servicios li {
        padding: 10px 0; /* Ajusta el padding de los elementos de la lista */
        font-size: 1.1em; /* Ajusta el tamaño de fuente de los elementos de la lista */
        margin-block:15px;
    }

    .estancos .btn-proyectos,
    .estancos .btn-contacto {
        margin-top: 20px; /* Ajusta el margen superior de los botones */
        padding: 10px 15px; /* Ajusta el padding de los botones */
        width: 100%; /* Hace que los botones ocupen el ancho completo */
        max-width: 300px; /* Limita el ancho máximo de los botones */
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        font-size: 1em; /* Ajusta el tamaño de fuente de los botones */
    }

    .estancos .footer-redes {
        margin-top: 40px; /* Ajusta el margen superior de la sección de redes sociales */
        margin-bottom:10px;
        gap: 10px; /* Ajusta el espacio entre los íconos de redes sociales */
        justify-content: center; /* Centra los íconos de redes sociales */
    }

    .estancos .footer-redes li img {
        width: 30px; /* Ajusta el tamaño de los íconos de redes sociales */
    }

    .estancos .footer-redes li span {
        line-height: 30px; /* Ajusta la altura de línea para los íconos de redes sociales */
    }
    
    /* LOTERÍAS */
    
    .loterias {
        background-image: url("../assets/images/fondo-loterias-home-movil.jpg"); /* Cambia a una imagen adaptada para móviles si es necesario */
        background-size: cover;
        background-position: center;
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        padding: 20px; /* Añade padding para el contenido */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .loterias .logo {
        width: 100px; /* Ajusta el tamaño del logo */
    }
    
    .loterias header {
        display: flex;
        justify-content: center; /* Centra el contenido del header */
        align-items: center;
        background: transparent;
        width: 100%;
    }
    
    .loterias .contenido {
        display: flex;
        flex-direction: column; /* Cambia la dirección del flex para alinear los elementos verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
        max-width: 100%; /* Asegura que el contenido no se desborde */
        padding: 0; /* Elimina el padding en móviles */
    }
    
    .loterias .contenido .texto h2 {
        font-size: 2.8em; /* Ajusta el tamaño de fuente del encabezado */
        text-align: center; /* Centra el texto */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }
    
    .loterias .contenido .texto h3 {
        font-size: 1.4em; /* Ajusta el tamaño de fuente del subencabezado */
        text-align: center; /* Centra el texto */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }
    
    .loterias .texto {
        max-width: 100%; /* Asegura que el texto ocupe el ancho disponible */
        padding: 10px; /* Ajusta el padding para móviles */
        text-align: center; /* Centra el texto */
        color: white;
    }
    
    .loterias .texto p {
        line-height: 1.5em;
        font-size: 1.1em;
        letter-spacing: 0.5px;
        text-align: justify;
        text-align-last: left;
        word-spacing: 0.5px;
        hyphens: auto;
        font-weight: 300;
        width: 90%;
        margin-block: 5px;
        margin-inline: auto;
    }
    
    .loterias .btn-proyectos,
    .loterias .btn-contacto {
        margin-top: 20px; /* Ajusta el margen superior de los botones */
        padding: 10px 15px; /* Ajusta el padding de los botones */
        width: 100%; /* Hace que los botones ocupen el ancho completo */
        max-width: 300px; /* Limita el ancho máximo de los botones */
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        font-size: 1em; /* Ajusta el tamaño de fuente de los botones */
    }
    
    .loterias .btn-proyectos {
        color: #242c7c;
        border: 1px solid #fff;
        border-radius: 4px;
        background: #fff;
        transition: all ease 0.5s;
    }
    
    .loterias .btn-proyectos:hover {
        background-color: transparent;
        color: #fff;
    }
    
    .loterias .btn-contacto {
        color: white;
        border: 1px solid #fff;
        border-radius: 4px;
        background: transparent;
        transition: all ease 0.5s;
    }
    
    .loterias .btn-contacto:hover {
        background-color: #fff;
        color: #242c7c;
    }
    
    .loterias .footer-redes {
        margin-top: 40px; /* Ajusta el margen superior de la sección de redes sociales */
        margin-bottom:10px;
        display: flex;
        gap: 10px; /* Ajusta el espacio entre los íconos de redes sociales */
        justify-content: center; /* Centra los íconos de redes sociales */
        list-style: none;
    }
    
    .loterias .footer-redes li img {
        width: 30px; /* Ajusta el tamaño de los íconos de redes sociales */
    }
    
    .loterias .footer-redes li span {
        line-height: 30px; /* Ajusta la altura de línea para los íconos de redes sociales */
    }
    
    /* FARMACIAS */
    
    .farmacias {
        background-image: url("images/fondo-farmacias-home-movil.jpg"); /* Cambia a una imagen adaptada para móviles si es necesario */
        background-size: cover;
        background-position: center;
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        padding: 20px; /* Añade padding para el contenido */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .farmacias .logo {
        width: 100px; /* Ajusta el tamaño del logo */
    }
    
    .farmacias header {
        display: flex;
        justify-content: center; /* Centra el contenido del header */
        align-items: center;
        background: transparent;
        width: 100%;
    }
    
    .farmacias .contenido {
        display: flex;
        flex-direction: column; /* Cambia la dirección del flex para alinear los elementos verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
        max-width: 100%; /* Asegura que el contenido no se desborde */
        padding: 0; /* Elimina el padding en móviles */
    }
    
    .farmacias .contenido .texto h2 {
        font-size: 2.8em; /* Ajusta el tamaño de fuente del encabezado */
        text-align: center; /* Centra el texto */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }
    
    .farmacias .contenido .texto h3 {
        font-size: 1.4em; /* Ajusta el tamaño de fuente del subencabezado */
        text-align: center; /* Centra el texto */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }
    
    .farmacias .texto {
        max-width: 100%; /* Asegura que el texto ocupe el ancho disponible */
        padding: 10px; /* Ajusta el padding para móviles */
        text-align: center; /* Centra el texto */
        color: white;
    }
    
    .farmacias .texto p {
        line-height: 1.5em;
        font-size: 1.1em;
        letter-spacing: 0.5px;
        text-align: justify;
        text-align-last: left;
        margin-inline:auto;
        word-spacing: 0.5px;
        hyphens: auto;
        font-weight: 300;
        width: 90%;
        margin-block:5px;
    }
    
    .farmacias .tipos-servicios {
        list-style: none; /* Elimina el estilo de lista */
        padding: 0; /* Elimina el padding de la lista */
        margin: 0; /* Elimina el margen de la lista */
    }
    
    .farmacias .tipos-servicios li {
        padding: 10px 0; /* Ajusta el padding de los elementos de la lista */
        font-size: 1.1em; /* Ajusta el tamaño de fuente de los elementos de la lista */
    }
    
    .farmacias .btn-proyectos,
    .farmacias .btn-contacto {
        margin-top: 20px; /* Ajusta el margen superior de los botones */
        padding: 10px 15px; /* Ajusta el padding de los botones */
        width: 100%; /* Hace que los botones ocupen el ancho completo */
        max-width: 300px; /* Limita el ancho máximo de los botones */
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        font-size: 1em; /* Ajusta el tamaño de fuente de los botones */
    }
    
    .farmacias .btn-proyectos {
        color: #4c9494;
        border: 1px solid #fff;
        border-radius: 4px;
        background: #fff;
        transition: all ease 0.5s;
    }
    
    .farmacias .btn-proyectos:hover {
        background-color: transparent;
        color: #fff;
    }
    
    .farmacias .btn-contacto {
        color: white;
        border: 1px solid #fff;
        border-radius: 4px;
        background: transparent;
        transition: all ease 0.5s;
    }
    
    .farmacias .btn-contacto:hover {
        background-color: #fff;
        color: #4c9494;
    }
    
    .farmacias .footer-redes {
        margin-top: 40px; /* Ajusta el margen superior de la sección de redes sociales */
        margin-bottom:10px;
        display: flex;
        gap: 10px; /* Ajusta el espacio entre los íconos de redes sociales */
        justify-content: center; /* Centra los íconos de redes sociales */
        list-style: none;
    }
    
    .farmacias .footer-redes li img {
        width: 30px; /* Ajusta el tamaño de los íconos de redes sociales */
    }
    
    .farmacias .footer-redes li span {
        line-height: 30px; /* Ajusta la altura de línea para los íconos de redes sociales */
    }
    
    /* MOBIDEC */
    
    .mobidec {
        background-image: url("../assets/images/fondo-mobidec-home-movil.jpg"); /* Cambia a una imagen adaptada para móviles si es necesario */
        background-size: cover;
        background-position: center;
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        padding: 20px; /* Añade padding para el contenido */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mobidec .logo {
        height: 120px; /* Ajusta el tamaño del logo */
    }
    
    header {
        display: flex;
        justify-content: center; /* Centra el contenido del header */
        align-items: center;
        background: transparent;
        width: 100%;
    }
    
    .mobidec .contenido {
        display: flex;
        flex-direction: column; /* Cambia la dirección del flex para alinear los elementos verticalmente */
        align-items: center; /* Centra el contenido horizontalmente */
        max-width: 100%; /* Asegura que el contenido no se desborde */
        padding: 0; /* Elimina el padding en móviles */
    }
    
    .mobidec .contenido .texto h2 {
        font-size: 2.8em; /* Ajusta el tamaño de fuente del encabezado */
        text-align: center; /* Centra el texto */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }
    
    .mobidec .contenido .texto h3 {
        font-size: 1.4em; /* Ajusta el tamaño de fuente del subencabezado */
        text-align: center; /* Centra el texto */
        margin: 10px 0; /* Ajusta el margen para un espaciado adecuado */
    }
    
    .mobidec .texto {
        max-width: 100%; /* Asegura que el texto ocupe el ancho disponible */
        padding: 10px; /* Ajusta el padding para móviles */
        text-align: center; /* Centra el texto */
        color: white;
    }
    
    .mobidec .texto p {
        line-height: 1.5em;
        font-size: 1.1em;
        letter-spacing: 0.5px;
        text-align: justify;
        text-align-last: left;
        margin: 5px 0;
        word-spacing: 0.5px;
        hyphens: auto;
        font-weight: 300;
        width: 100%; /* Ajusta el ancho del párrafo en móviles */
    }
    
    .mobidec .tipos-servicios {
        list-style: none; /* Elimina el estilo de lista */
        padding: 0; /* Elimina el padding de la lista */
        margin: 0; /* Elimina el margen de la lista */
    }
    
    .mobidec .tipos-servicios li {
        text-align:left;
        width:90%;
        margin-inline:auto;
        margin-block:20px;
        padding: 5px 0; /* Ajusta el padding de los elementos de la lista */
        font-size: 1.1em; /* Ajusta el tamaño de fuente de los elementos de la lista */
    }
    
    .mobidec .btn-proyectos,
    .mobidec .btn-contacto {
        margin-top: 20px; /* Ajusta el margen superior de los botones */
        padding: 10px 15px; /* Ajusta el padding de los botones */
        width: 100%; /* Hace que los botones ocupen el ancho completo */
        max-width: 300px; /* Limita el ancho máximo de los botones */
        height: auto; /* Ajusta la altura para que se adapte al contenido */
        font-size: 1em; /* Ajusta el tamaño de fuente de los botones */
    }
    
    .mobidec .btn-proyectos {
        color: #8b745c;
        border: 1px solid #fff;
        border-radius: 4px;
        background: #fff;
        transition: all ease 0.5s;
    }
    
    .mobidec .btn-proyectos:hover {
        background-color: transparent;
        color: #fff;
    }
    
    .mobidec .btn-contacto {
        color: white;
        border: 1px solid #fff;
        border-radius: 4px;
        background: transparent;
        transition: all ease 0.5s;
    }
    
    .mobidec .btn-contacto:hover {
        background-color: #fff;
        color: #8b745c;
    }
    
    .mobidec .footer-redes {
        margin-top: 40px; /* Ajusta el margen superior de la sección de redes sociales */
        margin-bottom:10px;
        display: flex;
        gap: 10px; /* Ajusta el espacio entre los íconos de redes sociales */
        justify-content: center; /* Centra los íconos de redes sociales */
        list-style: none;
    }
    
    .mobidec .footer-redes li img {
        width: 30px; /* Ajusta el tamaño de los íconos de redes sociales */
    }
    
    .mobidec .footer-redes li span {
        line-height: 30px; /* Ajusta la altura de línea para los íconos de redes sociales */
    }

    /* FOOTER */
    
    footer {
        flex-direction: column; /* Cambia la dirección a fila para pantallas más grandes */
        justify-content: space-between; /* Distribuye el espacio entre los elementos */
        text-align: left; /* Alinea el texto a la izquierda */
    }

    footer .links {
        order:1;
        flex-direction: row; /* Cambia la dirección a fila para los enlaces */
        margin-bottom: 0; /* Elimina el margen inferior */
        display:flex;
        flex-direction:column;
        gap: 20px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    footer .copyright{
        order:2;
        text-align: center;
    }

    footer .links a {
        margin-bottom: 0; /* Elimina el margen inferior entre enlaces */
        margin-right: 15px; /* Añade margen horizontal para enlaces */
    }

    footer .links a:last-child {
        margin-right: 0; /* Elimina el margen derecho del último enlace */
    }
}

/* RESPONSIVE PANTALLAS GRANDES */

@media screen and (min-width: 2300px) {
    .imadis .logo {
        height: 190px;
    }
    
    .imadis header nav ul li a{
        font-size:1.6em;
    }
    
    .imadis .contenido, .empresa .contenido{
        max-width:100vw;
    }
    
    .imadis .contenido .texto h2{
        font-size:5em;
        margin: 20px 0px;
    }
    
    .imadis .contenido .texto h3{
        font-size:3em;
    }
    
    .imadis .texto p, .empresa .texto p{
        font-size:1.5em;
    }
    
    .imadis .footer-servicios li img{
        width:120px;
    }
    
    .empresa .contenido .texto h2{
        font-size:4em;
    }
    
    .servicios .texto{
        gap:80px;
    }
    
    .servicios .contenedor-servicios{
        gap:30px;
    }
    
    .servicios .imagen{
        max-width:170px;
    }
    
    .servicios .texto p{
        font-size:1.3em;
    }
    
    /* SERVICIOS */
    
    .estancos .logo, .loterias .logo, .farmacias .logo, .mobidec .logo{
        height:200px;
    }
    
    .estancos .contenido .texto h2, .loterias .contenido .texto h2, .farmacias .contenido .texto h2, .mobidec .contenido .texto h2{
        font-size:4.8em;
    }
    
    .estancos .contenido .texto h3, .loterias .contenido .texto h3, .farmacias .contenido .texto h3, .mobidec .contenido .texto h3{
        font-size:2.5em;
    }
    
    .estancos .tipos-servicios li, .loterias .texto p, .farmacias .texto p, .mobidec .tipos-servicios li{
        padding-block:10px;
        font-size:1.4em;
    }
    
    .estancos .btn-proyectos, .estancos .btn-contacto, .loterias .btn-proyectos, .loterias .btn-contacto, .farmacias .btn-proyectos, .farmacias .btn-contacto, .mobidec .btn-proyectos, .mobidec .btn-contacto{
        width:300px;
        height:65px;
        font-size:1.1em;
    }
    
    .estancos .footer-redes li img, .loterias .footer-redes li img, .farmacias .footer-redes li img, .mobidec .footer-redes li img{
        width:50px;
    }
    
    .estancos .footer-redes li span, .loterias .footer-redes li span, .farmacias .footer-redes li span, .mobidec .footer-redes li span{
        line-height:50px;
        font-size:1.2em;
    }


    .copyright, footer >.links a{
        font-size:1.2em;
    }
}