/* ============================================================
   MÉTODO — Diseño de Claude Design (Metodo.dc.html)
   ============================================================ */

@keyframes mtDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes mtPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }

.mt { background: var(--ec-white); color: var(--ec-ink); }

/* ---------- Hero ---------- */
.mt-hero { position: relative; overflow: hidden; background: var(--ec-navy); color: var(--ec-white); }
.mt-hero__blob-a {
  position: absolute; right: -20%; top: -55%; width: 80%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(28,128,189,.5), rgba(28,128,189,0));
  animation: ecDriftA 24s ease-in-out infinite; pointer-events: none;
}
.mt-hero__blob-b {
  position: absolute; left: -25%; bottom: -70%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(113,163,205,.22), rgba(113,163,205,0));
  animation: ecDriftB 30s ease-in-out infinite; pointer-events: none;
}
.mt-hero__inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: calc(80px + clamp(48px, 9vh, 120px)) var(--gutter) clamp(64px, 10vh, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center;
}
.mt-hero__eyebrow { color: var(--ec-blue-soft); animation: ecRise .7s var(--ease-out) both; }
.mt-hero__title {
  margin-top: 18px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(44px, 6.4vw, 96px); line-height: 1; letter-spacing: -.03em; color: var(--ec-white);
}
.mt-hero__title span { display: block; animation: ecRise .8s var(--ease-out) .1s both; }
.mt-hero__title .mt-hero__title2 { color: var(--ec-blue-soft); animation-delay: .22s; }
.mt-hero__lead {
  margin-top: 32px; max-width: 540px;
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ec-on-navy-dim); text-wrap: pretty;
  animation: ecRise .8s var(--ease-out) .32s both;
}
/* El dibujo del recorrido, solo en pantallas anchas */
.mt-hero__svg { display: none; width: 100%; height: auto; overflow: visible; }
@media (min-width: 960px) {
  .mt-hero__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .mt-hero__svg { display: block; }
}
.mt-linea {
  fill: none; stroke: var(--ec-blue-soft); stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: mtDraw 1.8s var(--ease) .4s forwards;
}
.mt-flecha { fill: var(--ec-blue-soft); opacity: 0; animation: ecRise .4s ease 2.1s forwards; }
.mt-nodo { transform-box: fill-box; transform-origin: center; animation: mtPop .5s var(--ease-out) var(--d) both; }
.mt-nodo circle { fill: var(--ec-navy); stroke: var(--ec-white); stroke-width: 4px; }
.mt-nodo--azul circle { fill: var(--ec-blue); }
.mt-svg-label {
  fill: var(--ec-on-navy-dim); font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 3px;
  text-anchor: middle; opacity: 0; animation: ecRise .5s ease var(--d) forwards;
}
.mt-svg-label--blanco { fill: var(--ec-white); }

/* ---------- Secciones ---------- */
.mt-sec { padding: clamp(72px, 10vw, 120px) 0; }
.mt-sec--white { background: var(--ec-white); }
.mt-sec--blue { background: var(--ec-blue); color: var(--ec-white); }
.mt-sec--soft { background: var(--ec-card); }
.mt-eyebrow--white { color: var(--ec-white); }
.mt-h2 {
  margin-top: 16px; max-width: 820px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  color: var(--ec-navy); text-wrap: balance;
}
.mt-h2--on-dark { color: var(--ec-white); }
.mt-lead { margin-top: 16px; max-width: 600px; font-size: 18px; line-height: 1.55; }

.mt-link {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px;
  font-size: 15px; font-weight: 600; color: var(--ec-navy); border-bottom: 1px solid var(--ec-navy);
  transition: gap .25s var(--ease-out);
}
.mt-link:hover { gap: 14px; color: var(--ec-navy); }

