/* =========================================================
   ITAGRA · FITOSANITARIOS
   Base visual de la web. Sin frameworks ni dependencias.
   ========================================================= */

:root {
  /* Verde principal más vivo, alineado visualmente con ITAGRA Formación. */
  --green-950: #173c16;
  --green-900: #23591c;
  --green-800: #307523;
  --green-700: #3f922d;
  --green-600: #59b43a;
  --green-500: #73c652;
  --green-100: #e2f3dc;
  --green-50: #f3faef;

  --lime: #b8db55;
  --cream: #f7f4eb;
  --sand: #eee7d7;
  --white: #ffffff;
  --ink: #17231d;
  --muted: #617069;
  --border: #dce4df;
  --border-dark: rgba(255,255,255,.14);

  --shadow-sm: 0 10px 30px rgba(21, 56, 40, .08);
  --shadow-md: 0 24px 60px rgba(17, 57, 39, .14);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;

  --container: 1180px;
  --header-h: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

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

.section-heading h2,
.finder-intro h2,
.why-copy h2,
.faq-intro h2,
.contact-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.section-heading p,
.finder-intro > p,
.why-lead,
.faq-intro > p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.eyebrow.light {
  color: #d7ebdf;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--green-700);
  box-shadow: 0 12px 28px rgba(31, 101, 72, .22);
}

.btn-primary:hover {
  background: var(--green-800);
}

.btn-secondary {
  color: var(--green-900);
  background: transparent;
  border-color: #c9d7cf;
}

.btn-secondary:hover {
  background: var(--green-50);
  border-color: #aabeb2;
}

.btn-secondary-dark {
  color: var(--green-900);
  background: #fff;
  border-color: #ccd9d1;
}

.btn-light {
  background: #fff;
  color: var(--green-900);
}

.btn-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-weight: 750;
}

.text-link span {
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(19, 72, 49, .08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 190px;
  object-fit: contain;
}

.brand-logo-footer {
  filter: brightness(0) invert(1);
  opacity: .96;
}

.brand-visible-name {
  display: flex;
  flex-direction: column;
  color: var(--green-900);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: .95;
  letter-spacing: .035em;
}

.brand-visible-name small {
  margin-top: 5px;
  color: var(--green-600);
  font-size: .56rem;
  letter-spacing: .16em;
}

.brand-visible-name-footer {
  color: #fff;
}

.brand-visible-name-footer small {
  color: #b9dfaa;
}

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

.main-nav > a {
  color: #33463c;
  font-size: .94rem;
  font-weight: 650;
}

.main-nav > a:hover {
  color: var(--green-700);
}

.main-nav .nav-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--green-700);
  border-radius: 999px;
}

.main-nav .nav-cta:hover {
  color: #fff;
  background: var(--green-800);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  width: 23px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--green-900);
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 0;
  background:
    linear-gradient(110deg, #f9faf7 0%, #f4f7f2 47%, #edf5ef 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 165px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55));
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-glow-a {
  width: 420px;
  height: 420px;
  top: -170px;
  right: 7%;
  background: radial-gradient(circle, rgba(185,217,108,.25), rgba(185,217,108,0));
}

.hero-glow-b {
  width: 360px;
  height: 360px;
  left: -160px;
  bottom: 0;
  background: radial-gradient(circle, rgba(44,122,88,.12), rgba(44,122,88,0));
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 76px;
}

.hero h1 {
  max-width: 720px;
  margin: 16px 0 22px;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 span {
  color: var(--green-600);
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #506057;
  font-size: clamp(1.06rem, 1.4vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 31px;
  color: #405047;
  font-size: .9rem;
  font-weight: 650;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.check {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 50%;
  font-size: .72rem;
  font-style: normal;
}

.hero-visual {
  position: relative;
  min-height: 530px;
  align-self: end;
  display: flex;
  align-items: flex-end;
}

.hero-visual > img {
  position: relative;
  z-index: 1;
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(19, 72, 49, .1);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  color: var(--green-900);
  font-size: .9rem;
}

.floating-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .73rem;
}

.floating-card-top {
  top: 85px;
  right: 0;
}

.floating-card-bottom {
  left: 0;
  bottom: 72px;
}

.floating-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-700);
  border-radius: 50%;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(185,217,108,.25);
}

.trust-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid rgba(14, 76, 50, .1);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 -10px 50px rgba(29, 75, 53, .05);
}

