/* Wingi — versión preliminar. Paleta A (terracota) por defecto; B y C se activan con la clase en <html>. */
:root {
  --ink: #2e2420;        /* texto principal */
  --ink-2: #5c4f49;      /* texto secundario */
  --accent: #c4664a;     /* color de marca (botones, ala) */
  --accent-dk: #a3503a;
  --accent-2: #8c9c80;   /* color de apoyo */
  --soft: #f8f1e9;       /* fondos suaves */
  --line: #eadfd3;
  --white: #ffffff;
  --hero-shade: rgba(46, 36, 32, .62);
  --radius: 16px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Dancing Script", "Fraunces", cursive;
}
html.pal-b { --ink: #24392f; --ink-2: #4f5f56; --accent: #6f8c78; --accent-dk: #55705e; --accent-2: #c2a15f; --soft: #faf7f0; --line: #e6e1d3; --hero-shade: rgba(28, 44, 36, .6); }
html.pal-c { --ink: #3a3335; --ink-2: #625759; --accent: #7b2f3b; --accent-dk: #62232e; --accent-2: #e9b9b3; --soft: #fbf5f1; --line: #efe0db; --hero-shade: rgba(60, 28, 34, .58); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.15rem; }
.muted { color: var(--ink-2); }
.center { text-align: center; }

/* Botones */
.btn { display: inline-block; background: var(--accent); color: var(--white); text-decoration: none; padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--accent); cursor: pointer; font: 600 1rem var(--sans); transition: background .2s, border-color .2s, color .2s; text-align: center; }
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-sm { padding: .5em 1.1em; font-size: .92rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.85); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: var(--white); }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--accent); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Barra de vista previa (solo preliminar) */
.preview-bar { background: var(--ink); color: #fff; font-size: .85rem; }
.preview-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 18px; }
.preview-bar strong { font-weight: 600; }
.pal-pick { display: flex; gap: 6px; align-items: center; }
.pal-pick button { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 10px 4px 6px; font: 500 .82rem var(--sans); cursor: pointer; }
.pal-pick button[aria-pressed="true"] { background: #fff; color: #222; border-color: #fff; }
.sw { display: inline-flex; }
.sw i { width: 14px; height: 14px; border-radius: 50%; margin-right: -4px; border: 1px solid rgba(0,0,0,.15); }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); }
.ala { display: inline-block; width: 42px; height: 33px; background: var(--accent); -webkit-mask: url("img/isotipo.png") center / contain no-repeat; mask: url("img/isotipo.png") center / contain no-repeat; }
.logo-word { font-family: var(--script); font-weight: 700; font-size: 2.05rem; line-height: 1; color: var(--ink); }
.logo-word-light { color: var(--white); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a.btn { color: var(--white); }
@media (max-width: 820px) { .nav a:not(.btn):not(.keep) { display: none; } .nav { gap: 14px; } }

/* Hero */
.hero { position: relative; color: var(--white); min-height: min(82vh, 720px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-shade), rgba(0,0,0,.25)); }
.hero-in { position: relative; padding-top: 72px; padding-bottom: 72px; max-width: 760px; margin-left: max(18px, calc((100% - 1140px) / 2)); }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { color: var(--white); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.hero-pts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; font-size: .95rem; opacity: .95; }
.hero-pts li::before { content: "✓ "; font-weight: 700; }

/* Secciones */
.section { padding: 84px 0; }
.band { background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-b { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-b p { color: var(--ink-2); margin: 0 0 .8em; }
.card-b .from { margin-top: auto; font-weight: 600; color: var(--ink); }
.from b { color: var(--accent); font-size: 1.15em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-top { align-items: start; }
.split img.round { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* Comparación "proveedores sueltos vs. Wingi" */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.vs > div { border-radius: var(--radius); padding: 26px; }
.vs .bad { background: var(--white); border: 1px solid var(--line); }
.vs .good { background: var(--accent); color: var(--white); }
.vs ul { margin: 0; padding-left: 1.1em; }
.vs li { margin-bottom: .45em; }
.vs h3 { margin-bottom: .6em; }
@media (max-width: 700px) { .vs { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 12px; line-height: 20px; text-align: center; font-weight: 700; }
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 18px; }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-size: 2.1rem; color: var(--accent-2); display: block; line-height: 1; margin-bottom: 8px; font-weight: 600; }
.steps p { color: var(--ink-2); }

/* Paquetes */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; position: relative; }
.plan-hi { border: 2px solid var(--accent); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin-bottom: .1em; }
.plan-for { color: var(--ink-2); font-size: .93rem; margin-bottom: .6em; }
.price { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 0 0 .5em; color: var(--ink); }
.price small { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.plan ul { padding-left: 1.1em; margin: 0 0 1.2em; color: var(--ink-2); }
.plan ul li { margin-bottom: .4em; }
.plan .btn { margin-top: auto; }
.note { font-size: .88rem; color: var(--ink-2); margin-top: 18px; }

/* Testimonios / confianza */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 24px; }
.trust div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.trust b { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: 4px; }
.trust p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin: 24px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq p { margin: .6em 0 0; color: var(--ink-2); }

/* Cotización */
.quote-img { border-radius: var(--radius); margin-top: 20px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .quote-img { display: none; } }
.form { background: var(--soft); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .93rem; }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); padding: .72em .8em; border: 1px solid #d8cdc1; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .f2 { grid-template-columns: 1fr; } .form { padding: 20px 16px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; min-height: 1.4em; font-size: .93rem; color: var(--accent-dk); }

/* Pie */
.foot { background: var(--ink); color: rgba(255,255,255,.8); padding: 48px 0 96px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: rgba(255,255,255,.85); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.wa-float:hover { background: #1ebe5b; }

/* Página de gracias */
.thanks { background: var(--soft); }
.thanks-in { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 680px; }
.thanks-in .logo { margin-bottom: 36px; }

/* Ajustes móviles */
@media (max-width: 640px) {
  .hero-bg::after { background: linear-gradient(180deg, var(--hero-shade), var(--hero-shade)); }
  .pal-pick .pn { display: none; }
  .preview-in { padding: 6px 12px; }
}

/* Comparación de costos */
.cost { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; margin-top: 36px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.cost-txt p:last-child { margin-bottom: 0; }
.cost-tbl { width: 100%; border-collapse: collapse; font-size: .97rem; }
.cost-tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.cost-tbl td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.cost-tbl td:last-child, .cost-tbl th:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.cost-tbl tfoot td { font-weight: 600; border-bottom: 0; }
.cost-tbl tfoot tr:first-child td { padding-top: 12px; }
.cost-tbl tr.us td { background: var(--accent); color: var(--white); padding: 12px 14px; }
.cost-tbl tr.us td:first-child { border-radius: 10px 0 0 10px; }
.cost-tbl tr.us td:last-child { border-radius: 0 10px 10px 0; font-size: 1.1rem; }
.price small:first-child { margin-right: 2px; }
@media (max-width: 760px) { .cost { grid-template-columns: 1fr; padding: 22px 18px; } }