/* Las tres partes */
.mt-partes {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start;
}
.mt-tabs { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; }
.mt-tabs button {
  flex: none; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--ec-border); border-radius: 8px;
  background: transparent; cursor: pointer; text-align: left;
  transition: background .25s, border-color .25s;
}
.mt-tabs button[aria-selected="true"] { background: var(--ec-white); border-color: var(--ec-blue); }
.mt-tabs button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(28,128,189,.35); }
.mt-tab__n {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-weight: 700; font-size: 14px;
  background: var(--ec-card); color: var(--ec-blue); transition: background .25s, color .25s;
}
.mt-tabs button[aria-selected="true"] .mt-tab__n { background: var(--ec-blue); color: var(--ec-white); }
.mt-tab__verbo { display: block; font-family: var(--fh); font-weight: 700; font-size: 20px; color: var(--ec-navy); }
.mt-tab__con { display: block; margin-top: 2px; font-size: 13px; color: var(--ec-muted); }
@media (min-width: 960px) {
  .mt-partes { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .mt-tabs { flex-direction: column; overflow: visible; }
}

.mt-panel { background: var(--ec-card); border-radius: 12px; padding: clamp(28px, 3.4vw, 48px); min-height: 320px; }
.mt-panel__in.is-entrando { animation: ecRise .45s var(--ease-out) both; }
.mt-panel__texto {
  margin-top: 14px; max-width: 620px;
  font-family: var(--fh); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25;
  color: var(--ec-navy); text-wrap: pretty;
}
.mt-panel__items { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.mt-panel__items li { display: flex; gap: 12px; align-items: center; font-size: 16px; line-height: 1.5; }
.mt-panel__items li::before { content: ''; flex: none; width: 14px; height: 3px; background: var(--ec-blue); }

/* 10/80/10 */
.mt-barras { margin-top: clamp(40px, 5vw, 64px); display: flex; gap: 6px; height: 64px; }
.mt-barra { border-radius: 8px; transform-origin: left; transform: scaleX(0); }
.mt-barra--10 { flex: 0 0 calc(10% - 4px); background: var(--ec-white); transition: transform .8s var(--ease) .1s; }
.mt-barra--80 { flex: 1; background: rgba(255,255,255,.32); transition: transform 1.1s var(--ease) .4s; }
.mt-barra--10b { flex: 0 0 calc(10% - 4px); background: var(--ec-navy); transition: transform .8s var(--ease) 1.2s; }
.mt-barras.is-visible .mt-barra { transform: scaleX(1); }
.mt-diez { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.mt-diez__n { font-family: var(--fh); font-weight: 700; font-size: clamp(40px, 4vw, 56px); line-height: 1; }
.mt-diez h3 { margin-top: 14px; font-family: var(--fh); font-weight: 700; font-size: 20px; color: var(--ec-white); }
.mt-diez p { margin-top: 8px; max-width: 320px; font-size: 16px; line-height: 1.55; }

/* Enoturismo 2.0 */
.mt-eno {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 5vw, 80px); align-items: center;
}
.mt-eno__viz { display: flex; justify-content: center; }
.mt-eno__viz svg { display: block; width: 100%; max-width: 420px; height: auto; overflow: visible; }
.mt-eno__pista { fill: none; stroke: var(--ec-border); stroke-width: 2px; }
.mt-eno__arco {
  fill: none; stroke: var(--ec-blue); stroke-width: 4px; stroke-linecap: round; stroke-dasharray: 1 2;
  transform-box: view-box; transform-origin: 180px 180px; transform: rotate(-90deg);
  transition: transform .9s var(--ease);
}
.mt-eno__nodo { fill: var(--ec-white); stroke: var(--ec-blue); stroke-width: 3px; transition: fill .4s; }
.mt-eno__nodo.is-on { fill: var(--ec-blue); }
.mt-eno__num { fill: var(--ec-blue); font-family: var(--font-body); font-size: 16px; font-weight: 700; text-anchor: middle; transition: fill .4s; }
.mt-eno__num.is-on { fill: var(--ec-white); }
.mt-eno__centro { fill: var(--ec-navy); font-family: var(--font-body); font-size: 15px; font-weight: 700; text-anchor: middle; }
.mt-eno__lead { margin-top: 16px; max-width: 520px; font-size: 17px; line-height: 1.6; }
.mt-pilares { margin-top: 28px; display: flex; flex-direction: column; }
.mt-pilares button {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 18px 0; border: 0; border-top: 1px solid var(--ec-border); background: transparent;
  text-align: left; cursor: pointer; opacity: .55; transition: opacity .3s;
}
.mt-pilares button.is-on { opacity: 1; }
.mt-pilares button:focus-visible { outline: none; opacity: 1; }
.mt-pilar__n { font-family: var(--fh); font-weight: 700; font-size: 15px; color: var(--ec-blue); }
.mt-pilar__t { display: block; font-family: var(--fh); font-weight: 700; font-size: 19px; color: var(--ec-navy); }
.mt-pilar__x { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ec-muted); }
.mt-eno .mt-link { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .mt-hero__blob-a, .mt-hero__blob-b, .mt-hero__eyebrow, .mt-hero__title span, .mt-hero__lead,
  .mt-linea, .mt-flecha, .mt-nodo, .mt-svg-label, .mt-panel__in.is-entrando { animation: none; }
  .mt-linea { stroke-dashoffset: 0; }
  .mt-flecha, .mt-svg-label { opacity: 1; }
  .mt-barra, .mt-eno__arco { transition: none; }
  .mt-barra { transform: scaleX(1); }
}
