*{
    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: linear-gradient(to right, #000000, #042650);
    color: white;   
    display: flex;
    flex-direction: column; /* Apila elementos verticalmente */
    align-items: center; /* Centra horizontalmente */
    padding: 20px;
    
}

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

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

.navbar a:hover{
    background-color: rgba(255,255,255,0.12);
    color: #c7d4ff;
    transform: translateY(-2px);
}

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

/* Estilos de Navegación */



#banner{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    height:300px;
    width: 100%;
    background-image: url("Images/Logo\ negro2.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-bottom:0px;
   
}

.logoatyc {
    justify-content: center; 
    align-items: center;     
    perspective: 1000px; /* Necesario para efecto 3D */
    margin: 50px;
  }

  .imagen-3d {
    justify-content: center; 
    align-items: center;     
    width: 150px;
    height: 150px;
    /* Animación continua */
    animation: girar 5s infinite linear;
    transform-style: preserve-3d;
  }

  @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 .container{
    padding: 20px 15px; 
    text-align: center;
}

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

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

.somos {
    width: 100%;
}

.identidad{
    background-color: rgb(80, 92, 137);
    padding: 20px;
    margin-top: -10px; 
    margin-bottom: 25px;
}

#servicios h2{
    color: white;
    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;
}

#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: 120px;
    height: 120px;
    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-color: #042650;
    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: 40px;
}

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

@media (max-width: 768px) {

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

    .imagen-lado {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .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: 35px;
    }


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




