* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    width: 100%;
    background-color: #3c3c43;
    justify-content: center;
    height: auto;
}


h1, h2, h3, p, a, i, label, textarea, input {
    font-family: "Times New Roman", Times, serif;
}


.logo {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: #668495;
    padding: 20px;
    background-image: url(/Img/Fondo\ oficial.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero {
    width: 100%;
    height: 100px;
    z-index: 1;
    padding: 17px;
    background-color: #3c3c43;
    display: flex;
    justify-content: space-around;
}

.container_menu {
    max-width: 1200px;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

.menu { 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.menu ul {
    display: flex;
}

.menu ul li {
    list-style: none;
    margin-left: 36px;
}

.menu ul li a {
    text-decoration: none;
    font-size: 17px;
    color: #e2e2e2;
    text-transform: uppercase;
}

.redes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-direction: column;
}

.redes a i {
    color: #e2e2e2;
    width: 20px;
    font-size: 25px;
}

.contenedor {
    width: 100%;
    overflow: hidden;
}

.slider-contenedor {
    display: flex;
    width: 100%;
    -webkit-transition: transform 0.8s; /* Agregar el prefijo -webkit- */
    transition: transform 0.8s;
}

.contenido_slider {
    width: 100%;
    display: flex;
    height: 400px;
    justify-content: space-around;
    align-items: center;
    background-color: #e2e2e2;
    flex-shrink: 0;
    padding: 10px;
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;

}

.contenido_slider:nth-child(1) {
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/Imgns/img6.jpg);
}

.contenido_slider:nth-child(2) {
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/Imgns/img5.jpg);
}

.contenido_slider:nth-child(3) {
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/Imgns/img6.jpeg);
}

.contenido_slide{
    width: 100%;
    display: flex;
    height: 400px;
    justify-content: space-around;
    align-items: center;
    background-color: #e2e2e2;
    flex-shrink: 0;
    padding: 10px;
    background-size: cover;
    background-position: 20%;
    background-repeat: no-repeat;
    background-image: linear-gradient(180deg,#0000008c 0%,#0000008c 100%), url(/Img/Imgns/img6.jpeg);
}


.contenido_slider img , .contenido_slide img{
    width: 700px;
    border-radius: 10px;
}

.contenido_slider section , .contenido_slide section {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.contenido_slider h2 , .contenido_slide h2{
    font-weight: 300;
    text-align: center;
    color: #e2e2e2;
    font-size: 45px;
}

.contenido_slider a, .contenido_slide a{
    color: #e2e2e2;
    background-color: #668495;
    width: 130px;
    display: block;
    padding: 15px 0;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
}

.contenido_slider:nth-child(2) a {
    background-color: #e2e2e2;
    color: #668495;
}

.menu #btn_menu{
    display: none;
}
/*-----------------------------------------------------------------*/ 
/*FOOTER*/
.pie_pagina{
    width: 100%;
    background-color: #668495;
}

.footer_grup1{
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns:repeat(3,2fr);
    padding: 30px 15px;
}

.box img{
    margin-bottom: 20px;
    width: 220px;
}

.box h2{
    color: #e2e2e2;
    margin-bottom:20px;
    font-size: 25px;
    font-weight: 600;
}

.box p{
    color: #f6fbfb;
    margin: 15px;
}

.footer_ul li{
    padding: 3px;
    margin-bottom: 10px;
    list-style: none;
}


.footer_ul a{
    color: #09000E;
    font-size: 17px;
    text-transform: uppercase;
    margin-left: 10px;
    text-decoration: none;
    transition: all cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer_ul a:hover{
    color: #e2e2e2;
    transition: all cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.red_social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    line-height: 40px;
    height: 45px;
    color: #134d45;
    font-size: 20px;
    margin-left: 10px;
    background-color: #ffffff;
    text-align: center;
    transition: all 1000ms ease;
    border-radius: 10px;
}

.red_social a:hover{
    color: #f6fbfb;
    background-color: #668495 ;
    border: 2px outset #09000E;
}

.footer_grup2{
    background-color: #3c3c43;
    padding: 15px 10px;
    text-align: center;
    color: #e2e2e2;
    padding-top: 30px;
    font-size: 14px;
    letter-spacing: 2.67px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.grupo-2 small{
    font-size: 18px;
}

/*Titulo container*/
.title_container{
    width: 100%;
    margin: auto;
    padding: 50px 100px 10px;
    text-align: center;
    background-color: #e2e2e2;
}

.title_container h1{
    color: #09000E;
    font-size: 35px;
    padding-bottom: 20px;
}

.slider {
    width: 90vw;
    height: auto;
    margin: auto;
    overflow: hidden;
}

.slider .slide-track {
    display: flex;
    animation: scroll 40s linear infinite;
    -webkit-animation: scroll 40s linear infinite;
    width: calc(200px * 14);
    align-items: center;
    justify-content: center;
}

.slider .slide {
    width: 550px;
    padding: 10px 30px;
}

.slider .slide img {
    width: 230px;
}

@keyframes scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(calc(-200px * 7));
        transform: translateX(calc(-200px * 7));
    }
}

.contact{
    width: 100%;
    margin: auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    background-color: #668495;
}

form{
    width: 100%;
    max-width: 1000px;
    padding: 30px 50px;
    border-radius: 20px;
    background-color: #3c3c43;
    border: 3px outset #e2e2e2;
}

.input-group{
    display: flex;
    flex-direction: column;
    text-align: left;
}
.input-group label{
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.input-group input,textarea{
    padding: 17px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #ffffff;
    color: #09000E;
}

#mapa{
    width: 100%;
    height: 400px;
}
.servicios {
    background-color: #e2e2e2;
    padding: 30px 20px;
}

.serv_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(20rem, 1fr)); /* Cambio aquí */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    padding-bottom: 30px;
}

