/* ===========================================================
   Atriomail — v3 additions on top of styles.css
   New: product tour (real screenshots), values band, blog cards,
   pricing calculator, inner-page scaffolding.
   =========================================================== */

.kicker.light { color: var(--purple-300); }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { width: 100%; }
.mobile-menu a[aria-current="page"] { color: var(--orange-400); }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: var(--on-dark-mut); }

/* ---------- Product tour (real screenshots) ---------- */
.tour { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.tour::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(var(--line-dark-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark-2) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(90% 70% at 50% 20%, #000 20%, transparent 78%); -webkit-mask-image: radial-gradient(90% 70% at 50% 20%, #000 20%, transparent 78%); }
.tour > .container { position: relative; z-index: 1; }
.tour-proof { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--on-dark-mut); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: 999px; padding: .4rem .9rem; margin-top: .4rem; }
.tour-proof .lv { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); animation: pulse 2.2s ease-in-out infinite; }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 1.6rem; }
.tour-tab { font: inherit; font-size: .92rem; font-weight: 600; color: var(--on-dark-mut); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: 999px; padding: .6rem 1.15rem; cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease); }
.tour-tab:hover { color: #fff; transform: translateY(-1px); }
.tour-tab[aria-selected="true"] { color: #fff; background: linear-gradient(120deg, rgba(124,58,237,.35), rgba(139,92,246,.28)); border-color: rgba(168,85,247,.5); }
.tour-frame { margin: 0 auto; max-width: 1040px; background: linear-gradient(180deg, rgba(27,21,54,.9), rgba(16,10,31,.92)); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; backdrop-filter: blur(10px); }
.tf-top { display: flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line-dark-2); background: rgba(255,255,255,.02); }
.tf-url { flex: 1; display: flex; align-items: center; gap: .45rem; max-width: 380px; margin: 0 auto; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .78rem; color: var(--on-dark-mut); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark-2); border-radius: 8px; padding: .35rem .8rem; justify-content: center; }
.tf-url .lock { color: #4ade80; }
.tf-badge { font-size: .72rem; font-weight: 700; color: #4ade80; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.tour-shots { position: relative; background: #fafafa; }
.tour-shot { display: block; width: 100%; height: auto; }
.tour-shot[hidden] { display: none; }
.tour-cap { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line-dark-2); color: var(--on-dark-mut); font-size: .92rem; }
.tour-cap .ck { color: var(--orange-400); font-weight: 800; }
.tour-note { text-align: center; color: var(--on-dark-faint); font-size: .86rem; margin: 1.4rem auto 0; max-width: 620px; }

/* ---------- Values band ---------- */
.values { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.values .aurora { opacity: .5; }
.values > .container { position: relative; z-index: 1; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 980px; margin: 0 auto; }
.value { background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 1.8rem 1.7rem; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.value:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.45); background: rgba(255,255,255,.06); }
.value .v-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: .95rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .08em; }
.value h3 { color: #fff; margin: .55rem 0 .45rem; font-size: 1.25rem; }
.value p { color: var(--on-dark-mut); margin: 0 0 .9rem; font-size: .95rem; }
.v-proof { display: inline-flex; align-items: flex-start; gap: .45rem; font-size: .84rem; color: var(--on-dark-faint); border-top: 1px dashed var(--line-dark); padding-top: .8rem; width: 100%; }
.v-proof .ck { color: var(--orange-400); font-weight: 800; flex: none; }

/* ---------- Blog cards ---------- */
.posts { background: var(--bg-soft); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e2d8fa; }
.post-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-700); background: var(--bg-soft-2); border-radius: 999px; padding: .3rem .7rem; margin-bottom: .9rem; }
.post-card h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: .5rem; }
.post-card p { color: var(--muted); font-size: .9rem; margin: 0 0 1.1rem; flex: 1; }
.post-meta { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--muted-2); border-top: 1px solid var(--line); padding-top: .9rem; }
.post-meta .read { color: var(--purple-700); font-weight: 600; }
.posts-more { text-align: center; margin-top: 2rem; }

