/* Kraftor contabilidad · web — estilos de la landing (diseño A · De la casa) */
:root {
  --cream: #f7f1e6; --cream-2: #efe5d3; --paper: #fffaf1; --line: #e2d5bd;
  --ink: #23201b; --ink-2: #4a443a; --muted: #7a7062;
  --green: #1f4a3d; --green-2: #2c6553; --green-soft: #dfe9e2;
  --terra: #c4552d; --terra-soft: #f6dccf; --gold: #c99a3b;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Inter', system-ui, sans-serif;
  --radius: 18px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }


/* Barra superior */
header { position: sticky; top: 0; z-index: 20; background: rgba(247,241,230,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; line-height: 1; font-family: var(--serif); font-size: 21px; font-weight: 700; }
.logo-mark { width: 30px; height: 39px; flex: none; color: var(--green); }
.logo small { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 600; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--terra); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* Banner principal: carrusel con foto de fondo (3 ideas fuerza) */
.hc { position: relative; overflow: hidden; height: min(680px, calc(100vh - 72px)); min-height: 560px; background: #1b1a17; padding: 0; }
.hc-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hc-slide.on { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.hc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-slide.on .hc-photo { animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.08); } to { transform: scale(1); } }
.hc-slide::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(20,18,14,.86) 0%, rgba(20,18,14,.62) 42%, rgba(20,18,14,.08) 78%),
  linear-gradient(0deg, rgba(20,18,14,.55) 0%, transparent 35%); }
