/* ==========================================================================
   Páginas de servicios y comunas (servicio.php, arquitecto.php)
   Usan los colores y botones de conversion.css; aquí va la lectura larga:
   portada con foto, bloques de texto, pasos, preguntas, proyectos y pie con enlaces.
   ========================================================================== */
.seo-main { padding-top: calc(72px + env(safe-area-inset-top, 0px)); }

.seo-migas { padding: 14px var(--gutter) 0; font-family: var(--mono); font-size: 12px; color: var(--gris); display: flex; flex-wrap: wrap; gap: 6px; }
.seo-migas a { color: inherit; text-decoration: none; }
.seo-migas a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.seo-migas [aria-current] { color: var(--tinta); }

/* portada */
.seo-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(40px, 6vw, 80px); }
.seo-hero__texto { display: grid; gap: 18px; align-content: center; }
.seo-hero h1 { margin: 0; font-weight: 400; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; max-width: 18ch; }
.seo-intro { margin: 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; line-height: 1.55; max-width: 54ch; }
.seo-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.seo-hero__img { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: var(--claro); }
.seo-hero__img img { width: 100%; height: 100%; object-fit: cover; }

/* cuerpo: una columna cómoda de leer; los proyectos usan todo el ancho */
.seo-cuerpo { display: grid; gap: 0; padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.seo-bloque { width: min(760px, 100%); margin: 0 auto; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--linea); }
.seo-bloque--ancho { width: min(1180px, 100%); }
.seo-bloque h2 { margin: 0 0 16px; font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; text-wrap: balance; }
.seo-bloque p { margin: 0 0 12px; font-size: 17px; line-height: 1.65; font-weight: 300; max-width: 68ch; }
.seo-texto p:first-child { font-size: 19px; }
.seo-nota { font-size: 14px !important; color: var(--gris); }

.seo-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.seo-lista li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.55; font-weight: 300; }
.seo-lista li::before { content: "—"; position: absolute; left: 0; color: var(--acento); font-weight: 500; }

.seo-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; counter-reset: paso; }
.seo-pasos li { counter-increment: paso; display: grid; gap: 6px; align-content: start; padding-top: 14px; border-top: 2px solid var(--tinta); }
.seo-pasos li::before { content: counter(paso, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--gris); }
.seo-pasos b { font-weight: 500; font-size: 18px; }
.seo-pasos span { font-size: 15px; line-height: 1.5; color: var(--gris); }

.seo-faq { display: grid; }
.seo-faq details { border-bottom: 1px solid var(--linea); }
.seo-faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font-size: 18px; line-height: 1.4; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-family: var(--mono); font-size: 20px; color: var(--gris); transition: transform 0.3s var(--ease); }
.seo-faq details[open] summary::after { transform: rotate(45deg); }
.seo-faq details p { padding-bottom: 6px; }

.seo-proyectos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-bottom: 18px; }
.seo-proyecto { display: grid; gap: 10px; text-decoration: none; }
.seo-proyecto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--claro); transition: transform 0.5s var(--ease); }
.seo-proyecto:hover img { transform: scale(1.02); }
.seo-proyecto span { display: grid; gap: 2px; font-family: var(--mono); font-size: 12px; color: var(--gris); }
.seo-proyecto b { font-family: var(--sans); font-weight: 500; font-size: 16px; color: var(--tinta); }

.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-chips a { font-family: var(--mono); font-size: 13px; text-decoration: none; padding: 7px 14px; border: 1px solid var(--linea); border-radius: 999px; background: var(--blanco); }
.seo-chips a:hover { border-color: var(--tinta); }

.seo-servicios { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.seo-servicios a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--linea); border-radius: 6px; background: var(--blanco); text-decoration: none; transition: border-color 0.2s; }
.seo-servicios a:hover { border-color: var(--tinta); }
.seo-servicios b { font-weight: 500; font-size: 17px; }
.seo-servicios span { font-size: 14.5px; color: var(--gris); line-height: 1.45; }

.seo-resenas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-bottom: 14px; }
.seo-resena { margin: 0; padding: 18px 20px; background: var(--blanco); border-radius: 6px; display: grid; gap: 10px; }
.seo-resena p { margin: 0 !important; font-size: 17px !important; }
.seo-resena footer { font-family: var(--mono); font-size: 11.5px; color: var(--gris); }

/* llamado final */
.seo-cta { background: var(--tinta); color: var(--blanco); text-align: center; padding: clamp(64px, 10vw, 120px) var(--gutter); display: grid; justify-items: center; gap: 16px; }
.seo-cta h2 { margin: 0; font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; text-wrap: balance; max-width: 18ch; }
.seo-cta p { margin: 0 0 8px; color: #b9b8b1; font-size: 17px; font-weight: 300; max-width: 46ch; line-height: 1.5; }

/* pie con los enlaces a servicios y comunas */
.seo-pie { display: grid; gap: 24px; justify-content: stretch; }
.seo-pie__enlaces { display: flex; flex-wrap: wrap; gap: 18px 56px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.seo-pie__enlaces div { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.seo-pie__enlaces b { flex-basis: 100%; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; color: #6f6e68; }
.seo-pie__enlaces a { text-decoration: none; font-size: 12px; }
.seo-pie__enlaces a:hover { text-decoration: underline; }
.seo-pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }

@media (max-width: 860px) {
  .seo-hero { grid-template-columns: minmax(0, 1fr); }
  .seo-hero__img { order: -1; aspect-ratio: 16 / 10; }
  .seo-hero h1 { max-width: none; }
}
@media (max-width: 520px) {
  .cv-nav a:not([data-menu-proyectos]) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .seo-proyecto img, .seo-faq summary::after { transition: none; }
}
