:root {
  --rojo: #aa3824;
  --rojo-oscuro: #90271a;
  --amarillo: #c9902b;
  --amarillo-hover: #a8741f;
  --texto: #0F172A;
  --gris: #334155;
  --gris-claro: #E5E7EB;
  --gris-medio: #D1D5DB;
  --blanco: #FFFFFF;
  --sombra-suave: 0 10px 30px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--texto);
  line-height: 1.6;
}

.detalle-carrera {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 2.5rem;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
}

.principal h1 {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
  animation: fadeInDown 0.6s ease;
}

/* Animación de entrada desde arriba */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-lateral {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--gris-medio);
}

.video-lateral h3 {
  color: var(--rojo);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}


.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 1rem;

}

/* Responsive */
@media (max-width: 960px) {
  .video-lateral {
    margin-top: 2rem;
  }
}

.resumen {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
  padding: 2.5rem;
  padding-bottom: 1.5rem;
  box-shadow: var(--sombra-suave);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.resumen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rojo), var(--amarillo));
  border-radius: 1.5rem 1.5rem 0 0;
}

.resumen:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

.resumen ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.resumen li {
  margin-bottom: 0.8rem;
  color: var(--gris);
  font-size: 1rem;
  padding-left: 1.5rem;
  position: relative;
  transition: all 0.2s ease;
}

.resumen li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--amarillo);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}


.resumen li:hover {
  color: var(--texto);
  transform: translateX(5px);
}

.resumen li:hover::before {
  transform: scale(1.3);
  color: var(--rojo);
}

.acciones {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
}

.boton-grupo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadeIn 0.6s ease backwards;
}

.boton-grupo:nth-child(1) {
  animation-delay: 0.1s;
}

.boton-grupo:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.boton-grupo span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gris);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-circular {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 1.8rem;
  color: var(--blanco);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-circular::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-circular:hover::before {
  width: 100px;
  height: 100px;
}

.btn-circular.rojo {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
}

.btn-circular.rojo:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 30px rgba(170, 56, 36, 0.4);
}

.btn-circular.costos {
  background: linear-gradient(135deg, var(--amarillo) 0%, var(--amarillo-hover) 100%);
  color: var(--blanco);
}

.btn-circular.costos:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(201, 144, 43, 0.4);
}

.btn.amarillo {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--amarillo) 0%, var(--amarillo-hover) 100%);
  color: var(--blanco);
  margin-bottom: 0;
  font-weight: 700;
  border-radius: 1.2rem 1.2rem 0 0;
  padding: 1rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(201, 144, 43, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-bottom: none;
}


.btn.amarillo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 144, 43, 0.4);
}

.btn-circular.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
}

.btn-circular.whatsapp:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}


.btn-circular.escritorio {
  background: linear-gradient(135deg, #2d32cf 0%, #060275 100%);
  color: #fff;
}

.btn-circular.escritorio:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 30px rgba(37, 135, 211, 0.4);
}

.menu-carreras h3 {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}


section {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


section h2 {
  color: var(--rojo);
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}


section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--rojo), var(--amarillo));
  border-radius: 2px;
}


section p {
  color: var(--gris);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}


.lateral {
  background: var(--blanco);
  border-radius: 1.5rem;
  padding: 0;
  box-shadow: var(--sombra-suave);
  height: fit-content;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeInRight 0.6s ease;

}


@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.lateral:hover {
  box-shadow: var(--sombra-hover);
}


.menu-carreras h3 {
  background: linear-gradient(135deg, var(--rojo) 40%, var(--amarillo) 100%);
  color: var(--blanco);
  padding: 1.2rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;

}

.menu-carreras ul {
  list-style: none;
  margin: 0;
  padding: 0rem 0;
}


.menu-carreras li {
  border-bottom: 1px solid var(--gris-medio);
  transition: all 0.2s ease;
}

.menu-carreras li:last-child {
  border-bottom: none;
}


.menu-carreras a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--gris);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}


.menu-carreras a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--rojo);
  transition: height 0.3s ease;
}


.menu-carreras a:hover {
  background: var(--gris-claro);
  color: var(--rojo);
  padding-left: 2rem;
}


.menu-carreras a:hover::before {
  height: 100%;
}


.menu-carreras a.active {
  background: linear-gradient(90deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  color: var(--blanco);
  font-weight: 700;
}


.menu-carreras a.active::before {
  display: none;
}

/* ================== RESPONSIVE ====================== */
@media (max-width: 960px) {
  .detalle-carrera {
    grid-template-columns: 1fr;
    margin-top: 6rem;
    padding: 0 1rem;
  }

  .principal h1 {
    font-size: 2rem;
  }

  .acciones {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .boton-grupo span {
    font-size: 0.7rem;
  }

  .btn-circular {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .resumen {
    padding: 1.5rem;
  }

  section h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
}

.volver {
  text-align: center;
  margin-top: 2rem;
}

.btn-volver {
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--gris-claro);
  padding: 0.6rem 1.4rem;
  border-radius: 0.6rem;
  transition: all 0.25s ease;
}

.btn-volver:hover {
  background: var(--rojo);
  color: var(--blanco);
  border-color: var(--rojo);
}

/* ================== FOOTER ===================== */
footer {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--blanco);
  font-size: 0.95rem;
  margin-top: 3rem;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}