/* ══════════════════════════════════════════
   PIEDRA — pricing.css
   Estilos del bloque de precios de la landing +
   una pasada de pulido general (hover, foco,
   profundidad). Vive junto a las variables ya
   definidas en index.html (--accent-*, --text-*,
   --radius-*, etc.)
══════════════════════════════════════════ */

/* ── Pulido general ── */

/* Foco visible por teclado en toda la página (accesibilidad) */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Las cards de planes ahora "levantan" al pasar el mouse, dan
   sensación de profundidad en vez de quedar planas */
.plan-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}
.plan-card.featured:hover {
  box-shadow: 0 0 0 1px var(--accent-teal), 0 28px 60px rgba(29,158,117,.22);
}
.btn-primary:active { transform: translateY(0); opacity: .95; }

/* ── Card featured: necesita overflow visible para que la insignia
   dorada se apoye sobre el borde sin cortarse ── */
.plan-card.featured {
  overflow: visible;
  padding-top: 32px;
}

/* ── Insignia "21% OFF": dorada, con luz ambiente amarilla detrás,
   parpadeando — el elemento más llamativo de la sección, a propósito ── */
.discount-badge-wrap {
  position: absolute;
  top: -16px;
  right: -12px;
  z-index: 4;
}
.discount-glow {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,205,60,.65), rgba(255,205,60,0) 70%);
  animation: glow-pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
.discount-badge {
  position: relative;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe38a 0%, #f0b90b 55%, #b9860a 100%);
  color: #2b1c00;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--bg-app), 0 6px 18px rgba(240,185,11,.45);
  animation: badge-blink 1.6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.18); }
}
@keyframes badge-blink {
  0%, 100% { filter: brightness(1);    box-shadow: 0 0 0 2px var(--bg-app), 0 6px 18px rgba(240,185,11,.45); }
  50%      { filter: brightness(1.25); box-shadow: 0 0 0 2px var(--bg-app), 0 6px 26px rgba(240,185,11,.8); }
}

/* ── Precio: tachado arriba (gris), precio con descuento abajo (blanco) ── */
.price-row { line-height: 1; margin-bottom: 10px; }
.price-old-line {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--accent-red);
  text-decoration-thickness: 2px;
  margin-bottom: 4px;
}
.price-old-line .price-unit { font-size: 12px; }
.price-current-line { display: flex; align-items: baseline; gap: 4px; }
.price-current {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-primary);
}
/* Mientras el precio real todavía no llegó del fetch (span vacío),
   mostramos una barrita "esqueleto" en vez de dejar el hueco pelado
   con solo "/mes ARS" al lado — evita el parpadeo feo al cargar. */
.price-current:empty {
  display: inline-block;
  width: 92px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-card-hover) 25%, var(--border) 37%, var(--bg-card-hover) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .price-current:empty { animation: none; opacity: .6; }
}
.price-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Contador de días: línea chica, con el mismo puntito dorado ── */
.discount-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.discount-timer strong { color: var(--accent-amber); font-weight: 700; }
.discount-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-amber);
  flex-shrink: 0;
  animation: badge-blink 1.6s ease-in-out infinite;
}

/* Cuando no hay promo activa, esta línea toma el lugar del contador
   para que la card mantenga el mismo alto que las otras dos. */
