:root {
  --azul-oscuro: #273340;
  --azul-medio: #2c5aa0;
  --dorado: #c29e3b;
  --blanco: #ffffff;
  --gris-claro: #f8f9fa;
  --texto-oscuro: #2c3e50;
  --texto-gris: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--texto-oscuro);
  background-color: var(--blanco);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

}

/* ESTILO ESTANDAR PARA TODAS LAS SECCIONES */
section {
  padding: 5rem 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* NAVBAR GENERAL */
.navbar {
  background-color: #BF9540;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.7rem 1.2rem;
  flex-wrap: wrap;
  position: relative;
  gap: 1rem;
}

/* LOGO */
.logoNavBar {
  height: 50px;
}

/* HAMBURGER MENU - OCULTO POR DEFECTO */
#menuToggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* MENÚ */
.menu {
  display: flex;
  gap: 0.5rem;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.4s, text-decoration 0.4s;
}

.menu a:hover {
  color: black;
  text-decoration: underline;
}

.menu a:active {
  color: black;
}

/* BOTONES */
.buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* BOTÓN ACCESO */
.access-btn {
  background-color: #273340;
  color: white;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.access-btn:hover {
  background-color: #BF9540;
  color: #273340;
  border-color: #273340;
}

/* BOTÓN DOCENTES */
.teachers-btn {
  background-color: #BF9540;
  color: #273340;
  border: 2px solid #273340;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.4s, color 0.4s;
}

.teachers-btn:hover {
  background-color: #BF9540;
  color: #FFF;
}

/* RESPONSIVE PARA TABLET Y CELULAR */
@media (max-width: 1024px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 3rem;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .menu,
  .buttons {
    display: none;
    flex-direction: column;
    background-color: #BF9540;
    padding: 10px 0;
    gap: 0.5rem;
    width: 100%;
  }

  #menuToggle:checked~.menu,
  #menuToggle:checked~.buttons {
    display: flex;
  }

  .menu a {
    width: auto;
    text-align: left;
  }

  .buttons {
    flex-direction: row;
    justify-content: flex-start;
  }

  .access-btn,
  .teachers-btn {
    width: auto;
    text-align: left;
  }
}

/* ===== SECCIÓN HERO ===== */
.logo {
  padding-top: 5rem;
}

.logo-img {
  width: 70%;
  height: auto;
  margin: 0 auto;
}

.hero-title {
  margin: 0 auto;
  font-weight: 400;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
  text-align: center;
  /* Asegura que todo el texto esté centrado */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 0 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    transform: translateX(9rem);
    align-items: flex-start;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding-left: 40px;
    /* Ajusta este valor si aún parece cargado a la izquierda */
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);

  /* Animación */
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 0.5s;
}

.logo {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  /* Espacio después del logo */
}

/* Textos */
.logo-primary {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  line-height: 1;
}

.logo-secondary {
  font-size: clamp(1rem, 3vw, 1.8rem);
  font-weight: 400;
  color: white;
  letter-spacing: clamp(2px, 2vw, 6px);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 300;
  color: white;
  margin: 0 auto 3rem;
  max-width: 500px;
  line-height: 1.5;
}

/* Botón */
.cta-button {
  margin-top: 1rem;
  background: var(--dorado);
  color: var(--blanco);
  padding: 12px 50px;
  border: none;
  border-radius: 30px;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: normal;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: inline-block;
  min-width: 200px;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ===== SECCIÓN LICENCIATURA ===== */
.licenciatura {
  background: var(--gris-claro);
}

.licenciatura .container {
  display: flex;
  justify-content: center;
  justify-items: center;
  gap: 20px;
}

.licenciatura .licenciatura-img {
  width: 100%;
  height: auto;
}

.licenciatura .title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--azul-oscuro);
  text-transform: uppercase;
}

.licenciatura .duration-highlight {
  font-size: clamp(2rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--dorado);
  margin-bottom: 2rem;
}

