/*  COMPATIBILIDAD CON IOS PARA QUE NO SE HAGA ZOOM*/
html, body{
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    max-width: 100%;
    height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    background-color: rgb(76, 8, 115);
    display: flex;
    flex-direction: column;
}

header{
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top:0;
    background-color: rgb(76, 8, 115);
}

footer{
    display: flex;
    flex-direction: column;
    background-color: rgb(64, 9, 95);
    color: white;
    flex-wrap: wrap;
}

footer>div>p, footer>div>h4{
    display: flex;
    margin-left: 1rem;
    align-items: center;
    
}

footer>div>p>a, footer>div>a{
    color: rgb(232,232,232);
    text-decoration: none;
}

footer>div>p>img, #menu>ul>li>a>img{
    height: 2rem;
    padding-right: 1rem;
    align-items: center;
}


#logo, #logo-footer{
    display: flex;
    height: 5rem;
    align-items: center;
}

#logo{
    padding: 1rem 0 1rem 0;
}

#logo-footer{
    padding: 1rem 0 1rem 0.5rem;
}


#logo>img{
    padding: 1rem;
    height: 4rem;
}

#logo-footer>img{
    height: 4rem;
}

#copy{
    background-color: rgb(49, 6, 73);
}


#boton-menu{
    display: flex;
    height: 2.5rem;
    margin-right: 2rem;
    cursor: pointer;
}

#menu{
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgb(76, 8, 115);
    color:rgb(232,232,232) ;
    padding: 0.5rem 0 0.5rem 0;
}

#menu.show{
    display: flex;
}

#menu ul {
    list-style: none;
    padding: 0.5rem;
    margin: 0;
}

#menu ul li {
    display: flex;
}

#menu ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: rgb(232,232,232);
    text-decoration: none;
}

#menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


a{
    text-decoration: none;
}

/* BANNER */
main {
    flex: 1; /* Toma el espacio restante */
    display: flex;
    flex-direction: column;
}

#banner {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home{
    background-image: url(../img/banner.png);
}


#down {
    margin-top: 2rem;
    height: 3rem;
    cursor: pointer;
}

.contenedor-general{
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    padding: 2rem 0 2rem 2.5rem;
    height: 70dvh;
}

.mobi-digital {
    height: auto;
    width: auto;
    max-width: 80%;
}

.generales{
    display: flex;
    justify-content: center;
    max-height: max-content;
    padding: 1rem;
    
}
#titulo-principal {
    margin-top: 1rem;
    font-size: 2rem;
}

.titulos{
    text-align: center;
    background-color: white;
}

.titulos-second{
    text-align: center;
    color: white;
    background-color: rgb(76, 8, 115);
}

.caja{
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    /*background-color: rgb(201, 163, 223);*/
    background-color: white;
    border-radius: 3rem;
    padding: 1rem;
    margin: 1rem;
    overflow: hidden;
}

.caja>img{
    display: flex;
    height: 15rem;

}

.img-proyecto{
    width: 100%;            /* Obliga a la imagen a ocupar todo el ancho de la caja */
    height: 200px;          /* Define un alto fijo para que todas tus cajas se vean simétricas */
    object-fit: contain;      /* Recorta la imagen para que llene el espacio sin deformarse */
    display: block; 
    background-color: #f8f9fa; 
    border-radius: 1.5rem;
}
    /* El truco mágico para la parte blanca */
    .caja p {
        margin-bottom: 2rem; 
    }

    .caja .btn {
        /* Esto empuja el botón SIEMPRE al final de la tarjeta, */
        /* logrando que todos los botones queden perfectamente alineados*/
        margin-top: auto; 
    }

.btn{
    padding: 1rem 1.5rem 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 2rem;
    max-width: max-content;
    align-items: center;
    text-align: center;
}

.btn-info{
    color: white;
    background-color: rgb(76, 8, 115);
}

.btn-general{
    color:rgb(76, 8, 115);
    background-color: white;
}

.caja-especial{
    display: flex;
    justify-content: center;
    color:white;
    text-decoration: none;
    height: 20rem;
}

.sin-fondo{
    background-color: rgb(64, 9, 95);
}

.secciones{
    background-color: rgb(76, 8, 115);
}
#programacion{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/tecnologias/programacion.jpg);
    background-size: cover;
}

#diseño{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/tecnologias/diseño.jpeg);
    background-size: cover;
}

#documentacion{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/tecnologias/documentacion.jpg);
    background-size: cover;
}

.parrafo-seccion{
    display: flex;
    padding: 1rem;
    margin: 1rem;
    color: white;
}

.sector{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 1rem 0;
    gap: 1.5rem;
}

.lg{
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    width:8rem;
    height: 10rem;
    flex-direction: column;
    background-color: white;
    border-radius: 3rem;
    padding: 1.5rem;
    margin: 0.5rem;
    box-sizing: border-box;
}



.lg>img{
    width: 100%;
    height: auto;
    max-width: 100%;
    padding: 1.5rem 0 0 0;
    object-fit: contain;
}

