/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  z-index: 1000;
}

header .logo img {
  height: 40px;
}

header .nav-links {
  display: flex;
  gap: 15px;
}

header .nav-links a {
  width: 100%;
  text-align: center;   
  text-decoration: none;
  color: black;
  font-size: 16px;
  background-color: white;
  margin: 5px;
  padding: 10px;
  transition: 0.3s;
}

.nav-links a i {
  margin-right: 2px; /* Espacio entre el icono y el texto */
}

header .nav-links a:hover {
  background-color: #5dade2;
  color: white;
}

.menu-toggle {
  position: relative;
  width: 40px;
  height: 30px;
  cursor: pointer;
  display: none;
}

.menu-toggle input {
  display: none;
}

.menu-toggle span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: black;
  border-radius: 9px;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.menu-toggle span:nth-of-type(1) {
  top: 0;
  transform-origin: left center;
}

.menu-toggle span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.menu-toggle span:nth-of-type(3) {
  top: 100%;
  transform: translateY(-100%);
  transform-origin: left center;
}

.menu-toggle input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle input:checked ~ span:nth-of-type(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
}

/* Menú móvil */
.mobile-menu {
   z-index: 999;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-toggle input:checked ~ .mobile-menu {
  visibility: visible;
  opacity: 1;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 20px;
  color: black;
}

/* Submenú debajo de 'Inicio' */
.submenu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  width: 200px;
  z-index: 100;
}

.submenu a {
  text-decoration: none;
  font-size: 16px;
  color: black;
  padding: 10px;
  display: block;
  background-color: white;
  transition: background-color 0.3s ease;
}


/* Estilo de los iconos dentro del submenú */
.submenu a i {
  margin-right: 8px;            /* Espacio entre el icono y el texto */
}

.submenu a:hover {
  background-color: #5dade2;
  color: white;
}

/* Mostrar el submenú cuando se hace clic en "Inicio" */
nav .menu-item:focus + .submenu,
nav .menu-item:hover + .submenu {
  display: block;
}

/* Aseguramos que el contenido principal no tape el footer */
main {
  flex-grow: 1;
  margin-bottom: 80px; /* Ajusta para dar espacio al footer fijo */
}

@media (max-width: 768px) {
  header .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    top: 0;
  }
}




        /* Contenido principal */
        main {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f4f4f4;
            color: black;
            z-index: 0;
            overflow-y: auto;
            padding: 20px;
            box-sizing: border-box;
        }

        

        /* Banner */
        .banner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('https://i.postimg.cc/9FGnkntf/Mision4.jpg');
            background-size: cover;
            background-position: center;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            text-align: center;
            z-index: 10;
        }

                .banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 0;
        }

        .banner-content {
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2;
            width: 100%;
            max-width: 100%;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .logo {
            width: 120px;
            height: auto;
            margin-right: 20px;
        }

        .separator {
            width: 1px;
            height: 80%;
            background-color: #ccc;
            margin-right: 20px;
        }

        .text {
            max-width: 600px;
            font-size: 16px;
            line-height: 1.5;
        }

        .button {
            margin-top: 20px;
            padding: 12px 30px;
            border: 2px solid #fff;
            background-color: transparent;
            color: white;
            font-size: 18px;
            text-transform: uppercase;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: background-color 0.3s ease;
        }

        .button:hover {
            background-color: white;
            color: #2e86c1;
        }

        /* Animación expand */
        .expand {
            position: absolute;
            background-color: #f4f4f4;
            z-index: 20;
            transition: width 0.5s ease, height 0.5s ease, top 0.5s ease, left 0.5s ease, opacity 0.5s ease;
            pointer-events: none;
        }
      
      
      
      /* contenido dentro de main */
     .banner-2 {
            position: relative;
            width: 100%;
            height: 300px;
            background-image: url('https://i.postimg.cc/50zSk2Gr/Mision2.jpg');
            background-size: cover;
            background-position: center;    
            margin-top: 60px;
        }
        .banner-2::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 0;
        }
        .banner-logo {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }
        .banner-logo img {
            max-width: 100%;
            height: auto;
            max-height: 300px;
        }


        
.descripcion-section {
  display: flex;
           flex-direction: column;
           background: #fff;
           border: 1px solid #ddd;
           border-radius: 8px;
           padding: 20px;
           box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
           max-width: 800px;
           width: 90%;
           margin: 20px auto;
}

.descripcion-content {
 max-width: 800px;
 margin: 0 auto;
 font-family: 'Arial', sans-serif;
 font-size: 18px;
 line-height: 1.6;
 color: #333; /* Color del texto */
}

.descripcion-content h2 {
 font-size: 32px;
 color: #007ACC;
}

