* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body { background: #fff; }

.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #eee;
  flex-wrap: wrap;
}

.header-left img {
  height: 100px; /* tamaño del logo principal */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px; /* espacio entre imágenes y texto */
}

.cert-img {
  height: 60px; /* tamaño de SEP y DGCFT */
}



.header-left {
  display: flex;
  align-items: center;
  gap: 15px; /* espacio entre logo y certificaciones */
}

.cert-img {
  height: 60px; /* ajusta según tu diseño */
}

.header-right {
  text-align: right;
  font-size: 14px;
  margin-left: 20px;
}

.header-left img { height: 100px; }
.header-right { text-align: right; font-size: 14px; }

/* ===================== HEADER RESPONSIVE SOLO MÓVIL ===================== */
@media (max-width: 768px) {

  /* Header en columna, centrado */
  .top-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px; /* espacio entre logo, texto y certificaciones */
  }

  /* Contenedor izquierdo (logo + certificaciones) en columna, centrado */
  .header-left {
    flex-direction: column;
    align-items: center;
    gap: 8px; /* pequeño espacio entre logo y certificaciones */
  }

  /* Texto central centrado y con margen reducido */
  .header-center {
    width: 100%;
    text-align: center;
    margin: 0;
    font-size: 14px; /* opcional: ajusta el tamaño para móviles */
  }

  /* Contenedor derecho (certificaciones) centrado */
  .header-right {
    width: 100%;
    justify-content: center;
    margin: 0;
    gap: 10px; /* espacio entre logos de certificaciones */
  }

  /* Las imágenes no cambian tamaño, se mantiene el tamaño de PC */
  .header-left img {
    /* No se toca, queda igual que en PC */
  }

  .cert-img {
    /* No se toca, queda igual que en PC */
  }
}

/* HAMBURGUESA */
.hamburger {
  display: none;
  font-size: 32px;
  padding: 15px;
  cursor: pointer;
  background: #2e8b57;
  color: white;
}

/* MENU */
nav {
  background: #2e8b57;
  position: relative;
  z-index: 9999;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li { position: relative; }

nav ul li a {
  display: block;
  padding: 15px 18px;
  color: white;
  text-decoration: none;
}

nav ul li:hover { background: #256f46; }

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #2e8b57;
  min-width: 220px;
  z-index: 10000;
}

nav ul li:hover ul { display: block; }

/* CARRUSEL */
.carousel {
  position: relative;
  height: 420px;
  overflow: hidden;
  z-index: 1;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.slides img {
width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}

.slides img.active { display: block; }

.carousel button {
   background:#28a745;
  color:white;
}

.carousel button:hover { background: rgba(0,0,0,0.8); }

.prev { left: 15px; }
.next { right: 15px; }

/* DOTS */
.dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.dots span {
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.6);
  display: inline-block;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.dots span:hover {
  transform: scale(1.3);
  background: white;
}

.dots span.active {
  background: white;
  transform: scale(1.3);
}

/* MINIATURA PREVIEW */
.thumb-preview {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 5px;
  border-radius: 6px;
  display: none;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.thumb-preview img {
  max-width: 120px;
  max-height: 70px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carousel {
    height: 250px;
    margin: 15px;
  }
  
  .thumb-preview img {
    max-width: 80px;
    max-height: 50px;
  }

  .carousel button {
    background:#28a745;
  color:white;
  }
}

/* CHATBOT */
#chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2e8b57;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 26px;
  border: none;
  cursor: pointer;
  z-index: 3000;
}

#chatbot {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  z-index: 3000;
}

.chat-header {
  background: #2e8b57;
  color: white;
  padding: 12px;
  text-align: center;
}

.chat-body {
  height: 220px;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
}

.chat-input button {
  background: #2e8b57;
  color: white;
  border: none;
  padding: 10px 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hamburger { display: block; }
  nav { display: none; }
  nav.active { display: block; }
  nav ul { flex-direction: column; }
  nav ul li ul { position: static; }
}

footer {
  background: #f4f4f4;
  padding: 20px;
  text-align: center;
}

/* HISTORIA */
.historia {
  padding: 60px 10%;
  background: #f9f9f9;
  text-align: justify;
}

.historia h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #2e8b57;
  text-align: justify;
}

.historia-contenido {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  text-align: justify;
}