.trust-strip > div {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 28px;
  border-right: 1px solid var(--border);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip strong {
  color: var(--green-900);
  font-size: .98rem;
}

.trust-strip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
}

/* Course cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.course-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.course-card:hover {
  transform: translateY(-7px);
  border-color: #bcd0c4;
  box-shadow: var(--shadow-md);
}

.course-card.featured {
  background: linear-gradient(150deg, #f3f8f4, #fff);
}

.course-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #d4ddd8;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.06em;
}

.course-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: var(--green-700);
  background: var(--green-50);
  border-radius: 16px;
}

.course-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-kicker {
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.course-card h3 {
  margin: 7px 0 12px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.course-meta {
  display: grid;
  gap: 5px;
  margin: 22px 0 25px;
  color: #425248;
  font-size: .82rem;
  font-weight: 650;
}

.course-meta span::before {
  content: "•";
  margin-right: 8px;
  color: var(--green-500);
}

.course-card .text-link {
  margin-top: auto;
  font-size: .9rem;
}

/* Finder */
.finder-section {
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(185,217,108,.12), transparent 26%),
    linear-gradient(135deg, var(--green-950), var(--green-800));
}

.finder-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.finder-intro > p {
  color: #cbd9d1;
}

.finder-note {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-sm);
}

.finder-note > span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(185,217,108,.15);
  color: var(--lime);
  font-weight: 800;
}

.finder-note p {
  margin: 0;
  color: #d7e2dc;
  font-size: .88rem;
}

.finder-card {
  min-height: 425px;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0,0,0,.18);
}

.finder-progress {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .78rem;
}

.progress-track {
  height: 5px;
  margin-top: 9px;
  overflow: hidden;
  background: #e9efeb;
  border-radius: 999px;
}

.progress-bar {
  width: 50%;
  height: 100%;
  background: var(--green-600);
  border-radius: inherit;
  transition: width .25s ease;
}

.finder-panel {
  display: none;
}

.finder-panel.is-active {
  display: block;
}

.finder-panel h3,
.finder-result h3 {
  margin: 0 0 20px;
  font-size: 1.52rem;
  line-height: 1.2;
}

.finder-options {
  display: grid;
  gap: 10px;
}

.finder-option {
  width: 100%;
  display: block;
  padding: 17px 18px;
  text-align: left;
  background: #fafcfb;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.finder-option:hover {
  transform: translateY(-1px);
  background: var(--green-50);
  border-color: #b7cbbf;
}

.finder-option strong,
.finder-option span {
  display: block;
}

.finder-option strong {
  font-size: .94rem;
}

.finder-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .8rem;
}

.finder-back,
.finder-reset {
  padding: 0;
  border: 0;
  color: var(--green-700);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.finder-back {
  margin-bottom: 17px;
  font-size: .82rem;
}

.finder-result {
  display: none;
}

.finder-result.is-active {
  display: block;
  padding: 18px 4px 0;
}

.result-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.finder-result p {
  margin: -6px 0 24px;
  color: var(--muted);
}

.finder-reset {
  display: block;
  margin-top: 16px;
  font-size: .8rem;
}

/* Convocatorias sincronizadas */
.courses-sync-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -22px 0 22px;
  color: #6b796f;
  font-size: .78rem;
}

.sync-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--green-600);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--green-100);
}

.events-loading {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: #fafcf9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .88rem;
}

.events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.events-empty p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.events-empty .btn {
  margin-top: 6px;
}