.plan-price-note-fallback {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Accesibilidad: quien pidió "reducir movimiento" en su sistema no
   debería recibir un parpadeo continuo — dejamos la insignia fija
   pero igual de visible (dorada, con el glow estático). */
@media (prefers-reduced-motion: reduce) {
  .discount-glow, .discount-badge, .discount-dot {
    animation: none;
  }
}

/* Hallmark · pre-emit critique: P5 H4 E5 S4 R5 V5
   Landing editorial Graphite — overrides visual layer only. */
html, body { overflow-x: clip; }
body { background: var(--bg-app); }
.wrap { max-width: 1220px; padding-inline: 32px; }
.navbar { background: color-mix(in srgb, var(--bg-app) 92%, transparent); border-bottom-color: var(--border); }
.navbar .wrap { height: 68px; }
.nav-brand-name { font-size: 13px; letter-spacing: .12em; }
.nav-links { gap: 22px; font-size: 12px; }
.btn { min-height: 40px; border-radius: var(--radius-sm); font-size: 13px; white-space: nowrap; }
.btn-primary { color: var(--bg-app); }
.btn-secondary { background: transparent; border-color: var(--border-light); }

.hero.hero-editorial { padding: clamp(64px, 10vw, 132px) 0 clamp(72px, 10vw, 132px); text-align: left; overflow: visible; }
.hero::before, .hero-rock, .app-preview { display: none; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(36px, 7vw, 100px); }
.hero-copy { position: relative; z-index: 1; }
.hero-badge, .section-eyebrow { width: fit-content; margin: 0 0 17px; padding: 0; border: 0; border-radius: 0; color: var(--accent-teal); background: transparent; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 670px; margin: 0 0 22px; font-size: clamp(42px, 5.2vw, 76px); font-weight: 650; letter-spacing: -.065em; line-height: .94; text-wrap: balance; }
.hero h1 span { color: var(--accent-teal); background: none; }
.hero p { max-width: 510px; margin: 0 0 30px; color: var(--text-secondary); font-size: 16px; line-height: 1.65; }
.hero-ctas { justify-content: flex-start; margin-bottom: 14px; }
.hero-note { color: var(--text-muted); }

.media-slot { min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 7px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--bg-card), var(--bg-sidebar)); position: relative; overflow: hidden; }
.media-slot::before { content: ''; position: absolute; width: 128px; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid var(--border-light); border-radius: 50%; box-shadow: 0 0 0 18px color-mix(in srgb, var(--bg-app) 35%, transparent); }
.media-slot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin-left: 4px; transform: translate(-50%, -50%); border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 18px solid var(--text-primary); }
.media-slot-kicker, .media-slot-title { position: relative; z-index: 1; }
.media-slot-kicker { color: var(--accent-teal); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.media-slot-title { color: var(--text-secondary); font-size: 13px; }
.media-slot-hero { min-height: 460px; }

section { padding: clamp(72px, 10vw, 132px) 0; }
#modulos { border-top: 1px solid var(--border); }
.section-title { max-width: 760px; margin: 0 0 15px; color: var(--text-primary); font-size: clamp(30px, 4vw, 54px); font-weight: 650; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.section-sub { max-width: 630px; margin: 0 0 44px; color: var(--text-secondary); font-size: 16px; }
.features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 26px; }
.feature-card { padding: 0; border: 0; border-radius: 0; background: transparent; text-align: left; }
.feature-card:hover { transform: none; border-color: transparent; background: transparent; }
.feature-media { min-height: 190px; display: flex; align-items: flex-end; padding: 16px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-muted); background: var(--bg-card); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.feature-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--text-primary); font-size: 20px; font-weight: 650; letter-spacing: -.035em; }
.feature-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.tag-free, .tag-pro { border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text-muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tag-pro { color: var(--accent-teal); border-color: color-mix(in srgb, var(--accent-teal) 44%, var(--border)); background: var(--accent-teal-bg); }

.module-ledger { padding-top: 0; }
.module-ledger .wrap { display: grid; gap: 22px; }
.module-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 460px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-sidebar); }
.module-detail-copy { align-self: center; padding: clamp(32px, 6vw, 78px); }
.module-detail h2 { margin: 0 0 18px; color: var(--text-primary); font-size: clamp(30px, 3.5vw, 48px); font-weight: 650; letter-spacing: -.06em; line-height: .98; }
.module-detail p { max-width: 430px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.module-detail .media-slot { min-height: 100%; border: 0; border-left: 1px solid var(--border); border-radius: 0; }
.module-detail-reverse .module-detail-copy { grid-column: 2; }
.module-detail-reverse .media-slot { grid-column: 1; grid-row: 1; border-left: 0; border-right: 1px solid var(--border); }
.module-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 27px; color: var(--text-primary); font-size: 12px; }
.module-points span::before { content: '◇'; margin-right: 7px; color: var(--accent-teal); }

