/* 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); }

.works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } }
.ver { color: var(--accent); font-weight: 600; white-space: nowrap; }
.trabajos-cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.trabajos-cta p { margin: 0; font-family: var(--display); font-size: 24px; }

/* Portfolio: destacado + 6 ejemplos */
.works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trabajo.destacado { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 36px; align-items: center; }
.trabajo.destacado .shot { grid-row: span 2; }
.trabajo.destacado .work-info { flex-direction: column; gap: 4px; margin-top: 0; align-self: end; font-size: 22px; }
.trabajo.destacado .work-info span:first-child { font-family: var(--display); font-size: 32px; }
.trabajo.destacado .work-desc { align-self: start; font-size: 16px; }
.sub-trabajos { color: var(--muted); margin: 0 0 48px; max-width: 40em; }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .works { grid-template-columns: 1fr; } .trabajo.destacado { display: block; } .trabajo.destacado .work-info { flex-direction: row; margin-top: 14px; font-size: inherit; } .trabajo.destacado .work-info span:first-child { font-size: inherit; } }

/* ===== SOBRE MÍ: visual animado (sin foto) ===== */
.sobre-visual { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; display: flex; align-items: center; justify-content: center; }
.sobre-visual::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.45), transparent 70%); filter: blur(30px); animation: sv-respira 5s ease-in-out infinite; }
.sv-logo { position: relative; width: 40%; height: auto; border-radius: 28%; box-shadow: 0 30px 70px rgba(100,90,255,.45); animation: sv-flota 6s ease-in-out infinite; }
.sv-anillo { position: absolute; border-radius: 50%; border: 1px dashed var(--line2); animation: sv-gira 30s linear infinite; }
.sv-anillo.a1 { inset: 14%; }
.sv-anillo.a2 { inset: 0; animation-duration: 46s; animation-direction: reverse; }
.sv-anillo i { position: absolute; font-style: normal; font-size: 14px; font-weight: 600; background: var(--card); border: 1px solid var(--line2); color: var(--text); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px); white-space: nowrap; animation: sv-gira 30s linear infinite reverse; }
.sv-anillo.a2 i { animation-duration: 46s; animation-direction: normal; }
.a1 i:nth-child(1) { left: -6%; top: 40%; } .a1 i:nth-child(2) { right: -4%; top: 56%; }
.a2 i:nth-child(1) { left: 42%; top: -3%; } .a2 i:nth-child(2) { left: 6%; bottom: 12%; } .a2 i:nth-child(3) { right: 2%; top: 18%; }
@keyframes sv-gira { to { rotate: 360deg; } }
@keyframes sv-flota { 50% { transform: translateY(-12px) rotate(-3deg); } }
@keyframes sv-respira { 50% { transform: scale(1.15); opacity: .7; } }
@media (max-width: 860px) { .sobre-visual { max-width: 300px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .sv-anillo, .sv-anillo i, .sv-logo, .sobre-visual::before { animation: none; } }

/* ===== WhatsApp con los colores de la marca ===== */
.wa { width: auto; min-width: 58px; height: 58px; padding: 0 14px; gap: 0; border-radius: 999px; background: linear-gradient(120deg, #4D8DFF, #A06BFF); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(110,100,255,.45); transition: box-shadow .3s, transform .3s; }
.wa:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(110,100,255,.6); }
.wa svg { flex: none; }
.wa-txt { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s cubic-bezier(.2,.8,.2,1), margin .5s cubic-bezier(.2,.8,.2,1); }
.wa:hover .wa-txt, .wa.abierto .wa-txt { max-width: 120px; margin: 0 10px 0 6px; }
@keyframes latido { 0%,100% { box-shadow: 0 10px 30px rgba(110,100,255,.45), 0 0 0 0 rgba(160,107,255,.55); } 50% { box-shadow: 0 10px 30px rgba(110,100,255,.45), 0 0 0 14px rgba(160,107,255,0); } }

.legal-mini a { color: inherit; text-decoration: underline; }

/* ===== Fondo interactivo de puntos ===== */
#fondo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, footer { position: relative; z-index: 1; }
.hero-bg { background: radial-gradient(600px 400px at 85% 10%, rgba(160,107,255,.22), transparent 70%), radial-gradient(700px 500px at 10% 90%, rgba(77,141,255,.16), transparent 70%); }
.blob { opacity: .38; }
.section { background: rgba(6,10,26,.55); }

/* ===== Diagrama: tu web trabajando por ti ===== */
.flujo { overflow-x: clip; background: radial-gradient(900px 500px at 50% 60%, rgba(40,90,255,.16), transparent 70%), rgba(4,7,20,.75); }
.flujo-marco { margin-top: 48px; border: 1px solid var(--line); border-radius: 28px; background: rgba(8,14,36,.6); backdrop-filter: blur(6px); padding: 26px 22px 22px; position: relative; overflow: hidden; }
.flujo-marco::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(120,160,255,.18) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%); pointer-events: none; }
.flujo-svg { position: relative; }
.flujo-svg svg { width: 100%; height: auto; display: block; overflow: visible; }
.fl-arista { fill: none; stroke: rgba(90,140,255,.28); stroke-width: 2; transition: stroke .3s, stroke-width .3s; }
.fl-arista.marcada { stroke: rgba(120,200,255,.75); stroke-width: 2.5; }
.fl-halo { fill: none; stroke: #3FD0FF; stroke-width: 7; opacity: 0; filter: url(#brillo2); transition: opacity .4s; }
.fl-halo.viva { opacity: .35; }
.fl-pulso { fill: #E6F6FF; filter: url(#brillo); }
.fl-pulso-halo { fill: rgba(63,208,255,.35); filter: url(#brillo2); }
.fl-nodo { cursor: pointer; outline: none; }
.fl-fondo { fill: #0A1433; }
.fl-borde { fill: none; stroke: rgba(80,150,255,.55); stroke-width: 1.6; transition: stroke .3s, filter .3s; }
.fl-nodo.centro .fl-borde { stroke-width: 2.5; filter: url(#brillo); }
.fl-ico { fill: none; stroke: #7FC8FF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: stroke .3s; }
.fl-nodo.centro .fl-ico { stroke: #fff; }
.fl-t { fill: #F2F5FF; font: 600 15px Inter, system-ui, sans-serif; }
.fl-nodo.centro .fl-t { font: 700 19px 'Space Grotesk', sans-serif; }
.fl-s { fill: #8FA0D0; font: 500 12px Inter, system-ui, sans-serif; }
.fl-nodo:hover .fl-borde, .fl-nodo:focus-visible .fl-borde, .fl-nodo.activo .fl-borde { stroke: #3FD0FF; filter: url(#brillo); }
.fl-nodo.activo .fl-ico { stroke: #BDEBFF; }
.fl-nodo.flash .fl-borde { animation: fl-flash .9s ease-out; }
.fl-nodo.flash .fl-fondo { animation: fl-fondo .9s ease-out; }
@keyframes fl-flash { 0% { stroke: #E6F6FF; stroke-width: 4; filter: url(#brillo); } 100% { } }
@keyframes fl-fondo { 0% { fill: #17306F; } 100% { fill: #0A1433; } }
.flujo-info { position: relative; display: flex; gap: 16px; align-items: flex-start; margin: 22px 0 0; padding: 18px 20px; border-radius: 18px; background: rgba(13,20,48,.85); border: 1px solid var(--line2); color: var(--muted); font-size: 16px; line-height: 1.55; min-height: 92px; }
.flujo-info b { display: block; color: var(--text); font-family: var(--display); font-size: 18px; margin-bottom: 2px; }
.fl-p-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: flex; align-items: center; justify-content: center; }
.fl-p-ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .flujo-marco { padding: 16px 10px 12px; border-radius: 22px; }
  .fl-t { font-size: 13px; }
  .fl-nodo.centro .fl-t { font-size: 18px; }
  .flujo-info { font-size: 15px; }
}

#sobre-mi { overflow-x: clip; }

/* ===== Mantenimiento: desplegable con planes ===== */
.maint { display: block; }
.maint-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 28px; }
.maint-cab > div:first-child { flex: 1 1 420px; }
.maint-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.maint-toggle { cursor: pointer; font: inherit; font-weight: 600; }
.maint-toggle span { display: inline-block; transition: transform .3s; }
.maint-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.maint-planes { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); animation: maint-abre .45s cubic-bezier(.2,.8,.2,1); }
@keyframes maint-abre { from { opacity: 0; transform: translateY(-10px); } }
.maint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mplan { position: relative; border: 1px solid var(--line2); border-radius: 20px; padding: 24px; background: rgba(6,10,26,.45); }
.mplan.destacado { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.mplan-tag { position: absolute; top: -12px; right: 20px; background: var(--grad); color: var(--bg); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.mplan-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mplan h4 { font-family: var(--display); font-size: 24px; margin: 0; }
.mplan-precio { font-family: var(--display); font-size: 30px; font-weight: 700; margin: 0; white-space: nowrap; color: var(--text) !important; }
.mplan-precio small { font-size: 15px; font-weight: 500; color: var(--muted); }
.mplan-para { color: var(--muted); margin: 6px 0 14px; font-size: 15px; }
.mplan ul { list-style: none; padding: 0; margin: 0; }
.mplan li { position: relative; padding: 7px 0 7px 26px; font-size: 15px; line-height: 1.45; color: var(--text); border-top: 1px solid var(--line); }
.mplan li::before { content: '✓'; position: absolute; left: 2px; top: 7px; color: var(--accent); font-weight: 700; }
.maint-notas { margin-top: 22px; display: grid; gap: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.maint-notas p { margin: 0; }
.maint-notas b { color: var(--text); }
.maint-notas .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 760px) { .maint-grid { grid-template-columns: 1fr; } .mplan { padding: 20px; } }

/* ===== Cómo trabajamos: scroll cinematográfico ===== */
.proceso-scroll { position: relative; height: 460vh; background: #F4EFE7; color: #17130F; }
.ps-pegado { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.ps-pegado::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 500px at 75% 55%, rgba(200,129,74,.18), transparent 70%), radial-gradient(500px 400px at 10% 20%, rgba(124,108,255,.12), transparent 70%); pointer-events: none; }
.ps-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: center; width: 100%; }
.proceso-scroll .eyebrow { color: #6B5CFF; }
.ps-pasos { position: relative; min-height: 330px; }
.ps-paso { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.ps-paso.activo { opacity: 1; transform: none; }
.ps-paso.pasado { transform: translateY(-40px); }
.ps-num { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.ps-paso h2 { font-family: var(--display); font-size: clamp(54px, 7.4vw, 108px); line-height: .92; letter-spacing: -.045em; margin: 0 0 20px; color: #17130F; }
.ps-paso p { font-size: 19px; line-height: 1.6; color: #5A5148; max-width: 26em; margin: 0; }
.ps-progreso { display: flex; gap: 8px; margin-top: 28px; }
.ps-progreso span { height: 4px; flex: 0 0 46px; border-radius: 4px; background: rgba(23,19,15,.12); overflow: hidden; position: relative; }
.ps-progreso span::after { content: ''; position: absolute; inset: 0; background: var(--grad); transform: scaleX(var(--f, 0)); transform-origin: left; }
.ps-pista { margin: 16px 0 0; font-size: 14px; color: #8A7F74; transition: opacity .4s; }

.ps-escena { position: relative; }
.lap { position: relative; width: 100%; max-width: 680px; margin-left: auto; filter: drop-shadow(0 40px 60px rgba(60,35,15,.28)); }
.lap-tapa { background: #1C1B20; border-radius: 18px 18px 6px 6px; padding: 14px 14px 18px; }
.lap-pantalla { position: relative; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; background: #FBF8F3; }
.lap-base { height: 16px; margin: 0 -6%; background: linear-gradient(#C9C7CC, #8E8C93); border-radius: 0 0 16px 16px; position: relative; }
.lap-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 18%; height: 6px; translate: -50% 0; background: #A9A7AE; border-radius: 0 0 8px 8px; }
.ps-barra { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #ECE7DF; border-bottom: 1px solid #DDD5CA; }
.ps-barra i { width: 8px; height: 8px; border-radius: 50%; background: #D3CBC0; }
.ps-url { margin-left: 10px; flex: 1; height: 16px; border-radius: 8px; background: #fff; font: 600 10px Inter, sans-serif; color: #3A332C; display: flex; align-items: center; padding: 0 10px; }
.ps-cursor { display: inline-block; width: 1px; height: 10px; background: #3A332C; margin-left: 1px; animation: ps-parp 1s steps(1) infinite; }
@keyframes ps-parp { 50% { opacity: 0; } }
.ps-lienzo { position: absolute; inset: 26px 0 0 0; }
.capa { position: absolute; inset: 0; opacity: 0; }
/* chat */
.ps-chat { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 6% 9%; background: #EFE9E1; }
.burbuja { max-width: 70%; padding: 10px 14px; border-radius: 16px; font: 500 clamp(10px, 1.25vw, 15px)/1.35 Inter, sans-serif; opacity: 0; transform: translateY(14px) scale(.96); }
.burbuja.ella { align-self: flex-start; background: #fff; color: #2B231C; border-bottom-left-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.burbuja.yo { align-self: flex-end; background: linear-gradient(120deg,#4D8DFF,#A06BFF); color: #fff; border-bottom-right-radius: 4px; }
/* boceto */
.ps-wire { background: #FBF8F3; background-image: radial-gradient(rgba(0,0,0,.08) 1px, transparent 1px); background-size: 14px 14px; }
.w { position: absolute; border: 1.5px dashed #9A8F84; border-radius: 6px; transform-origin: left; transform: scaleX(0); }
.w-nav { left: 5%; right: 5%; top: 5%; height: 8%; }
.w-hero { right: 6%; top: 19%; width: 38%; height: 44%; border-radius: 50%; transform-origin: center; }
.w-t1 { left: 6%; top: 24%; width: 40%; height: 9%; } .w-t2 { left: 6%; top: 36%; width: 30%; height: 9%; } .w-btn { left: 6%; top: 50%; width: 16%; height: 8%; border-radius: 20px; }
.w-c1, .w-c2, .w-c3 { top: 72%; height: 18%; width: 27%; } .w-c1 { left: 5%; } .w-c2 { left: 36.5%; } .w-c3 { left: 68%; }
.paleta { position: absolute; right: 5%; bottom: 4%; display: flex; gap: 6px; }
.paleta i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transform: scale(0); }
/* web acabada */
.ps-web { background: linear-gradient(160deg, #F6EBDD, #EAD5BC); color: #2B1A12; font-family: Inter, sans-serif; }
.pw-nav { display: flex; align-items: center; gap: 4%; padding: 3% 5%; font-size: clamp(8px, 1vw, 12px); }
.pw-nav b { font-family: var(--display); font-size: 1.35em; margin-right: auto; }
.pw-pill { background: #2B1A12; color: #F6EBDD; padding: .5em 1.1em; border-radius: 20px; }
.pw-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 1% 5% 0; gap: 4%; }
.pw-k { font-size: clamp(7px, .85vw, 11px); letter-spacing: .14em; text-transform: uppercase; color: #9C6A3F; margin: 0 0 4%; }
.pw-hero h4 { font-family: var(--display); font-size: clamp(20px, 3.4vw, 46px); line-height: .95; letter-spacing: -.03em; margin: 0 0 7%; }
.pw-btn { display: inline-block; background: #C8814A; color: #fff; padding: .6em 1.3em; border-radius: 20px; font-size: clamp(8px, .95vw, 12px); font-weight: 600; }
.pw-taza { position: relative; aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; }
.taza { position: relative; width: 62%; aspect-ratio: 1.25; background: radial-gradient(ellipse 50% 22% at 50% 18%, #5A341C 60%, #3B2214 61% 70%, #fff 71%), linear-gradient(#fff, #EDE6DC); border-radius: 8% 8% 45% 45% / 8% 8% 55% 55%; box-shadow: 0 18px 30px rgba(60,35,15,.25); }
.taza::after { content: ''; position: absolute; right: -16%; top: 26%; width: 24%; height: 36%; border: 5px solid #fff; border-left: 0; border-radius: 0 50% 50% 0; }
.humo { position: absolute; bottom: 70%; width: 12%; height: 30%; border-radius: 50%; background: radial-gradient(rgba(255,255,255,.9), transparent 70%); filter: blur(4px); animation: ps-humo 3s ease-out infinite; }
.humo + .humo { left: 54%; animation-delay: 1.4s; } .humo:first-child { left: 40%; }
@keyframes ps-humo { 0% { transform: translateY(0) scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-60%) scale(1.6); opacity: 0; } }
.pw-cards { position: absolute; left: 5%; right: 5%; bottom: 5%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.pw-cards span { background: rgba(255,255,255,.7); border-radius: 10px; padding: 6% 8%; font-size: clamp(8px, 1vw, 12px); font-weight: 600; }
/* código */
.ps-codigo { left: auto; width: 52%; top: 8%; bottom: 8%; right: 3%; background: rgba(13,17,35,.94); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.ps-codigo pre { margin: 0; padding: 6% 7%; font: 500 clamp(7px, .9vw, 11.5px)/1.65 ui-monospace, Menlo, Consolas, monospace; color: #D7DCF5; white-space: pre-wrap; }
.c1 { color: #7FC8FF; } .c2 { color: #C59BFF; } .c3 { color: #9BE3A8; } .c4 { color: #6E7598; }
/* publicada */
.ps-lanzada { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 4%; background: linear-gradient(transparent 40%, rgba(43,26,18,.55)); }
.ps-sello { position: absolute; top: 8%; right: 5%; background: #19C37D; color: #fff; font: 700 clamp(9px, 1.1vw, 14px) Inter, sans-serif; padding: .6em 1.1em; border-radius: 30px; box-shadow: 0 8px 20px rgba(25,195,125,.45); }
.ps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5%; width: 90%; }
.ps-stats div { background: rgba(255,255,255,.92); border-radius: 12px; padding: 5% 6%; text-align: center; }
.ps-stats b { display: block; font-family: var(--display); font-size: clamp(14px, 2.2vw, 30px); color: #2B1A12; line-height: 1; }
.ps-stats small { font-size: clamp(7px, .8vw, 11px); color: #6E5A4A; }
.ps-chispas { position: absolute; inset: 0; pointer-events: none; }
.ps-chispas i { position: absolute; width: 8px; height: 8px; border-radius: 2px; }
/* móvil al lado */
.ps-movil { position: absolute; right: -2%; bottom: -6%; width: 22%; aspect-ratio: 9/19; background: #1C1B20; border-radius: 22px; padding: 6px; box-shadow: 0 30px 50px rgba(40,25,10,.35); opacity: 0; transform: translateX(60px) rotate(6deg); }
.pm-pantalla { height: 100%; border-radius: 17px; background: linear-gradient(160deg, #F6EBDD, #EAD5BC); padding: 14% 10%; display: flex; flex-direction: column; gap: 6%; font: 700 clamp(7px, .9vw, 11px) var(--display), sans-serif; color: #2B1A12; }
.pm-hero { aspect-ratio: 1.2; border-radius: 10px; background: rgba(255,255,255,.55); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8%; }
.pm-hero .taza { width: 55%; box-shadow: 0 8px 14px rgba(60,35,15,.2); }
.pm-pantalla i { height: 5%; border-radius: 4px; background: rgba(43,26,18,.2); } .pm-pantalla i.corto { width: 60%; }
.pm-btn { margin-top: auto; background: #C8814A; color: #fff; text-align: center; border-radius: 20px; padding: 8% 0; }

@media (max-width: 860px) {
  .proceso-scroll { height: 420vh; }
  .ps-grid { grid-template-columns: 1fr; gap: 18px; align-content: center; }
  .ps-pasos { min-height: 190px; }
  .ps-paso h2 { font-size: clamp(42px, 13vw, 64px); margin-bottom: 10px; }
  .ps-paso p { font-size: 16px; }
  .ps-progreso { margin-top: 14px; }
  .ps-pista { display: none; }
  .lap { max-width: 440px; margin: 0 auto; }
  .lap-tapa { padding: 8px 8px 10px; border-radius: 12px 12px 4px 4px; }
  .lap-base { height: 10px; }
  .ps-movil { width: 24%; right: 0; border-radius: 14px; padding: 4px; } .pm-pantalla { border-radius: 11px; }
  .ps-codigo { width: 62%; }
}
@media (prefers-reduced-motion: reduce) {
  .proceso-scroll { height: auto; } .ps-pegado { position: static; height: auto; padding: 100px 0; }
  .ps-paso { position: static; opacity: 1; transform: none; margin-bottom: 30px; } .ps-pasos { min-height: 0; }
  .ps-paso h2 { font-size: 44px; } .ps-progreso, .ps-pista { display: none; }
  .ps-web, .ps-movil { opacity: 1; transform: none; }
}
/* ajustes scroll cinematográfico */
.ps-paso h2 { font-size: clamp(48px, 5.7vw, 92px); }
.ps-stats { width: 68%; align-self: flex-start; margin-left: 4%; }
@media (max-width: 860px) { .ps-paso h2 { font-size: clamp(40px, 12vw, 60px); } .ps-stats { width: 72%; } }

/* ===== Cine 3D: portátil que se abre con el scroll ===== */
.cine { position: relative; height: 520vh; background: #04060F; z-index: 1; }
.cine-pegado { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s; }
.cine.listo .cine-lienzo { opacity: 1; }
.cine-pegado::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,6,15,.85) 0%, rgba(4,6,15,.35) 34%, transparent 55%), linear-gradient(#04060F 0, transparent 14%, transparent 86%, #04060F 100%); }
.cine-estatica { display: none; }
.cine-textos { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; pointer-events: none; }
.cine-caps { position: relative; width: min(520px, 44%); min-height: 380px; }
.cine-cap { position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; opacity: 0; transform: translateY(50px); filter: blur(8px); transition: opacity .8s, transform 1s cubic-bezier(.2,.8,.2,1), filter .8s; }
.cine-cap.activo { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.cine-cap.pasado { transform: translateY(-50px); }
.cine-k { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #8FA8FF; margin: 0 0 18px; }
.cine-cap h2 { font-family: var(--display); font-size: clamp(50px, 6.4vw, 104px); line-height: .9; letter-spacing: -.05em; color: #fff; margin: 0 0 24px; }
.cine-cap h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.cine-cap p:not(.cine-k) { font-size: 19px; line-height: 1.6; color: #B5BDD8; margin: 0 0 26px; max-width: 25em; }
.cine-lado { position: absolute; z-index: 2; right: 34px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 14px; font: 600 12px var(--display); color: #6E7AA6; letter-spacing: .1em; writing-mode: vertical-rl; }
.cine-num b { color: #fff; }
.cine-barra { width: 2px; height: 140px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.cine-barra i { display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: top; transform: scaleY(0); }
.cine-pista { position: absolute; z-index: 2; left: 50%; bottom: 28px; translate: -50% 0; margin: 0; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: #8FA0D0; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity .5s; }
.cine-pista span { width: 1px; height: 38px; background: linear-gradient(#8FA0D0, transparent); animation: cine-baja 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cine-baja { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) {
  .cine { height: 460vh; }
  .cine-pegado::after { background: linear-gradient(rgba(4,6,15,.92) 0%, rgba(4,6,15,.6) 30%, transparent 50%), linear-gradient(transparent 85%, #04060F 100%); }
  .cine-textos { align-items: flex-start; padding-top: 92px; }
  .cine-caps { width: 100%; min-height: 250px; }
  .cine-cap { inset: 0 0 auto 0; translate: none; }
  .cine-cap h2 { font-size: clamp(42px, 12.5vw, 64px); margin-bottom: 14px; }
  .cine-cap p:not(.cine-k) { font-size: 16px; margin-bottom: 16px; }
  .cine-k { margin-bottom: 10px; font-size: 11px; }
  .cine-lado { right: 14px; top: auto; bottom: 90px; translate: none; } .cine-barra { height: 80px; }
}
/* Sin 3D (sin WebGL o con movimiento reducido): versión estática */
.cine.sin3d { height: auto; }
.cine.sin3d .cine-pegado { position: relative; height: auto; padding: 110px 0 60px; }
.cine.sin3d .cine-lienzo, .cine.sin3d .cine-lado, .cine.sin3d .cine-pista, .cine.sin3d .cine-pegado::after { display: none; }
.cine.sin3d .cine-caps { width: 100%; min-height: 0; }
.cine.sin3d .cine-cap { position: static; translate: none; opacity: 1; transform: none; filter: none; margin-bottom: 40px; }
.cine.sin3d .cine-cap:not(:first-child):not(:last-child) { display: none; }
.cine.sin3d .cine-estatica { display: block; width: min(900px, calc(100% - 32px)); margin: 0 auto 40px; border-radius: 14px; box-shadow: 0 30px 80px rgba(77,141,255,.25); }
/* Botón flotante de Instagram (encima del de WhatsApp) */
.ig-flot { position: fixed; right: 25px; bottom: 92px; z-index: 20; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4D8DFF, #A06BFF 55%, #E1306C); box-shadow: 0 8px 24px rgba(160,107,255,.4); transition: transform .3s, box-shadow .3s; }
.ig-flot:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 30px rgba(225,48,108,.45); }
/* Forma de pago 50 % / 50 % */
.pagos-claro { margin: 34px auto 0; max-width: 860px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 18px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(120deg, rgba(77,141,255,.1), rgba(160,107,255,.12)); border: 1px solid rgba(160,107,255,.3); }
.pc-paso { display: flex; align-items: center; gap: 14px; }
.pc-pct { flex: none; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-paso strong { display: block; font-size: 16px; }
.pc-paso small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.pc-flecha { font-size: 22px; color: #A06BFF; }
.pc-nota { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .pagos-claro { grid-template-columns: 1fr; } .pc-flecha { transform: rotate(90deg); justify-self: start; margin-left: 22px; } .pc-nota { text-align: left; } }
