/*
 * Landing v3: portada con cartas reales en celulares, funciones nuevas,
 * precio mensual o anual y registro propio. Se apoya en los tokens de
 * landing.css (--ink, --paper, --copper, --serif…).
 */

/* Hero */
.hero-v3 { position: relative; overflow: hidden; padding: 138px 0 0; background: radial-gradient(circle at 78% 22%, rgba(171,100,71,.16), transparent 34%), radial-gradient(circle at 10% 90%, rgba(112,128,109,.12), transparent 32%), var(--paper); }
.hero-v3-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 40px; }
.hero-v3-copy h1 { text-wrap: balance; margin: 22px 0; font-family: var(--serif); font-size: clamp(56px, 6.4vw, 92px); font-weight: 600; line-height: .92; letter-spacing: -.045em; }
.hero-v3-copy h1 em { color: var(--copper); font-weight: 500; }
.hero-v3-copy > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-v3-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: #5e5951; font-size: 13px; font-weight: 600; }
.hero-v3-proof li { display: flex; align-items: center; gap: 7px; }
.hero-v3-proof i { color: var(--copper); font-size: 17px; }
.hero-in { opacity: 0; transform: translateY(22px); animation: hero-in .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }

.hero-v3-visual { position: relative; height: 640px; perspective: 1400px; }
.hero-v3-visual::before { content: ""; position: absolute; inset: 10% 6% 6% 10%; border-radius: 46% 54% 42% 58% / 50% 38% 62% 50%; background: #e3d2bd; transform: rotate(-4deg); animation: blob 14s ease-in-out infinite alternate; }
.phone { position: absolute; margin: 0; width: 262px; aspect-ratio: 300 / 649; padding: 9px; border-radius: 42px; background: #17150f; box-shadow: 0 40px 80px rgba(40,28,18,.32), inset 0 0 0 2px #3a352c; }
.phone::before { content: ""; position: absolute; z-index: 2; top: 15px; left: 50%; width: 76px; height: 20px; border-radius: 20px; background: #17150f; transform: translateX(-50%); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }
.phone-front { z-index: 3; left: 50%; top: 22px; transform: translateX(-50%); animation: phone-front 1.1s .35s cubic-bezier(.2,.8,.2,1) both, bob 7s 1.6s ease-in-out infinite; }
.phone-back { z-index: 2; width: 226px; top: 92px; filter: saturate(.95); }
.phone-left { left: 2%; animation: phone-left 1.1s .5s cubic-bezier(.2,.8,.2,1) both; }
.phone-right { right: 2%; animation: phone-right 1.1s .6s cubic-bezier(.2,.8,.2,1) both; }
.hero-chip { position: absolute; z-index: 5; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid rgba(40,35,30,.1); border-radius: 16px; background: rgba(255,253,248,.97); box-shadow: 0 18px 40px rgba(54,38,28,.16); }
.hero-chip small { display: block; color: var(--muted); font-size: 10px; }
.hero-chip strong { display: block; font-size: 13px; }
.chip-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--copper); font-size: 18px; }
.chip-order { left: -6px; top: 58%; animation: chip-order 6s 1.8s ease-in-out infinite both; }
.chip-order .chip-icon i { animation: ring 6s 1.8s ease-in-out infinite; }
.chip-qr { right: -10px; top: 18%; animation: chip-in .8s 1.2s cubic-bezier(.2,.8,.2,1) both, float 8s 2s ease-in-out infinite; }
.chip-qr-code { width: 54px; height: 54px; padding: 3px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chip-qr-code svg { width: 100%; height: 100%; display: block; }
.chip-style { right: 8%; bottom: 8%; animation: chip-in .8s 1.5s cubic-bezier(.2,.8,.2,1) both, float 9s 3s ease-in-out infinite; }
.chip-style > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--sage); font-size: 18px; }

.hero-marquee { overflow: hidden; margin-top: 54px; padding: 22px 0; border-top: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { width: max-content; display: flex; animation: marquee 38s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 9px; padding: 0 28px; color: #5e5951; font-size: 14px; font-weight: 600; white-space: nowrap; }
.marquee-track i { color: var(--copper); font-size: 18px; }
.hero-marquee:hover .marquee-track { animation-play-state: paused; }

/* Pasos */
.steps-v3 .steps-grid li { transition: transform .3s, box-shadow .3s; }
.steps-v3 .steps-grid li:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(70,50,35,.1); }
.steps-v3 .steps-grid li > i { transition: transform .4s cubic-bezier(.2,.9,.3,1.3); }
.steps-v3 .steps-grid li:hover > i { transform: rotate(-8deg) scale(1.08); }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-top: 44px; }
.steps-cta small { color: var(--muted); font-size: 13px; }
.steps-cta small a { color: var(--copper-dark); font-weight: 700; text-decoration: underline; }