.loader {
  width: 20px;
  height: 20px;
  border: 2px solid var(--green-100);
  border-top-color: var(--green-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.events-source-warning {
  padding: 13px 16px;
  color: #6b765e;
  background: #fbfaf3;
  border: 1px solid #ebe5c9;
  border-radius: 12px;
  font-size: .76rem;
}

/* Events */
.heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.heading-row h2 {
  margin-bottom: 0;
}

.desktop-link {
  margin-bottom: 7px;
  font-size: .86rem;
}

.mobile-link {
  display: none;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  grid-template-columns: 110px 1fr 205px;
  gap: 28px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow .2s ease, transform .2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.event-date {
  width: 90px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green-900);
  background: var(--green-50);
  border-radius: 16px;
}

.event-date strong {
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.event-date span {
  margin-top: 3px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.event-date small {
  margin-top: 1px;
  color: var(--muted);
  font-size: .67rem;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  color: #58665f;
  background: #f1f4f2;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 750;
}

.tag-green {
  color: var(--green-800);
  background: #dfefe5;
}

.event-content h3 {
  margin: 0 0 5px;
  font-size: 1.28rem;
}

.event-content > p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  color: #47564e;
  font-size: .78rem;
  font-weight: 600;
}

.event-details li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-details li span {
  color: var(--green-600);
}

.event-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
}

.event-range {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

.event-action .btn {
  width: 100%;
  min-height: 45px;
  font-size: .86rem;
}

.event-empty {
  background: #fafbf9;
}

.muted-date {
  color: #75837b;
  background: #f0f2ef;
}

.muted-date strong {
  font-size: 2.6rem;
}

/* Process */
.process-section {
  background: var(--cream);
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 41px;
  left: 16.5%;
  right: 16.5%;
  border-top: 1px dashed #b8c6bd;
}

.process-item {
  position: relative;
  z-index: 2;
  text-align: center;
}

.process-number {
  position: absolute;
  top: -8px;
  left: calc(50% + 28px);
  color: #96a79d;
  font-size: .72rem;
  font-weight: 800;
}

.process-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto 23px;
  color: var(--green-700);
  background: #fff;
  border: 1px solid #d4ded8;
  border-radius: 50%;
}

.process-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-item h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.process-item p {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
  font-size: .88rem;
}

/* FAQ */
.faq-section {
  background: #fbfcfa;
}

.faq-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 75px;
}

.faq-intro {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 30px);
}

