/* Portada de kimycars.com. Colores de marca: negro, dorado y crema. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --negro: #0a0a0a;
  --carbon: #141311;
  --carbon-2: #1c1a17;
  --oro: #b8960c;
  --oro-claro: #e2c25a;
  --crema: #f0ede6;
  --gris: #8c8a85;
  --linea: rgba(240, 237, 230, .12);
  --display: 'Cormorant Garamond', Georgia, serif;
  --texto: 'Instrument Sans', system-ui, sans-serif;
  --r: 18px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--negro); color: var(--crema);
  font: 400 17px/1.6 var(--texto); overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--oro); color: var(--negro); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.ph { line-height: 1; }

/* Cabecera */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: linear-gradient(to bottom, rgba(10, 10, 10, .9), rgba(10, 10, 10, 0));
}
.top.solid { background: rgba(10, 10, 10, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 var(--display); letter-spacing: .01em; }
.brand img { width: 34px; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); font-size: 15px; }
.top nav a { text-decoration: none; padding: 8px 2px; color: #cfccc5; }
.top nav a:hover { color: var(--oro-claro); }
.top .nav-cta { color: var(--negro); background: var(--crema); padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.top .nav-cta:hover { background: var(--oro-claro); color: var(--negro); }
@media (max-width: 640px) { .top nav a:not(.nav-cta) { display: none; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--texto); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-gold { background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: var(--negro); box-shadow: 0 10px 30px -12px rgba(184, 150, 12, .7); }
.btn-gold:hover { box-shadow: 0 14px 40px -10px rgba(226, 194, 90, .8); }
.btn-ghost { border-color: rgba(240, 237, 230, .3); color: var(--crema); }
.btn-ghost:hover { border-color: var(--crema); background: rgba(240, 237, 230, .06); }
.link { color: var(--oro-claro); font-weight: 600; text-underline-offset: 4px; }
.link:hover { color: var(--crema); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-claro); }

/* Dispositivos */
.device { position: relative; background: #000; overflow: hidden; }
.phone {
  width: 230px; aspect-ratio: 540 / 1200; border-radius: 30px;
  border: 7px solid #23211d; box-shadow: 0 0 0 1px #3a362e, 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; backface-visibility: hidden; }
.browser {
  border-radius: 14px; border: 1px solid #34302a;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1d1b18; font: 500 11px/1 var(--texto); color: var(--gris); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3b3832; }
.browser-bar b { margin-left: 10px; font-weight: 500; background: #121110; padding: 4px 12px; border-radius: 999px; }

/* Portada */
.hero {
  position: relative; min-height: 100dvh;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 32px;
  padding: 110px var(--pad) 60px; max-width: var(--max); margin: 0 auto;
}
.hero-glow {
  /* Ocupa todo el ancho de la pantalla, no solo la columna de 1280 px */
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 45%), rgba(184, 150, 12, .22), transparent 60%),
    radial-gradient(900px circle at 85% 110%, rgba(184, 150, 12, .12), transparent 60%);
}
.hero h1 { font-size: clamp(50px, 7.4vw, 108px); font-weight: 500; line-height: .95; letter-spacing: -.01em; margin-top: 20px; }
.hero h1 em {
  font-style: italic; font-weight: 500; display: block; padding-bottom: .08em;
  background: linear-gradient(100deg, var(--oro-claro) 10%, var(--oro) 55%, #f5e7b0 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: #c9c6be; max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.stage { position: relative; height: min(640px, 72vh); perspective: 1400px; }
.stage .device { position: absolute; transition: transform .25s ease-out; }
.d-back { width: 76%; right: 0; top: 4%; transform: translate3d(calc(var(--rx, 0) * -12px), calc(var(--ry, 0) * -10px), 0) rotateY(-14deg) rotateX(4deg); opacity: .9; }
.d-left { left: 4%; bottom: 0; width: 41%; max-width: 240px; transform: translate3d(calc(var(--rx, 0) * 18px), calc(var(--ry, 0) * 14px), 0) rotateY(12deg) rotateZ(-4deg); z-index: 2; }
.d-right { right: 8%; bottom: 6%; width: 37%; max-width: 220px; transform: translate3d(calc(var(--rx, 0) * 26px), calc(var(--ry, 0) * 20px), 0) rotateY(-10deg) rotateZ(5deg); z-index: 3; }
@media (prefers-reduced-motion: no-preference) {
  .stage .device { animation: subir .9s cubic-bezier(.2, .8, .2, 1) both; }
  .d-left { animation-delay: .15s; } .d-right { animation-delay: .3s; }
  @keyframes subir { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 100px; }
  .stage { height: 460px; }
  .d-back { width: 88%; }
}
@media (max-width: 480px) {
  .stage { height: 400px; }
}

/* Secciones */
.projects, .work, .btc, .quotes, .contact { padding: clamp(80px, 11vw, 150px) var(--pad); max-width: var(--max); margin: 0 auto; position: relative; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }
.sec-head h2 { margin-top: 14px; font-size: clamp(40px, 5.6vw, 78px); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.sec-head h2 em { font-style: italic; color: var(--oro-claro); }
.sec-sub { margin-top: 18px; color: #c9c6be; max-width: 52ch; font-size: 18px; }

/* Proyectos */
.show {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: clamp(32px, 4vw, 56px); border-radius: 28px; margin-bottom: 28px;
  background: var(--carbon); border: 1px solid var(--linea); overflow: hidden; position: relative;
}
.show:nth-of-type(even) .show-media { order: 2; }
.show-media { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.show-media::before { content: ''; position: absolute; inset: 10% 5%; border-radius: 50%; filter: blur(60px); opacity: .55; background: var(--glow, var(--oro)); }
.show-vest { --glow: #8a6a1c; }
.show-sp { --glow: #2c3a8c; background: linear-gradient(160deg, #141626, var(--carbon) 60%); }
.show-kind { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); font-weight: 600; }
.show h3 { font-size: clamp(46px, 5.4vw, 78px); font-weight: 600; letter-spacing: -.005em; line-height: 1; margin: 12px 0 18px; }
.show-text > p:not(.show-kind) { color: #c9c6be; max-width: 52ch; }
.feats { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.feats li { display: flex; align-items: center; gap: 12px; }
.feats i { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(184, 150, 12, .14); color: var(--oro-claro); font-size: 19px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

.show-vest .phone { position: absolute; }
.tilt-l { transform: translateX(-30%) translateY(-14px); }
.tilt-r { transform: translateX(30%) translateY(24px); }
.show-sp .phone.big { width: 250px; }
.bubble {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; z-index: 2;
  padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
  background: #f5c84c; color: #1a1a2e; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7);
}
.b1 { top: 16%; left: 2%; }
.b2 { bottom: 14%; right: 0; background: var(--crema); }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: flotar 5s ease-in-out infinite; }
  .b2 { animation-delay: -2.5s; }
  @keyframes flotar { 50% { translate: 0 -10px; } }
}
@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; }
  .show:nth-of-type(even) .show-media { order: 0; }
  .show-media { min-height: 420px; }
  .phone { width: 190px; }
  .show-sp .phone.big { width: 200px; }
}

/* Trabaja conmigo */
.about { display: flex; align-items: center; gap: 28px; margin-top: 56px; padding: 32px; border-radius: var(--r); border: 1px solid rgba(226, 194, 90, .3); background: radial-gradient(500px circle at 0% 50%, rgba(184, 150, 12, .16), transparent 70%); }
.about img { width: 92px; flex: none; }
.about p { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; max-width: 60ch; }
.about strong { color: var(--oro-claro); }
@media (max-width: 560px) { .about { flex-direction: column; align-items: flex-start; } }

/* Bitcoin */
.btc { overflow: hidden; }
.btc-coin {
  position: absolute; right: -4%; top: 4%; z-index: -1;
  font: 600 clamp(260px, 38vw, 520px)/1 var(--display);
  color: transparent; -webkit-text-stroke: 2px rgba(184, 150, 12, .28);
  transform: rotate(12deg);
}
.talks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.talk { padding: 28px; border-radius: var(--r); background: rgba(20, 19, 17, .85); border: 1px solid var(--linea); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 12px; }
.talk-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--oro-claro); background: rgba(184, 150, 12, .12); padding: 7px 12px; border-radius: 999px; }
.talk h3 { font-size: 28px; font-weight: 600; line-height: 1.1; }
.talk p { color: var(--gris); font-size: 16px; }
.talk .link { margin-top: auto; }
@media (max-width: 900px) { .talks { grid-template-columns: 1fr; } }

/* Opiniones */
.quote-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.q { margin: 0; padding: 28px; border-radius: var(--r); background: var(--carbon); border: 1px solid var(--linea); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.q blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.q figcaption { font-size: 14px; color: var(--gris); }
.q-main { grid-row: span 2; background: linear-gradient(150deg, #2a2310, var(--carbon) 70%); border-color: rgba(226, 194, 90, .35); }
.q-main > i { font-size: 48px; color: var(--oro); }
.q-main blockquote { font: 500 italic clamp(28px, 3vw, 40px)/1.15 var(--display); }
.q-main figcaption { color: var(--oro-claro); font-weight: 600; }
.quote-grid .q:last-child { grid-column: 2 / 4; }
@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; }
  .q-main { grid-row: auto; }
  .quote-grid .q:last-child { grid-column: auto; }
}

/* Contacto */
.contact-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 64px;
  padding: clamp(28px, 5vw, 64px); border-radius: 28px;
  background: radial-gradient(700px circle at 0% 0%, rgba(184, 150, 12, .22), transparent 60%), var(--carbon);
  border: 1px solid rgba(226, 194, 90, .3);
}
.contact h2 { margin-top: 14px; font-size: clamp(44px, 5.8vw, 78px); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.contact-intro > p:not(.eyebrow) { margin-top: 18px; color: #c9c6be; }
.mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 19px; font-weight: 600; text-decoration: none; color: var(--oro-claro); }
.mail:hover { color: var(--crema); }
.socials { display: flex; gap: 12px; margin-top: 22px !important; }
.socials a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(240, 237, 230, .25); font-size: 22px; text-decoration: none; transition: background .2s, color .2s; }
.socials a:hover { background: var(--crema); color: var(--negro); }
.form { display: flex; flex-direction: column; }
.form label { font-size: 14px; font-weight: 600; margin: 16px 0 8px; color: #d9d6cf; }
.form label:first-child { margin-top: 0; }
.form input, .form textarea {
  font: 400 17px/1.4 var(--texto); color: var(--crema);
  background: rgba(10, 10, 10, .6); border: 1px solid rgba(240, 237, 230, .18); border-radius: 12px;
  padding: 14px 16px; width: 100%;
}
.form textarea::placeholder { color: #6f6d68; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--oro-claro); box-shadow: 0 0 0 3px rgba(226, 194, 90, .2); }
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { margin-top: 24px; align-self: flex-start; }
.form button:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; }
.form-feedback { margin-top: 12px; font-weight: 600; min-height: 1.4em; }
.form-feedback.ok { color: #7bd88f; }
.form-feedback.err { color: #ff8a7a; }
.form-legal { font-size: 13px; color: var(--gris); }
@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } }

/* Pie */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 30px var(--pad); border-top: 1px solid var(--linea); font-size: 14px; color: var(--gris); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--oro-claro); }

/* Aparición al hacer scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Leyenda bajo los dispositivos de la portada */
.stage-legend {
  grid-column: 2; display: flex; justify-content: center; gap: 0; margin-top: -8px;
  font: 500 italic 19px/1.2 var(--display); color: #bdb9af;
}
.stage-legend span + span::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--oro); vertical-align: middle; margin: 0 14px; }
@media (max-width: 900px) { .stage-legend { grid-column: 1; font-size: 16px; } .stage-legend span + span::before { width: 16px; margin: 0 8px; } }

/* Pasos de trabajo */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: paso; }
.step { position: relative; padding: 0 0 8px; }
.step-visual {
  position: relative; height: 250px; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(400px circle at 30% 0%, rgba(184, 150, 12, .18), transparent 70%), var(--carbon);
  border: 1px solid var(--linea); display: flex; flex-direction: column; justify-content: center; padding: 22px;
  transition: border-color .3s, transform .3s;
}
.step:hover .step-visual { border-color: rgba(226, 194, 90, .45); transform: translateY(-4px); }
.step-visual .browser { transform: rotate(-3deg) scale(1.06); }
/* Paso 2: la demo de Lumbre en vivo (web en navegador + app en móvil), escalada con iframes */
.demo-visual { display: block; padding: 0; text-decoration: none; color: inherit; }
.demo-visual iframe { border: 0; pointer-events: none; transform-origin: 0 0; }
.demo-web { position: absolute; left: 18px; top: 26px; width: 300px; transform: rotate(-3deg); }
.demo-frame { height: 186px; overflow: hidden; background: #EDF0E8; }
.demo-frame iframe { width: 1280px; height: 794px; transform: scale(.2344); }
.demo-tel { position: absolute; right: 14px; bottom: -40px; width: 120px; aspect-ratio: 540 / 1200; border-radius: 18px; border: 4px solid #0b0b0b; overflow: hidden; background: #EDF0E8; transform: rotate(5deg); box-shadow: 0 20px 40px -12px rgba(0,0,0,.7); }
.demo-tel iframe { width: 390px; height: 867px; transform: scale(.287); }
.demo-link { display: inline-block; margin-top: 6px; color: var(--oro-claro); font-weight: 500; }
.demo-link:hover { color: var(--crema); }
.chat { gap: 12px; }
.msg { max-width: 82%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.msg-in { background: #26241f; border-bottom-left-radius: 4px; }
.msg-out { align-self: flex-end; background: linear-gradient(135deg, var(--oro-claro), var(--oro)); color: var(--negro); border-bottom-right-radius: 4px; font-weight: 500; }
.launch { gap: 10px; }
.launch-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(10, 10, 10, .55); border: 1px solid var(--linea); font-size: 15px; }
.launch-row i { font-size: 20px; color: var(--oro-claro); }
.launch-row span { flex: 1; }
.launch-row .ok { color: #7bd88f; }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 22px; position: relative; z-index: 1;
  border-radius: 50%; background: var(--negro); border: 1px solid var(--oro); color: var(--oro-claro);
  font: 600 19px/1 var(--texto); font-variant-numeric: lining-nums tabular-nums;
}
.step h3 { font-size: 30px; font-weight: 600; margin: 14px 0 8px; }
.step > p { color: var(--gris); font-size: 16px; max-width: 34ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .steps .step:nth-child(2) { transition-delay: .12s; }
  .js .steps .step:nth-child(3) { transition-delay: .24s; }
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 36px; } }
.about .btn { margin-left: auto; flex: none; }
@media (max-width: 760px) { .about .btn { margin-left: 0; } }

/* Bitcoin Tuesday en YouTube */
.yt {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center;
  padding: clamp(24px, 3.5vw, 40px); border-radius: 28px; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(247, 147, 26, .14), var(--carbon) 55%); border: 1px solid var(--linea);
}
.yt-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.yt-text h3 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; line-height: 1.05; }
.yt-text p { color: #c9c6be; max-width: 44ch; }
.yt-text .btn { margin-top: 8px; }
.yt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yt-grid a { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--linea); }
.yt-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s, filter .3s; filter: saturate(.9) brightness(.85); }
.yt-grid i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; color: #fff; opacity: 0; transition: opacity .25s; text-shadow: 0 4px 20px rgba(0, 0, 0, .6); }
.yt-grid a:hover img { transform: scale(1.05); filter: none; }
.yt-grid a:hover i, .yt-grid a:focus-visible i { opacity: 1; }
.talks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .yt { grid-template-columns: 1fr; } .talks { grid-template-columns: 1fr; } }

/* Tarjetas de charla con imagen */
.talk-pic { display: block; margin: -28px -28px 6px; border-bottom: 1px solid var(--linea); overflow: hidden; border-radius: var(--r) var(--r) 0 0; }
.talk-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.talk-pic:hover img { transform: scale(1.04); }
.talk { overflow: hidden; }
