body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #fdfdfd;
  color: #222;
}

header {
  background-color: #600d18;
  color: white;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
}

nav {
  background-color: #b8911f;
  padding: 8px;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  flex-wrap: wrap;
  gap: 15px;
  text-align: center;
}

.banner img {
  max-height: 300px;
}



.slider {
  position: relative;
  width: 100%;
  max-width: 1600px;
  height: 700px;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  border-radius: 20px;
  transform: scale(1.02); /* leve zoom */
}

.slide.active {
  opacity: 1;
  transform: scale(1); /* efecto sutil al cambiar */
}


footer {
  background-color: #eee;
  padding: 10px;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  background-color: #b8911f;
}

.menu > ul > li {
  position: relative;
}

.menu ul li a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu ul li:hover {
  background-color: #997a14;
}

.menu ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #b8911f;
  min-width: 180px;
  z-index: 1000;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.menu ul li:hover ul {
  display: block;
}

.menu ul li ul li {
  width: 100%;
}

.menu ul li ul li a {
  padding: 10px;
  color: white;
  font-weight: normal;
}

.footer {
  background-color: #600d18;
  color: white;
  padding: 40px 20px 0 20px;
  font-size: 14px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-columns div {
  flex: 1 1 300px;
}

.footer-columns h4 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #fff;
}

.footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-columns ul li {
  margin-bottom: 6px;
}

.footer-columns a {
  color: #ffcece;
  text-decoration: underline;
}

.footer-columns p {
  margin: 6px 0;
}

.footer-border {
  margin-top: 20px;
  height: 20px;
  background-image: url('https://www.gob.mx/cms/uploads/image/file/688209/barra_mexico_72ppp.png');
  background-size: contain;
  background-repeat: repeat-x;
}

/* RESPONSIVE: celulares y pantallas pequeñas */
@media (max-width: 768px) {
  header {
    font-size: 1em;
    padding: 8px;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  .banner {
    flex-direction: column;
    text-align: center;
  }

  .banner img {
    max-height: 200px;
  }

  .slider {
    height: 300px;
  }

  .footer-columns {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .menu ul {
    flex-direction: column;
  }

  .menu > ul > li {
    text-align: center;
  }

  .menu ul li ul {
    position: static;
    box-shadow: none;
    display: none;
  }

  .menu ul li:hover ul {
    display: block;
  }
}
.menu-toggle {
  display: none;
  background-color: #600d18;
  color: white;
  padding: 10px 15px;
  border: none;
  font-size: 1.2em;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu ul {
    display: none;
    flex-direction: column;
  }

  .menu ul.show {
    display: flex;
  }

  .menu ul li ul {
    position: static;
    box-shadow: none;
  }
}

.has-submenu .submenu {
  display: none;
  flex-direction: column;
}

.has-submenu.open .submenu {
  display: flex;
}

section#bienvenida {
  max-width: 1000px;
  margin: auto;
  background-color: #f3f3f3;
  border-radius: 12px;
  padding: 40px 30px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section#bienvenida {
  max-width: 1000px;
  margin: auto;
  background-color: #f3f3f3;
  border-radius: 12px;
  padding: 40px 30px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section#Mision {
  max-width: 1000px;
  margin: auto;
  background-color: #f3f3f3;
  border-radius: 12px;
  padding: 40px 30px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

section#Mision {
  max-width: 1000px;
  margin: auto;
  background-color: #f3f3f3;
  border-radius: 12px;
  padding: 40px 30px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 100;
  background-color: #f0eded;
  color: white;
  border: none;
  padding: 12px 15px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  display: none; 
  transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #b8911f;
}

.slider-wrapper-h {
  overflow: hidden;
  width: 100%;
  max-width: 1300px;
  height: 1000px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
}

.slider-track-h {
  display: flex;
  transition: transform 1s ease;
  width: 100%;
}

.slide-horizontal {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.especialidades {
  padding: 60px 20px;
  background-color: #fdfdfd;
  text-align: center;
}

.especialidades h2 {
  font-size: 2em;
  margin-bottom: 40px;
  color: #600d18;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  width: 250px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card p {
  font-weight: bold;
  padding: 15px;
  margin: 0;
  background-color: #600d18;
  color: white;
}

.enlaces {
  padding: 60px 20px;
  text-align: center;
}

.enlaces h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.lista-enlaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.enlace {
  display: block;
  background-color: #fff;
  border-left: 5px solid #800000;
  padding: 20px;
  width: 300px;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enlace:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  background-color: #fafafa;
}

.enlace p {
  margin: 5px 0;
}

.examen {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.examen h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #800000;
}

.examen-info {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.examen-info h3 {
  margin-top: 20px;
  color: #333;
}

.examen-info ul {
  padding-left: 20px;
}

.examen-info a {
  color: #0056b3;
  text-decoration: underline;
}
