  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;
  }

  /* NUEVA SECCIÓN */
  .info-image, .card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .info-image.active, .card.active {
    opacity: 1;
    transform: translateY(0);
  }


  .info-section {
    width: 100%;
    height: 1700px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem;
    background-color:  #37573b;
    align-items: center;
  }
  .info-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
  }
  .info-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);   
    width: 100%;
    max-width: 1200px;  /* Más ancho máximo */
    height: 1200px;     /* Más alto */
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }

  .info-cards {
    flex: 1;
    display: flex;
    flex-direction: column; /* Una debajo de otra */
    align-items: center; /* Centrar la columna */
    gap: 1.5rem;
  }

  .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
    width: 320px; /* Más anchas */
  }

  .card img {
    width: 100%;
    height: 200px; /* Imagen más grande */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #045e21;
  }

  .card p {
    font-size: 1rem;
    color: #555;
  }
  .card-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #045e21;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .card-btn:hover {
    background: #0066cc;
    transform: scale(1.05);
  }
  .info-section2 .info-image,
  .info-section2 .card2 {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .info-section2 .info-image.active,
  .info-section2 .card2.active {
    opacity: 1;
    transform: translateY(0);
  }
  .info-section2 {
    width: 100%;
    height: 1850px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem;
    background-color:  #273d2d;
    align-items: center;
    flex-direction: row-reverse; /* Esto pone la imagen a la derecha */
  }

  .info-image2 {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
  }

  .info-image2 img {
    width: 100%;
    max-width: 1200px;
    height: 1200px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }

  .info-cards2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .card2 {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
    width: 320px;
  }

  .card2:hover {
    transform: scale(1.05);
  }

  .card2 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .card2 h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #045e21;
  }

  .card2 p {
    font-size: 1rem;
    color: #555;
  }

  .card2-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #045e21;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .card2-btn:hover {
    background: #0066cc;
    transform: scale(1.05);
  }

  .section-cards55 {
    display: flex;           /* Flex para distribuir tarjetas */
    flex-wrap: wrap;         /* Que las tarjetas bajen a otra fila si no caben */
    justify-content: center; /* Centrar tarjetas horizontalmente */
    gap: 25px;               /* Espacio entre tarjetas */
    padding: 40px;
    text-align: center;      /* Para centrar título si está dentro */
    align-items: stretch; 
    background:  #1e7a57 ;
    
  }

  .titulo-unico {
    width: 100%;
    text-align: center;
    font-size: 2.2rem;
    color: yellow;
    margin-bottom: 30px;
    font-weight: bold;
    order: -1;               
    flex-basis: 100%;        
  }

  .card55 {
    width: 300px;
    height: 520px;
    background-color: #fff;
    text-align: left;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
    box-sizing: border-box;
    padding-bottom: 0;
    flex-shrink: 0;          /* Para que no se encoja */
  }

  .card55.active {
    opacity: 1;
    transform: translateY(0);
  }

  .card55:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
  }

  .card55 img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
  }

  .card55:hover img {
    transform: scale(1.08);
    filter: brightness(85%);
  }

  .card55 h2 {
    font-size: 18px;
    margin: 15px 10px 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
  }

  .card55 p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 15px 15px 15px;
    height: 6600px;
    overflow-y: auto;
  }
  