.bloque{
    display: flex;
    flex-direction: column;
    padding: 1rem;
    color: rgb(36, 36, 36);
    background-color: rgb(255, 255, 255);
}

.bloque>img{
    width: 100%;
    height: 100%;
    border-radius: 3rem;
}

#rss{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.redes-sociales>div>h2, .form-titulo{
    display: flex;
    justify-content: center;
    color: white;
}

#rss>a>img{
    display: flex;
    flex-wrap: wrap;
    height: 7rem;
}

.caja-redes{
    padding: 2rem;
}

#contacto{
    display: flex;
    flex-wrap: wrap;
}

.section-centrado {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(64, 9, 95);
    color: white;
    padding: 2rem;
}

.campo-formulario {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 500px;
    margin-bottom: 1.5rem;
}

.campo-formulario label {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.campo-formulario input, .campo-formulario textarea {
    width: 92%;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Segoe UI';
}



.form-titulo{
    background-color: rgb(64, 9, 95);
}

#btn-enviar{
    border: none;
    cursor: pointer;
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-bg {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid rgba(255, 255, 255, 0.3);
    border-top: 0.4rem solid white;
    border-radius: 50%;
    animation: girar 1s linear infinite;
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.caja-web{
    display: flex;
    flex-wrap: wrap;
    justify-items: center;
    justify-content: center;
    padding: 0rem 1rem 1rem 1rem;
    color: white;
}

.caja-web>img{
    width: 100vw;
    height: auto;
}

.analisis{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/servicios/analista.webp);
}

.web{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/servicios/web/web.jpeg);
}

.sistemas-a-medida{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/servicios/sistemas/sistema.jpg);
}

.software{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/servicios/software/software.jpg);
}

.mantenimiento{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/servicios/mantenimiento/mantenimiento.webp);
}

.invitaciones{
    background-image: linear-gradient(rgba(5, 7, 12,0.75), rgba(5, 7, 12,0.75)), url(../img/servicios/invitaciones/invitaciones.jpg);
}

.ocultar-desktop{
    display: none;
}
.banner-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bloque>h2{
    text-align: center;
}

#titulo-empresas{
    color: white;
}

/* Contenedor principal: define el ancho del banner y oculta lo que sale de los bordes */
.banner-logos {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  background-color: rgb(76, 8, 115); /* Color de fondo a tu gusto */ /*rgb(64, 9, 95)*/
  white-space: nowrap;
  position: relative;
}

/* Opcional: difumina los bordes izquierdo y derecho para un acabado más profesional */
.banner-logos::before,
.banner-logos::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3rem;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.banner-logos::before { left: 0; background: linear-gradient(to right,rgb(64, 9, 95), transparent); }
.banner-logos::after { right: 0; background: linear-gradient(to left, rgb(64, 9, 95), transparent); }

/* La pista que contiene todos los logos */
.banner-logos .track {
  display: inline-flex;
  gap: 3rem; /* Espacio entre los logos */
  animation: scroll 40s linear infinite; /* Ajusta la velocidad cambiando los segundos */
}

/* Pausar la animación cuando el usuario pase el mouse por encima */
.banner-logos:hover .track {
  animation-play-state: paused;
}

/* Tamaño de cada logo */
.logo-item img {
  height: 8rem; /* Ajusta esta medida según tus necesidades */
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.logo-item img:hover {
  opacity: 1;
}



/* Animación de desplazamiento infinito */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Mueve exactamente la mitad del ancho */
}


/* MEDIA QUERY PARA EL MENU Y FOOTER TABLET*/
@media screen and (min-width: 1024px){
    #menu{
        display: flex !important;
        flex-direction: row;
        background-color: rgb(76, 8, 115);
        padding: 0;
        margin-right: 2rem;
    }

    #menu ul {
        display: flex;
        flex-direction: row;
    }

    #menu ul li {
        display: flex;
    }

    #menu ul li a{
        font-size: 0.95rem;
    }

    .ocultar-desktop{
        display: none;
    }

    

    #boton-menu{
        display: none;
    }

    footer>#logo-f, footer>#info-f, footer>#search-f, footer>#links-f, footer>#copy>p{
        padding-left: 5rem;

        
    }
    .cajas{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .caja{
        display: flex;
        min-width: 25rem;
        max-width: 25rem;
        min-height: auto;
        max-height: auto;
    }

    .caja-web{
        display: flex;
        flex-direction: column;
        justify-items: center;
        justify-content: center;
        padding: 0;
        width: 45rem;
    }
    
    .caja-web>img{
        max-width: 100%;
        height: auto;
    }

    .caja{
        display: flex;
        text-align: center;
        align-items: center;
        flex-direction: column;
        /*background-color: rgb(201, 163, 223);*/
        border-radius: 3rem;
        padding: 1rem;
        margin: 1rem;
        overflow: hidden; 
    }

    .caja>img{
        display: flex;
        height: 15rem;

    }

    .img-proyecto{
        width: 100%;            /* Obliga a la imagen a ocupar todo el ancho de la caja */
        height: 200px;          /* Define un alto fijo para que todas tus cajas se vean simétricas */
        object-fit: cover;      /* Recorta la imagen para que llene el espacio sin deformarse */
        display: block; 
        border-radius: 3rem;
    }
    
}