.historia-texto {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.historia-imagenes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.historia-imagenes img {
  width: 100%;
  border-radius: 8px;
}

.info-extra {
  margin-top: 40px;
}

.info-extra h3 {
  margin-top: 20px;
  color: #2e8b57;
}

.info-extra ul {
  margin-left: 20px;
}

/* INSTALACIONES */
.instalaciones {
  padding: 60px 10%;
  background: #ffffff;
  text-align: center;
}

.instalaciones h2 {
  color: #2e8b57;
  margin-bottom: 20px;
}

.instalaciones-texto {
  max-width: 800px;
  margin: 0 auto 30px;
  font-size: 16px;
  line-height: 1.6;
}

.instalaciones-galeria {
  border: 2px dashed #ccc;
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
  background: #f9f9f9;
}

.instalaciones-galeria .placeholder {
  color: #777;
  font-style: italic;
}

/* FILOSOFÍA */
.filosofia {
  padding: 60px 10%;
  background: #f4f4f4;
  text-align: center;
}

.filosofia h2 {
  color: #2e8b57;
  margin-bottom: 20px;
}

.filosofia p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.programa {
  padding: 10px 10%;

}

.programa h1 {
  padding: 30px 10%;
  text-align: center;

  color: #2e8b57;
  margin-bottom: 20px;
}

.programa h2 {
  text-align: center;
  color: #2e8b57;
  margin-bottom: 5px;
}

.programa p {
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.perfil-bloque {
  margin-bottom: 25px;
}

.perfil-bloque ul,
.requisitos ul,
.especificaciones ul {
  margin-left: 20px;
}

/* ================== TABLAS AJUSTADAS ================== */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Ajusta columnas al ancho del contenedor */
  word-wrap: break-word; /* Ajusta contenido de celdas */
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
  word-wrap: break-word;
}

table th {
  background: #2e8b57;
  color: white;
}

.nota {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.niveles-ingles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px 10%;
}

.nivel {
  background: #ffffff;
  border-radius: 12px;
  min-height: 320px; 
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  text-align: center;
  padding-top: 15px; /* 👈 espacio arriba de la imagen */
  display: flex;
  flex-direction: column; /* para que contenido y botón estén verticales */
}

.nivel img {
  width: 100%;
  height: 180px;
  
}

.nivel h3 {
  color: #2e8b57;
  margin: 15px 0 10px;
}

/* ================= VER MÁS ABAJO ================= */
.nivel-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.nivel-info p {
  text-align: left;
  white-space: pre-line; /* respeta saltos de línea */
  margin-bottom: 15px; /* espacio antes del botón */
}

.ver-mas {
  background: #2e8b57;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px; /* ahora siempre debajo del texto */
  align-self: center; /* centra dentro del div */
}

.ver-mas:hover {
  background: #256f46;
}

.nivel.active .nivel-info {
 max-height: 2000px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .niveles-ingles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .niveles-ingles {
    grid-template-columns: 1fr;
  }
}



.ver-menos {
  background: #999;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin: 20px auto 10px;
  display: block;
}

.ver-menos:hover {
  background: #777;
}




/* ========================================================= */
/* ========= ARREGLOS FINALES SIN BORRAR TU CÓDIGO ========= */
/* ========================================================= */

/* Evita desbordes horizontales que cortan el menú */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Permite que el menú baje de línea en laptops pequeñas */
nav ul {
  flex-wrap: wrap;
  justify-content: center;
}

/* Evita que el texto del menú se parta en dos líneas */
nav ul li a {
  white-space: nowrap;
}

/* Mejora distribución del header en pantallas medianas */
@media (max-width: 1024px) {
  .top-header {
    gap: 10px;
  }
  .header-right {
    margin-left: 0;
  }
}

/* TABLAS AJUSTADAS PARA MÓVILES */
@media (max-width: 768px) {
  table {
    display: table; /* mantener tabla completa, no scroll */
    width: 100%;
    overflow: visible;
  }
}

/* Carrusel más flexible */
@media (max-width: 1024px) {
  .carousel {
   width:70%;
  max-width:900px;
  margin:50px auto;
  }
}

/* Chatbot no se sale en celulares chicos */
@media (max-width: 480px) {
  #chatbot {
    width: 92%;
    right: 4%;
  }
}

/* ===== HEADER RESPONSIVE BIEN AJUSTADO ===== */

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* permitimos que el TEXTO baje si no cabe */
  gap: 15px;
}

.header-left {
  flex: 0 0 auto; /* logo fijo */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1 auto; /* puede acomodarse */
  min-width: 250px;
}



/* Ajustes progresivos */
@media (max-width: 900px) {
  .header-left img { height: 80px; }
  .cert-img { height: 50px; }
}

