/* Perfil Daniel Camus — mismos tokens que el home de boostify.cl */
:root {
  --bg: #F4F5F0;
  --bg-alt: #FFFFFF;
  --text: #37352F;
  --muted: rgba(55, 53, 47, 0.65);
  --line: rgba(55, 53, 47, 0.16);
  --blue: #0066FF;
  --blue-dark: #0052CC;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.small { font-size: 0.85rem; color: var(--muted); }
.small a { color: var(--text); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 800; font-size: 1.1rem; text-decoration: none; letter-spacing: -0.01em; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a:not(.btn) { text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.menu a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--text); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 12px 28px; border-radius: 16px; font: inherit; font-weight: 500; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; border-radius: 12px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0 1rem; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.status { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; }
.chip { display: inline-block; font-size: 0.8rem; font-weight: 500; padding: 4px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 1.6rem; }
.lead { font-size: 1.2rem; line-height: 1.6; margin: 1.4rem 0 0; max-width: 620px; }
.hero-photo { position: relative; max-width: 360px; justify-self: end; width: 100%; }
.hero-photo img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12); line-height: 1.2; }
.float strong { display: block; color: var(--blue); font-size: 1.35rem; font-weight: 800; }
.float span { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.f1 { left: -40px; bottom: 90px; }
.f2 { right: -24px; top: 28px; }

/* Stats */
.stats { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--blue); line-height: 1.1; }
.stats span { font-size: 0.9rem; font-weight: 500; }

/* Sections */
.sec { padding: 88px 0; }
.sec-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-alt .card { background: var(--bg); }
.eyebrow { color: var(--blue); font-size: 0.8rem; font-weight: 700; margin: 0 0 0.4rem; }
.sub { color: var(--muted); max-width: 680px; margin: 0 0 2.4rem; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 2.4rem; }
.sec-head .sub { margin-bottom: 0; }
.link { font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.97rem; }
.grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Trayectoria */
.jobs { display: grid; gap: 20px; }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.job h3 { font-size: 1.3rem; font-weight: 800; }
.org { margin: 0.2rem 0 0 !important; color: var(--text) !important; font-weight: 600; }
.when { font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(0, 102, 255, 0.08); color: var(--blue); white-space: nowrap; }
.job > p { margin-top: 1rem; }
.job ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.job li { position: relative; padding-left: 20px; font-size: 0.97rem; color: var(--muted); }
.job li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.job li b { color: var(--text); font-weight: 600; }
.before { margin: 1.6rem 0 0; font-size: 0.92rem; color: var(--muted); }
.before b { color: var(--text); }

/* Proyectos */
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.arrow:hover { border-color: var(--text); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.proj { padding: 0; overflow: hidden; text-decoration: none; scroll-snap-align: start; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.proj:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15); }
.proj img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.proj > div { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.proj h3 { font-size: 1rem; margin-top: 6px; }
.proj p { font-size: 0.9rem; flex: 1; }
.proj small { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }
.tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--blue); }

/* Testimonios */
.quote { margin: 0; display: flex; flex-direction: column; }
.stars { color: var(--blue); letter-spacing: 3px; font-size: 1.1rem; }
.quote blockquote { margin: 14px 0 20px; font-style: italic; flex: 1; }
.quote figcaption b { display: block; font-weight: 700; }
.quote figcaption span { font-size: 0.82rem; color: var(--muted); }
.sec .center.small { margin-top: 2rem; }

/* Blog */
.post { padding: 0; overflow: hidden; text-decoration: none; transition: transform .2s; }
.post:hover { transform: translateY(-4px); }
.post img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post h3 { padding: 18px 20px 22px; font-size: 1rem; }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 2rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 1.4rem; font-weight: 500; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.faq a { color: var(--blue); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.bonus { margin-top: 2rem; }
.bonus .row { display: flex; gap: 8px; margin-top: 1rem; }
.form { display: grid; gap: 16px; background: var(--bg) !important; }
.form label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea { font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; font-weight: 400; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; }
.bonus input { flex: 1; min-width: 0; }
.cf-turnstile { margin-top: 12px; }
.msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 0.92rem; }
.msg.ok { background: #e7f8ef; color: #146c43; }
.msg.err { background: #fdecec; color: #b42318; }

/* Footer */
.foot { padding: 28px 0 40px; font-size: 0.88rem; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.langs { display: flex; gap: 14px; }
.langs a[aria-current] { color: var(--text); font-weight: 600; }

/* WhatsApp */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); transition: transform .2s; }
.wa:hover { transform: scale(1.08); }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; }
  .hero { padding: 36px 0 56px; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { justify-self: center; max-width: 280px; }
  .f1 { left: -12px; bottom: 16px; }
  .f2 { right: -12px; top: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { gap: 12px; }
  .stats span { font-size: 0.78rem; display: block; line-height: 1.35; }
  .sec { padding: 64px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .arrows { display: none; }
  .rail { grid-auto-columns: 78%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .lead { font-size: 1.05rem; }
  .grid-4, .row2 { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .card { padding: 22px; }
  .bonus .row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
