/* =====================================================
   MÉTODO PYLARIS — CSS de página
   Archivo: assets/metodo-pylaris.css
   Se encola SOLO en esta plantilla (ver functions.php)
   ===================================================== */

/* ── Design tokens propios de esta página ─────────────
   Heredan las variables globales de landing.css pero
   definen sus propios valores de fondo y texto.
   ──────────────────────────────────────────────────── */
.mp-section--base     { background: #0A0A0A; }
.mp-section--surface  { background: #0D0D0D; }
.mp-section--elevated { background: #111111; }

/* ── Variables locales ─────────────────────────────── */
:root {
  --mp-text-primary:   #F0EDE6;
  --mp-text-secondary: #C8C5BE;
  --mp-text-muted:     #9A9690;
  --mp-text-dim:       #555550;
  --mp-orange:         #FF6A00;
  --mp-orange-subtle:  rgba(255, 106, 0, 0.12);
  --mp-orange-border:  rgba(255, 106, 0, 0.30);
  --mp-border-dim:     rgba(255, 255, 255, 0.06);
  --mp-border-mid:     rgba(255, 255, 255, 0.10);
  --mp-section-v:      72px;
}

/* ── Layout ─────────────────────────────────────────── */
.mp-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.mp-section {
  padding: var(--mp-section-v) 0;
}

/* ── Typography ─────────────────────────────────────── */
.mp-section h1,
.mp-section h2,
.mp-section h3,
.mp-hero h1,
.mp-que-es h2,
.mp-cta-final__title {
  color: var(--mp-text-primary);
  font-weight: 500;
  line-height: 1.25;
}

.mp-section h1 { font-size: 32px; }
.mp-section h2 { font-size: 22px; }
.mp-section h3 { font-size: 14px; }

.mp-section p,
.mp-section li {
  color: var(--mp-text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.mp-section-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mp-orange);
  margin-bottom: 16px;
}

/* ── Badge ───────────────────────────────────────────── */
.mp-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: 3px;
}

.mp-badge--orange {
  background: var(--mp-orange-subtle);
  color: var(--mp-orange);
}

.mp-badge--gray {
  background: rgba(255, 255, 255, 0.07);
  color: var(--mp-text-muted);
}

/* ── Line decor ─────────────────────────────────────── */
.mp-line-decor {
  width: 32px;
  height: 2px;
  background: var(--mp-orange);
  border-radius: 1px;
}

.mp-line-decor--small {
  width: 20px;
  height: 1.5px;
  margin: 14px 0;
}

/* ── Button ─────────────────────────────────────────── */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.mp-btn--primary {
  background: var(--mp-orange);
  color: #FFFFFF;
}

.mp-btn--primary:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
}

/* ── Number circle ───────────────────────────────────── */
.mp-num-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

.mp-num-circle--outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--mp-text-muted);
}

.mp-num-circle--filled {
  background: var(--mp-orange);
  color: #FFFFFF;
}

/* ── Dot list ───────────────────────────────────────── */
.mp-dot-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mp-dot-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14px;
}

.mp-dot-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.mp-dot-list--orange li::before { background: var(--mp-orange); }
.mp-dot-list--gray li::before   { background: var(--mp-text-dim); }
.mp-dot-list--muted li          { color: var(--mp-text-muted); }
.mp-dot-list--dim li            { color: var(--mp-text-dim); }

/* =====================================================
   SECTION 1: HERO
   ===================================================== */
.mp-hero {
  padding: 120px 0 80px; /* 120px top para compensar el header fijo de 72px */
}

.mp-hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.mp-hero__content {
  max-width: 600px;
}

.mp-hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.mp-hero__line {
  margin-bottom: 24px;
}