.hc-in { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hc-copy { max-width: 680px; color: #fff; padding-bottom: 40px; }
.hc-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.hc-slide.on .hc-copy > * { opacity: 1; transform: none; }
.hc-slide.on .hc-copy > :nth-child(2) { transition-delay: .12s; }
.hc-slide.on .hc-copy > :nth-child(3) { transition-delay: .24s; }
.hc-slide.on .hc-copy > :nth-child(4) { transition-delay: .36s; }
.hc-slide.on .hc-copy > :nth-child(5) { transition-delay: .48s; }
.hc .eyebrow { color: #f3b48f; }
.hc h1, .hc h2 { font-size: clamp(38px, 5.4vw, 64px); margin: 16px 0 20px; line-height: 1.08; color: #fff; }
.hc h1 em, .hc h2 em { font-style: italic; color: #f3b48f; font-weight: 600; }
.hc .lead { font-size: 18.5px; color: #e9e2d6; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hc .btn-primary { background: var(--terra); }
.hc .btn-primary:hover { background: #d4623a; }
.hc .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; background: rgba(255,250,241,.95); color: var(--ink); padding: 10px 16px 10px 12px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.chip b { color: var(--green-2); font-variant-numeric: tabular-nums; }
.chip small { color: var(--muted); }
.chip i { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.hc-ctrls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 34px; }
.hc-ctrls .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hc-tabs { display: flex; gap: 10px; }
.hc-tab { border: 0; background: none; cursor: pointer; padding: 0; text-align: left; width: 160px; font: 600 13px var(--sans); color: rgba(255,255,255,.6); }
.hc-tab.on { color: #fff; }
.hc-tab .tr { display: block; height: 3px; border-radius: 2px; overflow: hidden; margin-bottom: 8px; background: rgba(255,255,255,.25); }
.hc-tab .tr i { display: block; height: 100%; width: 0; background: #f3b48f; }
.hc-tab.on .tr i { animation: fill var(--dur, 7s) linear forwards; }
.hc.paused .hc-tab.on .tr i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.hc-arrows { display: flex; gap: 8px; }
.hc-arrows button { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.hc-arrows button:hover { background: rgba(255,255,255,.22); }
.hc-arrows svg { width: 18px; height: 18px; }

/* Franja de rubros */
.strip { background: var(--green); color: var(--cream); padding: 18px 0; overflow: hidden; }
.strip-track { display: flex; gap: 40px; white-space: nowrap; font-family: var(--serif); font-size: 20px; font-style: italic; animation: slide 40s linear infinite; width: max-content; }
.strip-track span::after { content: "✦"; margin-left: 40px; color: var(--gold); font-style: normal; font-size: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 46px); margin-top: 12px; }
.sec-head p { color: var(--ink-2); font-size: 17.5px; margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Problemas */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pain .q { font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.3; margin-bottom: 14px; }
.pain p { color: var(--ink-2); font-size: 15px; }

/* La carta de servicios */
.menu { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 56px 64px; position: relative; box-shadow: 0 30px 70px -40px rgba(60,40,10,.4); }
.menu::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line); border-radius: 2px; pointer-events: none; }
.menu-title { text-align: center; margin-bottom: 44px; }
.menu-title h2 { font-size: clamp(34px, 4vw, 48px); }
.menu-title .orn { color: var(--gold); letter-spacing: .5em; font-size: 13px; margin: 10px 0; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.course h3 { font-size: 15px; font-family: var(--sans); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dish { margin-bottom: 18px; }
.dish-name { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 19.5px; font-weight: 600; }
.dish-name .dots { flex: 1; border-bottom: 1.5px dotted #cdbfa6; transform: translateY(-5px); }
.dish-name .tag { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.dish p { color: var(--muted); font-size: 14.5px; margin-top: 4px; max-width: 440px; }
.menu-foot { text-align: center; margin-top: 34px; font-style: italic; font-family: var(--serif); color: var(--muted); }

/* Por qué gastronomía */
.why { background: var(--cream-2); }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-quote { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px); line-height: 1.25; font-weight: 500; }
.why-quote em { color: var(--terra); }
.why-sign { margin-top: 24px; display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 15px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--terra-soft); color: var(--terra); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.why-list { display: grid; gap: 4px; }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.why-item:last-child { border-bottom: 0; }
.why-num { font-family: var(--serif); font-size: 30px; color: var(--gold); font-weight: 600; line-height: 1; }
.why-item h3 { font-size: 21px; margin-bottom: 6px; }
.why-item p { color: var(--ink-2); font-size: 15px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px 24px; border-top: 3px solid var(--green); background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { counter-increment: s; content: "Paso " counter(s); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); }
.step h3 { font-size: 22px; margin: 10px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote p { font-family: var(--serif); font-size: 18.5px; line-height: 1.45; }
.quote footer { margin-top: auto; font-size: 14px; color: var(--muted); }
.quote footer b { display: block; color: var(--ink); }

/* Preguntas */
.faq { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { font-family: var(--serif); font-size: 21px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); color: var(--terra); font-size: 26px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin-top: 12px; max-width: 680px; }

/* Contacto */
.contact { background: var(--green); color: var(--cream); border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact h2 { font-size: clamp(32px, 4vw, 46px); }
.contact h2 em { color: #f3b48f; }
.contact > div > p { color: #cfdcd4; font-size: 17px; margin: 18px 0 28px; }
.contact-ways { display: grid; gap: 12px; font-size: 15px; }
.contact-ways a { display: flex; align-items: center; gap: 12px; }
.contact-ways svg { width: 20px; height: 20px; color: var(--gold); }
form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; }
label { font-size: 13.5px; font-weight: 600; display: grid; gap: 6px; }
input, select, textarea { font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .btn { justify-content: center; margin-top: 6px; }
form small { color: var(--muted); font-size: 12.5px; text-align: center; }

footer.site { padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.social svg { width: 17px; height: 17px; }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); z-index: 30; }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .why-grid, .contact { grid-template-columns: 1fr; }
  .pains, .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .menu { padding: 40px 28px; }
  .menu-cols { grid-template-columns: 1fr; }
  .contact { padding: 40px 24px; }
}
@media (max-width: 560px) {
  section { padding: 68px 0; }
  .steps, .form-2 { grid-template-columns: 1fr; }
  .nav .btn span { display: none; }
}

/* Pantallas medianas: que el botón flotante de WhatsApp no tape las flechas */
@media (max-width: 1240px) { .hc-ctrls .wrap { padding-right: 96px; } }

/* Banner en celular: texto abajo sobre degradado, sin flechas (se desliza con el dedo) */
@media (max-width: 960px) {
  .hc { height: 620px; min-height: 0; }
  .hc-slide::after { background: linear-gradient(0deg, rgba(20,18,14,.92) 0%, rgba(20,18,14,.7) 55%, rgba(20,18,14,.25) 100%); }
  .hc-in { align-items: flex-end; padding-bottom: 96px; }
  .hc-copy { padding-bottom: 0; }
  .chip { display: none; }
  .hc-tabs { flex: 1; }
  .hc-tab { width: auto; flex: 1; font-size: 0; }
  .hc-arrows { display: none; }
}
@media (max-width: 560px) {
  .hc .lead { font-size: 16.5px; }
  .hc .btn-ghost { display: none; }
}

/* Menú en celular */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .nav-links.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links.open a:last-child { border-bottom: 0; }
}

/* Formulario: mensaje tras enviar */
.form-ok { display: none; text-align: center; padding: 24px 8px; }
.form-ok h3 { font-size: 26px; margin-bottom: 8px; color: var(--green); }
.form-ok p { color: var(--ink-2); }
form.sent > *:not(.form-ok) { display: none; }
form.sent .form-ok { display: block; }

/* Accesibilidad */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .strip-track, .hc-slide.on .hc-photo { animation: none; }
  .hc-slide, .hc-copy > * { transition: none !important; }
  html { scroll-behavior: auto; }
}
