/* AEDON Agency — lo específico de services.html y about.html.
   Carga DESPUÉS de components.css. Lo compartido (.section-tag, .h-accent, .steps, .faq, .case,
   .pricing-card, .reveal) vive en components.css; aquí solo va lo que usan estas dos páginas.
   Prefijo .pg- para no pisar nada. */

/* ---------- Cabecera de página (tipo landing: titular grande, segunda línea en acento) ---------- */
.pg-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(36px, 5vw, 64px); /* suma --header-h: la cabecera flotante queda encima, como .page-hero */ background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--brand-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.pg-hero .crumbs { margin-bottom: 24px; }
.pg-hero .section-tag { margin-bottom: 20px; }
.pg-h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; max-width: 18ch; }
.pg-hero .lede { margin-top: 22px; max-width: 58ch; }
.pg-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pg-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.pg-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: .88rem; font-weight: 600; transition: border-color .2s ease, color .2s ease; }

/* ---------- Cabecera de sección: titular a la izquierda, párrafo gris a la derecha ---------- */
.pg-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 44px; }
.pg-head h2 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.pg-head .section-tag { margin-bottom: 18px; }
.pg-head-p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; padding-bottom: 6px; }
.pg-head-stack { grid-template-columns: 1fr; align-items: start; }
.pg-svc { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 860px) { .pg-head { grid-template-columns: 1fr; gap: 16px; align-items: start; margin-bottom: 32px; } .pg-head-p { padding-bottom: 0; } }

/* ---------- Bloque de plan (Web Esencial y Mantenimiento): precio, incluye / no incluye ---------- */
.pg-plan { display: grid; gap: 28px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.pg-plan.is-featured { border-color: var(--brand-line); box-shadow: 0 0 0 1px var(--brand-line), var(--shadow-2); }
.pg-plan-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pg-plan-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.pg-plan-name { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.pg-price { display: flex; align-items: baseline; gap: 10px; color: var(--text); }
.pg-price strong { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.pg-price-from { color: var(--muted); font-size: .95rem; font-weight: 600; }
.pg-per { font-size: .5em; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.pg-plan-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 48px; }
.pg-list-title { font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.pg-plan .ticks { margin: 0; gap: 12px; }
.pg-plan .ticks span { color: var(--text-2); }
.pg-not { padding: 22px 24px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); align-self: start; }
.pg-not p { color: var(--text-2); font-size: .97rem; }
.pg-not p + .pg-not-list, .pg-not-list + p { margin-top: 12px; }
.pg-not-list { display: grid; gap: 10px; color: var(--text-2); font-size: .97rem; }
.pg-not-list li { position: relative; padding-left: 22px; }
.pg-not-list li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 10px; height: 2px; border-radius: 1px; background: var(--muted); }
.pg-plan-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 4px; }
.pg-plan-foot .hint { max-width: 48ch; }
@media (max-width: 760px) { .pg-plan-cols { grid-template-columns: 1fr; gap: 24px; } .pg-plan { border-radius: 16px; } }

/* ---------- Piezas que se añaden: seis tarjetas con «Resuelve:» ---------- */
.pg-pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pg-piece { padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s ease; }
.pg-piece h3 { margin: 12px 0 12px; font-size: 1.12rem; letter-spacing: -.01em; }
.pg-piece p { color: var(--text-2); font-size: .95rem; }
.pg-piece .pg-problem { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--text); font-size: .92rem; line-height: 1.5; }
.pg-problem-lbl { color: var(--brand); font-weight: 700; }
.pg-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; color: var(--text-2); }
.pg-price-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--brand-line); color: var(--brand); font-family: var(--f-mono); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 960px) { .pg-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pg-pieces { grid-template-columns: 1fr; } }