@media (max-width: 600px) {
  .header-left img { height: 65px; }
  .cert-img { height: 40px; }
  .header-text { font-size: 12px; }
}

/* ================= CONTACTO ================= */

.contacto-section {
  padding: 60px 10%;
  text-align: center;
}

.contacto-section h1 {
  color: #2e8b57;
  margin-bottom: 40px;
}

.contacto-contenedor {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contacto-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  width: 280px;
  text-align: center;
}

.contacto-card i {
  color: #2e8b57;
  margin-bottom: 15px;
}

.btn-contacto {
  display: inline-block;
  margin-top: 10px;
  background: #2e8b57;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-contacto:hover {
  background: #256f46;
}

.telefono {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* ================= MAPA ================= */

.mapa-section {
  padding: 60px 10%;
  text-align: center;
  background: #f9f9f9;
}

.mapa-section h2 {
  color: #2e8b57;
  margin-bottom: 10px;
}

.mapa-contenedor {
  margin-top: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contacto-contenedor {
    flex-direction: column;
    align-items: center;
  }
}

/* ================= FOOTER GLOBAL ================= */

.footer-global {
  background: #1e7e34;
  color: white;
  padding: 40px 10% 20px;
  margin-top: 60px;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h3 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-col p,
.footer-col a {
  color: #e0e0e0;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-copy {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-contenido {
    flex-direction: column;
    text-align: center;
  }
}


/* ===== SECCIÓN DIPLOMADOS ===== */
.diplomados-section {
  padding: 60px 8%;
  background: #f9f9f9;
}

.diplomados-section h1 {
  text-align: center;
  color: #2e8b57;
  margin-bottom: 50px;
}

/* GRID 3x3 */
.diplomados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* TARJETA */
.diplomado-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}

.diplomado-card:hover {
  transform: translateY(-5px);
}

.diplomado-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.diplomado-card h3 {
  color: #2e8b57;
  margin: 15px 10px 10px;
}

/* CONTENIDO OCULTO */
.diplomado-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 20px;
  text-align: left;
}

.diplomado-info p {
  white-space: pre-line;
  margin-bottom: 15px;
  line-height: 1.6;
}


.btn-toggle {
  background: #2e8b57;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  margin: 15px auto 20px;
  display: inline-block;
}

.btn-toggle:hover {
  background: #256f46;
}

.btn-less {
  background: #888;
  margin-top: 0;
}

/* ACTIVO */
.diplomado-card.active .diplomado-info {
  max-height: 2000px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .diplomados-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .diplomados-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TARJETAS MODERNAS ===== */
.card {
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  margin-bottom: 40px;
}


/* ===== GRID 2 COLUMNAS PARA PERFIL, ESPECIFICACIONES Y REQUISITOS ===== */
.perfil-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 25px;
}

/* CAJAS */
.perfil-bloque,
.info-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .perfil-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TARJETAS PRINCIPALES ===== */
.card {
  background: #ffffff;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  margin-bottom: 50px;
}

/* ===== GRID 2 COLUMNAS ===== */
.perfil-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

/* ===== BLOQUES DECORADOS ===== */
.decorado {
  background: #f9fffc;
  border: 2px solid #2e8b57;
  border-radius: 16px;
  padding: 25px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;

}

/* Detalle superior decorativo */
.decorado::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #2e8b57;
  border-radius: 16px 16px 0 0;
}

/* Hover elegante (solo desktop) */
@media (hover: hover) {
  .decorado:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .perfil-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 25px;
  }
}


/* ===== GALERÍA VERTICAL ===== */
.galeria-vertical {
  padding: 60px 10%;
}

.galeria-contenedor {
  display: flex;
  gap: 30px;
  align-items: center;
}

/* COLUMNA MINIATURAS */
.galeria-thumbs {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FLECHAS PROFESIONALES */
.flecha {
  background: #2e8b57;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.flecha:hover {
  background: #256f46;
  transform: scale(1.1);
}

/* LISTA MINIATURAS */
.thumbs-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.thumbs-list::-webkit-scrollbar {
  display: none;
}

/* MINIATURAS */
.thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.thumb:hover,
.thumb.active {
  border-color: #2e8b57;
  opacity: 1;
}

/* IMAGEN GRANDE */
.galeria-principal {
  flex: 1;
  background: #f9f9f9;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.galeria-principal img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .galeria-contenedor {
    flex-direction: column;
  }

  .galeria-thumbs {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
  }

  .thumbs-list {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    gap: 10px;
  }

  .thumb {
    width: 70px;
    height: 70px;
  }

  .flecha {
    width: 36px;
    height: 36px;
    font-size: 16px;
    margin: 0 5px;
  }

  .flecha.up,
  .flecha.down {
    margin: 0;
  }
}

