/* ==============================
   ESTILOS BASE
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Times New Roman", Times, serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* ==============================
   HEADER
============================== */

header {
  background: #fdd835;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navegacion {
  padding: 7px 9px;
  background-color: #34526a;
  border-radius: 7px;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 70px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  background-color: #ffffff;
}

p {
  color: #212529;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.main-nav ul li a:hover {
  color: #ff7d7d;
}

/* ==============================
   HERO (portada principal)
============================== */
.hero {
  background: url("https://images.unsplash.com/photo-1600880292089-90a7e086ee0c")
    center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

h2 {
  font-size: 3rem;
  font-family: Oswald;
}

.pregunta {
  font-size: 2rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: auto;
}

/* ==============================
   INTRO (Educación Primaria)
   Dos columnas: texto + imagen
============================== */

.Primer_texto {
  font-weight: 700;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-texto h2 {
  color: #212529;
  margin-bottom: 1rem;
}

.intro-texto p {
  margin-bottom: 1.5rem;
}

.intro-texto .btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: #fdd835;
  color: #212529;
  text-decoration: none;
  border: #212529 3px solid;
  border-radius: 5px;
  font-weight: bold;
}

.intro-img img {
  width: 100%;
  border-radius: 12px;
}

/* ==============================
   SLIDER PRINCIPAL (VERSIÓN RESPONSIVE MEJORADA)
============================== */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-height: 450px;
  width: 100%;
  background-color: #f9f9f9;
  margin: 0 auto;
}

/* Contenedor de imágenes */
.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: 100%;
}

/* Imágenes dentro del slider - VERSIÓN RESPONSIVE */
.slides img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center center; /* 🔥 CENTRA LA IMAGEN */
  flex-shrink: 0;
  border-radius: 12px;
  background: #f0f0f0;
  min-height: 200px;
}

/* ==============================
   DISPOSITIVOS MÓVILES
============================== */
@media (max-width: 768px) {
  .slider {
    max-height: 350px;
    border-radius: 8px;
    margin: 0 10px;
    width: calc(100% - 20px);
  }

  .slides img {
    height: 350px;
    object-fit: cover;
    object-position: center center;
  }

  /* Intro en una columna para móviles */
  .intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    text-align: center;
  }

  .intro-texto {
    order: 1;
  }

  .intro-imagen {
    order: 2;
    width: 100%;
  }
}

/* ==============================
   DISPOSITIVOS MUY PEQUEÑOS (iPhone SE, etc.)
============================== */
@media (max-width: 480px) {
  .slider {
    max-height: 300px;
    margin: 0 8px;
    width: calc(100% - 16px);
  }

  .slides img {
    height: 300px;
    object-fit: cover;
    object-position: center center;
  }
}

/* ==============================
   DISPOSITIVOS GRANDES (Tablets en landscape)
============================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .slider {
    max-height: 400px;
  }

  .slides img {
    height: 400px;
    object-fit: cover;
    object-position: center center;
  }
}

/* ==============================
   BOTONES DE NAVEGACIÓN RESPONSIVE
============================== */
.slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.slider button:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.slider .prev {
  left: 15px;
}

.slider .next {
  right: 15px;
}

/* Botones en móviles */
@media (max-width: 768px) {
  .slider button {
    padding: 10px 14px;
    font-size: 1.2rem;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .slider .prev {
    left: 8px;
  }

  .slider .next {
    right: 8px;
  }
}

/* ==============================
   DATOS RÁPIDOS
============================== */

.textodedatosrapidos {
  color: #000;
}

.svg {
  margin: auto;
}

.datos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: #f4f4f4;
  padding: 2rem;
  text-align: center;
}

.dato {
  background: #fff;
  border-radius: 6px;
  padding: 1rem;
  border: 1px solid #ddd;
}

.dato h3 {
  color: #002147;
  margin-bottom: 0.5rem;
}

.dato img {
  max-width: 40px;
  margin-top: 0.5rem;
}

#datos {
  background-color: #e5ebe7;
}

/* ==============================
   VISIÓN Y MISIÓN
============================== */
.vision-mision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 2rem;
}

