*{
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

h1{font-size: 4em;}
h2{font-size: 2em;}
h3{font-size: 1.7em;}
p{font-size: 1.25em;}
li{font-size: 1.2em;}
li{text-align: left;}


header {
    position: fixed; 
    top: 0;          
    width: 100%; 
    background-image: url('Images/Tecnología\ 3.PNG');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px); 
    color: rgb(7, 0, 101);   
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding: 10px;
    z-index: 1000; /* <--- CLAVE: Esto hace que el header siempre esté al frente */
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacio entre enlaces */
    list-style: none;
    padding: 15px;
    margin: 0;
   
}

.navbar a{
    padding: 8px 10px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgb(255, 255, 255);   
    font-size:x-large;
}

.navbar a:hover{
    background-color: rgba(83, 126, 255, 0.819);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Estilos del Logo */
.logo img {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 135px;
}

/* Estilos de Navegación */

.carrusel-contenedor {
    position: relative; 
    margin: 220px auto auto auto; 
    width: 100%;
    
    /* REDUCIMOS EL MAX-WIDTH: 
       Al ponerle 400px o 450px, obligamos a que el marco sea del tamaño 
       de una sola de tus imágenes, tapando las demás con el overflow: hidden */
    max-width: 420px; 
    
    height: 420px; /* Ajusta la altura para que encuadre bien tu imagen cuadrada */
    display: flex;
    align-items: center;
    overflow: hidden; /* <--- Esto es lo que va a esconder las otras 2 imágenes */
    z-index: 10; 
}

/* ==========================================
   2. LA TIRA HORIZONTAL (Mantiene las 3 en fila)
   ========================================== */
.carrusel-imagenes {
    display: flex;
    flex-direction: row;
    width: 300%; /* Sigue midiendo el triple porque son 3 imágenes */
    transition: transform 0.5s ease-in-out;
}

/* ==========================================
   3. LAS IMÁGENES (Cada una debe medir el 100% del MARCO)
   ========================================== */
.carrusel-imagenes img {
    /* CORRECCIÓN CLAVE: 
       Cada imagen debe heredar el 100% del ancho del contenedor principal (.carrusel-contenedor)
       para que ocupe todo el marco visible. El 'flex-shrink: 0' evita que se aplasten. */
    width: 100%; 
    height: 100%;
    object-fit: contain;
    flex-shrink: 0; 
}

.carrusel-boton {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

#btn-atras { left: 10px; }
#btn-adelante { right: 10px; }


.logocad {
    justify-content: center; 
    align-items: center;     
  
  }

  .imagen-3d {
    justify-content: center; 
    align-items: center;     
    width: 200px;
    height: 200px;
  }

  @keyframes girar {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
  }

  /* Opcional: Pausar al pasar el mouse */
  .contenedor:hover .imagen-3d {
    animation-play-state: paused;
  }

#inicio{
    background: linear-gradient(180deg, #dcecff 100%, #ffffff 100%); 
}

#nosotros .container{ 
    text-align:justify;
    margin-left: 50px;
    margin-right: 50px;
}   

#nosotros h2{
    margin-top: 50px;
}

.somos {
    width: 100%;

}

.identidad{
    background-color: rgb(1, 21, 91);
    padding: 20px;
    margin-top: -10px; 
    margin-bottom: 25px;
}

#servicios h2{
    padding-bottom: 0px;
    margin-bottom: 2px; 
    text-align: center;
}

.mision{
    display: flex; /* Habilita el layout de flexbox */
    padding-top: 35px;
   
}
 
.mision2 {
    width: 50%;
    height: auto;
    margin-top: 0;
    border-radius: 15px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-image:url("Images/mision.jpg");
  
}

.mision2 h1{
    text-align: center;
    text-shadow: 0cap;
    color: white;
    padding: 150px;
    
}

.nuestra-mision {  
width: 50%; /* Cada columna ocupa la mitad del ancho */
box-sizing: border-box;
margin-right: 20px;
margin-left: 20px;
color: white;
text-align: justify;
text-shadow: darkblue;

}

.vision{
    display: flex; /* Habilita el layout de flexbox */
    padding-top: 35px;
   
}
 
.vision2 {
    width: 50%;
    height: auto;
    margin-top: 0;
    border-radius: 15px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    background-image: url("Images/Vision.PNG");
    margin-left:20px;
}

.vision2 h1{
    text-align: center;
    text-shadow: 0cap;
    color: white;
    padding: 150px;
}

.nuestra-vision {  
width: 50%; /* Cada columna ocupa la mitad del ancho */
box-sizing: border-box; 
margin-right: 10px;
color: white;
text-align: justify;

}    

#valores {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #dcecff 100%); 
}

#valores h2 {
    text-align: center;
    margin-bottom: 40px;
}

.valor-card {
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
    border: 2px solid #d9d9d9;
    border-radius: 14px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.imagen-lado {
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.cuadrado {
    flex: 1;
}

.cuadrado h4 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.cuadrado p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.2em;
}

footer {
    background: linear-gradient(to right, #000000, #0055e9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* CLAVE para móvil */
    gap: 15px;
    padding: 15px;
    color: white;
    text-align: center;
}

/* Logo */
.footer-logo img {
    height: 65px;
}

/* Items (teléfono y correo) */
.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Iconos */
.footer-item img {
    width: 20px;
    height: 20px;
}

footer-item span{
    color:white;
}

@media (max-width: 768px) {

    .valor-card {
        flex-direction: column; /* Imagen arriba, texto abajo */
        text-align: center;
        padding: 20px;
    }

    .imagen-lado {
        width: 180px;  /* <--- Sube aquí el ancho a tu gusto (estaba en 100px) */
        height: 180px; /* <--- Sube aquí el alto para mantenerlas cuadradas */
        object-fit: contain; /* Evita que las imágenes se distorsionen o estiren feo */
        margin-bottom: 20px; /* Un poco más de espacio de separación con el texto de abajo */
    }

    .cuadrado {
        width: 100%;
    }

    .cuadrado h4 {
        font-size: 1.3em;
        line-height: 1.2;
        word-break: break-word;
    }

    .cuadrado p {
        font-size: 1.05em;
        line-height: 1.5;
        word-break: break-word;
    }

    footer {
        flex-wrap: wrap;
        text-align: center;
    }

     footer {
        flex-direction: column; /* Se apilan */
        gap: 10px;
    }

    .footer-item {
        justify-content: center;
    }

    .footer-logo img {
        height: 45px;
    }


    header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px; /* vertical | horizontal */
    width: 100%;
    padding: 0;
    margin: 0;
}

.navbar li {
    list-style: none;
    flex: 0 1 auto;
}

.navbar a {
    display: block;
    font-size: 15px !important;
    padding: 4px 8px;
    white-space: nowrap; /* evita cortes raros */
}

.carrusel-contenedor {
        margin-top: 150px; /* Espacio adaptado al tamaño del header en celular */
        max-width: 90%;
        height: auto;
    }

    /* Hacer que Misión y Visión se pongan una abajo de la otra en celular */
    .mision, .vision {
        flex-direction: column;
        gap: 20px;
    }

    .mision2, .vision2, .nuestra-mision, .nuestra-vision {
        width: 100%; /* Ocupan todo el ancho del celular */
        margin: 0;
    }

    .mision2 h1, .vision2 h1 {
        padding: 60px 20px; /* Reducimos el padding gigante de 150px para que quepa en el cel */
    }

    #nosotros .container {
        margin-left: 20px;
        margin-right: 20px; /* Menos margen en las orillas para pantallas chicas */
    }

}