#planes { border-top: 1px solid var(--border); }
#planes .section-eyebrow, #planes .section-title, #planes .section-sub { margin-inline: auto; text-align: center; }
.pricing-grid { align-items: stretch; gap: 18px; }
.plan-card { min-height: 510px; padding: 28px; border-radius: var(--radius-md); background: transparent; }
.plan-card.featured { border-color: var(--accent-teal); background: color-mix(in srgb, var(--accent-teal-bg) 30%, var(--bg-card)); }
.plan-card:hover { transform: translateY(-3px); }
.plan-name { font-size: 17px; font-weight: 700; }
.plan-desc { min-height: 42px; }
.plan-price, .price-current { font-size: 47px; letter-spacing: -.055em; }
.plan-cta { width: 100%; justify-content: center; margin: 22px 0 26px; }
.plan-features { gap: 12px; }
.plan-features li { color: var(--text-secondary); }
.plan-features li::first-letter { color: var(--accent-teal); }
.discount-badge-wrap { right: 15px; top: -13px; }
.discount-glow, .discount-badge { animation: none; }
.discount-badge { color: var(--bg-app); background: var(--accent-amber); box-shadow: 0 0 0 2px var(--bg-app); font-size: 11px; }

#faq { border-top: 1px solid var(--border); }
.faq-wrap .section-title { max-width: none; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 70px; }
.faq-item { padding: 0; border: 0; }
.faq-q { font-size: 15px; font-weight: 700; }
.faq-a { font-size: 13px; line-height: 1.65; }
.faq-contact { margin-top: 62px; }
.faq-contact h3 { margin: 0 0 8px; color: var(--text-primary); font-size: 25px; font-weight: 650; letter-spacing: -.04em; }
.faq-contact p { margin-bottom: 16px; color: var(--text-secondary); }
.cta-final { border-color: var(--border-light); border-radius: var(--radius-lg); background: var(--bg-card); }

footer { padding: 32px 0 24px; border-top: 0; }
footer .wrap.footer-wrap { display: block; max-width: 1220px; }
.footer-panel { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 38px 30px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-card); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; letter-spacing: .1em; }
.footer-brand .nav-brand-icon { flex: 0 0 auto; }
.footer-intro p { max-width: 290px; margin-bottom: 13px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.footer-contact { color: var(--accent-teal); font-size: 13px; }
.footer-column { display: grid; align-content: start; gap: 10px; }
.footer-column h3 { margin-bottom: 4px; color: var(--text-primary); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.footer-column a, .footer-column span { color: var(--text-secondary); font-size: 13px; }
.footer-column a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; color: var(--text-muted); font-size: 11px; }

@media (max-width: 860px) {
  .hero-layout, .module-detail { grid-template-columns: minmax(0, 1fr); }
  .media-slot-hero { min-height: 330px; }
  .module-detail { min-height: 0; }
  .module-detail .media-slot, .module-detail-reverse .media-slot { min-height: 320px; grid-column: 1; grid-row: auto; border: 0; border-top: 1px solid var(--border); }
  .module-detail-reverse .module-detail-copy { grid-column: 1; }
  .footer-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-intro { grid-column: span 2; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .navbar .wrap { height: 60px; }
  .nav-actions .btn-secondary { display: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-ctas { align-items: stretch; flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
  .features-grid, .faq-grid, .footer-panel { grid-template-columns: minmax(0, 1fr); }
  .feature-media { min-height: 170px; }
  .footer-intro { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .module-detail-copy { padding: 32px 24px; }
  .section-title { font-size: clamp(32px, 10vw, 46px); }
}