.descripcion-content p {
           margin: 0;
           font-size: 18px;
           color: #3498db;
}
        .container {
            display: flex;
            flex-direction: column;
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            max-width: 800px;
            width: 90%;
            margin: 20px auto;
        }
        .block {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        .text-content {
            flex: 1;
            margin: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .text-content h1 {
            margin: 0 0 10px;
            font-size: 24px;
            color: #007ACC;
        }
        .text-content hr {
            border: 0;
            height: 1px;
            background: #ddd;
            margin: 10px 0;
        }
        .text-content p {
            margin: 0;
            font-size: 16px;
            color: #3498db;
        }
        .image-content {
            flex: 1;
            margin: 10px;
        }
        .image-content img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        @media (max-width: 600px) {
            .block {
                flex-direction: column;
            }
            .text-content {
                margin: 10px 0;
                text-align: center;
            }
            .text-content hr {
                height: 2px;
                width: 50%;
                margin: 10px auto;
            }
        }
        @media (min-width: 601px) {
            .block {
                align-items: center;
            }
            .block:nth-child(2) {
                flex-direction: row-reverse;
            }
        }


        .servicios-section {
          display: flex;
                    flex-direction: column;
                    background: #fff;
                    border: 1px solid #ddd;
                    border-radius: 8px;
                    padding: 20px;
                    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
                    max-width: 800px;
                    width: 90%;
                    margin: 20px auto;
        }
        
        .servicios-section h2 {
          font-size: 32px;
          margin: 0 auto 30px;
          color: #007ACC;
        }
        
        .servicios-grid {
          display: grid;
          grid-template-columns: 1fr; /* Una columna por defecto */
          gap: 20px;
        }
        
        .servicio-card {
          background-color: #fff;
          border: 1px solid #ddd;
          border-radius: 8px;
          padding: 20px;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          text-align: left;
           transition: all 0.3s ease; /* Suaviza la transición de colores */
        }
        
        .servicio-card h3 {
          font-size: 24px;
          margin-bottom: 15px;
         color: #007ACC;*/
        }
        
        .servicio-card p {
          font-size: 16px;
          line-height: 1.6;
          color: #3498db;
        }
        
        /* Efecto hover */
        .servicio-card:hover {
          background-color: #007ACC; /* Fondo azul */
          color: #fff; /* Cambia el texto a blanco */
        }
        
        .servicio-card:hover h3,
        .servicio-card:hover p {
          color: #fff; /* Asegura que tanto el título como el texto sean blancos */
        }
        
        /* Estilo responsivo */
        @media (min-width: 768px) {
          .servicios-grid {
            grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas más grandes */
          }
        }

        
        .container-2 {
            width: 100%;
            background-color: #ffffff;
            padding: 60px 20px 40px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
            margin: 20px auto;
        }
         .container-2 h1 {
            color: #007ACC;
            text-align: center;
            font-weight: 700;
            font-size: 2.5em;
            margin-bottom: 30px;
        }
      
      
        .values {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .value {
            background-color: #ffffff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .value:hover {
            transform: translateY(-10px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        .value i {
            font-size: 40px;
            color: #007ACC;
            margin-bottom: 15px;
        }
        .value h2 {
            font-size: 18px;
            margin-bottom: 10px;
            color: #007ACC;
            font-weight: bold;
        }
        .value p {
            font-size: 14px;
            color: #3498db;
            line-height: 1.6;
        }
      /* Adaptaciones para móviles */
        @media (max-width: 768px) {
            .main-content {
                flex-direction: column;
                align-items: center;
            }

            .main-text {
                margin-right: 0;
                text-align: center;
                margin-bottom: 20px;
            }

            .main-image img {
                max-width: 300px;
            }

            .banner-content {
                flex-direction: column;
                text-align: center;
            }
        }
      
       .carousel-container h1 {
            color: #007ACC;
            text-align: center;
        }

       .carousel-container separator {
            width: 50%;
            height: 2px;
            background-color: #007ACC;
            margin: 10px auto 20px auto;
        }

        .carousel-container {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            width: 90%;
            max-width: 1200px;
           margin: 0 auto;
        }

        .carousel {
            display: flex;
            align-items: center;
            width: 100%;
            overflow: hidden;
            position: relative;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s ease-in-out;
            gap: 10px;
        }

        .carousel-item {
            flex: 0 0 33.333%;
            max-width: 33.333%;
            transition: transform 0.5s;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .carousel-item img {
            width: 90%;
            border-radius: 10px;
            transition: transform 0.5s;
        }

        .carousel-item.center img {
            transform: scale(1.2);
        }

        .arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: #fff;
            border: none;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            z-index: 1;
        }

        .arrow.left {
            left: 10px;
        }

        .arrow.right {
            right: 10px;
        }

        @media (max-width: 768px) {
            .carousel-item {
                flex: 0 0 100%;
                max-width: 100%;
            }
        }