/* Providencia por Proteccti — marfil y oro viejo, estilo certificado */

:root {
  --marfil: #f4efe3;
  --marfil-alto: #fbf7ee;
  --marfil-hondo: #ece4d3;
  --tinta: #2a2620;
  --tinta-suave: #736a58;
  --oro: #9c7a33;
  --oro-claro: #c4a05a;
  --oro-linea: rgba(156, 122, 51, .26);
  --pino: #26332b;
  --verde-ok: #4f7a4a;
  --sombra: 0 18px 50px -28px rgba(60, 45, 15, .5);
  --content: 72rem;
  --prose: 52rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--marfil);
  color: var(--tinta);
  font-family: "Karla", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.08; margin: 0; }

p { margin: 0; }

a { color: inherit; }

/* ── El sello ── */
.escudo {
  fill: url(#oro);
  stroke: #7d5f27;
  stroke-width: 1.4;
}
.llave { fill: var(--marfil-alto); stroke: var(--marfil-alto); }
[class$="-seal"] { filter: drop-shadow(0 6px 10px rgba(70, 52, 18, .28)); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Karla", sans-serif; font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; text-decoration: none; cursor: pointer;
  padding: .7rem 1.5rem; border-radius: 2px; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-solid { background: var(--oro); color: #fff; border-color: var(--oro); }
.btn-solid:hover { background: #886726; transform: translateY(-1px); }
.btn-line { background: transparent; color: var(--tinta); border-color: var(--oro); }
.btn-line:hover { background: var(--oro); color: #fff; }
.btn-ghost { background: transparent; color: var(--tinta); border-color: var(--oro-linea); padding: .5rem 1.1rem; }
.btn-ghost:hover { border-color: var(--oro); }
.btn-block { width: 100%; padding-block: .85rem; }

/* ── Topbar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 6vw, 4rem);
  border-bottom: 1px solid var(--oro-linea);
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 239, 227, .88); backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.brand-seal { width: 26px; height: 30px; align-self: center; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; }
.brand-by { font-size: .78rem; color: var(--tinta-suave); letter-spacing: .04em; }

/* ── Secciones: banda a todo lo ancho, contenido centrado ── */
main > section { padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 6vw, 4rem); }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 700; color: var(--oro); margin-bottom: .9rem; }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 20ch; }

/* ── Hero ── */
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .32em; font-size: .76rem; font-weight: 700; color: var(--oro); }
.hero-seal { width: 92px; height: 108px; margin: 1.6rem 0 .4rem; }
.hero-title { font-size: clamp(3.2rem, 9vw, 6rem); font-weight: 600; letter-spacing: .005em; }
.hero-lede { max-width: 42rem; margin: 1.2rem auto 0; font-size: clamp(1.05rem, 2vw, 1.28rem); color: #4a4335; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

/* ── Credibilidad ── */
.cred { background: var(--pino); color: #efe9db; text-align: center; }
.cred-intro { max-width: var(--prose); margin: 0 auto; font-family: "Fraunces", serif; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: #f3eddf; }
.cred-row { width: min(var(--content), 100%); margin: 2.4rem auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.cred-item { padding: .5rem 1.5rem; border-left: 1px solid rgba(196, 160, 90, .3); display: flex; flex-direction: column; gap: .4rem; }
.cred-item:first-child { border-left: none; }
.cred-num { font-family: "Fraunces", serif; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--oro-claro); font-weight: 600; }
.cred-lbl { font-size: .92rem; color: #cabfa7; letter-spacing: .02em; }
.cred-foot { max-width: var(--prose); margin: 0 auto; color: #c6bca4; font-size: .98rem; }

/* ── Superpoderes ── */
.super .kicker, .super .h2 { text-align: center; margin-inline: auto; }
.super-grid { width: min(var(--content), 100%); margin: 2.6rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.super-item { text-align: center; padding: .4rem .6rem; }
.super-ico { display: inline-block; color: var(--oro); font-size: 1.4rem; margin-bottom: .6rem; }
.super-item h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.super-item p { color: var(--tinta-suave); font-size: .94rem; }

/* ── Vende ── */
.vende .kicker, .vende .h2 { text-align: center; margin-inline: auto; }
.vende-grid { width: min(var(--content), 100%); margin: 2.6rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.vende-card { background: var(--marfil-alto); border: 1px solid var(--oro-linea); border-radius: 3px; padding: 1.6rem 1.7rem; box-shadow: var(--sombra); }
.vende-card h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.vende-card p { color: var(--tinta-suave); font-size: .98rem; }

/* ── Versus ── */
.versus { background: var(--marfil-hondo); }
.versus .kicker, .versus .h2 { text-align: center; margin-inline: auto; }
.versus-cols { width: min(60rem, 100%); margin: 2.6rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.vs-col { background: var(--marfil-alto); border-radius: 3px; padding: 1.7rem 1.8rem; border: 1px solid var(--oro-linea); }
.vs-new { border: 1.5px solid var(--oro); box-shadow: var(--sombra); }
.vs-tag { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--tinta-suave); margin-bottom: 1rem; }
.vs-tag-gold { color: var(--oro); font-family: "Fraunces", serif; font-size: 1.05rem; letter-spacing: .04em; text-transform: none; }
.vs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.vs-list li { position: relative; padding-left: 1.4rem; font-size: .98rem; color: #4a4335; }
.vs-old .vs-list li::before { content: "—"; position: absolute; left: 0; color: var(--tinta-suave); }
.vs-new .vs-list li::before { content: "✓"; position: absolute; left: 0; color: var(--oro); font-weight: 700; }

/* ── Clientes / badge ── */
.clientes { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; width: min(var(--content), 100%); margin-inline: auto; }
.clientes-p { color: var(--tinta-suave); margin: 1rem 0 1.6rem; max-width: 34rem; }
.clientes-badge { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.badge-card { display: flex; align-items: center; gap: .9rem; background: var(--marfil-alto); border: 1px solid var(--oro-linea); border-radius: 4px; padding: 1.1rem 1.5rem; box-shadow: var(--sombra); }
.badge-seal { width: 40px; height: 47px; }
.badge-text { display: flex; flex-direction: column; }
.badge-title { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.1rem; }
.badge-sub { font-size: .86rem; color: var(--verde-ok); font-weight: 600; }
.badge-foot { font-size: .86rem; color: var(--tinta-suave); text-align: center; max-width: 20rem; }

/* ── Planes ── */
.planes .kicker, .planes .h2 { text-align: center; margin-inline: auto; }
.planes-grid { width: min(var(--content), 100%); margin: 2.6rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: start; }
.plan { background: var(--marfil-alto); border: 1px solid var(--oro-linea); border-radius: 4px; padding: 1.9rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.plan-destacado { border: 1.5px solid var(--oro); box-shadow: var(--sombra); position: relative; }
.plan-flag { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--oro); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .25rem .8rem; border-radius: 2px; }
.plan-name { font-size: 1.5rem; }
.plan-price { font-family: "Fraunces", serif; font-size: 2.2rem; font-weight: 600; }
.plan-price span { font-family: "Karla", sans-serif; font-size: .95rem; color: var(--tinta-suave); font-weight: 500; }
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; flex-grow: 1; }
.plan-list li { position: relative; padding-left: 1.3rem; font-size: .96rem; color: #4a4335; }
.plan-list li::before { content: "◆"; position: absolute; left: 0; color: var(--oro-claro); font-size: .7rem; top: .28rem; }
.plan-cta { margin-top: .4rem; }
.planes-nota { width: min(var(--content), 100%); margin: 1.8rem auto 0; text-align: center; font-size: .88rem; color: var(--tinta-suave); }

/* ── FAQ ── */
.faq .kicker { text-align: center; margin-inline: auto; }
.faq-list { width: min(var(--prose), 100%); margin: 1.6rem auto 0; display: flex; flex-direction: column; gap: 1.4rem; }
.faq-item { border-top: 1px solid var(--oro-linea); padding-top: 1.2rem; }
.faq-item h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--oro); }
.faq-item p { color: var(--tinta-suave); }

/* ── Aplica ── */
.aplica { background: var(--pino); }
.aplica-inner { width: min(40rem, 100%); margin-inline: auto; background: var(--marfil-alto); border-radius: 6px; padding: clamp(1.8rem, 4vw, 3rem); box-shadow: 0 30px 70px -30px rgba(0,0,0,.5); text-align: center; }
.aplica-inner .kicker { text-align: center; }
.aplica-inner .h2 { margin: 0 auto; }
.aplica-p { color: var(--tinta-suave); margin: .9rem auto 1.8rem; max-width: 30rem; }
.form { display: flex; flex-direction: column; gap: .8rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form input, .form textarea {
  width: 100%; font-family: "Karla", sans-serif; font-size: 1rem;
  padding: .8rem .9rem; border: 1px solid var(--oro-linea); border-radius: 3px;
  background: #fff; color: var(--tinta);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--oro); outline-offset: 1px; border-color: var(--oro); }
.form textarea { min-height: 5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.cf-turnstile { margin: .2rem 0; }

/* ── Footer ── */
.footer { background: var(--tinta); color: #d9d1c0; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 6vw, 4rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-mark { display: flex; align-items: center; gap: .8rem; }
.footer-seal { width: 34px; height: 40px; }
.footer-name { font-family: "Fraunces", serif; font-size: 1.4rem; font-weight: 600; color: #f1ead9; }
.footer-by { font-size: .8rem; color: #a99f8a; }
.footer-legal { max-width: 46rem; font-size: .84rem; color: #a99f8a; line-height: 1.55; }
.footer-contact { font-size: .9rem; color: #cabfa7; }
.footer-dedica { font-family: "Fraunces", serif; font-style: italic; font-size: .96rem; color: var(--oro-claro); margin-top: .4rem; }

/* ── Responsive ── */
@media (max-width: 820px) {
  .cred-row { grid-template-columns: 1fr; gap: 1rem; }
  .cred-item { border-left: none; border-top: 1px solid rgba(196,160,90,.3); padding-top: 1rem; }
  .cred-item:first-child { border-top: none; }
  .vende-grid, .versus-cols, .planes-grid, .clientes { grid-template-columns: 1fr; }
  .super-grid { grid-template-columns: 1fr 1fr; }
  .clientes { gap: 2rem; }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
