/* ============================================
   METODOLOGÍA — CSS ESPECÍFICO
   Importa variables y base desde style.css
============================================ */

/* ─── HERO ─── */
#metod-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--ink);
  overflow: hidden;
}

.metod-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(184,151,46,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(184,151,46,0.06) 0%, transparent 60%);
  z-index: 0;
}

/* Patrón de fondo sutil */
#metod-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(184,151,46,0.04) 79px,
    rgba(184,151,46,0.04) 80px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 79px,
    rgba(184,151,46,0.04) 79px,
    rgba(184,151,46,0.04) 80px
  );
  z-index: 0;
}

.metod-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.metod-hero-content {
  max-width: 680px;
}

.metod-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.metod-hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.metod-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.metod-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sello decorativo */
.metod-hero-aside {
  display: flex;
  align-items: center;
  justify-content: center;
}

.metod-seal {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184,151,46,0.25);
  animation: sealPulse 4s ease-in-out infinite;
}

.seal-ring-1 {
  width: 180px;
  height: 180px;
  animation-delay: 0s;
}

.seal-ring-2 {
  width: 145px;
  height: 145px;
  border-style: dashed;
  border-color: rgba(184,151,46,0.15);
  animation-delay: 2s;
  animation-direction: reverse;
}

@keyframes sealPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.03); }
}

.seal-inner {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(184,151,46,0.08);
  border: 1px solid rgba(184,151,46,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  z-index: 1;
}

.seal-inner svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.seal-inner span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.4;
}

/* Scroll indicator */
.metod-hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.metod-hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(184,151,46,0.5), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ─── SECTION TITLES (metodología-specific) ─── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 540px;
}

/* ─── PRINCIPIOS ─── */
#principios {
  background: var(--white);
}

.section-header-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

.section-header-left .section-title {
  margin-bottom: 0;
}

.principios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border-cream);
  border: 1px solid var(--border-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.principio-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background var(--transition);
}

.principio-card:hover {
  background: var(--cream);
}

.principio-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted-light);
  margin-bottom: 1.5rem;
}

.principio-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.principio-icon svg {
  width: 40px;
  height: 40px;
}

.principio-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.9rem;
  line-height: 1.35;
}

.principio-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── FASES / TIMELINE ─── */
#fases {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

.fases-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 50%, rgba(184,151,46,0.06) 0%, transparent 60%);
  z-index: 0;
}

.fases-header {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 5rem;
}

.fases-header .section-subtitle {
  margin: 0 auto;
}

.timeline {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 0;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.25rem;
}

.tm-step {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.timeline-item:hover .tm-step {
  background: var(--gold);
  color: var(--white);
}

.tm-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(184,151,46,0.15) 100%);
  margin-top: 0.5rem;
  min-height: 60px;
}

.timeline-content {
  padding: 0.25rem 0 3.5rem;
}

.tl-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.9rem;
  line-height: 1.25;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 1.25rem;
}

.tl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tl-pills span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  background: var(--cream-mid);
  border: 1px solid var(--border-cream);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* ─── GARANTÍAS ─── */
#garantias {
  background: var(--white);
  padding: 6rem 0;
}

.garantias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-cream);
}

.garantia-block {
  padding: 4rem 3.5rem;
  background: var(--cream);
}

.garantia-block--dark {
  background: var(--ink-soft);
}

.garantia-block--dark .section-title {
  color: var(--white);
}

.garantia-block--dark .deco-line {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.garantia-block--dark p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.garantia-block p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.metod-btn {
  margin-top: 2rem;
}

.gb-header {
  margin-bottom: 0;
}

.garantia-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.g-stat {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: baseline;
  gap: 1.5rem;
}

.g-stat strong {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
}

.g-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

/* Tag variante light (sobre fondo oscuro) */
.tag--light {
  color: var(--gold-light);
  border-color: rgba(184,151,46,0.3);
}

.tag--light::before {
  background: var(--gold-light);
}

/* ─── FAQs ─── */
#faqs {
  background: var(--cream);
}

.faqs-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

.faqs-left {
  position: sticky;
  top: 120px;
}

.faqs-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-cream);
  cursor: pointer;
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-cream);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0;
}

.faq-question h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-item:hover .faq-question h3,
.faq-item.open .faq-question h3 {
  color: var(--gold);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted-light);
  transition: transform var(--transition), color var(--transition);
}

.faq-chevron svg {
  width: 20px;
  height: 20px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  padding-bottom: 1.75rem;
}

/* ─── CTA FINAL ─── */
#metod-cta {
  background: var(--ink);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

#metod-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(184,151,46,0.1) 0%, transparent 70%);
}

.metod-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.metod-cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 1.25rem 0;
}

.metod-cta-inner p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.metod-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .principios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .garantias-grid {
    grid-template-columns: 1fr;
  }

  .garantia-block {
    padding: 3rem 2.5rem;
  }
}

@media (max-width: 900px) {
  .metod-hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .metod-hero-aside {
    display: none;
  }

  .section-header-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faqs-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .faqs-left {
    position: static;
  }
}

@media (max-width: 768px) {
  .principios-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .principio-card {
    padding: 2rem 1.5rem;
  }

  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 1.25rem;
  }

  .timeline-content h3 {
    font-size: 1.15rem;
  }

  .metod-hero-title {
    font-size: 2.1rem;
  }

  .metod-cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .metod-cta-btns .btn {
    width: 100%;
    max-width: 320px;
  }

  .garantia-block {
    padding: 2.5rem 1.75rem;
  }

  .g-stat {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}