.card {
    padding: 19px;
    background-color: #3c3c43;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    width: 350px;
}


.card:hover {
    transform: scale(1.05); /* Efecto de escala al pasar el ratón */
}

.card img {
    width: 280px;
    height: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin: auto;
}

.card_text {
    padding: 20px;
    text-align: center;
}

.card_text h4 {
    margin-bottom: 4px;
    font-size: 35px;
    color: #f6fbfb; /* Tamaño de fuente más grande */
}

.list-group {
    margin: 10px 0;
    color: #e2e2e2;
    padding: 15px; /* Elimina el relleno predeterminado de la lista */
}

.list-group li {
    margin: 0px 30px ;
    font-size: 20px;
    line-height: 1.6;
}

.card-body a {
    color: #fff;
    background-color: #668495;
    width: 120px;
    display: block;
    padding: 10px 0;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    margin: 15px auto; /* Ajuste de margen */
    transition: background-color 0.7s ease;
}

.card-body a:hover {    
    color: #3c3c43;
    background-color: #e2e2e2;
}

/*NNOSOTROS ABOUT*/
.who_container{
    width: 100%;
    padding:50px;
}

.who_about{
    display: flex;
    align-items: center;
    gap: 4rem;
    justify-content: center;
}

.who_text{
    width: 700px;
}

.who_text h2{
    font-size: 45px;
    margin-bottom: 15px;
    color: #041c44;
    text-align: center;
    font-weight: 600;
}

.who_text p{
    font-size: 23px;
    color: #09000E;
    text-align: center;
    margin-top: 55px;
}

.img_about img{
    width: 500px;
    border-radius: 1%;
}