/* Funciones */
.features-v3 { padding: 126px 0; background: var(--paper); }
.features-v3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.feature-v3 { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); transition: transform .3s, box-shadow .3s; }
.feature-v3:hover { transform: translateY(-5px); box-shadow: 0 26px 54px rgba(70,50,35,.11); }
.feature-v3 h3 { margin: 12px 0 8px; font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.feature-v3 p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; color: white; background: var(--copper); font-size: 23px; }
.feature-tag { color: var(--copper-dark); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.feature-board { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; color: white; background: var(--ink); border-color: transparent; }
.feature-board .feature-tag { color: #e3aa8d; }
.feature-board p { color: rgba(255,255,255,.66); }
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-board > div { display: grid; align-content: start; gap: 8px; min-height: 190px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.06); }
.mini-board b { color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.mini-board .card { height: 50px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.2) 0 30%, transparent 30%) 12px 13px / 60% 6px no-repeat, linear-gradient(90deg, rgba(255,255,255,.12) 0 100%) 12px 28px / 45% 5px no-repeat, #3a352c; border-left: 4px solid #c97a55; }
.mini-board > div:nth-child(2) .card { border-left-color: #c58a1d; }
.mini-board > div:nth-child(3) .card { border-left-color: #3f8a4f; }
.mini-board .card.pop { animation: card-pop 5s ease-in-out infinite; }
.mini-board .card.move { animation: card-move 5s ease-in-out infinite; }
.feature-promo .promo-sample { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; font-size: 15px; }
.promo-sample s { color: var(--muted); }
.promo-sample strong { font-family: var(--serif); font-size: 30px; }
.promo-sample em { padding: 3px 9px; border-radius: 999px; background: var(--copper); color: white; font-size: 12px; font-style: normal; font-weight: 700; }
.stamps-sample { display: flex; gap: 7px; margin-top: 18px; }
.stamps-sample i { width: 26px; height: 26px; border: 2px dashed rgba(38,36,31,.25); border-radius: 50%; }
.stamps-sample i.on { border: 0; background: var(--copper); box-shadow: inset 0 0 0 5px #7f4630; }
.feature-v3:hover .stamps-sample i.on { animation: stamp .45s cubic-bezier(.2,.9,.3,1.3) both; }
.feature-v3:hover .stamps-sample i.on:nth-child(2) { animation-delay: .07s; }
.feature-v3:hover .stamps-sample i.on:nth-child(3) { animation-delay: .14s; }
.feature-sic { grid-column: 1 / -1; background: linear-gradient(120deg, #fffaf2, #f1e4d1); }
.feature-sic p { max-width: 760px; }

/* Estilos reales */
.styles-v3 { overflow: hidden; padding: 120px 0; color: white; background: var(--ink); }
.styles-v3-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; }
.styles-v3-copy .landing-kicker { color: #e3aa8d; }
.styles-v3-copy h2 { margin: 22px 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 64px); font-weight: 600; line-height: 1.01; letter-spacing: -.045em; }
.styles-v3-copy h2 em { color: #e3aa8d; font-weight: 500; }
.styles-v3-copy p { max-width: 460px; margin: 0 0 28px; color: rgba(255,255,255,.66); font-size: 16px; line-height: 1.7; }
.styles-v3-copy .landing-button-ghost { border-color: rgba(255,255,255,.22); background: transparent; color: white; }
.styles-v3-copy .landing-button-ghost:hover { background: rgba(255,255,255,.08); }
.styles-v3-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.style-card { display: grid; gap: 12px; transform: rotate(var(--tilt, 0deg)); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.style-card img { width: 100%; aspect-ratio: 300 / 520; object-fit: cover; object-position: top; border: 7px solid #2f2b24; border-radius: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.style-card span { display: grid; gap: 2px; padding: 0 6px; }
.style-card strong { font-family: var(--serif); font-size: 22px; }
.style-card small { color: rgba(255,255,255,.55); font-size: 12px; }
.style-card:hover { transform: rotate(0deg) translateY(-10px) scale(1.02); }
.styles-v3-gallery .style-card:nth-child(2) { margin-top: 42px; }

/* Precio */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.billing-toggle button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s; }
.billing-toggle button.active { background: white; color: var(--ink); }
.billing-toggle em { margin-left: 4px; padding: 0; background: none; color: var(--copper); font-size: 10px; letter-spacing: 0; text-transform: none; }
.price-card-v3 .price-value { flex-wrap: wrap; animation: price-swap .45s cubic-bezier(.2,.8,.2,1); }
.price-card-v3 .price-value[hidden] { display: none; }
.price-equivalent { width: 100%; color: #e3aa8d; font-size: 12px; font-weight: 700; }

/* Registro */
.signup-page { min-height: 100vh; display: grid; grid-template-columns: .95fr 1.05fr; background: var(--paper); }
.signup-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px 56px; color: white; background: var(--ink); }
.signup-aside::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(171,100,71,.45), transparent 70%); }
.signup-aside h1 { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(42px, 4.6vw, 64px); font-weight: 600; line-height: .98; letter-spacing: -.04em; }
.signup-aside h1 em { color: #e3aa8d; font-weight: 500; }
.signup-aside p { max-width: 430px; margin: 0; color: rgba(255,255,255,.66); font-size: 16px; line-height: 1.7; }
.signup-steps { position: relative; z-index: 1; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.signup-steps li { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.8); font-size: 14px; }
.signup-steps i { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.08); color: #e3aa8d; font-size: 20px; }
.signup-phone { position: relative; z-index: 1; width: 190px; padding: 7px; border-radius: 32px; background: #0f0e0a; box-shadow: 0 30px 60px rgba(0,0,0,.4); transform: rotate(-5deg); animation: bob 7s ease-in-out infinite; }
.signup-phone img { border-radius: 26px; }
.signup-main { display: grid; place-items: center; padding: 48px 24px; }
.signup-card { width: min(520px, 100%); }
.signup-card .landing-brand { display: inline-block; margin-bottom: 28px; }
.signup-card h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.signup-card > p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.signup-form { display: grid; gap: 14px; }
.signup-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup-form label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.signup-form label > span { color: var(--muted); font-weight: 500; }
.signup-form input, .signup-form select { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.signup-form input:focus, .signup-form select:focus { border-color: var(--copper); box-shadow: 0 0 0 4px rgba(171,100,71,.14); }
.signup-terms { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; color: var(--muted) !important; line-height: 1.5; }
.signup-terms input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--copper); }
.signup-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.signup-note a { color: var(--copper-dark); font-weight: 700; }
.signup-alert { margin: 0 0 16px; padding: 12px 15px; border-radius: 12px; background: #f7e2dc; color: #85382c; font-size: 14px; font-weight: 600; }
.password-meter { height: 5px; margin-top: 2px; border-radius: 5px; background: linear-gradient(90deg, var(--copper) var(--strength, 0%), #e7ddcf 0); transition: background .3s; }

@keyframes hero-in { to { opacity: 1; transform: none; } }
@keyframes phone-front { from { opacity: 0; transform: translateX(-50%) translateY(60px) rotateX(18deg); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes phone-left { from { opacity: 0; transform: translateX(70px) rotate(0); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes phone-right { from { opacity: 0; transform: translateX(-70px) rotate(0); } to { opacity: 1; transform: rotate(8deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes blob { from { border-radius: 46% 54% 42% 58% / 50% 38% 62% 50%; } to { border-radius: 58% 42% 55% 45% / 42% 56% 44% 58%; } }
@keyframes chip-order { 0%, 8% { opacity: 0; transform: translateX(-20px) scale(.92); } 14%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes ring { 14%, 100% { transform: rotate(0); } 16% { transform: rotate(16deg); } 18% { transform: rotate(-14deg); } 20% { transform: rotate(10deg); } 22% { transform: rotate(-6deg); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes card-pop { 0%, 10% { opacity: 0; transform: translateY(-12px) scale(.9); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes card-move { 0%, 40% { transform: translateX(-112%); opacity: .4; } 55%, 100% { transform: none; opacity: 1; } }
@keyframes stamp { from { transform: scale(.3) rotate(-30deg); } to { transform: none; } }
@keyframes price-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
    .hero-v3-grid { grid-template-columns: 1fr; }
    .hero-v3-visual { height: 600px; max-width: 640px; width: 100%; margin: 0 auto; }
    .features-v3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-board, .feature-sic { grid-column: 1 / -1; }
    .styles-v3-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .signup-page { grid-template-columns: 1fr; }
    .signup-aside { padding: 32px 24px; }
    .signup-phone { display: none; }
}
@media (max-width: 640px) {
    .hero-v3 { padding-top: 112px; }
    .hero-v3-copy h1 { font-size: 50px; }
    .hero-v3-copy > p { font-size: 16px; }
    .hero-v3-visual { height: 470px; }
    .phone { width: 200px; border-radius: 32px; padding: 7px; }
    .phone img { border-radius: 26px; }
    .phone::before { top: 12px; width: 56px; height: 15px; }
    .phone-back { width: 168px; top: 70px; }
    .phone-left { left: -6px; }
    .phone-right { right: -6px; }
    .chip-order { left: 0; top: 62%; }
    .chip-qr { right: 0; top: 4%; }
    .chip-style { display: none; }
    .features-v3-grid { grid-template-columns: 1fr; }
    .feature-board { grid-template-columns: 1fr; }
    .styles-v3-gallery { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
    .style-card { scroll-snap-align: center; }
    .styles-v3-gallery .style-card:nth-child(2) { margin-top: 0; }
    .signup-form .field-row { grid-template-columns: 1fr; }
    .price-head { flex-wrap: wrap; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-in { opacity: 1; transform: none; animation: none; }
    .phone-front { transform: translateX(-50%); }
    .phone-left { transform: rotate(-8deg); }
    .phone-right { transform: rotate(8deg); }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}
