/* ==========================================================
   Estilos de la web de la agencia
   - Sin fuentes externas ni imágenes de terceros: todo es propio
     (evita problemas de licencias y de RGPD con Google Fonts).
   ========================================================== */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #14161f;
  --muted: #5b6070;
  --line: #e7e4dc;
  --navy: #10132a;
  --navy-2: #1b1f40;
  --accent: #ff5a36;      /* coral: llamadas a la acción */
  --accent-ink: #ffffff;
  --accent-2: #7c5cff;    /* violeta: detalles */
  --ok: #1f9d6a;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(16, 19, 42, .25);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.section { padding: 80px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -8px var(--accent); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 19, 42, .9); backdrop-filter: blur(10px); color: #fff;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 1rem; color: #fff;
}
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; opacity: .85; font-weight: 500; }
.nav a:hover { opacity: 1; }
.header .btn { padding: 10px 18px; font-size: .95rem; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(124, 92, 255, .35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 90, 54, .25), transparent 60%),
    var(--navy);
  color: #fff; padding: 64px 0 90px; overflow: hidden;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 span { background: linear-gradient(90deg, #ff8a6b, #b9a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c9cbe0; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #c9cbe0; font-size: .95rem; padding: 0; margin: 0; list-style: none; }
.hero-badges li::before { content: "✓"; color: #6fe3b0; font-weight: 800; margin-right: 8px; }

/* Maqueta de navegador / móvil en el hero (todo CSS, sin imágenes) */
.mock { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.browser {
  background: #fff; border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  overflow: hidden; color: var(--ink); transform: rotate(-2deg);
}
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; background: #eef0f6; align-items: center; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6159; display: block; }
.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar span { margin-left: 10px; background: #fff; border-radius: 6px; font-size: .72rem; padding: 3px 10px; color: var(--muted); flex: 1; }
.browser-body { padding: 18px; }
.mini-hero { border-radius: 12px; padding: 22px 18px; background: linear-gradient(135deg, #ffe7dc, #ece6ff); }
.mini-hero b { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.mini-line { height: 8px; border-radius: 6px; background: rgba(20,22,31,.12); margin: 6px 0; }
.mini-btn { display: inline-block; margin-top: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mini-cards div { height: 64px; border-radius: 10px; background: #f3f2ee; }
.phone {
  position: absolute; right: -6px; bottom: -40px; width: 150px; border-radius: 26px;
  background: #0b0d1c; padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transform: rotate(5deg);
}
.phone-screen { background: #fff; border-radius: 20px; padding: 14px 10px; color: var(--ink); }
.phone-screen .mini-hero { padding: 14px 10px; }
.phone-screen .mini-hero b { font-size: .8rem; }
.float-tag {
  position: absolute; left: -10px; top: -44px; z-index: 2; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 10px 14px; font-size: .85rem; font-weight: 700; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
}
.float-tag .dot { width: 10px; height: 10px; background: var(--ok); border-radius: 50%; box-shadow: 0 0 0 4px rgba(31,157,106,.2); }
@media (max-width: 520px) { .phone { width: 120px; right: 0; } .float-tag { left: 0; } }

/* ---------- Franja de confianza ---------- */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 26px; padding-bottom: 26px; }
@media (min-width: 800px) { .strip .wrap { grid-template-columns: repeat(4, 1fr); } }
.strip div { font-size: .95rem; color: var(--muted); }
.strip b { display: block; color: var(--ink); font-size: 1.35rem; }

/* ---------- Tarjetas genéricas ---------- */
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #fff1ec; color: var(--accent); font-size: 1.4rem; margin-bottom: 18px;
}
.icon.v { background: #f0ecff; color: var(--accent-2); }

/* ---------- Problema / solución ---------- */
.compare { display: grid; gap: 20px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .card ul { margin: 0; padding: 0; list-style: none; }
.compare li { padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.compare li:last-child { border-bottom: 0; }
.bad li::before { content: "✕"; color: #d64545; font-weight: 800; margin-right: 10px; }
.good { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.good li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 10px; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.step p { color: var(--muted); }

/* ---------- Ejemplos por sector ---------- */
.demos { display: grid; gap: 20px; }
@media (min-width: 720px) { .demos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .demos { grid-template-columns: repeat(4, 1fr); } }
.demo { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.demo-shot { height: 170px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; position: relative; }
.demo-shot b { font-size: 1.15rem; }
.demo-shot small { opacity: .85; }
.demo-shot::before {
  content: ""; position: absolute; inset: 14px 14px auto 14px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.35); width: 40%;
}
.d1 { background: linear-gradient(160deg, #3b1d12, #b5532c); }
.d2 { background: linear-gradient(160deg, #0d3b4f, #2aa6a1); }
.d3 { background: linear-gradient(160deg, #3d1239, #d4588f); }
.d4 { background: linear-gradient(160deg, #1d2333, #5c6b8a); }
.demo-body { padding: 18px; }
.demo-body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Planes ---------- */
.pricing { background: var(--navy); color: #fff; }
.pricing .lead { color: #c9cbe0; }
.plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: 22px;
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}
.plan.featured { background: #fff; color: var(--ink); border: 0; box-shadow: 0 30px 60px -20px rgba(255,90,54,.5); }
@media (min-width: 960px) { .plan.featured { transform: scale(1.04); } }
.plan-badge {
  position: absolute; top: -14px; left: 28px; background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em;
}
.plan h3 { font-size: 1.3rem; }
.plan .for { color: #a9abc4; font-size: .95rem; min-height: 3em; }
.plan.featured .for { color: var(--muted); }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.price small { font-size: 1rem; font-weight: 600; opacity: .7; }
.price-note { font-size: .85rem; opacity: .7; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: .97rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #6fe3b0; font-weight: 800; }
.plan.featured li::before { color: var(--ok); }
.plan .btn-ghost { color: #fff; }
.pricing-foot { margin-top: 36px; color: #c9cbe0; font-size: .95rem; text-align: center; }

/* ---------- Incluido / legal ---------- */
.legal-box {
  display: grid; gap: 28px; align-items: center; background: linear-gradient(135deg, #fff1ec, #f0ecff);
  border-radius: 26px; padding: 36px 28px;
}
@media (min-width: 860px) { .legal-box { grid-template-columns: 1.2fr 1fr; padding: 48px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { background: #fff; border-radius: 14px; padding: 14px 16px 14px 46px; position: relative; font-weight: 600; }
.checks li::before {
  content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; font-size: .75rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex;
  justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.contact-ways { display: grid; gap: 14px; margin-top: 24px; }
.contact-way {
  display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; text-decoration: none;
}
.contact-way b { display: block; }
.contact-way span { color: var(--muted); font-size: .92rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  font: inherit; background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-2); border-color: transparent; }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 18px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.basic-info { font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.basic-info p { margin: 0 0 4px; }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: #c9cbe0; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Páginas legales ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal-page h2 { font-size: 1.35rem; margin-top: 2em; }
.legal-page p, .legal-page li { color: #353a48; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
@media (min-width: 700px) { .legal-page table { display: table; } }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal-page th { background: #f3f2ee; }
.todo { background: #fff4c2; padding: 0 4px; border-radius: 4px; }
.updated { color: var(--muted); font-size: .9rem; }

/* Accesibilidad: menos movimiento si el usuario lo pide */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