.servicios {  
  background-color:  #5D8736;
  padding: 80px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.servicios-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.servicios-container h2 {
  font-size: 36px;
  color: white;
  margin-bottom: 40px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
    justify-items: center;
  
}

.servicio-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.servicio-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.servicio-card h3 {
  font-size: 22px;
  color: #197856;
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}




      
  .container {
    margin-top: 0;
    padding: 0 20px;
    display: flex;
    background-color: #09231de8;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
      }
      
    
      .column {
        flex: 1;
        padding: 1rem;
        min-width: 300px;
        border-right: 2px solid #ccc;
        color: #ccc;
        text-shadow: #333 2px 2px 2px;
      }
      iframe {
        width: 100%;
        height: 250px;
        border: none;
      }
      .btn-leer {
        display: inline-block;
        background-color: #e53935;
        color: white;
        padding: 0.5rem 1rem;
        text-decoration: none;
        border-radius: 5px;
      }
      img {
        display: block;
        width: 120px;
        height: 120px;
        object-fit: cover;
        margin: 0 auto;
      }
      .img2 {
        display: block;
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        margin: 0 auto;
      }

      .lista{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 cards per row */
    align-items: center;
    justify-content: left;
    text-align: center;
    padding: 2rem;
  }
  .contenido{
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: left;
    text-align: center;
    padding: 3rem;
    border-width: 90%;
    border-radius: 10px;
    box-shadow: #f2ff00 0px 0px 10px;
  }
  .contenido {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contenido.visible {
  opacity: 1;
  transform: translateY(0);
}

  .parallax1 {
    background-image:url(../img/liceo.png) ;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .parallax1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* oscurece el fondo */
    z-index: 0;
  }
  .contenido, .hero-text {
    position: relative;
    z-index: 1;
  }
      /* Animación de aparición */
      .reveal {
        opacity: 0;
        transform: translateY(50px);
        transition: all 0.8s ease;
      }
      .reveal.active {
        opacity: 1;
        transform: translateY(0);
      }
      .parallax {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
  }

  .carousel {
    position: relative;
    width: 100vw;
    max-width: 100%;
    height: 700px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
  }

  .carousel-slide {
    position: absolute;
    width: 100%;
    height: 700px;
    opacity: 0;
    transition: opacity 1s ease;
    top: 0;
    left: 0;
  }

  .carousel-slide.active {
    opacity: 1;
    z-index: 1;
  }

  .carousel-slide img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    border-radius: 0;
    display: block;
  }

  /* Texto animado */
  .carousel-text {
    position: absolute;
    bottom: 15%;
    left: 10%;
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    z-index: 2;
    pointer-events: none;
  }

  .carousel-slide.active .carousel-text {
    opacity: 1;
    transform: translateY(0);
  }

  .carousel-text span {
    color: #117c26; /* Dorado militar */
  }


  /* Botones */
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 3rem;
    padding: 0;
    cursor: pointer;
    border-radius: 0;
    z-index: 2;
    transition: color 0.3s;
  }

  .carousel-btn.prev {
    left: 30px;
  }

  .carousel-btn.next {
    right: 30px;
  }

  .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);
  }

  @media (max-width: 1000px) {
    .carousel,
    .carousel-slide,
    .carousel-slide img {
      height: 100px;
    }

    .carousel-text {
      font-size: 1.5rem;
      bottom: 10%;
      left: 5%;
    }
  }
  
.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 */
}

.galeria-preview {
  background: linear-gradient(135deg, #1e7a57 0%, #2d8f63 50%, #197856 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.galeria-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
  pointer-events: none;
}

.galeria-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.galeria-titulo {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-family: 'Poppins', sans-serif;
}

.galeria-titulo::after {
  content: '';
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f4a261, #e76f51);
  display: block;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.galeria-descripcion {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 3rem;
  font-family: 'Poppins', sans-serif;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.galeria-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.galeria-item.main-item {
  grid-column: span 2;
  grid-row: span 2;
}

.galeria-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  border-color: rgba(244, 162, 97, 0.6);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
  min-height: 200px;
}

.galeria-item.main-item img {
  min-height: 300px;
}

.galeria-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
  transform: translateY(0);
}

.galeria-overlay h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.galeria-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  font-family: 'Poppins', sans-serif;
}

.galeria-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-galeria, .btn-360 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f4a261, #e76f51);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(244, 162, 97, 0.3);
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-360 {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-galeria:hover, .btn-360:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(244, 162, 97, 0.4);
}

.btn-360:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
}

.btn-galeria::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;
}