.licenciatura .description-final {
  font-size: 1.5rem;
  color: var(--texto-oscuro);
  line-height: 1.2;
  width: 100%;
}

/* Acordion */
.accordion {
  max-width: 80%;
  margin: 4rem auto;
  font-family: Arial, sans-serif;
  border-collapse: collapse;
}

.accordion-item {
  border: 1px solid #ccc;
  margin-bottom: 0;
  overflow: hidden;
}

/* Alternar colores del encabezado */
.accordion-item:nth-child(odd) .accordion-header {
  background-color: #273340;
  color: #fff;
}

.accordion-item:nth-child(even) .accordion-header {
  background-color: #C8A84F;
  color: #fff;
}

.accordion-header {
  cursor: pointer;
  padding: 12px 20px;
  font-weight: bold;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
  position: relative;
}

.accordion-header:hover {
  opacity: 0.9;
}

/* Flechita tipo > que gira hacia abajo */
.accordion-header::after {
  content: ">";
  font-size: 1.2rem;
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
  margin-left: 10px;
}

.accordion-header.active::after {
  transform: rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #f0f0f0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.accordion-content.open {
  padding: 0;
}

.accordion-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Filas intercaladas: gris claro (#D6D6D6) y blanco */
.accordion-content li {
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  color: #000;
  background-color: #ffffff;
}

.accordion-content li:nth-child(odd) {
  background-color: #D6D6D6;
}

/* Responsive */
@media (max-width: 768px) {
  .accordion {
    max-width: 95%;
  }

  .accordion-header {
    font-size: 1rem;
    padding: 10px 16px;
  }

  .accordion-content li {
    padding: 8px 16px;
  }
}

/* ===== SECCIÓN BENEFICIOS ===== */

.beneficios .content-flex {
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.beneficios .text-content {
  flex: 1;
}

.beneficios .image-content {
  flex: 1;
}

.beneficios {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
}

.beneficios .beneficios-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--dorado);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.beneficios .beneficios-list {
  list-style: none;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 2;
}

.beneficios-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.beneficios-list li::before {
  content: "•";
  color: var(--dorado);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* ===== SECCIÓN MODALIDAD ===== */
.modalidad-header {
  background: var(--dorado);
  padding: 2rem 1rem;
}

.modalidad-header h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
}

.modalidad-header .dark {
  color: var(--azul-oscuro);
  font-weight: 700;
}

.modalidad-header .light {
  color: var(--blanco);
  font-weight: 400;
  text-transform: uppercase;
}

/* ===== SECCIÓN DOCENTES ===== */
.docentes {
  background: var(--blanco);
}

.docentes h3 {
  font-size: 3rem;
  text-align: center;
}

.docentes .container {
  padding: 2rem 1rem;
}

.docentes-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.docentes .video-box,
.docentes .texto-box {
  flex: 1;
  width: 100%;
  height: auto;
}

.docentes .texto-box p {
  font-size: clamp(1.4rem, 2vw, 1.1rem);
  text-align: justify;
  color: var(--texto-oscuro);
  line-height: 1.8;
  width: 450px;
}

/* ===== SECCIÓN LÍDERES COMERCIALES ===== */
.lideres-comerciales {
  background-color: var(--azul-oscuro);
  padding: 0;
}

.lideres-comerciales .lideres-superior {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: var(--blanco);
  gap: 20px;
  width: 80%;
  margin: 0 auto;
  padding: 40px 40px;
}

.lideres-comerciales .lideres-texto {
  flex: 1;
}

.lideres-comerciales .lideres-texto h2 {
  font-size: 2.7rem;
  color: var(--dorado);
  margin: 0;
}

.lideres-comerciales .lideres-texto p {
  font-size: 1.4rem;
  margin-top: 0.8rem;
  max-width: 700px;
  line-height: 1.6;
}

.lideres-comerciales .btn-inscribete {
  background-color: var(--dorado);
  color: #FFFFFF;
  font-weight: 700;
  padding: 5px 40px 5px 40px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.lideres-comerciales .btn-inscribete:hover {
  background-color: #C19742;
}

/* ===== SECCIÓN MISIÓN Y VISIÓN ===== */
.mision-vision {
  background: var(--blanco);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.mision-vision .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.mision-vision .presentacion {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.mision-vision .logo-unired {
  max-width: 440px;
  height: auto;
  margin-bottom: 1.5rem;
  width: 100%;
}

.mision-vision .presentacion-texto {
  color: var(--texto-gris);
  text-align: justify;
  max-width: 460px;
}

.mision-vision .texto-mv {
  flex: 2 1 300px;
}

.mision-vision .bloque {
  margin-bottom: 2rem;
}

.mision-vision .titulo-container {
  display: inline-block;
  background-color: var(--dorado);
  padding: 0.8rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.mision-vision .titulo-seccion {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--blanco);
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.mision-vision .texto-seccion {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--texto-oscuro);
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: justify;
}

.mision-vision .separador {
  height: 1px;
  background-color: #000;
  margin: 2rem 0;
  width: 100%;
}

#separador-mv-tablet {
  display: none;
}

/* ===== SECCIÓN VALORES ===== */
.valores {
  background-color: var(--azul-oscuro);
  color: var(--blanco);
}

.valores-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  width: 90%;
  margin: 0 auto;
}

.valores-image,
.valores-text {
  flex: 1 1 300px;
}

.valores-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--dorado);
  text-align: center;
}