/* card thumbnails (blog index) */
.post-thumb { display: block; margin: -1.5rem -1.5rem 1.1rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb.ph { display: grid; place-items: center; }
.post-thumb.ph img { width: 64px; height: 61px; object-fit: contain; opacity: .75; }
.post-card:hover .post-thumb.ph img { transform: none; }

/* featured (newest) post spans the grid */
.post-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: .95fr 1.05fr; column-gap: 2.2rem; grid-auto-rows: min-content; align-content: center; }
.post-card.featured .post-thumb { grid-column: 1; grid-row: 1 / 6; margin: -1.5rem 0 -1.5rem -1.5rem; height: calc(100% + 3rem); aspect-ratio: auto; border-radius: var(--radius) 0 0 var(--radius); border-bottom: 0; border-right: 1px solid var(--line); }
.post-card.featured .post-tag, .post-card.featured h3, .post-card.featured p, .post-card.featured .post-meta { grid-column: 2; }
.post-card.featured .post-tag { justify-self: start; }
.post-card.featured h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.post-card.featured p { font-size: .98rem; flex: none; }
@media (max-width: 720px) {
  .post-card.featured { display: flex; flex-direction: column; }
  .post-card.featured .post-thumb { margin: -1.5rem -1.5rem 1.1rem; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Contact: live-chat preview card ---------- */
.chat-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 980px; margin: 0 auto clamp(2.6rem, 5vw, 4rem); }
.chat-card { background: linear-gradient(180deg, rgba(27,21,54,.97), rgba(16,10,31,.98)); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.3rem; color: var(--on-dark); }
.chat-head { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark-2); }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.chat-head .avatar img { width: 22px; height: 21px; }
.chat-head strong { display: block; font-size: .95rem; color: #fff; }
.chat-head small { color: var(--on-dark-faint); font-size: .8rem; display: flex; align-items: center; gap: .35rem; }
.chat-head small .lv { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.chat-body { display: grid; gap: .7rem; padding-top: 1.1rem; }
.msg { max-width: 85%; padding: .7rem .95rem; border-radius: 14px; font-size: .89rem; line-height: 1.45; }
.msg.in { background: rgba(255,255,255,.07); border: 1px solid var(--line-dark-2); border-bottom-left-radius: 4px; justify-self: start; color: var(--on-dark); }
.msg.out { background: var(--grad); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.msg small { display: block; margin-top: .3rem; font-size: .7rem; opacity: .65; }
@media (max-width: 980px) {
  .chat-demo { grid-template-columns: 1fr; gap: 2rem; max-width: 560px; }
}

/* How-it-works: the styles.css reset covers ul but not ol, so the browser's own
   list numbering doubled up with the .step-num badges */
.steps { list-style: none; margin: 0; }
.steps .step::marker { content: none; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; margin-top: -74px; padding: calc(clamp(2.6rem,5vw,4rem) + 74px) 0 clamp(2.6rem,5vw,4rem); }
.page-hero .hero-grid-bg { opacity: .35; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: .6rem; }
.page-hero .lead { position: relative; z-index: 1; color: var(--on-dark-mut); font-size: clamp(1.02rem,1.5vw,1.18rem); max-width: 44rem; margin: 0; }
.page-hero .lead strong { color: #fff; }
.page-hero .container { position: relative; z-index: 1; }
.crumbs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; font-size: .84rem; color: var(--on-dark-faint); margin-bottom: 1.1rem; }
.crumbs a { color: var(--on-dark-mut); }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .6; }

/* ---------- Pricing calculator ---------- */
.calc-wrap { max-width: 980px; margin: 2.4rem auto 0; }
.calc { display: grid; grid-template-columns: 1.15fr .85fr; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark); }
.calc-controls { padding: 2rem 2rem 1.8rem; display: grid; gap: 1.5rem; align-content: start; }
.calc h3 { color: #fff; margin: 0; }
.calc-sub { color: var(--on-dark-mut); font-size: .9rem; margin: -1rem 0 0; }
.ctl label { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; font-weight: 600; color: var(--on-dark-mut); margin-bottom: .55rem; }
.ctl output { font-family: "Sora", sans-serif; font-weight: 800; color: #fff; font-size: 1.05rem; }
.ctl input[type="range"] { width: 100%; accent-color: var(--orange-500); cursor: pointer; }
.calc-note { font-size: .8rem; color: var(--on-dark-faint); margin: 0; }
.calc-out { background: rgba(255,255,255,.04); border-left: 1px solid var(--line-dark-2); padding: 2rem; display: grid; gap: 1.1rem; align-content: start; }
.co-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark-2); }
.co-row span { color: var(--on-dark-mut); font-size: .9rem; }
.co-row strong { font-family: "Sora", sans-serif; font-size: 1.35rem; color: #fff; white-space: nowrap; }
.co-row.hero-row { border-bottom: 0; padding: .2rem 0 0; }
.co-row.hero-row strong { font-size: 2.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-hint { font-size: .8rem; color: var(--on-dark-faint); margin: 0; }
.calc-cta { margin-top: .4rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: 980px; margin: 0 auto; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-soft); color: var(--purple-600); display: grid; place-items: center; margin-bottom: 1rem; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { margin-bottom: .35rem; }
.contact-card p { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.contact-card a.cc-link { font-weight: 600; }
.contact-addr { max-width: 980px; margin: 1.6rem auto 0; background: var(--grad-soft); border: 1px solid #ecdffb; border-radius: var(--radius); padding: 1.3rem 1.7rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.contact-addr strong { display: block; color: var(--ink); font-family: "Sora", sans-serif; }
.contact-addr span { color: var(--muted); font-size: .92rem; }

/* ---------- About ---------- */
.about-body { max-width: 760px; margin: 0 auto; }
.about-body p { color: var(--muted); font-size: 1.05rem; }
.about-body p strong { color: var(--text); }
.about-story { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.about-story .story-copy p { color: var(--muted); font-size: 1.02rem; }
.about-story .story-copy p strong { color: var(--text); }
.about-shot { position: relative; }
.about-shot .frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.about-shot .frame-top { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.about-shot .frame-top .tl { width: 10px; height: 10px; }
.about-shot .frame-top em { margin: 0 auto; font-style: normal; font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .74rem; color: var(--muted-2); }
.about-shot img { display: block; width: 100%; height: auto; }
.about-shot .shot-chip { position: absolute; bottom: -14px; left: 24px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; border-radius: 11px; padding: .55rem .85rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .4rem; }
.about-shot .shot-chip .lv { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: 980px; margin: 2.4rem auto 0; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s; }
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fact .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad-soft); color: var(--purple-600); display: grid; place-items: center; margin-bottom: .85rem; }
.fact .ic svg { width: 21px; height: 21px; }
.fact strong { display: block; font-family: "Sora", sans-serif; color: var(--ink); font-size: 1.05rem; margin-bottom: .25rem; }
.fact span { color: var(--muted); font-size: .9rem; }
@media (max-width: 980px) {
  .about-story { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Article / legal body (exported WP content) ---------- */
.article-body { font-size: 1.02rem; }
.article-body p, .article-body li { color: var(--text); }
.article-body h2 { scroll-margin-top: 90px; }
.article-body h3 { scroll-margin-top: 90px; }
.article-body img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin: .6rem 0 1rem; height: auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .92rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.article-body thead th, .article-body tr:first-child strong { background: var(--bg-soft); color: var(--ink); }
.article-body blockquote { border-left: 3px solid var(--purple-400); margin: 0 0 1.2rem; padding: .4rem 0 .4rem 1.1rem; color: var(--muted); font-style: italic; }
.article-body iframe { max-width: 100%; border-radius: var(--radius-sm); }
.article-body pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; font-size: .85rem; }

/* ---------- Blog index filter ---------- */
.post-filter { display: flex; justify-content: center; margin: 0 0 2rem; }
.post-filter input { width: min(440px, 100%); font: inherit; font-size: .96rem; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .8rem 1.3rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.post-filter input:focus { border-color: var(--purple-400); box-shadow: 0 0 0 4px rgba(124,58,237,.10); }
.post-count { text-align: center; color: var(--muted-2); font-size: .88rem; margin: -1.2rem 0 1.6rem; }

/* ---------- Legal directory (footer helper page bits) ---------- */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; max-width: 840px; margin: 0 auto; }
.legal-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.05rem 1.3rem; color: var(--text); font-weight: 600; transition: border-color .2s, transform .2s var(--ease); }
.legal-card:hover { border-color: var(--purple-400); transform: translateY(-2px); }
.legal-card .arr { color: var(--orange-600); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .values-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line-dark-2); }
  .contact-grid, .fact-strip { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .tour-tab { font-size: .84rem; padding: .5rem .9rem; }
  .tf-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-tab, .value, .post-card, .contact-card, .legal-card { transition: none; }
}

.nav-links a { white-space: nowrap; }

/* ---------- Language switcher (EN ⇄ ES) ---------- */
.lang-switch { font-weight: 600; font-size: .8rem; letter-spacing: .08em; line-height: 1; color: var(--on-dark-mut); padding: .45rem .55rem; border: 1px solid var(--line-dark-2); border-radius: 8px; transition: color .2s, border-color .2s; }
.lang-switch:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.mobile-menu .lang-switch { border: 0; padding: .7rem .25rem; font-size: .95rem; letter-spacing: .02em; }