.faq-intro .btn {
  margin-top: 26px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.faq-question {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 750;
}

.faq-question i {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  color: var(--green-700);
  background: var(--green-50);
  border-radius: 50%;
  font-size: 1.15rem;
  font-style: normal;
  transition: transform .2s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.faq-item.is-open .faq-question i {
  transform: rotate(45deg);
}

.faq-item.is-open .faq-answer {
  max-height: 250px;
}

/* Contact */
.contact-section {
  color: #fff;
  background: var(--green-700);
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-copy > p {
  color: rgba(255,255,255,.88);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-details a {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-details a > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: rgba(255,255,255,.14);
  border-radius: 50%;
}

.contact-details small,
.contact-details strong {
  display: block;
}

.contact-details small {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
}

.contact-details strong {
  margin-top: 1px;
  font-size: .92rem;
}

.lead-form {
  padding: 30px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius-md);
}

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

.lead-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.lead-form label > span {
  color: #33443a;
  font-size: .78rem;
  font-weight: 750;
}

.lead-form label > span small {
  color: #849189;
  font-weight: 500;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid #d5dfd9;
  border-radius: 11px;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(44,122,88,.11);
}

.lead-form textarea {
  resize: vertical;
}

.privacy-check {
  grid-template-columns: 18px 1fr !important;
  align-items: start;
  gap: 10px !important;
  cursor: pointer;
}

.privacy-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--green-700);
}

.privacy-check span {
  font-weight: 500 !important;
}

.form-help {
  margin: 10px 0 0;
  color: #7d8a83;
  font-size: .72rem;
  text-align: center;
}

.form-success {
  display: none;
  margin-top: 17px;
  padding: 14px 15px;
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid #cde1d4;
  border-radius: 11px;
  font-size: .82rem;
}

.form-success.is-visible {
  display: grid;
  gap: 2px;
}

/* Footer */
.site-footer {
  padding: 70px 0 25px;
  color: #c8d3cd;
  background: #0a2118;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 55px;
}

.brand-footer .brand-mark svg {
  fill: #7fb294;
}

.brand-footer .brand-copy strong {
  color: #fff;
}

.brand-footer .brand-copy small {
  color: #9eb0a6;
}

.footer-brand p {
  max-width: 310px;
  margin: 18px 0 0;
  color: #91a49a;
  font-size: .83rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .82rem;
}

.footer-col strong {
  margin-bottom: 5px;
  color: #fff;
}

.footer-col a,
.footer-col span {
  color: #98aaa0;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  padding-top: 22px;
  color: #71857a;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .72rem;
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-brand .footer-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
  }

  .main-nav > a {
    font-size: .87rem;
  }

  .hero-grid {
    gap: 24px;
  }

  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .finder-grid,
  .contact-grid {
    gap: 45px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .section {
    padding: 82px 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .main-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .main-nav > a {
    padding: 11px 4px;
  }

  .main-nav .nav-cta {
    justify-content: center;
    margin-top: 4px;
  }

  .menu-toggle.is-open > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

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

  .menu-toggle.is-open > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-top: 55px;
  }

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

  .hero-copy {
    padding-bottom: 20px;
  }

  .hero-visual {
    min-height: 420px;
    max-width: 620px;
    margin: 0 auto;
  }

  .hero-visual > img {
    max-height: 420px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip > div:nth-child(2) {
    border-right: 0;
  }

  .trust-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .finder-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    position: static;
  }

  .event-card {
    grid-template-columns: 90px 1fr;
  }

  .event-action {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }

  .event-range {
    min-width: 120px;
    text-align: left;
  }

  .footer-logo {
    max-width: 180px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 34px;
    text-align: left;
  }

  .section-heading h2,
  .finder-intro h2,
  .why-copy h2,
  .faq-intro h2,
  .contact-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  .brand-logo {
    height: 42px;
    max-width: 165px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    display: grid;
    gap: 10px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual > img {
    max-height: 340px;
  }

  .floating-card {
    padding: 11px 12px;
  }

  .floating-card-top {
    top: 40px;
  }

  .floating-card-bottom {
    bottom: 35px;
  }

  .floating-card small {
    display: none;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip > div {
    padding: 15px;
  }

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

  .finder-card {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .heading-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .desktop-link {
    display: inline-flex;
    margin-bottom: 0;
  }

  .mobile-link {
    display: inline-flex;
    margin-top: 24px;
  }

  .event-card {
    grid-template-columns: 72px 1fr;
    gap: 15px;
    padding: 17px;
  }

  .event-date {
    width: 66px;
    height: 82px;
  }

  .event-date strong {
    font-size: 1.75rem;
  }

  .event-content h3 {
    font-size: 1.1rem;
  }

  .event-details {
    display: grid;
  }

  .event-action {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }

  .event-range {
    text-align: left;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .process-grid::before {
    display: none;
  }

  .lead-form {
    padding: 20px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand .footer-logo {
    width: 170px;
  }

  .footer-bottom {
    flex-direction: column;
  }

}

@media (max-width: 430px) {
  .floating-card {
    max-width: 70%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand .footer-logo {
    width: 160px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.faq-contact-link { margin-top: 24px; }

/* =========================================================
   DISTRIBUCIÓN DE LAS 4 TARJETAS
   ========================================================= */

@media (max-width: 980px) {

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-grid > .course-card,
  .course-grid > .course-card:nth-child(4),
  .course-grid > .course-card:nth-child(5) {
    grid-column: auto;
  }

}

@media (max-width: 640px) {

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

}

#basic-course-slot .basic-course-card + .basic-course-card,
#level-course-slot .basic-course-card + .basic-course-card {
  margin-top: 20px;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 18px;
  background: rgba(10, 33, 24, .98);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .15);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  width: min(calc(100% - 20px), 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-banner-copy {
  max-width: 780px;
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: .95rem;
}

.cookie-banner-copy p {
  margin: 0;
  color: #c8d3cd;
  font-size: .82rem;
  line-height: 1.55;
}

.cookie-banner-copy a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.cookie-banner-actions .btn {
  min-width: 110px;
}

.cookie-reject {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
}

.cookie-reject:hover {
  border-color: #fff;
}

@media (max-width: 680px) {
  .cookie-banner {
    padding: 16px 10px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}