/* ==========================================================================
   Mutilva Web · Estilos de las páginas internas (subpáginas).
   Reutiliza las variables y los botones de styles.css. Se carga SOLO en las
   subpáginas (no en la home). Pensado para páginas de contenido + SEO.
   ========================================================================== */

.subpage { background: var(--color-bg); }
.subpage main { display: block; }

/* Deja hueco bajo el navbar fijo */
.subpage .page-hero { padding-top: 128px; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: #b7c1d0; }
.breadcrumb a { color: var(--color-text-light); text-decoration: none; transition: color .15s ease; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb li[aria-current] { color: var(--color-dark); font-weight: 600; }

/* ---- Hero de página ---- */
.page-hero { position: relative; padding-bottom: 56px; overflow: hidden; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(59,130,246,0.10), transparent 60%),
    radial-gradient(50% 80% at 92% 6%, rgba(139,92,246,0.08), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--color-accent-hover); margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em;
  color: var(--color-dark); margin: 0 0 18px; max-width: 20ch; font-weight: 800;
}
.page-hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.6; color: var(--color-text);
  max-width: 62ch; margin: 0 0 28px;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Chips de datos rápidos bajo el hero (plazos, precio…) */
.page-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.page-fact {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-full); padding: 8px 15px; font-size: 0.88rem; font-weight: 600;
  color: var(--color-dark-soft); box-shadow: var(--shadow-sm);
}
.page-fact svg { color: var(--color-accent); flex: 0 0 auto; }

/* ---- Secciones de contenido ---- */
.page-section { padding: 60px 0; }
.page-section--alt { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.page-section__head { max-width: 60ch; margin-bottom: 36px; }
.page-section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.page-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--color-dark); margin: 0 0 14px; font-weight: 800;
}
.page-section h2 .hl {
  background: linear-gradient(100deg, #2563eb, #7c3aed); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.page-section p { color: var(--color-text); line-height: 1.7; margin: 0 0 16px; }
.page-section__lead { font-size: 1.12rem; color: var(--color-text); }

/* Prose para textos largos (SEO) */
.prose { max-width: 68ch; }
.prose h3 { font-size: 1.2rem; color: var(--color-dark); margin: 30px 0 10px; font-weight: 700; }
.prose p { color: var(--color-text); line-height: 1.75; margin: 0 0 16px; }
.prose a { color: var(--color-accent-hover); font-weight: 600; }
.prose strong { color: var(--color-dark); }

/* ---- Rejilla de features / "qué incluye" ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd8e6; }
.feature-card__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 6px 16px rgba(59,130,246,0.28);
}
.feature-card h3 { font-size: 1.08rem; color: var(--color-dark); margin: 0 0 8px; font-weight: 700; }
.feature-card p { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }

/* ---- Lista con checks ---- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text); line-height: 1.55; }
.check-list li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--color-accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4.5' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.check-list.two-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 28px; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, #1a2332 0%, #23324a 60%, #2d3a4a 100%); color: #fff; }
.cta-band .container { padding-top: 56px; padding-bottom: 56px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 56ch; margin: 0 auto 26px; line-height: 1.6; }

/* ---- Tarjetas relacionadas (otras secciones/servicios) ---- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related-card {
  display: block; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 22px; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.related-card h3 { font-size: 1.02rem; color: var(--color-dark); margin: 0 0 6px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.related-card p { font-size: 0.9rem; color: var(--color-text-light); margin: 0; line-height: 1.5; }
.related-card .arrow { color: var(--color-accent); transition: transform .2s ease; }
.related-card:hover .arrow { transform: translateX(3px); }

/* ---- FAQ compacta dentro de una página ---- */
.page-faq { display: grid; gap: 12px; max-width: 760px; }
.page-faq details {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.page-faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--color-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.page-faq summary::-webkit-details-marker { display: none; }
.page-faq summary::after { content: "+"; font-size: 1.4rem; color: var(--color-accent); font-weight: 400; line-height: 1; }
.page-faq details[open] summary::after { content: "–"; }
.page-faq details p { color: var(--color-text); line-height: 1.65; margin: 0 0 16px; }

/* ---- Grid genérico 2 columnas (texto + aside) ---- */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.aside-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px;
  box-shadow: var(--shadow-sm); position: sticky; top: 96px;
}
.aside-card h3 { font-size: 1.05rem; color: var(--color-dark); margin: 0 0 14px; font-weight: 700; }
.aside-card .price { font-size: 1.9rem; font-weight: 800; color: var(--color-dark); letter-spacing: -0.02em; }
.aside-card .price small { font-size: 0.8rem; font-weight: 600; color: var(--color-text-light); }

/* ---- Pasos (proceso) ---- */
.steps-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; counter-reset: step; }
.step-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px 24px;
  box-shadow: var(--shadow-sm); position: relative;
}
.step-card__num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(59,130,246,0.28);
}
.step-card h3 { font-size: 1.12rem; color: var(--color-dark); margin: 0 0 8px; font-weight: 700; }
.step-card p { font-size: 0.95rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }

/* ---- Tabla de planes reducida ---- */
.mini-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.mini-plan {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 26px 22px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.mini-plan--featured { border-color: var(--color-accent); box-shadow: 0 8px 28px rgba(59,130,246,0.16); }
.mini-plan__tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-accent-hover); background: var(--color-accent-bg); padding: 4px 10px; border-radius: var(--radius-full); margin-bottom: 12px; }
.mini-plan h3 { font-size: 1.15rem; color: var(--color-dark); margin: 0 0 6px; font-weight: 700; }
.mini-plan .price { font-size: 2rem; font-weight: 800; color: var(--color-dark); letter-spacing: -0.02em; margin: 0 0 4px; }
.mini-plan .price small { font-size: 0.8rem; font-weight: 600; color: var(--color-text-light); }
.mini-plan .mini-plan__desc { font-size: 0.9rem; color: var(--color-text-light); margin: 0 0 16px; line-height: 1.5; }
.mini-plan ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.mini-plan ul li { font-size: 0.9rem; color: var(--color-text); padding-left: 22px; position: relative; line-height: 1.45; }
.mini-plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }
.mini-plan .btn { margin-top: auto; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .aside-card { position: static; }
}
@media (max-width: 768px) {
  .subpage .page-hero { padding-top: 104px; }
  .page-section { padding: 44px 0; }
}