.valores-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}

.valores-list li {
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  border-bottom: 3px solid rgba(255, 255, 255);
  padding-bottom: 1rem;
}

/* ===== SECCIÓN INSCRIPCIÓN ===== */
.inscripcion {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 100%);
  color: var(--blanco);
  text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  section {
    padding: 4rem 0;
  }
}

/*Hero Section responsive Movil */
@media (max-width: 375px) {
  .hero .hero-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .logo-img {
    width: 100%;
    height: auto;
  }
}

/* Licenciatura Section responsive Movil */
@media screen and (max-width: 667px) {
  .licenciatura .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .licenciatura .licenciatura-img {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .licenciatura .text-content {
    width: 250px;
    font-size: 1.2rem;
    text-align: left;
    line-height: 35px;
    font-weight: normal;
  }

  .licenciatura .title {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .licenciatura .description-final {
    width: 250px;
    font-size: 1.2rem;
  }
}

/* Licenciatura Section responsive Tablet */
@media (min-width: 768px) and (max-width: 990px) {

  .licenciatura .content-grid,
  .licenciatura .docentes-flex {
    gap: 2rem;
  }

  .licenciatura .lideres-superior {
    padding: 2rem 1rem;
  }

  .licenciatura .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .licenciatura .licenciatura-img {
    width: 80%;
    height: auto;
    margin: 0 auto;
  }

  .licenciatura .text-content {
    font-size: 1rem;
    text-align: left;
    line-height: 35px;
    font-weight: normal;
    width: 450px;
  }

  .licenciatura .text-content {
    margin-left: -15%;
  }

  .licenciatura .title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .licenciatura .description-final {
    font-size: 1.4rem;
  }
}

/* Section beneficios responsive Movil */
@media screen and (max-width: 767px) {
  .beneficios .content-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
  }

  .beneficios .text-content,
  .beneficios .image-content {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .beneficios .beneficios-img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}

/* Section beneficios responsive Tablet */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .beneficios .content-flex {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .beneficios .text-content,
  .beneficios .image-content {
    flex: 1 1 45%;
    max-width: 500px;
  }

  .beneficios .beneficios-img {
    width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* Docentes Section responsive Movil */
@media screen and (max-width: 667px) {
  .docentes {
    background: var(--blanco);
  }

  .docentes h3 {
    font-size: 1.7rem;
    text-align: left;
    margin-left: 30px;
  }

  .docentes .container {
    padding: 2rem 1rem;
  }

  .docentes-flex {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
  }

  .docentes .video-box,
  .docentes .texto-box {
    flex: 1;
    width: 100%;
    height: auto;
  }

  .docentes .texto-box p {
    font-size: 1rem;
    color: var(--texto-oscuro);
    width: 90%;
    margin: 0 auto;
  }
}

/* Docentes Section responsive Tablet */
@media (min-width: 768px) and (max-width: 990px) {
  .docentes {
    background: var(--blanco);
  }

  .docentes h3 {
    font-size: 2.8rem;
    text-align: left;
    margin-left: 50px;
  }

  .docentes .container {
    padding: 2rem 1rem;
  }

  .docentes-flex {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
  }

  .docentes .video-box,
  .docentes .texto-box {
    flex: 1;
    width: 80%;

  }

  .docentes .texto-box p {
    font-size: clamp(1.4rem, 2vw, 1.1rem);
    text-align: justify;
    color: var(--texto-oscuro);
    line-height: 1.8;
    width: 90%;
    text-align: justify;
    margin: 0 auto;
  }
}

/* Formamos líderes comerciales Section responsive Movil */
@media screen and (max-width: 667px) {
  .lideres-comerciales .lideres-texto h2 {
    font-size: 1.7rem;
    color: var(--dorado);
  }

  .lideres-comerciales .lideres-texto p {
    width: 100%;
    font-size: 1rem;
    line-height: 1.6;
  }

  .lideres-comerciales .btn-inscribete {
    padding: 10px 40px 10px 40px;
    font-size: 0.7rem;
  }
}

/* Formamos líderes comerciales Section responsive Tablet */
@media (min-width: 768px) and (max-width: 990px) {
  .lideres-comerciales {
    background-color: var(--azul-oscuro);
    padding: 0;
  }

  .lideres-comerciales .lideres-superior {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: var(--blanco);
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 40px;
  }

  .lideres-comerciales .lideres-texto {
    flex: 1;
  }

  .lideres-comerciales .lideres-texto h2 {
    font-size: 2.5rem;
    color: var(--dorado);
  }

  .lideres-comerciales .lideres-texto p {
    font-size: 1.4rem;
    margin-top: 0.8rem;
    max-width: 700px;
    line-height: 1.6;
  }
}

/* Misión y Visión Section responsive Movile */
@media screen and (max-width: 667px) {
  .mision-vision .container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
  }

  .mision-vision .texto-mv {
    width: 90%;
    height: auto;
    margin: 0 auto;
  }

  #separador-mv-tablet {
    width: 90%;
    display: block;
    margin: 0 auto;
  }

  #separador-mv-desktop {
    display: none;
  }
}

/* Misión y Visión Section responsive Tablet */
@media (min-width: 768px) and (max-width: 990px) {
  .mision-vision .container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
  }

  .mision-vision .texto-mv {
    flex: 2 1 300px;
  }

  .mision-vision .bloque {
    width: 80%;
    height: auto;
    margin: 0 auto;
    margin-bottom: 2rem;
  }

  #separador-mv-tablet {
    display: block;
  }

  #separador-mv-desktop {
    display: none;
  }

  .mision-vision .separador {
    height: 1px;
    background-color: #000;
    margin: 2rem 0;
    width: 80%;
    margin: 0 auto;
  }
}

