

/* Solo aplica en escritorio */
body {
  padding-top: 100px; /* Ajusta según la altura real de tu menú */
}

/* En móvil, quita el espacio extra */
@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
}


html {
  scroll-behavior: smooth;
}



/*Tipo de letra  */

/* Títulos con DM Sans en negritas */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700; /* Negritas */
}



/* Textos con Inter */
body, p, span, li, a {
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Peso regular para texto */
}
  /*menu*/



/* Fuente */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* ===== Menú ===== */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    font-family: 'DM Sans', sans-serif;
}

.custom-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

/* Logo ajustable */
.custom-logo .logo-img {
    max-width: 140px;
    height: auto;
    transition: max-width 0.3s ease;
}

/* Menú principal */
.custom-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.custom-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.custom-menu li a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.custom-menu li a:hover {
    color: #CA9E52; 
}

/* Botón hamburguesa */
.custom-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333333;
}

/* Menú ajusta*/

.custom-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.custom-menu > li {
    position: relative;
}

.custom-menu li a {
    text-decoration: none;
    padding: 10px;
    display: block;
}

/* Submenú en escritorio */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff; 
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd; 
    z-index: 9999; 
}

.submenu li a {
    padding: 8px 12px;
    white-space: nowrap;
}

/* Mostrar submenú en hover (solo escritorio) */
.custom-menu li:hover .submenu {
    display: block;
}

/* ===== Responsivo ===== */
@media screen and (max-width: 768px) {
    .custom-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        text-align: center;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .custom-nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .custom-menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    /* Submenú en móvil */
    .submenu {
        position: relative; 
        top: auto;
        left: auto;
        background: #F2F2F2; 
        border: none;
        padding-left: 15px; 
    }

    .submenu li a {
        display: block;
        padding: 10px;
        text-align: left; 
    }

    .custom-menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .custom-logo {
        width: 100%;
        text-align: center;
    }
}



  

/* ===== Footer  ===== */
.custom-footer {
    background-color: #F2F2F2;
    color: #344435;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-column {
    flex: 1 1 220px;
    margin: 15px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #344435;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f39c12;
}

/* Logo footer */
.footer-icon {
    max-width: 100px;
    height: auto;
}


/* Redes sociales footer */
.social-icons {
    display: flex;
    flex-direction:row; 
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

.social-icons a {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-decoration: none;
    color: #526855; 
    font-size: 14px;
    font-weight: 500;
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 5px; 
}

.social-icons img:hover {
    transform: scale(1.1);
}

.social-icons a span {
    display: block;
    text-align: center;
}









/* Derechos de autor */
.footer-bottom {
    text-align: center;
    margin-top: 10px;
}

.footer-bottom img {
    max-width: 210px;
    height: auto;
}

/* ===== Responsivo ===== */
@media screen and (max-width: 100px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        margin: 10px 0;
    }

    .social-icons {
    display: flex;          
    justify-content: center; 
    align-items: center;     
    gap: 10px;     
    }
}


/*Termina Redes sociales footer */



/* --- Estructura base --- */


.portada {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'DM Sans', 'Inter', sans-serif;
}

/* --- Video de fondo --- */
.portada-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* --- Capa oscura --- */
.portada-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.204);
  z-index: -1;
}