.btn-galeria:hover::before {
  left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .galeria-titulo {
    font-size: 2.2rem;
  }
  
  .galeria-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .galeria-item.main-item {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .galeria-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-galeria, .btn-360 {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .galeria-preview {
    padding: 60px 15px;
  }
  
  .galeria-titulo {
    font-size: 1.8rem;
  }
  
  .galeria-descripcion {
    font-size: 1rem;
  }
}

/* Animación de entrada para los elementos */
.galeria-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.galeria-item:nth-child(1) { animation-delay: 0.1s; }
.galeria-item:nth-child(2) { animation-delay: 0.2s; }
.galeria-item:nth-child(3) { animation-delay: 0.3s; }
.galeria-item:nth-child(4) { animation-delay: 0.4s; }
.galeria-item:nth-child(5) { animation-delay: 0.5s; }
.galeria-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
  RESPONSIVE DESIGN
   ============================================ */

  
    @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;
      }
      .carousel{
        height: 100px;
      }
      .carousel-text {
        font-size: 1.2rem;
        bottom: 5%;
        left: 2%;
      }
    }
  /* 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;
    }
  }

/* Large Screens (1200px and up) */
@media (min-width: 1200px) {
  .carousel,
  .carousel-slide,
  .carousel-slide img {
    height: 100vh;
  }
  
  .carousel-text {
    font-size: 3.0rem;
  }
  
  .carousel-btn {
    font-size: 3.5rem;
  }
}

