/* ==========================================================================
   MECIP:2015 — 6ta Edición · Landing de inscripción · TABACMAN E.A.S.
   ========================================================================== */

:root {
  --navy: #29235c;
  --navy-dark: #1a1640;
  --navy-soft: #3d3577;
  --salmon: #f1ae7d;
  --salmon-dark: #e08f56;
  --salmon-light: #fbe3d1;
  --bg: #faf9fc;
  --surface: #ffffff;
  --text: #241f3d;
  --text-muted: #605c78;
  --border: #e7e4f0;
  --success: #1f8a4c;
  --error: #c1382f;
  --radius: 16px;
  --shadow: 0 12px 30px -12px rgba(41, 35, 92, 0.25);
  --max-width: 1120px;
  --font: "Montserrat", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 72px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--salmon-dark);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

p {
  margin: 0 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--salmon);
  color: var(--navy-dark);
  box-shadow: 0 10px 24px -8px rgba(241, 174, 125, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(241, 174, 125, 0.85);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  width: 100%;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 252, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header img {
  height: 34px;
}

.header-cta {
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  background:
    linear-gradient(105deg, rgba(26, 22, 64, 0.94) 0%, rgba(26, 22, 64, 0.88) 35%, rgba(41, 35, 92, 0.75) 65%, rgba(41, 35, 92, 0.55) 100%),
    url("../img/hero-palacio-lopez.jpg");
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: linear-gradient(90deg, #d52b1e 0%, #d52b1e 33.33%, #fff 33.33%, #fff 66.66%, #0038a8 66.66%, #0038a8 100%);
}

.hero-credit {
  position: absolute;
  right: 20px;
  bottom: 14px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  z-index: 1;
}

.hero .eyebrow {
  color: var(--salmon-light);
}

.hero h1 {
  color: #fff;
}

.hero .lead {
  font-size: 1.15rem;
  color: #d9d6ec;
  max-width: 640px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: #c3bfe0;
}

/* ---- Context / value ---- */

.legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.legal-pills span {
  background: var(--salmon-light);
  color: var(--navy-dark);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.context-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.context-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.context-card h3 {
  font-size: 1.05rem;
}

/* ---- Modules / program ---- */

.bg-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.session-plates {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.session-plate {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 16px 32px;
  text-align: center;
  min-width: 200px;
  box-shadow: var(--shadow);
}

.session-plate-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--salmon-light);
  margin-bottom: 6px;
}

.session-plate strong {
  font-size: 1.15rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.module-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.module-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.module-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.methodology-note {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
}

.methodology-note strong {
  color: var(--navy);
}

/* ---- Schedule ---- */

.gantt-wrap {
  overflow-x: auto;
}

.gantt {
  min-width: 780px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.gantt-row {
  display: grid;
  grid-template-columns: 130px repeat(6, 1fr);
}

.gantt-row + .gantt-row {
  border-top: 1px solid var(--border);
}

.gantt-header {
  background: var(--navy);
}

.gantt-week-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  padding: 14px 6px;
}

.gantt-label {
  padding: 16px 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gantt-label span {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.gantt-cell {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px dashed var(--border);
}

.gantt-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
}

.gantt-bar em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.7rem;
  opacity: 0.9;
}

.bar-virtual {
  background: var(--navy);
}

.bar-presencial {
  background: var(--salmon-dark);
}

.gantt-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gantt-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot-legend {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-virtual {
  background: #e5e2f5;
  color: var(--navy);
}

.badge-presencial {
  background: var(--salmon);
  color: var(--navy-dark);
}

.schedule-note {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Instructors ---- */

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

.instructor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.instructor-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 22px;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--salmon-light);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}

.instructor-card h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.instructor-role {
  color: var(--salmon-dark);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.instructor-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---- Pricing ---- */

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}

.price-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-hero-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.price-hero-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
}

.price-hero-amount small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.group-discounts {
  margin-top: 16px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

.group-discounts-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.group-discount-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.group-discount-row strong {
  color: var(--navy);
}

.pricing-includes h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.includes {
  list-style: none;
  padding: 0;
}

.includes li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.includes li:last-child {
  border-bottom: none;
}

.includes li::before {
  content: "\2713";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--salmon-light);
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ---- Gallery / testimonial ---- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
}

blockquote.quote {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  padding: 0 20px;
}

blockquote.quote footer {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- Form ---- */

.form-section {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #fff;
}

.form-section .section-head h2,
.form-section .section-head p {
  color: #fff;
}

.form-section .section-head p {
  color: #d9d6ec;
}

.form-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--salmon);
  outline-offset: 1px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  flex: 1 1 160px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.radio-option:has(input:checked) {
  border-color: var(--salmon);
  background: var(--salmon-light);
}

.radio-option input {
  margin-top: 3px;
}

.radio-option strong {
  display: block;
  color: var(--navy);
}

.radio-option span.hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.field-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.field.invalid input,
.field.invalid select {
  border-color: var(--error);
}

.field.invalid .field-error {
  display: block;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #e5f6ec;
  color: var(--success);
}

.form-status.error {
  display: block;
  background: #fbe7e5;
  color: var(--error);
}

.privacy-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---- Footer ---- */

footer.site-footer {
  background: var(--navy-dark);
  color: #cfcbe6;
  padding: 48px 0 28px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-grid img {
  height: 36px;
  margin-bottom: 14px;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: #9a94bf;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .context-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .pricing-layout {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 52px 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 24px;
  }
}
