/* ===================================================================
   Helmanticapp · estilos
   Paleta: piedra de Villamayor (crema), tinta oscura y ocre
   =================================================================== */

:root {
  --ink: #11161C;
  --ink-soft: #2B333D;
  --muted: #667283;
  --line: #E3DCCF;
  --bg: #FBF8F3;
  --bg-2: #F3EDE3;
  --card: #FFFFFF;
  --accent: #C8763C;
  --accent-dark: #A65B29;
  --green: #1E6B57;
  --radius: 14px;
  --shadow: 0 20px 45px -28px rgba(17, 22, 28, .55);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  line-height: 1.08;
  margin: 0 0 .45em;
  letter-spacing: -.015em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: 999px; padding: .95rem 1.6rem; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #175644; }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.btn svg { width: 19px; height: 19px; }

/* --- Cabecera --- */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav { display: flex; align-items: center; gap: 1.6rem; height: 76px; }
.logo {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: Fraunces, serif; font-weight: 600; font-size: 1.4rem; letter-spacing: -.02em;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-family: Fraunces, serif; font-size: 1.1rem;
}
.nav-links { margin-left: auto; display: flex; gap: 1.7rem; font-size: .97rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: .65rem 1.2rem; font-size: .95rem; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* --- Hero --- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.hero .lead { font-size: 1.18rem; max-width: 33rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.3rem; }
.trust { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .93rem; color: var(--muted); font-weight: 500; }
.trust span { display: flex; align-items: center; gap: .4rem; }
.tick { color: var(--green); font-weight: 800; }

/* --- Tarjeta de la demo (hero) --- */
.demo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.6rem; box-shadow: var(--shadow);
}
.demo-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: flex; gap: .9rem; align-items: flex-start;
  padding: .75rem 0; border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before {
  content: counter(s); flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-2); color: var(--accent); font-weight: 700; font-size: .85rem;
  display: grid; place-items: center;
}
.steps b { display: block; font-size: .98rem; }
.steps span { font-size: .92rem; color: var(--muted); }
.demo-card .time {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .92rem; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem;
}

/* --- Secciones --- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 42rem; margin-bottom: 2.4rem; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.card h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.card p { margin: 0; font-size: .96rem; color: var(--muted); }
.card .ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: .85rem; background: var(--bg-2); color: var(--accent);
}
.card .ic svg { width: 21px; height: 21px; }

/* --- Sectores --- */
.sectors { display: flex; flex-wrap: wrap; gap: .6rem; }
.sector {
  display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .97rem;
}
.sector i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); font-style: normal; }

/* --- Precios --- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.price.best { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.price.best::after {
  content: "El más elegido"; position: absolute; top: -13px; left: 1.6rem;
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px;
}
.price .amount { font-family: Fraunces, serif; font-size: 3rem; line-height: 1; font-weight: 600; }
.price .per { color: var(--muted); font-size: .93rem; font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.price li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .45rem; font-size: .96rem; }
.note { margin-top: 1.5rem; font-size: .94rem; color: var(--muted); }

/* --- FAQ --- */
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: .7rem 0 0; color: var(--muted); }

/* --- Llamada final --- */
.cta-box {
  background: var(--ink); color: var(--bg); border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.4rem); text-align: center;
}
.cta-box h2 { color: var(--bg); }
.cta-box p { color: rgba(251, 248, 243, .78); max-width: 38rem; margin-inline: auto; }
.cta-box .btn-ghost { background: transparent; border-color: rgba(251, 248, 243, .35); color: var(--bg); }
.cta-box .btn-ghost:hover { border-color: var(--bg); }

/* --- Pie --- */
footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* --- Botón flotante de WhatsApp --- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 25px -8px rgba(30, 107, 87, .7); text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