.primer_titulo {
  display: inline-block;
  border: #fdd835 solid 8px;
  padding: 5px 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.vision,
.mision,
.contenido-caja {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 6px;
  border: #fdd835 solid 6px;
}

.perfil {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 6px;
}

.vision h2,
.mision h2 {
  color: #002147;
  margin-bottom: 1rem;
}

.vision img,
.mision img {
  margin-top: 1rem;
  width: 100%;
  border-radius: 6px;
}

/* ==============================
   PERFILES (Ingresante/Egresado)
============================== */

/* ==============================
   RESPONSIVE GENERAL
============================== */
@media (max-width: 992px) {
  .vision-mision {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-texto,
  .vision,
  .mision {
    text-align: left;
  }

  .intro-img img {
    max-width: 350px;
    margin: 1rem auto;
  }

  #perfil-egresado .contenido-caja {
    border: #fbff00 solid 12px;
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

/* ==============================
   CAMPO OCUPACIONAL
============================== */
#campo-ocupacional {
  background: #f9f9f9;
  padding: 3rem 2rem;
}

.campo-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.campo-container h2 {
  color: #002147;
  margin-bottom: 1rem;
}

.intro-campo {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.grid-campo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.campo-card {
  background: #ffee8c;
  color: rgb(0, 0, 0);
  padding: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: left;
  transition: transform 0.3s, background 0.3s;
}

.campo-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
}

/* ==============================
   HOVER EN SECCIONES BLANCAS
============================== */

.vision:hover,
.mision:hover {
  background: #ffee8c;
  transition: background 0.4s ease;
}

.contenido-caja:hover,
#campo-ocupacional:hover {
  background: #f3f9f9;
  transition: background 0.4s ease;
}

.vision:hover h2,
.mision:hover h2,
#campo-ocupacional:hover h2,
.contenido-caja:hover h2 {
  color: #004d40;
  transition: color 0.3s ease;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ==============================
   FOOTER
============================== */
footer {
  background-color: #bdaa57;
  color: #fff;
  padding: 1.5rem 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo img {
  height: 50px;
}

a {
  text-decoration: none;
}

.Quejas {
  color: #fbff00;
}

.Quejas:hover {
  color: #ffffff;
}

.footer-texto {
  flex: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}

.footer-redes {
  display: flex;
  gap: 1rem;
}

.footer-redes img {
  height: 30px;
  transition: transform 0.3s;
}

.footer-redes img:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-texto {
    order: 2;
  }

  .footer-redes {
    order: 3;
    justify-content: center;
  }
}

/* Caja blanca centrada ahora con dos columnas */
#perfil-egresado .ambitos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 20px;
}

.ambitos-img img {
  width: 100%;
  border-radius: 6px;
}

.ambitos-texto h2 {
  color: #002147;
  margin-bottom: 1rem;
  text-align: left;
}

.ambitos-texto ul {
  list-style: disc inside;
  text-align: left;
  color: #333;
}

@media (max-width: 992px) {
  #perfil-egresado .ambitos {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ambitos-texto {
    margin-top: 1rem;
    text-align: left;
  }

  .ambitos-img img {
    max-width: 350px;
    margin: auto;
  }
}

/* ==============================
   MALLA CURRICULAR
============================== */
#malla-curricular {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: start;
}

.malla-caja a {
  display: inline-block;
  background: #b2e4e4;
  color: #002147;
  font-weight: bold;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.malla-caja a:hover {
  background: #f4c542;
  color: #000;
}

.adesa-info {
  background: #f9f9f9;
  border: 2px solid #fdd835;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.adesa-info h3 {
  color: #002147;
  margin-bottom: 0.5rem;
}

.adesa-info ul {
  margin: 0.5rem 0 1rem 1.2rem;
}

.adesa-info li {
  margin-bottom: 0.4rem;
}

.adesa-info a {
  color: #0073e6;
  text-decoration: none;
}

.adesa-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  #malla-curricular {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   HOVER SOLO EN EL CONTENIDO DE PERFILES
============================== */
.perfil-contenido {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 6px;
  transition: background 0.4s ease;
}

.perfil-contenido:hover {
  background: #ffee8c;
}

.perfil-contenido ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}

.perfil-contenido li {
  margin-bottom: 0.7rem;
}

/* ==============================
   MEJORA DE RENDIMIENTO PARA MÓVILES
============================== */
.slides {
  will-change: transform;
}

.slides img {
  loading: lazy;
}

/* Estilo para imágenes rotas */
.slides img:before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
}
/* ================================== */
/* BOTONES SIMPLES DEBAJO DE MALLA CURRICULAR */
/* ================================== */

.seccion-botones-simples {
  margin-top: 40px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #002147;
}

.contenedor-botones-simples {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-simple {
  flex: 1;
  min-width: 280px;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.btn-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-simple:first-child {
  background: #b2e4e4;
  color: #333;
}

.btn-simple:first-child:hover {
  background: #ffdf5a;
}

.btn-simple:last-child {
  background: #b2e4e4;
  color: #333;
  border: 2px solid #002147;
}

.btn-simple:last-child:hover {
  background: #ffdf5a;
}

.btn-simple i {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor-botones-simples {
    flex-direction: column;
  }

  .btn-simple {
    min-width: auto;
    width: 100%;
  }
}
