/* ==========================================================================
   Sanniasi Studio · hoja de estilos principal
   ========================================================================== */

:root {
  --brand: #5554e3;
  --brand-dark: #3f3ec0;
  --violet: #a63cf2;
  --blue: #2f6bff;
  --grad: linear-gradient(135deg, #a63cf2 0%, #5554e3 50%, #2f6bff 100%);
  --ink: #14142b;
  --muted: #5d6178;
  --line: #e4e5f2;
  --soft: #f5f5fc;
  --white: #ffffff;
  --surface: #ffffff;
  --field: #fcfcff;
  --header-bg: rgba(255, 255, 255, .86);
  --brand-text: #5554e3;
  --ok: #0f9d58;
  --err: #d93025;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(85, 84, 227, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(20, 20, 43, 0.25);
  --container: 1180px;
  --header-h: 76px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: #0f0f24; color: #e8e8f5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #b9bcd6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin-inline: auto; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .lead { margin-inline: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1 'Inter', system-ui, sans-serif; color: #fff; background: var(--grad);
  box-shadow: 0 12px 26px -12px rgba(85, 84, 227, 0.7);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(85, 84, 227, 0.8); text-decoration: none; color: #fff; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn--light { background: #fff; color: var(--brand-dark); box-shadow: 0 12px 26px -12px rgba(0,0,0,.4); }
.btn--light:hover { color: var(--brand-dark); }
.btn--wa { background: #25d366; box-shadow: 0 12px 26px -12px rgba(37, 211, 102, .7); }
.btn--wa:hover { background: #1ebe5b; color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(20,20,43,.35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none;
}
.nav a:hover { color: var(--brand); background: var(--soft); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 110px);
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(166, 60, 242, .16), transparent 60%),
    radial-gradient(800px 480px at -10% 20%, rgba(47, 107, 255, .14), transparent 60%),
    var(--white);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; list-style: none; padding: 0; }
.hero-badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink);
}
.hero-badges li::before { content: '✓'; color: var(--ok); font-weight: 800; }
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--soft);
  aspect-ratio: 1762 / 1080; transform: rotate(-1.2deg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: ''; position: absolute; inset: -18px -18px auto auto; width: 60%; height: 60%;
  background: var(--grad); opacity: .18; border-radius: 40px; z-index: -1; filter: blur(2px);
}
.float-card {
  position: absolute; left: -22px; bottom: 26px; background: var(--surface); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-size: .92rem; max-width: 260px;
}
.float-card strong { display: block; color: var(--ink); }
.float-card small { color: var(--muted); }
.float-card .dot {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
}