/* ---------- App: cuándo sí / cuándo no ---------- */
.pg-yesno { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pg-yes, .pg-no { padding: clamp(22px, 3vw, 32px); border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.pg-yes { border-color: var(--brand-line); }
.pg-yes h3, .pg-no h3 { font-size: 1.15rem; margin-bottom: 16px; }
.pg-yes .ticks { margin: 0; gap: 12px; }
.pg-yes .ticks span { color: var(--text-2); }
.pg-no .pg-price { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pg-no .pg-price strong { font-size: 1.15rem; letter-spacing: -.01em; color: var(--text); }
@media (max-width: 760px) { .pg-yesno { grid-template-columns: 1fr; } }

/* ---------- Pasos: número grande en acento (los seis pasos de servicios, los tres de nosotros) ---------- */
.pg-steps { counter-reset: none; }
.pg-steps li { position: relative; padding: 28px 24px 26px; border-radius: 16px; }
.pg-steps .step-num { width: auto; height: auto; background: none; color: var(--brand); font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; place-items: start; }
.pg-steps h3 { font-size: 1.1rem; }
/* Tres pasos en una fila solo cuando caben; por debajo mandan las columnas de .steps (components.css). */
@media (min-width: 761px) { .pg-steps-short { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-more { margin-top: 24px; }
.pg-more a { color: var(--brand); font-weight: 600; border-bottom: 1px solid var(--brand-line); padding-bottom: 2px; }
@media (max-width: 960px) and (min-width: 761px) { .pg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Preguntas frecuentes ---------- */
.pg-faq-wrap { max-width: 860px; }
.pg-faq { display: grid; gap: 10px; }
.pg-faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s ease; }
.pg-faq details[open] { border-color: var(--brand-line); }
.pg-faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.pg-faq summary::-webkit-details-marker { display: none; }
/* El contenedor también lleva .faq, así que aquí se anulan sus barras (::before/::after con fondo azul). */
.pg-faq summary::before { content: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; margin-top: 0; color: var(--brand); font-weight: 600; font-size: 1.2rem; line-height: 1; transition: transform .25s var(--ease-out), border-color .2s ease; }
.pg-faq details[open] summary::after { content: "–"; border-color: var(--brand-line); transform: translateY(-50%); }
.pg-faq details > p { padding: 0 22px 22px; color: var(--text-2); max-width: 68ch; }
.pg-faq-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 36px; padding: 24px 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pg-faq-cta p { color: var(--text-2); }

/* ---------- Nosotros: quiénes somos y datos rápidos ---------- */
.pg-who { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pg-who-text h2 { font-size: clamp(1.8rem, 3.6vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 24px; }
.pg-who-text p { color: var(--text-2); max-width: 62ch; margin-top: 16px; font-size: 1.05rem; }
.pg-facts { padding: 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pg-facts dl { display: grid; gap: 18px; }
.pg-facts dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pg-facts dd { font-weight: 600; }
.pg-motto { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 860px) { .pg-who { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- El principio: cuatro puntos numerados ---------- */
.pg-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pg-principle { padding: 26px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.pg-principle-num { display: block; font-family: var(--f-display); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--brand); margin-bottom: 16px; }
.pg-principle h3 { font-size: 1.1rem; margin-bottom: 8px; }
.pg-principle p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 960px) { .pg-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg-principles { grid-template-columns: 1fr; } }

/* ---------- La línea que no se cruza ---------- */
.pg-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: start; padding: clamp(28px, 4vw, 48px); border-radius: 20px; border: 1px solid var(--brand-line); background: linear-gradient(135deg, var(--brand-soft), transparent 60%), var(--surface); }
.pg-line-text .section-tag { margin-bottom: 18px; }
.pg-line-text h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.pg-line-text p { color: var(--text-2); margin-top: 18px; max-width: 46ch; }
.pg-line-list { display: grid; gap: 22px; }
.pg-line-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.pg-line-list svg { width: 28px; height: 28px; color: var(--brand); margin-top: -2px; }
.pg-line-list h3 { font-size: 1.08rem; margin-bottom: 6px; }
.pg-line-list p { color: var(--text-2); font-size: .97rem; }
@media (max-width: 860px) { .pg-line { grid-template-columns: 1fr; gap: 28px; border-radius: 16px; } }

/* ---------- Caso Car Advisor: marco de navegador e imagen, texto al lado ---------- */
.pg-case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pg-case-media { min-width: 0; }
.pg-frame { overflow: hidden; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: var(--shadow-2); }
.pg-frame-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.pg-frame-dots { display: flex; gap: 6px; }
.pg-frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.pg-frame-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: var(--bg); text-align: center; }
.pg-frame-live { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; }
.pg-frame-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.pg-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pg-case-client { font-weight: 700; margin-bottom: 12px; }
.pg-case-meta { color: var(--muted); font-weight: 500; font-size: .92rem; margin-left: 8px; }
.pg-case-text h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
.pg-case-text > p { color: var(--text-2); }
.pg-case-text .pg-list-title { margin-top: 24px; }
.pg-case-text .ticks { margin: 0 0 24px; gap: 10px; }
.pg-case-text .ticks span { color: var(--text-2); }
@media (max-width: 900px) { .pg-case { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .pg-frame-live span { display: none; } }

/* ---------- Ratón ---------- */
@media (hover: hover) and (pointer: fine) {
  .pg-jump a:hover { border-color: var(--brand); color: var(--brand); }
  .pg-piece:hover { border-color: var(--brand-line); }
  .pg-faq details:hover { border-color: var(--line-2); }
  .pg-faq summary:hover::after { border-color: var(--brand); }
  .pg-more a:hover { border-bottom-color: var(--brand); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-faq summary::after, .pg-piece, .pg-jump a, .pg-faq details { transition: none; }
}
