:root {
  --verde-profundo: #3C746B;
  --beige-oscuro: #CBB88A;
  --beige-piel: #E9DFC9;
  --blanco: #FFFFFF;
  --gris-suave: #F5F2EA;
  --gris-claro: #F8F9FA;
  --gris-borde: #E9ECEF;
  --sombra: 0 2px 0 rgba(0,0,0,0.06);
  --sombra-flotante: 0 4px 0 rgba(0,0,0,0.08);
  --sombra-suave: 0 1px 0 rgba(0,0,0,0.04);
  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'IBM Plex Sans', 'Inter', sans-serif;
  --font-ui: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: #FEFCF5;
  color: #1E2A24;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Global border-radius reset ───────────────────────────── */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

.section {
  display: none;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section.active-section {
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--verde-profundo);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--beige-oscuro);
}

.card {
  background: white;
  padding: 1.5rem;
  border: 1px solid var(--gris-borde);
  border-left: 4px solid var(--verde-profundo);
  transition: border-color 0.2s;
  box-shadow: none;
}

.card:hover {
  border-left-color: var(--beige-oscuro);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.8rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }

.section-visual {
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(60, 116, 107, 0.15);
  box-shadow: none;
}

.section-visual img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* ── Timeline ─────────────────────────────────────────────── */
.timeline {
  display: flex;
  overflow-x: auto;
  padding: 3rem 1rem 2rem 1rem;
  gap: 2rem;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: var(--beige-oscuro) transparent;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--verde-profundo);
  opacity: 0.25;
}

.timeline-item {
  position: relative;
  flex: 0 0 280px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: none;
  border: 1px solid var(--gris-borde);
  border-top: 3px solid transparent;
  transition: border-color 0.3s ease;
  font-size: 0.95rem;
  color: var(--texto-principal);
  line-height: 1.5;
  text-align: left;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: -1.85rem;
  left: 1rem;
  width: 12px;
  height: 12px;
  background-color: white;
  border: 2px solid var(--verde-profundo);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  border-top: 3px solid var(--verde-profundo);
}

.timeline-item:hover::before {
  background-color: var(--verde-profundo);
}

.timeline-date {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--beige-oscuro);
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.timeline::-webkit-scrollbar {
  height: 4px;
}
.timeline::-webkit-scrollbar-thumb {
  background: var(--verde-profundo);
}

/* ── Headings global ──────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
}

/* ── Auxiliary text (labels, badges) ──────────────────────── */
.label-caps {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-ui);
}

/* ── Divider lines ────────────────────────────────────────── */
hr,
.divider {
  border: none;
  height: 1px;
  background: var(--verde-profundo);
  opacity: 0.12;
  margin: 1.5rem 0;
}





/* ========== WIZARD – TRÁMITES ========== */
.wizard-container {
  max-width: 1000px;
  margin: 2rem auto;
  background: #ffffff;
  padding: 2rem;
  border: 1px solid var(--gris-borde);
  box-shadow: var(--sombra);
}

.wizard-step {
  animation: wizardFadeIn 0.3s ease;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-step h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--verde-profundo);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard-option-btn {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #FAFAF7;
  border: 2px solid var(--gris-borde);
  padding: 1.2rem 1.8rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  width: 100%;
  font-family: var(--font-body);
}

.wizard-option-btn i {
  font-size: 2.2rem;
  width: 3rem;
  color: var(--verde-profundo);
}

.wizard-option-btn strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: #1f2f2c;
}

.wizard-option-btn span {
  font-size: 0.9rem;
  color: #556661;
}

.wizard-option-btn:hover {
  background: rgba(60, 116, 107, 0.06);
  border-color: var(--verde-profundo);
  transform: translateX(6px);
}

.wizard-back {
  background: none;
  border: none;
  color: #556661;
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.wizard-back:hover {
  color: var(--verde-profundo);
}

.result-card {
  background: #FAFAF7;
  padding: 2rem;
  border: 1px solid var(--gris-borde);
  box-shadow: var(--sombra);
}

.result-icon {
  font-size: 3rem;
  color: var(--verde-profundo);
  margin-bottom: 1rem;
}

.result-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #1f2f2c;
}

.result-downloads {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.result-details {
  background: rgba(60, 116, 107, 0.04);
  margin: 1rem 0;
  border: 1px solid var(--gris-borde);
}

.result-details summary {
  font-weight: bold;
  cursor: pointer;
  padding: 1rem;
  background: rgba(60, 116, 107, 0.08);
  font-size: 1rem;
  font-family: var(--font-body);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.result-details summary::-webkit-details-marker {
  display: none;
}

.result-details summary::before {
  content: "▶";
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.result-details[open] summary::before {
  transform: rotate(90deg);
}

.result-details .cert-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.result-contact {
  background: rgba(60, 116, 107, 0.08);
  padding: 1rem;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.result-contact a {
  color: var(--verde-profundo);
  font-weight: bold;
  text-decoration: none;
}

.result-contact a:hover {
  text-decoration: underline;
}

/* Panel colapsable de "Sobre certificaciones" */
.sobre-cert-collapsible {
  background: #FAFAF7;
  margin-bottom: 2rem;
  border: 1px solid var(--gris-borde);
}

.sobre-cert-header {
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--verde-profundo);
}

.sobre-cert-content {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--gris-borde);
}

.sobre-cert-content.show {
  display: block;
}

@media (max-width: 640px) {
  .wizard-container {
    padding: 1rem;
  }
  .wizard-option-btn {
    padding: 1rem;
  }
  .wizard-option-btn i {
    font-size: 1.8rem;
    width: 2.5rem;
  }
  .result-card {
    padding: 1.2rem;
  }
}