body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        background: #f7f7f7;
      }
      * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f9;
    overflow-x: hidden;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul {
    list-style: none;
  }

  /* Header */
  header {
    height: 150px;
    background-color: #54854e;
    color: white;
    padding: 1rem;
    text-align: center;
    border-bottom: 4px solid #197856;
    text-shadow: rgb(51, 51, 51, 0.10) 2px 2px 2px;
  }

  /* Navbar */
  .nav-bar {
    text-shadow: #333 2px 2px 2px;
    background: #000000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.18) 50%, rgba(237, 221, 83, 0) 100%);    color: #fff;
    padding: 1rem 2rem;
    position: fixed; /* Fija la barra para que esté siempre visible */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, transform 0.4s ease;
    will-change: transform;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row; /* Mantiene el mismo orden siempre */
  }
  /* Oculta la navbar cuando se baja */
  .nav-bar.hide-on-scroll {
    transform: translateY(-100%);
  }

  .nav-bar ul {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }

  .nav-bar ul li a {
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
  }

  .nav-bar ul li a:hover {
    color: #f4a261;
  }
        .social-icons {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .social-icons a {
            transition: transform 0.3s ease;
        }

        .social-icons a:hover {
            transform: translateY(-3px) scale(1.1);
        }

        .social-icons img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
        }

        /* Hero Section */
        .hero {
            height: 100vh;
            background-image: url('img/liceof.png');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
            animation: float 20s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .hero-content {
            max-width: 800px;
            padding: 2rem;
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 1rem;
            font-weight: 800;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 1s ease-out;
        }

        .hero p {
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            font-size: 1.3rem;
            margin-bottom: 2rem;
            opacity: 0.95;
            animation: fadeInUp 1s ease-out 0.3s both;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
        }

        .scroll-indicator::after {
            content: '↓';
            font-size: 2rem;
            color: rgba(255, 255, 255, 0.7);
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0) translateX(-50%);
            }
            40% {
                transform: translateY(-10px) translateX(-50%);
            }
            60% {
                transform: translateY(-5px) translateX(-50%);
            }
        }

        /* Cards Container */
        .cards-section {
            padding: 6rem 2rem;
            background: linear-gradient(135deg, #1e7a57 0%, #2d8f63 100%);
            position: relative;
        }

        .cards-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(to bottom, rgba(139, 143, 157, 0.1), transparent);
        }

        .section-title {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-title h2 {
            font-size: 3rem;
            color: #c0cd09;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
        }

        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            transform: translateY(0);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

        .card:hover {
            transform: translateY(-15px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
        }

        .card:nth-child(1)::before {
            background: linear-gradient(90deg, #ff6b6b, #ee5a6f);
        }

        .card:nth-child(2)::before {
            background: linear-gradient(90deg, #4ecdc4, #44a08d);
        }

        .card:nth-child(3)::before {
            background: linear-gradient(90deg, #45b7d1, #96c93d);
        }

        .profile {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            margin: 0 auto 1.5rem;
            display: block;
            object-fit: cover;
            border: 4px solid #f7fafc;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
        }

        .card:hover .profile {
            transform: scale(1.1) rotate(5deg);
        }

        .contentabout {
            text-align: center;
        }

        .contentabout h3 {
            font-size: 1.8rem;
            color: #2d3748;
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .contentabout p {
            color: #718096;
            margin-bottom: 2rem;
            font-size: 1.1rem;
            line-height: 1.7;
        }

        .contentabout button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            position: relative;
            overflow: hidden;
        }

        .contentabout button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .contentabout button:hover::before {
            left: 100%;
        }

        .contentabout button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
        }

        .card:nth-child(1) .contentabout button {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
        }

        .card:nth-child(2) .contentabout button {
            background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
            box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
        }

        .card:nth-child(3) .contentabout button {
            background: linear-gradient(135deg, #45b7d1 0%, #96c93d 100%);
            box-shadow: 0 4px 15px rgba(69, 183, 209, 0.4);
        }

        /* Footer */
       /* Fuente recomendada: Poppins o Roboto */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

.footer {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: #f1f1f1;
    font-family: 'Poppins', sans-serif;
    padding: 40px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #c8e6c9;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.contact-item {
    min-width: 200px;
}

.contact-item p {
    margin: 5px 0;
    font-size: 16px;
}

.contact-item strong {
    font-weight: 600;
    color: #a5d6a7;
}

.motto h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer .copyright {
    font-size: 14px;
    color: #cfd8dc;
    margin-top: 10px;
}.location-access {
    margin-top: 10px;
}

.location-button {
    display: inline-block;
    background-color: #66bb6a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.location-button:hover {
    background-color: #81c784;
    transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff; /* cambia a #000 si tu fondo es blanco */
  margin: 4px 0;
  transition: 0.3s;
  transform-origin: center;
}
.nav-menu {
  position: fixed;
  z-index: 1000;
}



.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}
/* Bloquea el desplazamiento del cuerpo cuando el menú móvil está abierto */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Asegura que el menú sea fijo y cubra toda la pantalla */
.nav-bar ul.active {
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1001;
    overflow-y: auto; /* Permite desplazamiento dentro del menú si hay mucho contenido */
}



/* Responsive */
 @media (max-width: 1366px) and (max-height: 1024px) {
      .nav-bar {
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem 2rem !important;
        gap: 0 !important;
      }
      .hamburger {
        display: flex;
        order: 1;
      }
      .nav-bar ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-image:url(img/liceof.png) ;
        background-color: rgba(0,0,0,0.85);
        backdrop-filter: blur(15px);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        background-size: cover;
        background-position: center;
        gap: 2rem !important;
        transition: left 0.3s ease;
        z-index: 1001;
        order: 1;
        flex: none !important;
        margin: 0;
        padding: 0;
      }
      .nav-bar ul.active {

        left: 0;
      }
      .nav-bar ul li {
        width: 100%;
        text-align: center;
      }
      .nav-bar ul li a {
        font-size: 1.5rem;
        padding: 1rem;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        color: white !important;
      }
      .nav-bar ul li a:hover {
        color: #f4a261 !important;
        border-bottom-color: #f4a261;
        background: rgba(244, 162, 97, 0.1);
      }
      .nav-bar div:last-child {
        display: none !important;
      }
    }

/* Mobile Navigation */
@media (max-width: 991px) {
  .nav-bar {
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 2rem !important;
    gap: 0 !important;
  }
  
  .hamburger {
    display: flex;
    order: 1;
  }
  
  .nav-bar a[href="index.html"] {
    order: 2;
    margin-right: 0 !important;
  }
  
  .nav-bar a[href="index.html"] img {
    width: 60px !important;
    height: 65px !important;
  }
  
  .nav-bar ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-image: url('img/fondo1.png');
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    gap: 2rem !important;
    transition: left 0.3s ease;
    z-index: 1001;
    order: 1;
    flex: none !important;
    margin: 0;
    padding: 0;
  }
  
  .nav-bar ul.active {
    left: 0;
  }
  
  .nav-bar ul li {
    width: 100%;
    text-align: center;
  }
  
  .nav-bar ul li a {
    font-size: 1.5rem;
    padding: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    color: white !important;
  }
  
  .nav-bar ul li a:hover {
    color: #f4a261 !important;
    border-bottom-color: #f4a261;
    background: rgba(244, 162, 97, 0.1);
  }
  
  .nav-bar div:last-child {
    display: none !important;
  }
  .carousel-btn {
    display: none;
  }
  .carousel{
    height: 100px;
  }
}
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}


        /* Responsive Design */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .section-title h2 {
                font-size: 2rem;
            }

            .card-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 1rem;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .cards-section {
                padding: 3rem 1rem;
            }
        }

        /* Animaciones adicionales */
        .card {
            animation: slideInUp 0.6s ease-out both;
        }

        .card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .card:nth-child(2) {
            animation-delay: 0.2s;
        }

        .card:nth-child(3) {
            animation-delay: 0.3s;
        }

        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }