/* =========================================================================
   IDEAS ARQ — estilos (tema claro)
   ========================================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f6f5f2;
  --bg-3: #efede8;
  --ink: #141414;
  --ink-2: #2a2a2a;
  --text: #5a5c61;
  --muted: #8c8e93;
  --line: #e6e3dd;
  --line-2: #d9d5cd;

  --accent: #b8862b;
  --accent-ink: #8a6118;
  --accent-soft: #f6efe2;
  --ok: #2f8f63;
  --danger: #b8463c;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -30px rgba(20, 20, 20, .28);
  --shadow-sm: 0 8px 24px -14px rgba(20, 20, 20, .22);
  --max: 1240px;
  --head-h: 78px;

  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.7; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-head); font-weight: 600; font-size: .9rem; letter-spacing: .01em;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: var(--shadow-sm); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-arrow { font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); transition: background .3s, box-shadow .3s; }
.site-header.scrolled, .site-header.solid { background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { position: relative; display: flex; align-items: center; }
.brand img { height: 46px; width: auto; transition: opacity .3s; }
.brand .logo-light { position: absolute; left: 0; top: 0; }
.site-header:not(.scrolled):not(.solid) .logo-dark { opacity: 0; }
.site-header.scrolled .logo-light, .site-header.solid .logo-light { opacity: 0; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .9rem; font-weight: 500; color: var(--ink-2); position: relative; transition: color .2s; }
.site-header:not(.scrolled):not(.solid) .nav a:not(.btn) { color: rgba(255, 255, 255, .9); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { padding: .65em 1.25em; }
.nav .btn-dark, .nav .btn-dark:hover { color: #fff; }
.site-header:not(.scrolled):not(.solid) .nav .btn-dark { background: #fff; color: var(--ink); }
.nav .nav-client { display: inline-flex; align-items: center; gap: .4em; }
.nav .nav-client svg { width: 1.05em; height: 1.05em; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; }
.site-header:not(.scrolled):not(.solid) .menu-toggle { color: #fff; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- héroe (carrusel de proyectos) ---------- */
.hero { position: relative; height: min(92vh, 900px); min-height: 560px; overflow: hidden; background: #111; color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .35) 45%, rgba(10, 10, 10, 0) 70%),
              linear-gradient(0deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 35%);
}
.hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.hero-content .container { padding-top: var(--head-h); }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero .eyebrow::before { background: rgba(255, 255, 255, .7); }
.hero h1 { color: #fff; font-weight: 700; font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: 1.04; max-width: 760px; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: #f0cf91; }
.hero .lead { font-size: 1.12rem; color: rgba(255, 255, 255, .86); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3; }
.hero-foot .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-caption { font-size: .86rem; color: rgba(255, 255, 255, .8); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.hero-caption b { display: block; font-family: var(--f-head); font-size: 1.05rem; color: #fff; font-weight: 600; }
.hero-caption span { border-bottom: 1px solid rgba(255, 255, 255, .45); }
.hero-nav { display: flex; align-items: center; gap: 18px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.hero-dots button span { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots button.active span { animation: dot 6.5s linear forwards; }
.hero-dots button.done span { transform: scaleX(1); }
@keyframes dot { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .15); color: #fff; display: grid; place-items: center; transition: background .2s; }
.hero-arrows button:hover { background: rgba(255, 255, 255, .18); }
.hero-arrows svg { width: 18px; height: 18px; }

/* ---------- secciones ---------- */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; margin-bottom: 18px; }
.section-head p { font-size: 1.06rem; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.head-row .section-head { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--accent); }
.center .eyebrow::before { display: none; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* cifras */
.stats { border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--f-head); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat span { font-size: .88rem; }

/* destacados (grilla editorial) */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.fcard { position: relative; display: block; cursor: pointer; }
.fcard:nth-child(1) { grid-column: span 7; }
.fcard:nth-child(2) { grid-column: span 5; }
.fcard:nth-child(3), .fcard:nth-child(4), .fcard:nth-child(5) { grid-column: span 4; }
.fcard:nth-child(6) { grid-column: span 5; }
.fcard:nth-child(7) { grid-column: span 7; }
.fcard-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); aspect-ratio: 4 / 3; }
.fcard:nth-child(1) .fcard-media, .fcard:nth-child(2) .fcard-media,
.fcard:nth-child(6) .fcard-media, .fcard:nth-child(7) .fcard-media { aspect-ratio: auto; height: clamp(320px, 36vw, 470px); }
.fcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.fcard:hover .fcard-media img { transform: scale(1.05); }
.fcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 40%); opacity: 0; transition: opacity .4s; }
.fcard:hover .fcard-media::after { opacity: 1; }
.fcard-open {
  position: absolute; right: 18px; bottom: 18px; z-index: 1; padding: .55em 1em; border-radius: 999px; background: #fff; color: var(--ink);
  font-family: var(--f-head); font-weight: 600; font-size: .8rem; opacity: 0; transform: translateY(8px); transition: all .35s;
}
.fcard:hover .fcard-open, .fcard:focus-visible .fcard-open { opacity: 1; transform: none; }
.fcard-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 2px 0; }
.fcard-info h3 { font-size: 1.22rem; font-weight: 600; }
.fcard-info span { font-size: .84rem; color: var(--muted); white-space: nowrap; }
.fcard-meta { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; font-family: var(--f-head); margin-top: 6px; display: block; }

/* portafolio completo */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--text); padding: .55em 1.15em; border-radius: 999px;
  font-size: .86rem; font-weight: 500; transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip small { opacity: .6; margin-left: 4px; }
.grid-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.pcard { cursor: pointer; animation: cardin .5s ease both; }
@keyframes cardin { from { opacity: 0; transform: translateY(14px); } }
.pcard-media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--bg-3); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-media.is-plan { background: #fff; border: 1px solid var(--line); }
.pcard-media.is-plan img { object-fit: cover; object-position: left top; transform-origin: left top; }
.pcard-count { position: absolute; right: 12px; bottom: 12px; padding: .3em .7em; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .74rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.pcard-count svg { width: 13px; height: 13px; }
.pcard-body { padding: 16px 2px 0; }
.pcard-body h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 2px; }
.pcard-body p { font-size: .88rem; margin: 0; color: var(--muted); }

/* planos */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plan-sheet { cursor: zoom-in; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.plan-sheet-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-sm); transition: transform .4s, box-shadow .4s; overflow: hidden; }
.plan-sheet:hover .plan-sheet-media { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan-sheet-media img { width: 100%; aspect-ratio: 1.42; object-fit: cover; object-position: top left; }
.plan-sheet h3 { font-size: 1rem; font-weight: 600; margin-top: 16px; }
.plan-sheet p { font-size: .86rem; color: var(--muted); margin: 2px 0 0; }

/* expedientes */
.exp-list { border-top: 1px solid var(--line); }
.exp { display: grid; grid-template-columns: 70px 1.5fr 1fr auto; gap: 28px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.exp-num { font-family: var(--f-head); font-weight: 600; color: var(--accent); font-size: .95rem; padding-top: 4px; }
.exp h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 8px; }
.exp p { font-size: .92rem; margin: 0; }
.exp-meta { font-size: .88rem; }
.exp-meta b { display: block; color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: .74rem; padding: .3em .75em; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); }
.exp .btn { align-self: center; }

/* servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 40px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .3s; }
.svc:hover { background: var(--bg-2); }
.svc-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px; background: var(--accent-soft); color: var(--accent-ink); }
.svc-icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.svc p { font-size: .93rem; margin-bottom: 16px; }
.svc ul { list-style: none; padding: 0; margin: 0; font-size: .87rem; }
.svc li { padding: 4px 0 4px 18px; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 1.5px; background: var(--accent); }

/* nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-media { position: relative; margin-bottom: 40px; }
.about-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.about-media img.small { position: absolute; right: -28px; bottom: -40px; width: 50%; aspect-ratio: 4 / 3; border: 8px solid #fff; box-shadow: var(--shadow); }
.about h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; margin-bottom: 22px; }
.about strong { color: var(--ink); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; counter-increment: s; }
.steps li::before { content: "0" counter(s); font-family: var(--f-head); font-weight: 600; color: var(--accent); padding-top: 2px; }
.steps h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.steps p { margin: 0; font-size: .92rem; }

/* banda plugin */
.plugin-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 64px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); }
.plugin-band h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
.plugin-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.module-cloud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.module-cloud div {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; font-size: .82rem; font-weight: 600;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.module-cloud div:hover { border-color: var(--accent); transform: translateY(-2px); }
.module-cloud svg { width: 24px; height: 24px; color: var(--accent-ink); }

/* modal de proyecto */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 18, 18, .55); backdrop-filter: blur(6px); animation: fadein .25s forwards; opacity: 0; }
@keyframes fadein { to { opacity: 1; } }
.modal-box {
  position: absolute; inset: 24px; margin: auto; max-width: 1320px; background: #fff; border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(360px, 1fr); animation: pop .35s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(18px); } }
.modal-gallery { position: relative; background: #0f0f0f; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.modal-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.modal-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.modal-stage.is-plan { background: #fff; }
.modal-stage.is-plan img { cursor: zoom-in; }
.stage-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.stage-btn svg { width: 18px; height: 18px; }
.stage-btn.prev { left: 16px; }
.stage-btn.next { right: 16px; }
.stage-label { position: absolute; left: 16px; bottom: 16px; padding: .45em .9em; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .76rem; font-weight: 600; }
.modal-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: #0f0f0f; }
.modal-thumbs button { flex: none; width: 84px; height: 56px; border-radius: 6px; overflow: hidden; padding: 0; border: 2px solid transparent; background: #fff; opacity: .55; transition: opacity .2s; }
.modal-thumbs button.active { border-color: #fff; opacity: 1; }
.modal-thumbs button:hover { opacity: 1; }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs .is-plan img { object-position: top left; }
.modal-content { padding: 52px 42px; overflow-y: auto; }
.modal-content h3 { font-size: 1.9rem; font-weight: 700; margin: 4px 0 6px; }
.modal-content .sub { color: var(--muted); margin-bottom: 22px; }
.modal-content h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin: 28px 0 10px; font-weight: 600; }
.specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
ul.scope { padding-left: 18px; margin: 0; font-size: .93rem; }
ul.scope li { margin-bottom: 5px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.modal-close svg { width: 18px; height: 18px; }

/* visor de planos */
.lightbox { position: fixed; inset: 0; z-index: 110; display: none; background: rgba(248, 247, 244, .98); }
.lightbox.open { display: block; }
.lightbox-scroll { position: absolute; inset: 60px 0 0 0; overflow: auto; display: flex; padding: 24px; }
.lightbox-scroll img { margin: auto; max-width: 100%; max-height: calc(100vh - 110px); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.lightbox.zoomed .lightbox-scroll img { max-width: none; max-height: none; width: 2400px; cursor: zoom-out; }
.lightbox-bar { position: absolute; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.lightbox-bar b { font-family: var(--f-head); color: var(--ink); font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-bar div { display: flex; gap: 8px; flex: none; }
.lightbox-bar .btn { padding: .5em 1em; font-size: .8rem; }

/* pie / contacto */
.footer { background: var(--bg-2); padding: 110px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .95fr 1.35fr; gap: 48px; }
.footer h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer .brand img { height: 58px; }
.footer-about p { margin-top: 20px; font-size: .94rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: .94rem; }
.footer a:hover { color: var(--accent-ink); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; }
.contact-line svg { width: 18px; height: 18px; color: var(--accent-ink); margin-top: 4px; flex: none; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; transition: all .2s; color: var(--ink); }
.socials a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.quote-form h4 { margin-bottom: 18px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .78rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; border-radius: var(--radius-sm); font: inherit; font-size: .94rem;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 134, 43, .15); }
.footer-bottom { margin-top: 90px; padding: 26px 0; border-top: 1px solid var(--line); font-size: .84rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================================
   PÁGINA DEL PLUGIN
   ========================================================================= */
.page-hero { position: relative; background: var(--bg-2); padding: calc(var(--head-h) + 80px) 0 90px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero h1 { font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.05; margin-bottom: 22px; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .lead { font-size: 1.1rem; max-width: 620px; }
.plugin-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.badge { font-size: .8rem; font-weight: 500; padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); }
.badge b { color: var(--accent-ink); }
.ribbon-mock { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.ribbon-top { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-3); }
.ribbon-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ribbon-tabs { display: flex; gap: 18px; padding: 8px 16px 0; font-size: .74rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.ribbon-tabs span { padding-bottom: 8px; white-space: nowrap; }
.ribbon-tabs .on { color: var(--ink); border-bottom: 2px solid var(--accent); }
.ribbon-panels { display: flex; overflow-x: auto; padding: 14px 10px 0; gap: 4px; }
.rpanel { flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 0 10px; }
.rpanel-btns { display: flex; gap: 6px; }
.rbtn { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 6px; font-size: .6rem; line-height: 1.2; text-align: center; color: var(--ink-2); }
.rbtn:hover { background: var(--bg-2); }
.rbtn svg { width: 26px; height: 26px; color: var(--accent-ink); }
.rpanel small { text-align: center; font-size: .6rem; color: var(--muted); padding: 8px 0 10px; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.module-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.module-head .svc-icon { width: 46px; height: 46px; margin: 0; }
.module-head .svc-icon svg { width: 22px; height: 22px; }
.module h3 { font-size: 1.04rem; font-weight: 600; }
.module small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 2px; }
.module p { font-size: .9rem; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 38px 32px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.plan.featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow); transform: translateY(-10px); }
.plan-flag { position: absolute; top: -13px; left: 32px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .5em 1em; border-radius: 999px; font-family: var(--f-head); }
.plan h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.price strong { font-family: var(--f-head); font-size: 2.7rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price span { font-size: .88rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 7px 0; font-size: .92rem; }
.plan li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: h; }
.howto div { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; counter-increment: h; }
.howto div::before { content: "0" counter(h); display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; color: var(--accent); margin-bottom: 12px; }
.howto h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.howto p { margin: 0; font-size: .9rem; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--f-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; font-weight: 300; color: var(--accent-ink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; margin: 0; }
.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.req div { padding: 24px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.req b { display: block; font-family: var(--f-head); color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.req span { font-size: .88rem; }

/* =========================================================================
   ÁREA DE CLIENTES
   ========================================================================= */
.auth-page { min-height: 100vh; background: var(--bg-2); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { position: relative; color: #fff; padding: calc(var(--head-h) + 60px) 64px 60px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.auth-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 10, .85) 0%, rgba(10, 10, 10, .25) 65%, rgba(10, 10, 10, .1) 100%); }
.auth-side > *:not(img) { position: relative; z-index: 1; }
.auth-side .eyebrow { color: rgba(255, 255, 255, .85); }
.auth-side .eyebrow::before { background: rgba(255, 255, 255, .7); }
.auth-side h1 { color: #fff; font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; margin-bottom: 16px; }
.auth-side p { color: rgba(255, 255, 255, .85); }
.auth-side ul { list-style: none; padding: 0; margin: 18px 0 0; }
.auth-side li { display: flex; gap: 12px; padding: 6px 0; color: rgba(255, 255, 255, .9); }
.auth-side li svg { width: 20px; height: 20px; color: #f0cf91; flex: none; margin-top: 3px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: calc(var(--head-h) + 40px) 32px 60px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.seg { display: inline-flex; padding: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { border: 0; background: none; padding: .7em 1.4em; border-radius: 999px; font-family: var(--f-head); font-weight: 600; font-size: .86rem; color: var(--text); transition: background .2s, color .2s; }
.seg button.active { background: var(--ink); color: #fff; }
.pass-wrap { position: relative; }
.pass-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 6px; }
.pass-wrap button svg { width: 18px; height: 18px; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 18px; font-size: .86rem; }
.text-btn { border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 600; font-size: inherit; }
.text-btn:hover { text-decoration: underline; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.error { background: #fbeceb; color: #8e2c25; border: 1px solid #f1cbc8; }
.alert.success { background: #e8f5ee; color: #1e6b47; border: 1px solid #c4e5d3; }
.alert.info { background: var(--accent-soft); color: #6e4b0c; border: 1px solid #ecdcbc; }
.small-note { font-size: .8rem; color: var(--muted); margin-top: 16px; text-align: center; }
.dash { padding: calc(var(--head-h) + 50px) 0 90px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.dash-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.dash-head p { margin: 6px 0 0; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.panel h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2 svg { width: 20px; height: 20px; color: var(--accent-ink); }
.panel.wide { grid-column: 1 / -1; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: .4em .9em; border-radius: 999px; font-weight: 600; font-size: .82rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.on { background: #e8f5ee; color: var(--ok); }
.status.off { background: var(--bg-2); color: var(--muted); }
.status.wait { background: var(--accent-soft); color: var(--accent-ink); }
.kv { list-style: none; margin: 18px 0 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kv li span:first-child { color: var(--muted); }
.kv li span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.dl-list { display: grid; gap: 12px; }
.dl { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); }
.dl .svc-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.dl .svc-icon svg { width: 22px; height: 22px; }
.dl div { flex: 1; min-width: 0; }
.dl b { display: block; color: var(--ink); font-family: var(--f-head); font-weight: 600; }
.dl span { font-size: .82rem; }
.dl.locked { opacity: .6; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pay { border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px 16px; }
.pay b { display: block; font-family: var(--f-head); color: var(--ink); font-weight: 600; }
.pay span { font-size: .86rem; }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.plan-pick label { position: relative; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick div { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; transition: all .2s; }
.plan-pick b { display: block; font-family: var(--f-head); color: var(--ink); font-size: .92rem; font-weight: 600; }
.plan-pick span { font-size: .82rem; }
.plan-pick input:checked + div { border-color: var(--ink); background: var(--bg-2); }
.plan-pick input:focus-visible + div { outline: 2px solid var(--accent); outline-offset: 2px; }
.steps-install { padding-left: 20px; margin: 0; font-size: .92rem; }
.steps-install li { margin-bottom: 8px; }
.steps-install code { background: var(--bg-2); padding: .1em .4em; border-radius: 4px; font-size: .86em; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .howto, .req { grid-template-columns: repeat(2, 1fr); }
  .exp { grid-template-columns: 50px 1fr; }
  .exp-meta, .exp .btn { grid-column: 2; }
  .exp .btn { justify-self: start; }
}
@media (max-width: 960px) {
  .nav {
    position: fixed; top: var(--head-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 24px 24px; transform: translateY(-130%); transition: transform .3s; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .2);
  }
  .nav.open { transform: none; }
  .nav a, .site-header:not(.scrolled):not(.solid) .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
  .site-header:not(.scrolled):not(.solid) .nav .btn-dark { background: var(--ink); color: #fff; }
  .menu-toggle { display: block; }
  .featured { grid-template-columns: 1fr 1fr; gap: 24px; }
  .featured .fcard { grid-column: span 1 !important; }
  .featured .fcard:nth-child(1) { grid-column: span 2 !important; }
  .featured .fcard .fcard-media { aspect-ratio: 4 / 3 !important; height: auto !important; }
  .featured .fcard:nth-child(1) .fcard-media { aspect-ratio: 16 / 10 !important; height: auto !important; }
  .grid-projects, .plans-grid, .modules { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .plugin-band, .plugin-hero-grid { grid-template-columns: 1fr; }
  .about { gap: 48px; }
  .about-media img.small { right: 12px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .modal-box { inset: 0; border-radius: 0; overflow-y: auto; display: block; }
  .modal-stage { flex: none; height: min(56vh, 66vw); }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.featured { transform: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { order: 2; padding: 64px 24px 48px; min-height: 420px; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 84px 0; }
  .hero { height: 88vh; min-height: 540px; }
  .hero-foot { bottom: 24px; }
  .hero-foot .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-arrows { display: none; }
  .featured, .grid-projects, .plans-grid, .services, .modules, .footer-grid, .howto, .req { grid-template-columns: 1fr; }
  .featured .fcard:nth-child(1) { grid-column: span 1 !important; }
  .module-cloud { grid-template-columns: repeat(2, 1fr); }
  .stat strong { font-size: 1.5rem; }
  .stat { padding: 24px 12px; }
  .plugin-band { padding: 34px 22px; }
  .modal-content { padding: 30px 20px; }
  .auth-card { padding: 28px 22px; }
  .auth-main { padding: calc(var(--head-h) + 24px) 16px 40px; }
  .plan-pick { grid-template-columns: 1fr; }
  .about-media { margin-bottom: 0; }
  .about-media img.small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
