/* --- ESTILOS GENERALES Y COMPONENTES REUTILIZABLES --- */
.highlight-orange { color: #c24d0c; }
.highlight-blue { color: #06a6ff; }

.btn-primary {
  background: #06a6ff;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 999px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  border: none;
  cursor: pointer;
}

/* --- 1. SECCIÓN INICIO --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #f4f6f8;
  color: #1a1a1a;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  display: block;
}

.hero-container {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 24px 120px;
  box-sizing: border-box;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-title {
  margin: 0;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 700;
}

.hero-subtitle {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  color: #0074b8;
  font-weight: 600;
}

.hero-description {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #3b4450;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

/* --- 2. SECCIÓN PROGRAMAS --- */
.programs-section {
  background: #eef2f7;
}

.programs-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.programs-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}

.section-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}

.section-description {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: #3b4450;
}

.grid-cursos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  display: flex;
  flex-direction: column;
}

.card-media {
  position: relative;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  height: auto;
}

.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ff6e1d;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 6px;
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}

.card-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.card-tagline {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #c24d0c;
  font-weight: 600;
}

.card-details {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
  gap: 10px 16px;
  font-size: 15px;
  line-height: 1.5;
}

.card-details dt {
  font-weight: 700;
  color: #0074b8;
}

.card-details dd {
  margin: 0;
  color: #3b4450;
}

.card-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 13px 26px;
}

/* --- 3. FRANJA INSTITUCIONES --- */
.institutions-section {
  background: #ffffff;
}

.institutions-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px;
}

.institutions-banner {
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 24px;
  padding: 48px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-left: 6px solid #ff6e1d;
}

.institutions-text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.institutions-text h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.institutions-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #d6dde6;
}

/* --- 9. CONTACTO --- */
.contact-section {
  background: #1a1a1a;
  color: #ffffff;
  border-top: 4px solid #ff6e1d;
}

.contact-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 800px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.contact-info p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #d6dde6;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.btn-whatsapp {
  align-self: flex-start;
  background: #25d366;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-form {
  flex: 1 1 460px;
  min-width: 0;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.full-width {
  grid-column: 1 / -1;
}

.message-textarea {
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #3b4450;
  line-height: 1.4;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
}

.privacy-link {
  color: #0074b8;
}

.form-submit {
  justify-self: start;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 34px;
  cursor: pointer;
}

@media (min-width: 992px) {
  .contact-container {
    flex-wrap:nowrap
  }
}