.container_mison {
    text-align: center;
    margin-top: 20px;
    padding: 30px 50px;
    background-image: url("/Img/Imgns/Diseño\ sin\ título.png");
    background-size: cover;
  }

  .mision {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    column-gap: 160px;
    
  }

  .bubble {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    background-color: #041c44;
    border: 2px solid #3c3c43;
    padding: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 30px;
    animation: moveUpDown 9s infinite alternate; 
  }

  @keyframes moveUpDown {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-20px);
    }
    100% {
      transform: translateY(0);
    }
}

  .bubble h2 {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
  }

  .text_mision {
    margin-left: 40px;
    max-width: 500px;
    text-align: left;
  }

  .text_mision p{
    font-size: 23px;
    color: #09000E;
  }

  .vision{
   margin-right: 40px;
  }


  .galeria{
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
    width: 95%;
    margin: auto;
    grid-gap:10px;
    padding: 40px 0;
    overflow: hidden;
  }

  .galeria img{
    width: 100%;
    vertical-align: top;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s;
  }

  .galeria > a{
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 6px #041c44;
  }

  .galeria a:hover img{
    filter: blur(2px);
    transform: rotate(10deg) scale(1.3);
  }

  .light_box{
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0, 0, .5);
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: transform .3s ease-in-out;
    transform: scale(0);
  }

  .light_box img{
    width: 75vw;
    max-height: 70vh;
  }

  .light_box:target{
    transform: scale(1);
  }

  .close{
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    background: #668495;
    color: #f6fbfb;
    text-decoration: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
  }

  .next{
    display: block;
    background: #041c44;
    color: #e2e2e2;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
    font-size: 25px;
    transition: transform .5s ease-in-out;
  }
/*------------------------------------------------------------------------------------*/

.container-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    grid-template-rows: repeat(2, auto); /* 2 filas */
    gap: 20px; /* Espacio entre elementos */
    max-width: 1100px;
    margin: auto;
}

.title-cards {
    width: 100%;
    max-width: 1080px;
    margin: auto;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    color: #09000E;
}

.cards {
    margin: auto;
    width: 300px;
    border-radius: 6px;
    overflow: hidden;
    background: #668495; /* Color de fondo */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Sombra */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Transición suave */
    cursor: pointer; /* Cambiar cursor al pasar el ratón */
}
.cards:hover{
	box-shadow: 5px 5px 20px rgba(0,0,0,0.4);
	transform: translateY(-3%);
}
.cards img{
	width: 100%;
	height: 210px;
}
.cards .contenido-card{
	padding: 15px;
	text-align: center;
}
.cards .contenido-card h3{
	margin-bottom: 15px;
	color: #e2e2e2;
}
.contenido-card p {
    font-size: 1rem;
    color: #666; /* Color del texto */
    line-height: 1.6; /* Espaciado entre líneas */
}
.cards .contenido-card a{
	display: inline-block;
	padding: 10px;
	margin-top: 10px;
	text-decoration: none;
	color: #e2e2e2;
    background-color: #041c44;
	border: 1px solid #041c44;
	border-radius: 4px;
	transition: all 400ms ease;
	margin-bottom: 5px;
}
.cards .contenido-card a:hover{
	background: #041c44;
	color: #fff;
}


.carta {
    border: 1px solid #f6fbfb;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    background-color: #f0f0f0;
}