/* ---------- Franja de clientes ---------- */
.clients { padding: 34px 0; border-block: 1px solid var(--line); background: var(--white); }
.clients-inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: center; }
.clients-label { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; width: 100%; text-align: center; }
.clients img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .25s; }
.clients img:hover { filter: none; opacity: 1; }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .97rem; }
.card--link { color: inherit; display: block; }
.card--link:hover { text-decoration: none; }
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(166,60,242,.14), rgba(47,107,255,.14)); color: var(--brand); font-size: 1.5rem;
}
.card .more { display: inline-flex; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .95rem; }
.card .more::after { content: '→'; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 9px; color: var(--ink); font-size: .96rem; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px);
  mask: radial-gradient(circle, transparent 3px, #000 3.5px);
}
.check-list li::after {
  content: ''; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Ventajas (sección oscura) ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit {
  padding: 26px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.benefit h3 { font-size: 1.1rem; margin-bottom: 6px; }
.benefit p { color: #b9bcd6; margin: 0; font-size: .95rem; }
.benefit .icon { background: rgba(255,255,255,.08); color: #fff; margin-bottom: 14px; width: 48px; height: 48px; font-size: 1.3rem; }

/* ---------- Pasos del proceso ---------- */
.steps { counter-reset: paso; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: paso; position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before {
  content: counter(paso, decimal-leading-zero); display: inline-block; font: 800 1.6rem/1 'Outfit', sans-serif;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px;
}
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Planes ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 36px 30px; transition: transform .3s ease, box-shadow .3s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid transparent; background: linear-gradient(var(--surface),var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--grad); color: #fff; font-size: .8rem; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .plan__for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 22px; }
.price__amount { font: 800 3.2rem/1 'Outfit', sans-serif; color: var(--ink); letter-spacing: -0.03em; }
.price__unit { color: var(--muted); font-weight: 500; }
.plan .check-list { margin-bottom: 26px; flex: 1; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 26px; }
.pricing-note span { display: inline-flex; align-items: center; gap: 8px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 500; }
.compare thead th { background: var(--soft); font-family: 'Outfit', sans-serif; font-size: 1rem; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: #a0a3b8; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

.notice {
  display: none; padding: 14px 18px; border-radius: 14px; margin: 0 0 26px; font-weight: 500;
}
.notice.is-visible { display: block; }
.notice--warn { background: #fff7e0; color: #7a5600; border: 1px solid #f6df9b; }
.notice--ok { background: #e8f8ef; color: #0c6b3d; border: 1px solid #b5e6cb; }
.notice--err { background: #fdecea; color: #a0231a; border: 1px solid #f5c2bd; }

/* ---------- Portafolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: 600 .92rem 'Inter', sans-serif; color: var(--ink); cursor: pointer; transition: .2s;
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); border: 0; padding: 0;
  cursor: zoom-in; text-align: left; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work img { aspect-ratio: 16/10; width: 100%; height: auto; object-fit: cover; transition: transform .6s ease; }
.work:hover img { transform: scale(1.04); }
.work__body { padding: 20px 22px 24px; background: var(--surface); flex: 1; }
.work__tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.work h3 { font-size: 1.12rem; margin: 6px 0 6px; }
.work p { margin: 0; color: var(--muted); font-size: .93rem; }
.work[hidden] { display: none; }
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); width: 100%;
}
.lightbox::backdrop { background: rgba(10, 10, 25, .8); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: -48px; right: 0; background: var(--surface); border: 0; width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: box-shadow .2s, border-color .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--brand); font-size: 1.3rem; font-weight: 600; transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 30px; padding: clamp(40px, 6vw, 72px);
  background: var(--grad); color: #fff; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1);
}
.cta-band::before { width: 340px; height: 340px; top: -140px; right: -80px; }
.cta-band::after { width: 260px; height: 260px; bottom: -120px; left: -60px; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); position: relative; max-width: 58ch; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ---------- Contacto y formularios ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.info-list .icon { margin: 0; width: 46px; height: 46px; font-size: 1.2rem; flex-shrink: 0; }
.info-list strong { display: block; color: var(--ink); }
.info-list span, .info-list a { color: var(--muted); font-size: .97rem; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-card h2, .form-card h3 { margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--field); font: 400 1rem 'Inter', sans-serif; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235554e3' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(85, 84, 227, .15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); box-shadow: 0 0 0 4px rgba(217,48,37,.12); }
.field .err { color: var(--err); font-size: .86rem; min-height: 0; display: none; }
.field.has-error .err { display: block; }
.hint { color: var(--muted); font-size: .85rem; }
.check {
  display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer;
}
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.check a { font-weight: 600; }
.form-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.form-status { min-height: 1.4em; font-weight: 500; font-size: .95rem; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.map-card { margin-top: 22px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.map-card a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; background: var(--soft); color: var(--ink); font-weight: 600; }
.map-card a:hover { text-decoration: none; background: #ecebfb; }

/* ---------- Páginas interiores ---------- */
.page-hero { padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); background: linear-gradient(180deg, var(--soft), var(--white)); text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero .lead { margin-inline: auto; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.2em; font-size: 1.15rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.service-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.service-block:last-child { border-bottom: 0; }
.service-block--flip .service-block__copy { order: 2; }
.service-block__copy p { color: var(--muted); }
.service-block .icon { width: 64px; height: 64px; font-size: 1.8rem; }
.service-block__panel { background: var(--soft); border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.service-block__panel h3 { font-size: 1.15rem; }
.service-block__panel .btn { margin-top: 8px; }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; list-style: none; padding: 0; }
.keywords li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--muted); }
.thanks { text-align: center; max-width: 620px; margin: 0 auto; padding: clamp(60px, 9vw, 110px) 0; }
.thanks .icon { margin: 0 auto 22px; width: 84px; height: 84px; font-size: 2.2rem; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); margin: 0 auto 22px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal-block { scroll-margin-top: calc(var(--header-h) + 20px); padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.legal-block:last-child { border-bottom: 0; }
.placeholder { background: #fff7e0; color: #7a5600; padding: 0 6px; border-radius: 6px; font-weight: 600; }

/* ---------- Pie de página ---------- */
.site-footer { background: #0f0f24; color: #b9bcd6; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 0; }
.site-footer a { color: #d8d9ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand img { height: 48px; filter: brightness(0) invert(1); }
.site-footer .brand img.logo-white { filter: none; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff;
}
.socials a:hover { background: var(--grad); text-decoration: none; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: .88rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom button { background: none; border: 0; padding: 0; color: #d8d9ee; cursor: pointer; font: inherit; text-decoration: underline; }

/* ---------- Utilidades flotantes ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); color: #fff; text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.to-top {
  position: fixed; right: 24px; bottom: 92px; z-index: 89; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--surface); color: var(--brand); box-shadow: var(--shadow); cursor: pointer; font-size: 1.2rem;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

.cookies {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 880px; margin-inline: auto;
  background: var(--surface); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: none; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookies.is-visible { display: flex; animation: rise .45s ease; }
.cookies p { margin: 0; font-size: .92rem; color: var(--muted); flex: 1 1 360px; }
.cookies p a { font-weight: 600; }
.cookies .btn-row { gap: 10px; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); padding: 12px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1.02rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 10px 0 0; }
  .hero-grid, .contact-grid, .service-block { grid-template-columns: 1fr; }
  .service-block--flip .service-block__copy { order: 0; }
  .float-card { left: 12px; bottom: -18px; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .grid--2, .grid--3, .grid--4, .benefits, .steps, .work-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .brand img { height: 40px; }
  .hero-media .frame { transform: none; }
  .hero-media::before { display: none; }
  .btn-row .btn { width: 100%; }
  .card, .plan { padding: 24px; }
  .wa-float { width: 56px; height: 56px; right: 14px; bottom: 14px; }
  .to-top { right: 18px; bottom: 84px; }
  .cookies { left: 10px; right: 10px; bottom: 10px; }
  .cookies .btn-row { width: 100%; }
  .cookies .btn { flex: 1; }
  .compare th, .compare td { padding: 12px 10px; font-size: .88rem; }
}

/* ==========================================================================
   Ajustes adicionales: cabecera, iconos SVG, visuales y footer
   ========================================================================== */

.brand img { height: 50px; }
.nav a.btn { color: #fff; background: var(--grad); padding: 0 22px; min-height: 44px; }
.nav a.btn:hover { color: #fff; background: var(--grad); }
.nav a.btn::after { display: none; }

/* Iconos SVG pintados con el degradado de marca */
.icon-svg {
  background: var(--grad); color: transparent;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.ic-grafico { --icon: url('../img/iconos/grafico.svg'); }
.ic-hosting { --icon: url('../img/iconos/hosting.svg'); }
.ic-tienda { --icon: url('../img/iconos/tienda.svg'); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; }
.icon--sm svg { width: 22px; height: 22px; }
.service-block .icon-svg { width: 72px; height: 72px; }

/* Visuales de servicios y planes */
.visual { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--soft); }
.visual img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.poster-grid figure { margin: 0; }
.poster-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.poster-grid figcaption { text-align: center; margin-top: 12px; color: var(--muted); font-size: .92rem; }
.section-visual { margin-top: 36px; }

/* Footer: logo sobre tarjeta blanca para que se vea sobre fondo oscuro */
.site-footer .brand { background: none; padding: 0; }
.site-footer .brand img { height: 44px; filter: none; }

/* Visor del portafolio: el botón de cierre se posiciona respecto al diálogo */
.lightbox { position: relative; overflow: visible; }

@media (max-width: 920px) {
  .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .poster-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

/* Cabecera con imagen de fondo (páginas de servicio) */
.page-banner {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 9vw, 110px);
  background: #0f0f24;
}
.page-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(15,15,36,.94) 0%, rgba(85,84,227,.78) 55%, rgba(47,107,255,.55) 100%);
}
.page-banner h1 { color: #fff; max-width: 18ch; }
.page-banner .lead { color: rgba(255,255,255,.88); }
.page-banner .eyebrow { color: #cfd1ff; }
.page-banner .eyebrow::before { background: var(--surface); }
.page-banner .crumbs, .page-banner .crumbs a { color: rgba(255,255,255,.8); }
.page-banner__content { max-width: 880px; }
.btn--ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); background: transparent; }
.btn--ghost-light:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,.08); }

/* ---------- Configurador de presupuesto (paso a paso) ---------- */
.wizard {
  max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
}
.wizard__progress { display: flex; gap: 8px; margin-bottom: 14px; }
.wizard__progress span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); transition: background .3s ease; }
.wizard__progress span.is-done { background: var(--grad); }
.wizard__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard__step[hidden] { display: none; }
.wizard__step legend { font: 700 1.4rem/1.2 'Outfit', sans-serif; color: var(--ink); padding: 0; margin-bottom: 6px; }
.wizard__step > p { color: var(--muted); margin-bottom: 22px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--field);
  font-weight: 600; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.choice small { font-weight: 400; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.choice:hover span { border-color: var(--brand); }
.choice input:checked + span { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(85, 84, 227, .15); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.group-err { color: var(--err); font-size: .92rem; font-weight: 500; margin: 14px 0 0; }
.group-err[hidden] { display: none; }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.wizard__nav .btn { min-width: 150px; }
.review { margin: 0 0 22px; background: var(--soft); border-radius: 16px; padding: 18px 22px; display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; }
.review dt { font-weight: 700; color: var(--ink); }
.review dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .wizard__nav .btn { min-width: 0; flex: 1; }
  .review { grid-template-columns: 1fr; gap: 2px; }
  .review dd { margin-bottom: 8px; }
}

/* Conmutador de periodo de pago (planes) */
.periodo-toggle { display: flex; justify-content: center; gap: 6px; padding: 6px; width: fit-content; margin: 0 auto 36px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.periodo {
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  font: 600 .95rem 'Inter', sans-serif; color: var(--muted); transition: .2s;
}
.periodo:hover { color: var(--brand); }
.periodo[aria-pressed="true"] { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(85,84,227,.8); }

/* Precio orientativo "desde" */
.precio-desde {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px;
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  color: var(--brand-dark); background: linear-gradient(135deg, rgba(166,60,242,.12), rgba(47,107,255,.12));
}

/* ==========================================================================
   Modo oscuro: se aplica por preferencia del sistema o por elección del visitante
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --white: #0c0c1d;
  --surface: #161632;
  --soft: #1c1c3b;
  --field: #1a1a36;
  --ink: #eeeefb;
  --muted: #b4b9d6;
  --line: #2e2e52;
  --header-bg: rgba(12, 12, 29, .9);
  --brand-text: #9ea0ff;
  --brand: #8b8dff;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
}
:root[data-theme="dark"] {
  --white: #0c0c1d;
  --surface: #161632;
  --soft: #1c1c3b;
  --field: #1a1a36;
  --ink: #eeeefb;
  --muted: #b4b9d6;
  --line: #2e2e52;
  --header-bg: rgba(12, 12, 29, .9);
  --brand-text: #9ea0ff;
  --brand: #8b8dff;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* Conmutador de tema y cabecera */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav { margin-left: auto; }
.theme-toggle {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sol { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sol { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-luna { display: none; }

/* Logo: versión para fondo blanco y versión para fondo oscuro */
.brand .logo-oscuro { display: none; height: 64px; width: auto; }
:root[data-theme="dark"] .brand .logo-claro { display: none; }
:root[data-theme="dark"] .brand .logo-oscuro { display: block; }
@media (max-width: 640px) { .brand .logo-oscuro { height: 54px; } }


/* Modo claro/oscuro dentro del menú (móvil) */
.theme-toggle--menu { display: none; }
@media (max-width: 920px) {
  .theme-toggle--menu {
    display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 48px; padding: 0 16px;
    border: 0; border-radius: 10px; background: transparent; color: var(--ink);
    font: 500 1.02rem 'Inter', system-ui, sans-serif; cursor: pointer; text-align: left;
  }
  .theme-toggle--menu:hover { background: var(--soft); color: var(--brand); border-color: transparent; }
  .theme-toggle--menu svg { width: 22px; height: 22px; flex-shrink: 0; }
  .theme-toggle--menu .icon-sol { display: none; }
  :root[data-theme="dark"] .theme-toggle--menu .icon-sol { display: block; }
  :root[data-theme="dark"] .theme-toggle--menu .icon-luna { display: none; }
}

/* Pie de página: logo para fondo oscuro, sin tarjeta */
.site-footer .brand img { height: 96px; width: auto; }

/* Captcha Turnstile (solo ocupa espacio si Cloudflare lo pide) */
.turnstile-contenedor { margin: 6px 0 2px; }

/* Tarjeta de portafolio: la imagen abre el visor; el enlace externo va en el cuerpo */
.work { cursor: default; }
.work__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.work__open img { aspect-ratio: 16/10; width: 100%; height: auto; object-fit: cover; transition: transform .6s ease; }
.work:hover .work__open img { transform: scale(1.04); }
.work__link { display: inline-flex; margin-top: 12px; font-weight: 600; font-size: .92rem; }
.work__link:hover { text-decoration: underline; }
nav.crumbs { display: block; }
.s-precio-hero { margin: 18px 0 0; }
/* Pie con 5 columnas en escritorio */
@media (min-width: 1025px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr; gap: 32px; } }
.s-menu-web { margin-top: 22px; }
.keywords a { color: inherit; text-decoration: none; }
.keywords a:hover { color: var(--brand); text-decoration: underline; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Planes: casilla empresa/autónomo y desglose del importe */
.check--centro { max-width: 640px; margin: -10px auto 30px; justify-content: center; text-align: left; }
.desglose { margin: -8px 0 18px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.desglose strong { color: var(--ink); }