/* Valores Section responsive Movile */
@media screen and (max-width: 667px) {
  .valores-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dorado);
    text-align: center;
  }

  .valores-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: center;
  }

  .valores-list li {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 3px solid rgba(255, 255, 255);
    padding-bottom: 1rem;
  }
}

/* Valores Section responsive Tablet */
@media (min-width: 768px) and (max-width: 990px) {
  .valores-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 90%;
    margin: 0 auto;
  }
}

/* ========= Sección de animaciones ============= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 1s ease-out forwards 1s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cta-button {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards 1.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Animaciones para las secciones */
.pre-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Retrasos escalonados para los elementos de lista */
.beneficios-list li {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease-out;
}

.beneficios-list li:nth-child(1) {
  transition-delay: 0.2s;
}

.beneficios-list li:nth-child(2) {
  transition-delay: 0.4s;
}

.beneficios-list li:nth-child(3) {
  transition-delay: 0.6s;
}

.beneficios-list li:nth-child(4) {
  transition-delay: 0.8s;
}

.beneficios-list li:nth-child(5) {
  transition-delay: 1s;
}

.animate-in .beneficios-list li {
  opacity: 1;
  transform: translateX(0);
}

/* Animación para la imagen de licenciatura */
.licenciatura-img {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.8s ease-out;
}