/* ===== SECCIÓN HOME 3 COLUMNAS ===== */
.info-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 50px 8%;
}

/* TARJETAS */
.info-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.info-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.info-card h3 {
  color: #2e8b57;
  margin: 18px 10px;
}

/* TEXTO OCULTO */
.info-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding: 0 20px;
  text-align: left;
}

.info-text p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.info-text h4 {
  color: #2e8b57;
  margin: 20px 0 10px;
}

/* BOTONES */
.ver-mas,
.ver-menos {
  background: #2e8b57;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin: 15px auto 25px;
}

.ver-menos {
  background: #888;
}

.ver-mas:hover {
  background: #256f46;
}

.ver-menos:hover {
  background: #777;
}

/* ACTIVO */
.info-card.active .info-text {
  max-height: 2000px;
}

/* ===== DECORADO BECAS ===== */
.beca-decorada {
  border: 2px solid #2e8b57;
}

.decor-circulo {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 90px;
  height: 90px;
  background: rgba(46,139,87,0.15);
  border-radius: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .info-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .info-grid-home {
    grid-template-columns: 1fr;
  }
}


/* ===== CONTROL ESCOLAR ===== */
.control-escolar {
  padding: 60px 10%;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
}

.control-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.control-card h2 {
  color: #2e8b57;
  margin-bottom: 30px;
}

.control-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.control-card label {
  font-weight: 600;
  font-size: 14px;
}

.control-card input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.control-card input:focus {
  border-color: #2e8b57;
  outline: none;
}

.control-card button {
  margin-top: 15px;
  padding: 12px;
  background: #2e8b57;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.control-card button:hover {
  background: #256f46;
}

/* Responsive */
@media (max-width: 480px) {
  .control-card {
    padding: 25px;
  }
}


.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 👈 empuja su contenido a la derecha */
  gap: 15px;
  flex: 1; /* ocupa todo el espacio disponible */
}


.header-text {
  white-space: nowrap;
}

/* ===============================
   HEADER RESPONSIVE LIMPIO
================================= */

/* ===== ESTILO GENERAL (ESCRITORIO) ===== */

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* En escritorio todo en una línea */
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.header-right img {
  height: 45px;
  width: auto;
  flex-shrink: 0; /* nunca se deforman */
  object-fit: contain;
}

/* Logo DGCFT un poco más grande */
.header-right img:last-child {
  height: 65px;
}

.header-text {
  white-space: nowrap; /* en escritorio no baja */
  font-size: clamp(12px, 1.2vw, 14px);
  overflow: visible;
  word-break: normal;
  overflow-wrap: normal;
}


/* ===== RESPONSIVE (MÓVIL) ===== */


@media(max-width:768px){

  .top-header{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:12px;
  }

  .header-left{
    width:100%;
    display:flex;
    justify-content:center;
  }

  .header-text{
    font-size:13px;
  }

  .header-right{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
  }

  .cert-img{
    height:50px;
  }

}

/* ===== PERFIL NUEVO DISEÑO ===== */

/* ===== PERFIL MÁS COMPACTO ===== */

.perfil-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.perfil-box {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 15px 18px;
}

.perfil-titulo {
  font-weight: 600;
  font-size: 14px;
  color: #2e8b57;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 2px solid #2e8b57;
}

.perfil-box ul {
  margin-left: 18px;
  line-height: 1.4;
}

.perfil-box li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* ===== ESPECIFICACIONES Y REQUISITOS COMPACTOS ===== */

.info-box-estilizado {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 18px;
  margin-top: 10px;
}

.info-box-estilizado ul {
  margin-left: 18px;
  line-height: 1.5;
}

.info-box-estilizado li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .perfil-grid {
    grid-template-columns: 1fr;
  }
}





/* ===== BLOQUE AISLADO SOLO PARA CARRERA INGLÉS ===== */

.ingles-wrapper {
  width: 100vw;              /* ocupa todo el ancho real de pantalla */
  max-width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.ingles-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Ajuste de tamaño de botones solo en móviles / tabletas */
@media (max-width: 768px) {
  /* Carrusel 1 */
  .carousel button {
    width: 20px;
    height: 20px;
    font-size: 15px;
  }

  /* Carrusel 2 */
  .carousel2 button {
    width: 20px;
    height: 20px;
    font-size: 15px;
  }
}