/* --- Contenido --- */
.portada-contenido {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

/* --- Jerarquía de títulos --- */
.portada-subtitulo {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.portada-titulo {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 12px rgba(0,0,0,0.8);
}

/* --- Texto --- */
.portada-texto {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.portada-texto .leer-mas {
  color: #fff;
  text-decoration: underline;
}





.portada-botones {
  display: flex;
  flex-direction: column; /* uno debajo del otro */
  align-items: center;
  gap: 1rem; /* espacio entre botones */
  margin-top: 2rem;
}

/* Botón principal - PARTICIPA */
.btn-participa {
  background-color: #b76c1a;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(183, 108, 26, 0.4);
}

.btn-participa:hover {
  background-color: #a05f16;
  transform: scale(1.07);
  box-shadow: 0 0 30px rgba(183, 108, 26, 0.6);
}

/* Botón secundario - VER VIDEO */
.btn-video {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-video:hover {
  background-color: #fff;
  color: #1a1a1a;
}











/* --- Modal Video --- */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.modal iframe {
  width: 100%;
  height: 450px;
}

.cerrar {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .portada-titulo {
    font-size: 2.2rem;
  }
  .portada-subtitulo {
    font-size: 1.2rem;
  }
  .portada-texto {
    font-size: 1rem;
  }
  .modal iframe {
    height: 250px;
  }
}
















.objetivo {
  background-color: #ffffff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'DMS Sans', 'Inter', sans-serif;
}

.objetivo-contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1000px;
  gap: 2rem;
}

.objetivo-imagen {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.objetivo-imagen img {
  width: 150px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.objetivo-imagen img:hover {
  transform: scale(1.05);
}

.objetivo-texto {
  flex: 2 1 400px;
  color: #1A1A1A;
}

.objetivo-titulo {
  font-size: 2rem;
  color: #b76c1a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.objetivo-texto p {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: justify;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 768px) {
  .objetivo-contenedor {
    flex-direction: column;
    text-align: center;
  }

  .objetivo-imagen img {
    width: 120px;
  }

  .objetivo-titulo {
    font-size: 1.8rem;
  }

  .objetivo-texto p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .objetivo {
    padding: 3rem 1.5rem;
  }

  .objetivo-titulo {
    font-size: 1.6rem;
  }
}

.transformacion {
  background-color: #F2F2F2;
  padding: 5rem 2rem;
  font-family: 'DMS Sans', 'Inter', sans-serif;
  color: #1A1A1A;
}

.transformacion-contenedor {
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in-out;
}

.transformacion-titulo {
  text-align: center;
  color: #b76c1a;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
}

.transformacion-titulo::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #b76c1a;
  margin: 1rem auto 0;
  border-radius: 2px;
}

.transformacion-texto {
  columns: 2;
  column-gap: 3rem;
  text-align: justify;
  line-height: 1.8;
  font-size: 1.02rem;
}

.transformacion-texto p {
  margin-bottom: 1.5rem;
  break-inside: avoid;
}

/* ======== RESPONSIVO ======== */
@media (max-width: 900px) {
  .transformacion-texto {
    columns: 1;
    font-size: 1rem;
  }

  .transformacion-titulo {
    font-size: 2rem;
  }
}

/* ======== ANIMACIÓN ======== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}










/* ==============================
   SECCIÓN: EVOLUCIÓN DEL EDIFICIO
   ============================== */

.rectoria-evolucion {
  background-color: #F2F2F2;
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rectoria-evolucion-titulo {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.5rem;
  color: #b76c1a   ;
  margin-bottom: 0.5rem;
}

.rectoria-evolucion-subtitulo {
  font-family: 'Inter', sans-serif;
  color: #1A1A1A  ;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

.rectoria-timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  flex-wrap: nowrap;
  gap: 2rem;
}

.rectoria-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 4px;
 
  z-index: 0;
  transform: translateY(-50%);
}

.timeline-item {
  position: relative;
  width: 30%;
  text-align: center;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.timeline-img {
  position: relative;
  margin-bottom: 1rem;
}

.timeline-img img {
  width: 100%;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-img img:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.25);
}

.timeline-content h3 {
  font-family: 'DM Sans', sans-serif;
  color: #A36108;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-family: 'Inter', sans-serif;
  color: #344435;
  line-height: 1.6;
  font-size: 1rem;
}

/* Animación */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========= MÓVIL ========= */
@media (max-width: 768px) {
  .rectoria-timeline {
    flex-direction: column;
    align-items: center;
  }

  .rectoria-timeline::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
  }

  .timeline-item {
    width: 100%;
    margin-bottom: 3rem;
    text-align: center;
  }

  .timeline-content h3 {
    color: #b76c1a;
  }

  .timeline-img img {
    max-width: 280px;
  }
}




/* ==============================
   SECCIÓN: ENLACES INSTITUCIONALES
   ============================== */
.rectoria-enlaces {
  background-color: #fff;
  color: #b76c1a;
  padding: 100px 5%;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.rectoria-enlaces-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Tarjetas */
.rectoria-enlace {
  flex: 1 1 30%;
  background-color: #fff;
  border: 2px solid #b76c1a;
  padding: 2rem;
  border-radius: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.rectoria-enlace:hover {
  background-color: #b76c1a;
  color: #fff;
  transform: translateY(-5px);
}

/* Icono */
.rectoria-icono {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
}

.rectoria-icono img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(39%) sepia(84%) saturate(448%) hue-rotate(5deg) brightness(92%) contrast(87%);
}

/* Título */
.rectoria-enlace-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Texto */
.rectoria-enlace p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Botón */
.rectoria-enlace-btn {
  display: inline-block;
  background-color: #b76c1a;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.rectoria-enlace-btn:hover {
  background-color: #fff;
  color: #b76c1a;
  border: 2px solid #b76c1a;
  transform: translateY(-2px);
}

/* ==============================
   MODO RESPONSIVO
   ============================== */
@media (max-width: 768px) {
  .rectoria-enlaces {
    padding: 60px 20px;
  }

  .rectoria-enlaces-container {
    flex-direction: column;
    gap: 2rem;
  }

  .rectoria-enlace {
    width: 100%;
  }

  .rectoria-icono {
    width: 50px;
    height: 50px;
  }
}



/* ==============================
   SECCIÓN: CÓMO PARTICIPAR
   ============================== */

.rectoria-pasos {
  background: #fff;
  padding: 3rem 1rem;
  text-align: center;
  font-family: 'DM Sans', 'Inter', sans-serif;
}

.rectoria-pasos-contenedor {
  max-width: 1000px;
  margin: 0 auto;
}

.rectoria-pasos-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.paso-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #f9f9f9;
  border: 2px solid rgba(183, 108, 26, 0.2);
  border-radius: 16px;
  padding: 2rem 1rem;
  color: #1a1a1a;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.paso-item:hover {
  transform: translateY(-5px);
  background: #fff7ef;
  box-shadow: 0 4px 20px rgba(183, 108, 26, 0.2);
  border-color: #b76c1a;
}

.paso-icono img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.paso-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

@media (max-width: 600px) {
  .paso-item {
    padding: 1.5rem 1rem;
  }
  .paso-icono img {
    width: 60px;
    height: 60px;
  }
  .paso-item h3 {
    font-size: 1.1rem;
  }
}








/* ======== SECCIÓN HISTÓRICO ======== */
.rectoria-historico {
  background-color: #ffffff;
  color: #1A1A1A;
  padding: 4rem 2rem;
  font-family: 'DM Sans', 'Inter', sans-serif;
}

.rectoria-historico-contenedor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Imagen */
.rectoria-historico-imagen {
  flex: 1 1 45%;
  text-align: center;
}

.rectoria-historico-imagen img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

/* Texto */
.rectoria-historico-texto {
  flex: 1 1 45%;
}

.rectoria-historico-titulo {
  color: #b76c1a;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.rectoria-historico-descripcion {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.rectoria-datos-lista {
  list-style: none;
  padding: 0;
}

.rectoria-datos-lista li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid #b76c1a;
}

/*  Responsivo */
@media (max-width: 768px) {
  .rectoria-historico-contenedor {
    flex-direction: column;
  }

  .rectoria-historico-imagen, 
  .rectoria-historico-texto {
    flex: 1 1 100%;
  }
}





.seccion-video {
  background-color: #ffffff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.video-contenedor {
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(40px);
}

/* Video */
.video-elemento {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  outline: none;
}

/*  Animación de aparición */
.video-contenedor.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======== RESPONSIVO ======== */
@media (max-width: 768px) {
  .seccion-video {
    padding: 3rem 1.5rem;
  }

  .video-contenedor {
    border-radius: 12px;
  }
}


.pegado{

  line-height: 1.1;
  text-align: right;
}


.pegadorectora{

  line-height: 1.1;
  text-align: right;
  font-weight: bold;
}

