/* AEDON Agency — estilos propios de la portada (index.html).
   Lo compartido (.section-tag, .h-accent, .hero-bg, .hero-logo, .browser-frame, .reveal, .steps,
   .pricing-grid, .pricing-card, .case, .faq) vive en components.css. Aquí solo va lo que la
   portada necesita además: el hero grande, la cabecera de sección a dos columnas, la barra del
   marco de navegador, el caso, las tarjetas de servicio, el principio y los detalles de precios.
   Prefijo hp- (home page) para no chocar con las clases compartidas. */

/* ---------- Titulares de dos líneas: cada <span> es una línea; la segunda lleva .h-accent ---------- */
.h2l > span { display: block; }

/* ---------- Hero ---------- */
.hp-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(48px, 8vw, 112px)) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); } /* suma --header-h: la cabecera flotante queda encima */
.hp-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hp-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: .82rem; font-weight: 500; letter-spacing: .01em; margin-bottom: 28px; }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); flex: none; }
.hp-title { font-size: clamp(40px, 7vw, 84px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin: 0; }
.hp-lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 58ch; margin-top: 24px; }
.hp-hero .hero-ctas { margin-top: 36px; }

/* ---------- Cabecera de sección: etiqueta + titular a la izquierda, párrafo gris a la derecha ---------- */
.hp-section { scroll-margin-top: calc(var(--header-h) + 8px); }
.hp-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.hp-head h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 18px; }
.hp-side { color: var(--muted); font-size: 1.02rem; max-width: 40ch; padding-bottom: 6px; }

/* ---------- 01 Proyectos: barra del marco de navegador y caso ---------- */
.hp-frame { margin: 0; }
.hp-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hp-dots { display: inline-flex; gap: 6px; flex: none; }
.hp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.hp-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: .82rem; color: var(--text-2); padding: 6px 12px; border-radius: 6px; background: var(--bg); }
.hp-live { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.hp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hp-frame img { display: block; width: 100%; height: auto; }
.hp-case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 56px; margin-top: clamp(32px, 4vw, 48px); }
.hp-case-tag { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hp-case h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.hp-case-p { color: var(--text-2); margin-top: 14px; max-width: 46ch; }
.hp-facts { display: grid; gap: 12px; margin-bottom: 26px; }
.hp-facts li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); }
.hp-facts svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }

/* ---------- 02 Servicios: tarjetas con número y enlace «ver detalle» ---------- */
.hp-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hp-svc { display: flex; flex-direction: column; padding: 30px 28px; }
.hp-svc h3 { font-size: 1.35rem; letter-spacing: -.02em; margin: 18px 0 10px; }
.hp-svc p { flex: 1; }
.hp-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: .95rem; color: var(--brand); }
.hp-more svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }

/* ---------- El principio: cuatro razones ---------- */
.hp-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.hp-why li { padding: 28px 24px 8px 0; border-top: 2px solid transparent; margin-top: -1px; }
.hp-why li:nth-child(odd) { border-top-color: var(--brand); }
.hp-why h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 10px; }
.hp-why p { color: var(--text-2); font-size: .97rem; }

/* ---------- 03 Cómo trabajamos: número grande en acento ---------- */
.hp-steps .step-num { width: auto; height: auto; background: transparent; color: var(--brand); font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 18px; }

/* ---------- 04 Precios: cifra, etiqueta destacada, incluye y no incluye ---------- */
.hp-pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: start; }
.hp-price { display: flex; flex-direction: column; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.hp-price.is-featured { border-color: var(--brand-line); box-shadow: 0 0 0 1px var(--brand-line), var(--shadow-2); }
.hp-tag-featured { display: inline-block; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: #0B0C0E; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.hp-price h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.hp-price-num { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.hp-from { color: var(--muted); font-size: .95rem; }
.hp-amount { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.hp-amount-sm { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; color: var(--brand); } /* texto en vez de cifra: se lee como dato, no como otro titular */
.hp-price-p { color: var(--text-2); font-size: .97rem; margin-top: 12px; }
.hp-incl { display: grid; gap: 10px; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: .95rem; flex: 1; }
.hp-incl li { position: relative; padding-left: 24px; color: var(--text-2); }
.hp-incl li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.hp-excl { color: var(--muted); font-size: .9rem; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.hp-price .btn { margin-top: 24px; width: 100%; }

/* ---------- 05 Preguntas ---------- */
.hp-faq { max-width: 820px; }
/* Las respuestas van como <p> directo dentro de <details>; mismo tratamiento que .faq-a de components.css. */
.hp-faq details > p { padding: 0 56px 24px 0; color: var(--text-2); max-width: 66ch; }
@media (max-width: 560px) { .hp-faq details > p { padding-right: 0; } }

/* ---------- Ratón ---------- */
@media (hover: hover) and (pointer: fine) {
  .hp-svc:hover .hp-more svg { transform: translateX(4px); }
}

/* ---------- Pantallas medianas ---------- */
@media (max-width: 1100px) {
  .hp-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
}
@media (max-width: 860px) {
  .hp-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .hp-side { padding-bottom: 0; }
  .hp-case { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Móvil: 16 px de margen, una columna, sin scroll horizontal ---------- */
@media (max-width: 600px) {
  .hp-hero { padding-top: calc(var(--header-h) + 40px); }
  .hp-badge { font-size: .76rem; }
  .hp-svc-grid, .hp-pricing, .hp-why { grid-template-columns: 1fr; }
  .hp-why li { padding-right: 0; }
  .hp-svc, .hp-price { padding: 24px 20px; }
  .hp-bar { gap: 10px; padding: 10px 12px; }
  .hp-live span { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .hp-more svg { transition: none; }
}
