/* AM Digital · estilos */

/* Fuentes alojadas en la propia web (no se conecta a Google al entrar) */
@font-face { font-family: 'Inter'; src: url('fuentes/inter.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('fuentes/space-grotesk.woff2') format('woff2'); font-weight: 500 700; font-style: normal; font-display: swap; }
  :root {
    --bg: #060A1A;
    --card: #0D1430;
    --line: #1B2550;
    --line2: #2C3A72;
    --text: #F2F5FF;
    --muted: #A9B3D6;
    --accent: #4D8DFF;
    --accent2: #A06BFF;
    --grad: linear-gradient(120deg, #4D8DFF 0%, #A06BFF 100%);
    --display: 'Space Grotesk', sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
  a { color: var(--text); text-decoration: none; }
  a:hover { color: var(--accent); }
  h1, h2, h3 { font-family: var(--display); margin: 0; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
  .section { border-top: 1px solid var(--line); }
  .eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  .h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 16px; }
  .lead { margin: 0 0 56px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
  .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .14em; }
  .btn { display: inline-block; background: var(--grad); box-shadow: 0 8px 30px rgba(77,141,255,.35); color: var(--bg); padding: 16px 26px; border-radius: 999px; font-weight: 600; border: none; font: inherit; font-weight: 600; cursor: pointer; }
  .btn:hover { color: var(--bg); filter: brightness(1.08); }
  .btn-ghost { display: inline-block; border: 1px solid var(--line2); padding: 16px 26px; border-radius: 999px; font-weight: 500; }
  .grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
  .card p { margin: 0; line-height: 1.55; color: var(--muted); }

  /* Cabecera */
  header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(6,10,26,.85); backdrop-filter: blur(8px); z-index: 10; }
  nav { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
  .logo { font-family: var(--display); font-weight: 700; font-size: 22px; }
  .logo span { color: var(--accent); }
  .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; }
  .menu .btn { padding: 12px 20px; }

  /* Portada */
  .hero-bg { background:
      radial-gradient(600px 400px at 85% 10%, rgba(160,107,255,.28), transparent 70%),
      radial-gradient(700px 500px at 10% 90%, rgba(77,141,255,.22), transparent 70%); }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(44px, 8vw, 104px); line-height: 1.06; letter-spacing: -.03em; max-width: 16ch; }
  .hero p.sub { margin: 32px 0 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
  .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

  .head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
  .num { font-family: var(--display); color: var(--accent); }

  /* Proceso */
  .light { background: var(--text); color: var(--bg); }
  .steps { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .step { border-top: 2px solid var(--bg); padding-top: 24px; }
  .step .big { font-family: var(--display); font-size: 48px; font-weight: 700; }
  .step h3 { font-family: Inter, sans-serif; font-size: 21px; margin: 12px 0; }
  .step p { margin: 0; line-height: 1.6; color: #45454D; }

  /* Planes */
  .plans { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .plan { border-radius: 24px; gap: 20px; }
  .plan .price { font-family: var(--display); font-size: 40px; font-weight: 700; color: inherit; white-space: nowrap; line-height: 1.1; }
  .price small { display: block; font-family: Inter, sans-serif; font-size: 14px; font-weight: 500; opacity: .75; margin-bottom: 4px; }
  .plan ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.45; }
  .plan .btn, .plan .btn-light { margin-top: auto; text-align: center; }
  .btn-light { display: inline-block; background: var(--text); color: var(--bg); padding: 16px 24px; border-radius: 999px; font-weight: 600; }
  .featured { background: var(--grad); color: var(--bg); border-color: transparent; box-shadow: 0 20px 60px rgba(120,110,255,.35); }
  .card { transition: transform .2s, border-color .2s; }
  .card:hover { transform: translateY(-4px); border-color: var(--line2); }
  .featured p { color: var(--bg); opacity: .85; }
  .featured .btn-light { background: var(--bg); color: var(--text); }
  .badge { white-space: nowrap; font-size: 13px; font-weight: 600; background: var(--bg); color: var(--text); padding: 6px 12px; border-radius: 999px; }
  .plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .maint { margin-top: 16px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; border-radius: 24px; }
  .maint > div:first-child { flex: 1 1 420px; }
  .maint .price { font-family: var(--display); font-size: 36px; font-weight: 700; margin: 0; color: var(--text); white-space: nowrap; }
  .maint .price small { display: inline; }
  .maint h3 { margin-bottom: 10px; }
  .maint .price small { font-size: 18px; font-weight: 500; color: var(--muted); }

  /* Configurador */
  fieldset { margin: 0 0 40px; padding: 0; border: none; }
  legend { padding: 0; margin-bottom: 16px; font-family: var(--display); font-size: 22px; font-weight: 700; }
  legend small { font-family: Inter, sans-serif; font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 6px; }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { font: inherit; font-size: 15px; font-weight: 500; min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--line2); }
  .chip:hover { border-color: var(--accent); }
  .chip[aria-pressed="true"] { background: var(--grad); color: var(--bg); border-color: transparent; }
  .summary { margin-top: 8px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-radius: 24px; }
  .summary > div { flex: 1 1 420px; }
  .summary span { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .summary p { color: var(--text); font-size: 18px; margin-top: 8px; }

  /* Trabajos */
  .works { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
  .shot { aspect-ratio: 16 / 10; background: var(--card); border: 1px dashed var(--line2); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #8A8A94; }
  .work-info { display: flex; justify-content: space-between; margin-top: 14px; }
  .work-info span:last-child { color: var(--muted); }

  /* Contacto */
  .contact { background: var(--grad); color: var(--bg); }
  .step .big { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .contact .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
  .contact .info { flex: 1 1 360px; }
  .contact h2 { font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -.03em; margin-bottom: 20px; }
  .contact p { font-size: 18px; line-height: 1.7; }
  .contact a { color: var(--bg); text-decoration: underline; }
  form { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
  label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 600; }
  input, textarea { font: inherit; font-weight: 400; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--bg); background: var(--text); color: var(--bg); }
  input:focus, textarea:focus, .chip:focus-visible, .btn:focus-visible { outline: 2px solid var(--bg); outline-offset: 2px; }
  form .btn { background: var(--bg); color: var(--text); align-self: flex-start; padding: 18px 28px; }

  footer { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
  footer div { display: flex; gap: 24px; }

  /* ===== MOVIMIENTO ===== */

  /* Portada: luces que flotan */
  .hero-bg { position: relative; overflow: hidden; }
  .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; z-index: 0; }
  .blob.b1 { width: 460px; height: 460px; background: #4D8DFF; top: -120px; right: -80px; animation: flotar1 14s ease-in-out infinite; }
  .blob.b2 { width: 380px; height: 380px; background: #A06BFF; bottom: -140px; left: -60px; animation: flotar2 16s ease-in-out infinite; }
  .blob.b3 { width: 260px; height: 260px; background: #3FD0FF; top: 40%; left: 55%; opacity: .3; animation: flotar1 18s ease-in-out infinite reverse; }
  @keyframes flotar1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px,60px) scale(1.15); } }
  @keyframes flotar2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(90px,-50px) scale(1.1); } }
  .hero { position: relative; z-index: 1; }

  /* Portada: palabra que cambia */
  .rotador { display: inline-block; line-height: 1.1; padding-bottom: .14em; margin-bottom: -.14em; transition: opacity .45s, transform .45s; }
  .rotador.fuera { opacity: 0; transform: translateY(24px); }
  .hero h1 { min-height: 2.25em; }

  /* Entrada de la portada */
  .hero-text > * { animation: subir .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > *:nth-child(2) { animation-delay: .12s; }
  .hero-text > *:nth-child(3) { animation-delay: .24s; }
  .hero-text > *:nth-child(4) { animation-delay: .36s; }
  @keyframes subir { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

  /* Cinta de estilos en movimiento */
  .cinta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: rgba(13,20,48,.6); }
  .cinta-track { display: flex; width: max-content; gap: 48px; animation: cinta 30s linear infinite; }
  .cinta-track span { font-family: var(--display); font-size: 28px; font-weight: 700; white-space: nowrap; color: var(--muted); display: flex; align-items: center; gap: 48px; }
  .cinta-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
  .cinta:hover .cinta-track { animation-play-state: paused; }
  @keyframes cinta { to { transform: translateX(-50%); } }

  /* Aparecer al hacer scroll */
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
  .reveal.visible { opacity: 1; transform: none; }
  .card.reveal.visible:hover { transform: translateY(-6px); }

  /* Tarjetas con foco de luz que sigue al ratón */
  .card { position: relative; overflow: hidden; }
  .card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(77,141,255,.18), transparent 60%); }
  .card:hover::before { opacity: 1; }
  .card > * { position: relative; }

  /* Brillo que cruza los botones */
  .btn { position: relative; overflow: hidden; }
  .btn::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); }
  .btn:hover::after { animation: brillo .8s; }
  @keyframes brillo { to { left: 140%; } }

  /* Degradado vivo en contacto y plan destacado */
  .contact, .featured { background-size: 200% 200%; animation: degradado 10s ease infinite; }
  @keyframes degradado { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

  /* WhatsApp que late */
  .wa { animation: latido 2.4s ease-in-out infinite; }
  @keyframes latido { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }


  /* ===== ANIMACIONES EXTRA ===== */

  /* Barra de progreso al hacer scroll */
  .progreso { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; }

  /* Portada en dos columnas con maqueta animada */
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(44px, 6.2vw, 88px); }
  @media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

  .mock { position: relative; border-radius: 18px; background: rgba(13,20,48,.75); border: 1px solid var(--line2);
    box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset; backdrop-filter: blur(10px);
    transform: perspective(1200px) rotateY(-10deg) rotateX(4deg); animation: mockFlota 7s ease-in-out infinite, subir 1s .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes mockFlota { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
  .mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2C3A72; }
  .mock-bar i:nth-child(1) { background: #FF5F57; } .mock-bar i:nth-child(2) { background: #FEBC2E; } .mock-bar i:nth-child(3) { background: #28C840; }
  .mock-bar span { margin-left: 10px; flex: 1; font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 5px 12px; }
  .mock-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 340px; }
  .m { border-radius: 8px; background: #1B2550; opacity: 0; animation: construir 9s infinite; }
  .m-nav { height: 14px; width: 45%; }
  .m-hero { height: 110px; background: var(--grad); }
  .m-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .m-card { height: 70px; }
  .m-text { height: 10px; width: 90%; } .m-text.corto { width: 60%; }
  .m-btn { height: 30px; width: 120px; border-radius: 999px; background: var(--grad); }
  .m:nth-of-type(1) { animation-delay: .2s; }
  .m-hero { animation-delay: .8s; }
  .m-row .m:nth-child(1) { animation-delay: 1.5s; } .m-row .m:nth-child(2) { animation-delay: 1.8s; } .m-row .m:nth-child(3) { animation-delay: 2.1s; }
  .m-text { animation-delay: 2.7s; } .m-text.corto { animation-delay: 3s; } .m-btn { animation-delay: 3.5s; }
  @keyframes construir {
    0% { opacity: 0; transform: translateY(14px) scale(.96); }
    6%, 82% { opacity: 1; transform: none; }
    92%, 100% { opacity: 0; transform: translateY(-6px); }
  }
  .mock-cursor { position: absolute; width: 18px; height: 18px; top: 60%; left: 30%; animation: cursor 9s ease-in-out infinite; pointer-events: none; }
  .mock-cursor::before { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 64% 94%, 44% 66%, 80% 66%); background: #fff; }
  @keyframes cursor {
    0% { top: 70%; left: 70%; } 15% { top: 14%; left: 20%; } 35% { top: 40%; left: 55%; }
    55% { top: 62%; left: 30%; } 75% { top: 84%; left: 18%; } 80% { top: 84%; left: 18%; transform: scale(.85); } 85% { transform: scale(1); } 100% { top: 70%; left: 70%; }
  }
  .mock-tag { position: absolute; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; }
  .mock-tag.t1 { top: -16px; right: 24px; animation: etiqueta 4s ease-in-out infinite; }
  .mock-tag.t2 { bottom: 28px; left: -22px; animation: etiqueta 4s 2s ease-in-out infinite; }
  @keyframes etiqueta { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @media (max-width: 960px) { .mock { transform: none; } .mock-tag.t2 { left: 12px; } }

  /* Títulos: subrayado de degradado que se dibuja */
  .h2.reveal::after { content: ''; display: block; height: 4px; width: 0; margin-top: 14px; border-radius: 4px; background: var(--grad); transition: width 1s .3s cubic-bezier(.2,.7,.2,1); }
  .h2.reveal.visible::after { width: 72px; }

  /* Configurador: progreso y opciones que rebotan */
  .cfg-progreso { position: sticky; top: 88px; z-index: 5; display: flex; align-items: center; gap: 16px; margin-bottom: 40px; padding: 14px 18px; border-radius: 999px; background: rgba(13,20,48,.9); border: 1px solid var(--line); backdrop-filter: blur(8px); }
  .cfg-barra { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
  .cfg-barra div { height: 100%; width: 0; background: var(--grad); transition: width .5s cubic-bezier(.2,.7,.2,1); }
  .cfg-progreso span { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .chip { transition: transform .15s, background .2s, border-color .2s; }
  .chip:active { transform: scale(.94); }
  .chip[aria-pressed="true"] { animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
  .chip[aria-pressed="true"]::before { content: '✓'; margin-right: 6px; font-weight: 700; }
  @keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
  .resumen-anim { animation: subir .4s cubic-bezier(.2,.7,.2,1); }
  @media (max-width: 760px) { .cfg-progreso { top: 78px; } }

  /* Planes con inclinación 3D */
  .plan { transition: transform .15s ease-out, border-color .2s; will-change: transform; }

  /* Respeta a quien prefiere menos movimiento */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .m { opacity: 1; }
    .h2.reveal::after { width: 72px; }
  }

  /* Móvil: cabecera compacta */
  @media (max-width: 760px) {
    .menu a:not(.btn) { display: none; }
    nav { flex-wrap: nowrap; padding: 12px 20px; }
    .wrap { padding: 72px 20px; }
    .hero { padding-top: 64px; }
  }

  /* Botón flotante de WhatsApp */
  .wa { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.35); z-index: 20; }

/* ===== LOGO ===== */
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { display: block; border-radius: 9px; }

/* ===== CONFIGURADOR + VISTA PREVIA ===== */
.cfg-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: start; }
.preview-col { position: sticky; top: 160px; display: flex; flex-direction: column; gap: 14px; }
.preview-head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.preview-head small { font-weight: 400; opacity: .8; }
.live { width: 9px; height: 9px; border-radius: 50%; background: #28C840; box-shadow: 0 0 0 0 rgba(40,200,64,.6); animation: vivo 1.8s infinite; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(40,200,64,.6); } 100% { box-shadow: 0 0 0 10px rgba(40,200,64,0); } }

.pv { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #0D1430; }
.pv-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #0D1430; border-bottom: 1px solid var(--line); }
.pv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2C3A72; }
.pv-bar i:nth-child(1) { background: #FF5F57; } .pv-bar i:nth-child(2) { background: #FEBC2E; } .pv-bar i:nth-child(3) { background: #28C840; }
.pv-bar span { margin-left: 8px; flex: 1; font-size: 11px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 4px 10px; }

/* La mini web usa sus propias variables, que cambian con las respuestas */
.pv-page { --pbg: #F7F7FB; --pfg: #14142B; --pac: #4D8DFF; --pmuted: rgba(20,20,43,.6); --pcard: rgba(20,20,43,.06);
  --pr: 10px; --pfont: Inter, system-ui, sans-serif; --pdisplay: var(--pfont);
  background: var(--pbg); color: var(--pfg); font-family: var(--pfont); height: 520px; overflow-y: auto; position: relative;
  transition: background .5s, color .5s; scrollbar-width: thin; }
.pv-page * { transition: background .5s, color .5s, border-radius .4s, border-color .5s; }
.pv-page .p-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; font-size: 10px; border-bottom: 1px solid var(--pcard); }
.pv-page .p-brand { font-family: var(--pdisplay); font-weight: 700; font-size: 13px; }
.pv-page .p-links { display: flex; gap: 10px; align-items: center; color: var(--pmuted); flex-wrap: wrap; justify-content: flex-end; }
.pv-page .p-pill { background: var(--pac); color: var(--pbg); padding: 4px 9px; border-radius: var(--pr); font-weight: 600; }
.pv-page .p-hero { padding: 28px 16px 24px; }
.pv-page .p-hero h4 { margin: 0 0 8px; font-family: var(--pdisplay); font-size: 24px; line-height: 1.1; }
.pv-page .p-hero p { margin: 0 0 14px; font-size: 11px; line-height: 1.5; color: var(--pmuted); }
.pv-page .p-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-page .p-btn { display: inline-block; font-size: 10px; font-weight: 600; padding: 7px 13px; border-radius: var(--pr); background: var(--pac); color: var(--pbg); }
.pv-page .p-btn.o { background: transparent; color: var(--pfg); border: 1px solid var(--pmuted); }
.pv-page .p-img { border-radius: var(--pr); background: linear-gradient(135deg, var(--pac), color-mix(in srgb, var(--pac) 30%, var(--pbg))); }
.pv-page .p-sec { padding: 14px 16px; }
.pv-page .p-sec h5 { margin: 0 0 10px; font-family: var(--pdisplay); font-size: 13px; }
.pv-page .p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-page .p-card { background: var(--pcard); border-radius: var(--pr); padding: 8px; font-size: 9px; display: flex; flex-direction: column; gap: 5px; }
.pv-page .p-card .p-img { height: 46px; }
.pv-page .p-card b { font-size: 10px; }
.pv-page .p-line { height: 6px; border-radius: 3px; background: var(--pcard); }
.pv-page .p-row { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; padding: 7px 0; border-bottom: 1px dashed var(--pcard); }
.pv-page .p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-page .p-chip { font-size: 9px; padding: 5px 9px; border-radius: var(--pr); background: var(--pcard); }
.pv-page .p-stars { color: #F5B301; letter-spacing: 1px; font-size: 12px; }
.pv-page .p-map { height: 70px; border-radius: var(--pr); background:
  repeating-linear-gradient(0deg, transparent 0 14px, var(--pcard) 14px 15px),
  repeating-linear-gradient(90deg, transparent 0 14px, var(--pcard) 14px 15px), var(--pcard); position: relative; }
.pv-page .p-map::after { content: ''; position: absolute; left: 50%; top: 40%; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--pac); }
.pv-page .p-form { display: flex; flex-direction: column; gap: 6px; }
.pv-page .p-input { height: 18px; border-radius: calc(var(--pr) / 2); border: 1px solid var(--pcard); background: var(--pbg); }
.pv-page .p-foot { padding: 14px 16px 50px; font-size: 9px; color: var(--pmuted); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--pcard); margin-top: 6px; }
.pv-page .p-soc { display: flex; gap: 5px; } .pv-page .p-soc i { width: 14px; height: 14px; border-radius: 50%; background: var(--pac); display: block; opacity: .8; }
.pv-page .p-wa { position: sticky; float: right; bottom: 10px; margin: -40px 10px 0 0; width: 30px; height: 30px; border-radius: 50%; background: #25D366; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.pv-page .p-chat { position: sticky; float: left; bottom: 10px; margin: -40px 0 0 10px; font-size: 9px; padding: 7px 10px; border-radius: 12px 12px 12px 2px; background: var(--pfg); color: var(--pbg); }
.pv-page .p-qr { width: 54px; height: 54px; border-radius: 4px; background:
  conic-gradient(var(--pfg) 25%, transparent 0 50%, var(--pfg) 0 75%, transparent 0) 0 0 / 12px 12px; border: 4px solid var(--pbg); outline: 2px solid var(--pfg); }
.pv-page .p-entra { animation: pvEntra .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pvEntra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Estilos especiales */
.pv-page.e-atrevido .p-hero h4 { font-size: 30px; text-transform: uppercase; letter-spacing: -1px; }
.pv-page.e-minimalista .p-hero { padding: 40px 16px; } .pv-page.e-minimalista .p-hero h4 { font-weight: 500; }
.pv-page.e-retro .p-card, .pv-page.e-retro .p-btn { border: 2px solid var(--pfg); box-shadow: 3px 3px 0 var(--pfg); }
.pv-page.e-tecnologico .p-brand { font-family: ui-monospace, monospace; }
.pv-page.e-lujoso .p-hero h4, .pv-page.e-elegante .p-hero h4 { font-weight: 400; letter-spacing: .5px; }

.precio-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.precio-box span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.precio-box p { margin: 6px 0 4px; font-family: var(--display); font-size: 30px; font-weight: 700; }
.precio-box small { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.precio-box p.calc { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }

@media (max-width: 1000px) {
  .cfg-layout { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .pv-page { height: 440px; }
}

/* ===== SOBRE MÍ ===== */
.sobre { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; align-items: center; }
.foto { aspect-ratio: 4 / 5; border-radius: 28px; background: var(--card); border: 1px dashed var(--line2); display: flex; align-items: center; justify-content: center; color: var(--muted); position: relative; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto::after { content: ''; position: absolute; inset: auto -30% -30% auto; width: 70%; height: 70%; border-radius: 50%; background: var(--accent2); filter: blur(70px); opacity: .35; }
.valores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.valores li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.valores span { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 860px) { .sobre { grid-template-columns: 1fr; gap: 32px; } .foto { max-width: 320px; } }

/* ===== PREGUNTAS FRECUENTES ===== */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.6; animation: subir .35s ease both; }

/* ===== FORMULARIO: privacidad ===== */
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
label.check input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--bg); }
.legal-mini { margin: 0; font-size: 12px !important; line-height: 1.5 !important; opacity: .8; }

/* ===== PÁGINAS LEGALES ===== */
.legal { max-width: 820px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .aviso { background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 18px; font-size: 14px; }

/* Logo: texto pegado al punto */
.logo { gap: 0; white-space: nowrap; }
.logo img { margin-right: 10px; }

/* Botón flotante "Ver cómo queda mi web" (solo móvil y tablet) */
.ver-pv { display: none; }
@media (max-width: 1000px) {
  .ver-pv { position: fixed; left: 16px; bottom: 22px; z-index: 19; display: flex; align-items: center; gap: 10px;
    font: inherit; font-weight: 600; font-size: 15px; color: var(--bg); background: var(--text); border: none; border-radius: 999px;
    padding: 14px 20px; min-height: 48px; box-shadow: 0 10px 30px rgba(0,0,0,.45); cursor: pointer;
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
  .ver-pv.on { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 760px) {
  .menu .btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
  .logo { font-size: 19px; }
  .logo img { width: 30px; height: 30px; }
}

/* Que la cabecera fija no tape el inicio de cada sección */
section[id] { scroll-margin-top: 70px; }
.preview-col { scroll-margin-top: 150px; }
.precio-box p:not(.calc) { font-size: 18px; font-family: Inter, sans-serif; font-weight: 600; color: var(--muted); }

/* ===== FORMULARIO: errores visibles ===== */
.campo-error { font-size: 14px; font-weight: 600; color: #fff; background: #B42318; border-radius: 8px; padding: 6px 10px; margin-top: -4px; animation: subir .25s ease both; }
input.mal, textarea.mal { border: 2px solid #B42318; }
label.check.mal { outline: 2px solid #B42318; outline-offset: 6px; border-radius: 6px; }
.form-aviso { margin: 0; font-size: 15px !important; line-height: 1.5 !important; font-weight: 600; background: var(--bg); color: var(--text); border-radius: 12px; padding: 12px 16px; }
form .btn[disabled] { opacity: .7; cursor: wait; }
form input, form textarea { scroll-margin-top: 120px; }

/* ===== PÁGINA DE GRACIAS ===== */
.gracias { text-align: center; padding-top: 110px; }
.gracias p { font-size: 18px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.gracias .actions { justify-content: center; }
.ok-icono { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.legal .btn { color: var(--bg); text-decoration: none; }
.legal .btn-ghost { color: var(--text); text-decoration: none; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-aviso a { color: var(--accent); }

/* ===== VISTA PREVIA: menú que siempre cabe, resaltado y aviso de desplazamiento ===== */
.pv { position: relative; }
.pv-page { container-type: inline-size; scroll-behavior: auto; }
.pv-page .p-nav { flex-wrap: nowrap; }
.pv-page .p-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.pv-page .p-links { flex-wrap: nowrap; gap: 9px; flex: none; }
.pv-page .p-l { white-space: nowrap; }
.pv-page .p-ico { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 600; padding: 3px 6px; border-radius: var(--pr); background: var(--pcard); color: var(--pfg); white-space: nowrap; }
.pv-page .p-pill { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pv-page .p-burger { display: none; flex-direction: column; gap: 2.5px; padding: 3px 0; }
.pv-page .p-burger i { display: block; width: 13px; height: 1.6px; border-radius: 2px; background: var(--pfg); }
.pv-page .p-nav.muchos .p-l { display: none; }
.pv-page .p-nav.muchos .p-burger { display: flex; }
@container (max-width: 400px) {
  .pv-page .p-nav .p-l { display: none; }
  .pv-page .p-nav .p-burger { display: flex; }
  .pv-page .p-hero h4 { font-size: 21px; }
}
.pv-page .p-flash { animation: pvFlash 1.6s ease-out both; }
@keyframes pvFlash {
  0%, 35% { box-shadow: 0 0 0 2px var(--pac), 0 0 18px color-mix(in srgb, var(--pac) 60%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.pv-page .p-sec.p-flash, .pv-page .p-nav.p-flash, .pv-page .p-hero.p-flash, .pv-page [data-k="tipo"].p-flash { border-radius: 8px; }
.pv-page .p-wa.p-flash, .pv-page .p-chat.p-flash { animation: pvRebote .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pvRebote { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
.pv-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 10px; text-align: center; font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(6,10,26,.85)); pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: 0 0 16px 16px; }
.pv-hint.on { opacity: 1; }
.pv-hint span { display: inline-block; animation: bajar 1.4s ease-in-out infinite; }
@keyframes bajar { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* En móvil, la barra "x de 11 respondidas" se aparta cuando estás mirando la vista previa */
.cfg-progreso { transition: opacity .3s, transform .3s; }
.cfg-progreso.oculto { opacity: 0; transform: translateY(-12px); pointer-events: none; }

.num-404 { font-family: var(--display); font-size: clamp(90px, 18vw, 160px); font-weight: 700; line-height: 1; margin: 0 0 10px !important; }
.nota-precios { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Botón "Borrar todo" del configurador */
.cfg-borrar { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  background: transparent; border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; white-space: nowrap; }
.cfg-borrar:hover { border-color: var(--accent); color: var(--accent); }
.cfg-borrar[hidden] { display: none; }
@media (max-width: 760px) { .cfg-progreso { gap: 10px; padding: 10px 12px; } .cfg-borrar { padding: 6px 10px; font-size: 13px; } .cfg-progreso span { font-size: 13px; } }

/* ===== TRABAJOS ===== */
.trabajo { display: block; color: var(--text); text-decoration: none; }
.shot-img { border: 1px solid var(--line2); overflow: hidden; position: relative; padding: 0; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.trabajo:hover .shot-img img { transform: scale(1.04); }
.estado { position: absolute; bottom: 14px; left: 14px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(6,10,26,.85); color: var(--text); border: 1px solid var(--line2); }
.work-desc { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.shot-cta { border-style: dashed; text-align: center; font-size: 20px; line-height: 1.5; color: var(--muted); transition: border-color .2s; }
.shot-cta b { font-family: var(--display); font-size: 28px; color: var(--text); }
.trabajo-cta:hover .shot-cta { border-color: var(--accent); }
.trabajo-cta:hover { color: var(--accent); }