.mp-hero__text {
  font-size: 14px;
  color: var(--mp-text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.mp-hero__badge {
  margin-bottom: 32px;
}

.mp-hero__scroll {
  font-size: 13px;
  color: var(--mp-text-muted);
}

.mp-hero__isotipo {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =====================================================
   SECTION 2: PROBLEMA
   ===================================================== */
.mp-problema__intro {
  max-width: 560px;
  margin-bottom: 48px;
}

.mp-problema__intro p {
  margin-top: 16px;
}

.mp-problema__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--mp-border-dim);
  gap: 1px;
}

.mp-problema__cell {
  padding: 32px 28px;
}

.mp-problema__cell:nth-child(odd)  { background: #0D0D0D; }
.mp-problema__cell:nth-child(even) { background: #111111; }

.mp-problema__cell .mp-badge {
  margin-bottom: 16px;
}

.mp-problema__cell h3 {
  margin-bottom: 0;
}

.mp-problema__cell p {
  font-size: 14px;
  line-height: 1.65;
}

/* =====================================================
   SECTION 3: QUÉ ES
   ===================================================== */
.mp-que-es {
  padding: 80px 40px;
  text-align: center;
}

.mp-que-es__content {
  max-width: 560px;
  margin: 0 auto;
}

.mp-que-es h2 {
  font-size: 22px;
}

.mp-que-es p {
  margin-top: 16px;
  line-height: 1.7;
}

.mp-que-es__isotipo {
  width: 80px;
  height: 80px;
  margin: 24px auto;
}

.mp-que-es__note {
  font-size: 13px;
  color: var(--mp-text-muted);
  margin-top: 8px;
}

/* =====================================================
   SECTION 4: PILARES
   ===================================================== */
.mp-pilares__intro {
  margin-bottom: 48px;
}

.mp-pilares__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--mp-border-dim);
  gap: 1px;
}

.mp-pilar {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

.mp-pilar:nth-child(odd)  { background: #0D0D0D; }
.mp-pilar:nth-child(even) { background: #111111; }

.mp-pilar--featured {
  border-left: 2px solid var(--mp-orange);
  padding-left: 22px;
}

.mp-pilar--featured h3 {
  color: var(--mp-orange);
}

.mp-pilar--featured .mp-pilar__footer {
  color: rgba(255, 106, 0, 0.4);
}

.mp-pilar__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mp-pilar__body {
  flex: 1;
}

.mp-pilar__body p {
  font-size: 13px;
  color: var(--mp-text-muted);
  line-height: 1.6;
  margin-top: 12px;
}

.mp-pilar__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--mp-border-dim);
  font-size: 11px;
  color: var(--mp-text-dim);
}

/* =====================================================
   SECTION 5: IMPLEMENTACIÓN
   ===================================================== */
.mp-implementacion__intro {
  max-width: 560px;
  margin-bottom: 48px;
}

.mp-implementacion__intro p {
  margin-top: 16px;
}

.mp-implementacion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.mp-fase {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--mp-border-dim);
}

.mp-fase:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mp-fase__num {
  font-size: 11px;
  font-weight: 500;
  color: var(--mp-orange);
  margin-bottom: 8px;
}

.mp-fase h3 {
  margin-bottom: 12px;
  color: var(--mp-text-primary);
}

.mp-fase p {
  font-size: 14px;
  line-height: 1.65;
}

/* =====================================================
   SECTION 6: ANTES Y DESPUÉS
   ===================================================== */
.mp-antes-despues__intro {
  max-width: 560px;
  margin-bottom: 48px;
}

.mp-antes-despues__intro p {
  margin-top: 16px;
}

.mp-antes-despues__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mp-comparacion {
  padding: 32px;
}

.mp-comparacion--antes  { background: #0D0D0D; }
.mp-comparacion--despues { background: #111111; }

.mp-comparacion__header {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--mp-border-dim);
}

.mp-comparacion--antes .mp-comparacion__header  { color: var(--mp-text-dim); }
.mp-comparacion--despues .mp-comparacion__header { color: var(--mp-orange); }

/* =====================================================
   SECTION 7: PARA QUIÉN
   ===================================================== */
.mp-para-quien__intro {
  margin-bottom: 48px;
}

.mp-para-quien__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.mp-para-quien__no h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--mp-text-primary);
}

.mp-para-quien__no > p {
  margin-bottom: 20px;
  color: var(--mp-text-muted);
  font-size: 14px;
}

/* =====================================================
   SECTION 8: CTA FINAL
   ===================================================== */
.mp-cta-final {
  padding: 80px 0px;
position: relative;
  background-image: url('/wp-content/uploads/2026/01/Dise%C3%B1o-web-con-seo-y-motor-de-reservas-para-hoteles.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Overlay */
.mp-cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 19, 0.75); /* negro premium con opacidad */
  z-index: 1;
}

/* Contenido por encima del overlay */
.mp-cta-final .mp-container {
  position: relative;
  z-index: 2;
}

.mp-cta-final__box {
  max-width: 700px;
  margin: 0 auto;
  background: #111111;
  border: 0.5px solid var(--mp-orange-border);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
}

.mp-cta-final__title {
  font-size: 22px;
  font-weight: 500;
  color: var(--mp-text-primary);
  margin: 20px 0 16px;
  line-height: 1.35;
}

.mp-cta-final__subtitle {
  font-size: 14px;
  color: var(--mp-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.mp-cta-final__note {
  font-size: 11px;
  color: var(--mp-text-dim);
  margin-top: 14px;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .mp-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }

  .mp-fade-in.mp-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .mp-hero__line .mp-line-decor {
    width: 0;
    animation: mp-lineGrow 0.6s ease-out 0.3s forwards;
  }

  @keyframes mp-lineGrow {
    to { width: 32px; }
  }

  .mp-pilares__grid .mp-pilar {
    opacity: 0;
    transform: translateY(16px);
  }

  .mp-pilares__grid.mp-visible .mp-pilar {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }

  .mp-pilares__grid.mp-visible .mp-pilar:nth-child(1) { transition-delay: 0ms; }
  .mp-pilares__grid.mp-visible .mp-pilar:nth-child(2) { transition-delay: 80ms; }
  .mp-pilares__grid.mp-visible .mp-pilar:nth-child(3) { transition-delay: 160ms; }
  .mp-pilares__grid.mp-visible .mp-pilar:nth-child(4) { transition-delay: 240ms; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 1023px) {
  .mp-container {
    padding: 0 24px;
  }

  .mp-hero__grid {
    grid-template-columns: 1fr;
  }

  .mp-hero__isotipo {
    display: none;
  }

  .mp-problema__grid {
    grid-template-columns: 1fr;
  }

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

/* Mobile */
@media (max-width: 767px) {
  :root {
    --mp-section-v: 48px;
  }

  .mp-container {
    padding: 0 20px;
  }

  .mp-section h1,
  .mp-hero h1 {
    font-size: 24px;
  }

  .mp-hero {
    padding: 100px 0 48px;
  }

  .mp-que-es {
    padding: 48px 20px;
  }

  .mp-cta-final {
    padding: 48px 20px;
  }

  .mp-cta-final__box {
    padding: 36px 24px;
  }

  .mp-pilares__grid {
    grid-template-columns: 1fr;
  }

  .mp-implementacion__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mp-implementacion__grid > div:first-child .mp-fase:last-child {
    border-bottom: 1px solid var(--mp-border-dim);
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .mp-antes-despues__grid {
    grid-template-columns: 1fr;
  }

  .mp-para-quien__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