.carta-header {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.carta-header h2 {
    margin: 0;
}

.carta-body ul {
    list-style-type: none;
    padding-left: 0;
}

.carta-body h3 {
    margin-top: 20px;
}

.carta-body li {
    margin-bottom: 5px;
}


.carousel-container {
    width: 245px;
    overflow: hidden;
    padding: 30px 0px;
  }
  
  .carousel {
    display: flex; /* Para que las imágenes estén en línea */
    transition: transform 0.5s ease; /* Transición suave al cambiar las imágenes */
  }
  
  .carousel img {
	width: 245px;
	height: auto;
  }

  
/*------------------------------------------------------------------------------------*/

@media screen and (max-width: 1200px) {
    .contenido_slider img {
        width: 350px;
    }

    .contenido_slider section {
        width: 50%;
    }


    .who_container{
        padding:40px 20px 20px;
    }

    .who_about{
        gap: 2rem;
        text-align: center;
    }

    .mision{
        column-gap: 30px;
    }

    .card{
        width: 400px;
    }

}

@media screen and (max-width: 1000px) {
    .footer_grup1{
        grid-template-columns:repeat(2,1fr);
        align-items: center;
    }

    .img_about img{
        display: none;
    }

    .mision{
        column-gap: 0px;
    }

    .text_mision p{
        font-size: 18px;
        color: #09000E;
      }

      .vision{
        margin-right: 20px;
       }

       .bubble {
        width: 120px;
        height: 120px;
      }
      .section2{ 
        gap: 30px;
      }

      .container-card{
        display: flex;
		flex-wrap: wrap;
        margin: auto;
        justify-content: center;
	}
}

@media screen and (max-width: 800px) {
    .hero {
        padding: 14px;
        justify-content: space-between;
    }

    .logo img{
        width: 168px;
    }
    
    .menu nav {
        position: fixed;
        top: 0;
        left: -200px;
        background: #3c3c43;
        width: 190px;
        height: 100vh;
        padding: 40px;
        z-index: 1;
        transition: all 1000ms;
    }
    
    .menu ul {
        flex-direction: column;
        margin-top: 40px;
    }
    
    .menu ul li {
        margin-top: 30px;
        margin-left: 0;
    }
    
    .menu ul li a {
        color: #e2e2e2;
    }
    
    #back_menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        display: none;
    }
    
    .menu #btn_menu {
        display: flex;
        width: 50px;
        height: 50px;
        justify-content: center;
        align-items: center;
        font-size: 30px;
        margin-right: 30px;
        color: #e2e2e2;
        cursor: pointer;
    }
    
    .redes{
        margin-right: 20px;
    }

    .contenido_slider {
        
        flex-direction: column-reverse;
        height: 404px;
        padding: 20px;
    }

    .contenido_slider section {
        width: 80%;
    }

    .footer_grup1{
        grid-template-columns:repeat(1,1fr);
        padding: 30px 50px;
    }

    .box img{
        width:220px;
    }
    
    .aliados {
        display: grid;
        grid-template-columns: repeat(3, 2fr);
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    
    .title_container{
        padding: 30px 30px 0px 0px;
    }

    .title_container h1{
        font-size: 30px;
    }

    .aliados_container {
        padding: 20px;
        height: 294px;
    }
    
    form{
        max-width: 320px;
        padding: 20px 30px;
        border-radius: 20px;
        text-align: center;
    }

    .serv_container{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .container_nosotros{
        height: 350px;
    }
    .img_nosotros img{
        display: none;
    }
    
    .text_nosotros{
        padding: 50px;
    }
    
    .img_about img{
        display: none;
    }
    
    .who_text h2{
        font-size: 35px;
    }

       
    .who_text p{
        font-size: 19px;
        text-align: center;
    }

    .mision {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .viso{ 
        display: flex;
        flex-direction: column-reverse;
      }
      .text_mision {
        margin-left: 0;
        margin-top: 20px;
      }

      .container_mison{
        padding: 0px 20px;
        background: none;
      }

      .galeria{
        grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
      }

      .close{
        top: 20px;
        right: 20px;
      }

	.cards{
		margin: 15px;
	}
    
    .carta {
        margin: 10px;
        padding: 10px;
    }
    .carta-header h2 {
        font-size: 18px;
    }
    .carta-body h3 {
        font-size: 16px;
    }

    .bubbles img{
        width: 180px;
    }

    .carousel-container {
        width: 280px;
      }
      
      .carousel img {
        width: 280px;
      }

      .contenido_slider h2, .contenido_slide h2{
        font-size: 30px;
      }

      .card_text h4 {
        font-size: 25px;
    }

    .list-group li {
        font-size: 15px;
    }

    .card img{
        width: 200px;
    }

    }


@media screen and (max-width: 500px) {
    .card{
        width: 300px;
    }
}