.animate-in .licenciatura-img {
  opacity: 1;
  transform: translateX(0);
}

/* Animación para el título de licenciatura */
.licenciatura .title {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.animate-in .title {
  opacity: 1;
  transform: translateY(0);
}

/* Animación escalonada para los valores */
.valores-list li {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease-out;
}

.valores-list li:nth-child(1) {
  transition-delay: 0.2s;
}

.valores-list li:nth-child(2) {
  transition-delay: 0.4s;
}

.valores-list li:nth-child(3) {
  transition-delay: 0.6s;
}

.valores-list li:nth-child(4) {
  transition-delay: 0.8s;
}

.valores-list li:nth-child(5) {
  transition-delay: 1s;
}

.valores-list li:nth-child(6) {
  transition-delay: 1.2s;
}

.animate-in .valores-list li {
  opacity: 1;
  transform: translateX(0);
}

.cta-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.cta-button::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
  background-color: rgba(255, 255, 255, 0.1);
}

.cta-button:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

.video-box {
  width: 100%;
  height: 100%;
}

.bloque {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.bloque.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.bloque.animate-in:nth-of-type(1) {
  transition-delay: 0.2s;
}

.bloque.animate-in:nth-of-type(2) {
  transition-delay: 0.4s;
}

.logo-unired {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease-out;
}

.animate-in .logo-unired {
  opacity: 1;
  transform: scale(1);
}

footer {
  background-color: #273340;
  color: #fff;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

/* Contenedor principal centrado */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

/* Columnas */
.footer-left,
.footer-right {
  flex: 1 1 300px;
  max-width: 400px;
  margin: 0 auto;
}

/* Logo centrado */
.footer-logo {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Ítems de contacto */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: start;
  margin: 5px 0;
}

#location {
  text-align: left;
}

.icono {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/* Responsive para móviles */
@media screen and (max-width: 667px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  /* Columnas */
  .footer-left {
    flex: 1 1 0px;
  }

  .footer-right {
    flex: 1 1 0px;
    margin-left: 40px !important;
    margin: 0 auto;
  }
}

/* Contenedor principal */
section.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: #f5f5f5; /* opcional, para distinguir fondo */
}

/* Caja del formulario */
.form-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-box h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.form-box p {
  font-size: 13px;
  margin-bottom: 20px;
}

.form-box p a {
  color: #0073e6;
  text-decoration: none;
}

/* Agrupar inputs en fila */
.form-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; 
}

/* Inputs y selects */
.form-box input,
.form-box select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s;
}

.form-box input:focus,
.form-box select:focus {
  border-color: #0073e6;
}

/* Botón de enviar */
.form-box button {
  width: 100%;
  padding: 14px;
  background: #ccc;
  color: #fff;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.form-box button:hover {
  background: #0073e6;
}

/* Toast flotante */
#toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 260px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  display: none;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
#toast.success { background: #28a745; }
#toast.error   { background: #dc3545; }

/* Formularios internos */
form {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

/* Inputs, selects y botones */
input, select, button {
  padding: 12px;
  font-size: 16px;
}

/* Responsive móvil */
@media (max-width: 600px) {
  .form-group {
    flex-direction: column;
  }

  .form-box h2 {
    font-size: 16px;
  }

  .form-box p {
    font-size: 12px;
  }

  input, select, button {
    font-size: 14px;
    padding: 10px;
  }
}