/* Medium Screens (768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .carousel,
  .carousel-slide,
  .carousel-slide img {
    height: 100vh;
    background-size: contain; ;
    
  }
  .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: 1rem !important;
        transition: left 0.3s ease;
        z-index: 1001;
        order: 1;
        flex: none !important;
        margin: 0;
        padding: 0;  
  }
  
  .carousel-text {
    font-size: 2.0rem;
    bottom: 12%;
    left: 8%;
  }
  
  .carousel-btn {
    font-size: 2.8rem;
  }
  
  .info-section, .info-section2 {
    height: auto;
    min-height: auto;
    padding: 2.5rem 2rem;
    flex-direction: column;
  }
  
  .info-image img, .info-image2 img {
    max-width: 600px;
    height: 600px;
  }
  
  .card, .card2 {
    width: 100%;
    max-width: 320px;
  }
  
  .lista {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .section-cards55 {
    padding: 30px 20px;
    gap: 20px;
  }
  
  .card55 {
    width: 100%;
    max-width: 320px;
    height: 500px;
  }
}

/* Small Tablets (481px to 767px) */
@media (max-width: 767px) and (min-width: 481px) {
  body, html {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }

  .container,
  .info-section,
  .info-section2,
  .section-cards55,
  .servicios-container,
  .footer-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .carousel,
  .carousel-slide,
  .carousel-slide img {
    height: 100vh;
  }
  
  .carousel-text {
    font-size: 1.8rem;
    bottom: 10%;
    left: 6%;
    right: 6%;
    text-align: center;
  }
  
  .carousel-btn {
    font-size: 2.2rem;
  }
  
  .carousel-btn.prev {
    left: 20px;
  }
  
  .carousel-btn.next {
    right: 20px;
  }
  
  .nav-bar {
    padding: 1rem 1.5rem !important;
  }
  
  .nav-bar a[href="index.html"] img {
    width: 55px !important;
    height: 60px !important;
  }
  
  .info-section, .info-section2 {
    height: auto;
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .info-image img, .info-image2 img {
    max-width: 100%;
    height: 350px;
  }
  
  .card, .card2 {
    width: 100%;
    max-width: 300px;
  }
  
  .card img, .card2 img {
    height: 160px;
  }
  
  .lista {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .contenido {
    padding: 2rem;
  }
  
  .section-cards55 {
    padding: 25px 15px;
  }
  
  .card55 {
    width: 100%;
    max-width: 300px;
    height: 480px;
  }
  
  .titulo-unico {
    font-size: 1.8rem;
  }
  
  .servicios {
    padding: 60px 15px;
  }
  
  .servicios-container h2 {
    font-size: 28px;
  }
  
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .servicio-card {
    padding: 20px;
  }
  
  .footer {
    padding: 30px 15px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-item {
    min-width: auto;
  }
}

/* Mobile (320px to 480px) */
@media (max-width: 480px) {
  body, html {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }
  
  .lista img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 10px auto;
  }

  .container,
  .info-section,
  .info-section2,
  .section-cards55,
  .servicios-container,
  .footer-content {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .carousel,
  .carousel-slide,
  .carousel-slide img {
    height: 100vh;
  }

  .carousel-text {
    font-size: 1.4rem;
    bottom: 8%;
    left: 4%;
    right: 4%;
    text-align: center;
  }
  
  .carousel-btn {
    font-size: 1.8rem;
  }
  
  .carousel-btn.prev {
    left: 15px;
  }
  
  .carousel-btn.next {
    right: 15px;
  }
  
  .nav-bar {
    padding: 0.8rem 1rem !important;
  }
  
  .nav-bar a[href="index.html"] img {
    width: 50px !important;
    height: 55px !important;
  }
  
  .hamburger span {
    width: 22px;
    height: 2px;
  }
  
  .nav-bar ul li a {
    font-size: 1.2rem;
  }
  
  .container {
    padding: 0 10px;
  }
  
  .column {
    padding: 0.8rem 0;
  }
  .info-section, .info-section2 {
    padding: 1.5rem 1rem;
    gap: 1rem;
    height: 2700px;
  }
  
  .info-image img, .info-image2 img {
    height: 580px;
    width: 100%;
  }
  
  .card, .card2 {
    width: 100%;
    max-width: 280px;
    padding: 1.2rem;
  }
  
  .card h3, .card2 h3 {
    font-size: 1.2rem;
  }
  
  .card img, .card2 img {
    height: 250px;
  }
  
  .contenido {
    padding: 1.5rem;
  }
  
  .section-cards55 {
    padding: 20px 10px;
  }
  
  .card55 {
    width: 320px;
    height: 450px;
  }
  
  .card55 img {
    height: 250px;
  }
  
  .titulo-unico {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .servicios {
    padding: 40px 10px;
  }
  
  .servicios-container h2 {
    font-size: 22px;
  }
  
  .servicio-card {
    padding: 15px;
    width: 350px;
    height: auto;
  }
  
  .servicio-card h3 {
    font-size: 18px;
  }
  
  .servicio-card p {
    font-size: 14px;
  }
  
  .footer {
    padding: 25px 10px;
  }
  
  .footer h2 {
    font-size: 20px;
  }
  
  .contact-item p {
    font-size: 14px;
  }
  
  .motto h2 {
    font-size: 16px;
    padding: 8px 15px;
  }
  
  .location-button {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  .carousel,
  .carousel-slide,
  .carousel-slide img {
    height: 350px;
  }
  
  .carousel-text {
    font-size: 1.2rem;
    bottom: 6%;
    left: 3%;
    right: 3%;
  }
  
  .carousel-btn {
    font-size: 1.5rem;
  }
  
  .carousel-btn.prev {
    left: 10px;
  }
  
  .carousel-btn.next {
    right: 10px;
  }
  
  .nav-bar {
    padding: 0.6rem 0.8rem !important;
  }
  
  .nav-bar a[href="index.html"] img {
    width: 45px !important;
    height: 50px !important;
  }
  
  .hamburger span {
    width: 20px;
  }
  
  .nav-bar ul li a {
    font-size: 1.1rem;
  }
  
  .info-section, .info-section2 {
    padding: 1rem 0.5rem;
  }
  
  .card, .card2 {
    padding: 1rem;
  }
  
  .contenido {
    padding: 1rem;
  }
  
  .card55 {
    height: 420px;
  }
  
  .titulo-unico {
    font-size: 1.3rem;
  }
  
  .servicios-container h2 {
    font-size: 18px;
  }
}

/* Desktop - Show horizontal images, hide vertical */
@media (min-width: 768px) {
  .carousel-slide img.vertical {
    display: none;
  }
  
  .carousel-slide img.horizontal {
    display: block;
  }
}

/* Mobile - Show vertical images, hide horizontal */
@media (max-width: 767px) {
  .carousel-slide img.horizontal {
    display: none;
  }
  
  .carousel-slide img.vertical {
    display: block;
  }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .carousel,
  .carousel-slide,
  .carousel-slide img {
    height: 100vh;
    max-height: 400px;
  }
  
  .info-section, .info-section2 {
    flex-direction: row;
    align-items: stretch;
  }
  
  .info-image img, .info-image2 img {
    height: 350px;
  }
  
  .carousel-text {
    font-size: 1.2rem;
    bottom: 5%;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card img, .card2 img, .card55 img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print Styles */
@media print {
  .nav-bar, .carousel-btn, .card-btn, .card2-btn {
    display: none !important;
  }
  
  .carousel-slide.active {
    position: static;
    opacity: 1;
  }
  
  .carousel-slide:not(.active) {
    display: none;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}