:root {
  --blue-950: #051c3b;
  --blue-900: #0a2f63;
  --blue-800: #0f4491;
  --blue-700: #1558c1;
  --blue-600: #1b6fe9;
  --blue-primary: #001D8E;
  --white: #ffffff;
  --muted: #cfe1ff;
  --gray-light: #f5f7fa;
  --gray-medium: #e1e8f0;
  --gray-dark: #4a5568;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 6px 18px rgba(2, 6, 23, 0.15);
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #333;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

nav {
  background-color: var(--blue-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-left img {
  height: 50px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--white);
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

.nav-center {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-center a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.3s ease;
  white-space: nowrap;
  font-size: 14px;
}

.nav-center a:hover,
.nav-center a.active {
  background-color: rgba(255, 255, 255, 0.25);
}

.nav-right {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav-right input {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  outline: none;
  font-size: 14px;
  width: 180px;
  transition: width 0.3s ease;
}

.nav-right input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.nav-right input:focus {
  width: 220px;
  background: rgba(255, 255, 255, 0.25);
}

.nav-right button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
  transition: transform 0.2s;
}

.nav-right button:hover {
  transform: scale(1.1);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
}

section {
  padding: 60px 20px;
  text-align: center;
}

.hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: 100px 20px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--white);
  color: var(--blue-primary);
}

.btn-primary:hover {
  background-color: var(--gray-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--blue-primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.features {
  background-color: var(--gray-light);
}

.features h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--blue-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--blue-primary);
}

.feature-card p {
  color: var(--gray-dark);
  line-height: 1.7;
}

.carreras-destacadas h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--blue-primary);
}

.carreras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.carrera-card {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.carrera-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.carrera-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.carrera-card p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.btn-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: background 0.3s ease;
}

.btn-link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cta {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: 80px 20px;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

footer {
  background-color: var(--blue-950);
  color: var(--white);
  padding: 50px 20px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--muted);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-section p {
  opacity: 0.8;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}