/* MEDIA QUERY PARA EL MENU Y FOOTER PC */
@media screen and (min-width: 1366px){
    #logo{
        padding-left: 5rem;
    }
    #menu{
        display: flex !important;
        flex-direction: row;
        background-color: rgb(76, 8, 115);
        padding: 0;
        margin-right: 2rem;
    }

    #menu ul {
        display: flex;
        flex-direction: row;
    }

    #menu ul li {
        display: flex;
    }


    .ocultar-mobile{
        display: none !important;
    }
    .ocultar-desktop{
        display: flex !important;
    }

    #menu ul li a {
        padding: 1rem 1.5rem;
    }

    #boton-menu{
        display: none;
    }

    footer{
        flex-direction: row;
        align-items: flex-start;
        
    }
    footer>#info-f, footer>#search-f, footer>#links-f{
        padding-bottom: 2rem;
    }
    #logo-f{
        display: flex;
        width: 100%;
        padding: 0 10rem 0;
    }

    #info-f{
        order:3;
        padding: 0 10rem;
        
    }
    #search-f{
        order:1;
        padding-right: 10rem;
        padding: 0 10rem;
    }
    #links-f{
        order:2;
    }
    #copy{
        order:4;
        width: 100%;
        text-align: center;
        padding: 0;
    }
    #copy>p{
        padding: 0 10rem;
    }
}


/* MEDIA QUERY PARA PC */
@media screen and (min-width: 1024px) {
    #banner {
        flex: 0 1 auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 4rem 6rem;
        text-align: left;
        gap: 2rem;
    }
    .home{
        height: 68.8dvh;
    }

    .banner-texto {
        order: 1;
        max-width: 50%;
        align-items: flex-start;
    }

    #titulo-principal {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .banner-texto p {
        font-size: 1.5rem;
    }

    .mobi-digital {
        max-width: 40%;
        height: auto;
    }
    .home>img{
        order: 2;
    }
    
    #down {
        display: none;
    }

    .cajas{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .caja{
        /*
        display: flex;
        min-width: 25rem;
        max-width: 25rem;
        min-height: auto;
        max-height: auto;*/

        display: flex;
        text-align: center;
        align-items: center;
        flex-direction: column;
       
        border-radius: 3rem;
        padding: 1rem;
        margin: 1rem;
        overflow: hidden; 

        /* Tus medidas de PC */
        width: 25rem; /* Es mejor usar solo width o max-width en vez de duplicar con px */
        /* Dejá que el min-height se maneje solo, Flexbox estirará las cajas de la misma fila equitativamente */
    }

    .img-proyecto {
        width: 100%; 
        height: 200px; /* Mantiene la consistencia de la cabecera */
        
        /* CAMBIO CLAVE: Muestra la captura completa sin recortar nada */
        object-fit: contain; 
        
        /* RECOMIENDO: Un fondo gris muy sutil o negro para rellenar los lados si la foto no es tan ancha */
        background-color: #f8f9fa; 
        
        display: block; 
        border-radius: 1.5rem; /* Ajustado para que acompañe el diseño */
    }

    /* El truco mágico para la parte blanca */
    .caja p {
        margin-bottom: 2rem; 
    }

    .caja .btn {
        /* Esto empuja el botón SIEMPRE al final de la tarjeta, */
        /* logrando que todos los botones queden perfectamente alineados en la PC */
        margin-top: auto; 
    }


    #sobremi{
        display: flex;
        align-items: center;
        background-color: rgb(255, 255, 255);
    }

    #ins-soft{
        display: flex;
        
        
    }

    #sobremisection, #pasos-ins-soft>.bloque{
        display: flex;
        flex-direction: column;
        width: 45rem;
        justify-items: center;
        border-radius: 3rem;
    }
    
    #pasos-ins-soft{
        display: flex;
        
        justify-content: center;
    }
    #pasos-ins-soft>.bloque{
        width: 25rem;
        padding: 2rem;
        margin: 1rem;
    }

    #pasos-ins-soft>.bloque>img{
        max-width: 100%;
        height: auto;
    }



    .holasoymobi>h1{
        order: 0;
    }
    .holasoymobi>img{
        order:1;
    }
    .holasoymobi>p{
        order:2;
    }

    #contacto-main{
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .redes-sociales, .formulario{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 50rem;
    }
    .redes-sociales{
        display: flex;
        justify-content: center;
    }

    .formulario{
        display: flex;
        margin: 0 1rem 1rem 0;
        flex-direction: column;
        background-color: rgb(64, 9, 95);
        border-radius: 3rem;
    }

    .caja-proyecto{
        display: flex;
        justify-content: center;
    }

    #exp, #proy{
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-items: center;
        justify-content: center;
        align-items: center;
    } 
}
/* MEDIA QUERY PARA PC */
@media screen and (min-width: 1366px){
    .home{
        height: 76dvh;
    }
}






