/* SIFAC S.A. — Apple-inspired corporate hub */

:root {
  --bg: #fafbfd;
  --pastel-sky: #e8f2fc;
  --pastel-lavender: #f0eef9;
  --pastel-mint: #e6f6f3;
  --pastel-peach: #fff4ee;
  --pastel-blue: #dce9f7;
  --brand: #4a7eb8;
  --brand-soft: #6b9fd4;
  --text: #2c3e50;
  --text-secondary: #5a6b7d;
  --text-tertiary: #8a97a6;
  --link: #4a7eb8;
  --link-hover: #3a6aa0;
  --nav-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --max: 980px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --border: #e4eaf0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── GLOBAL NAV ── */
.globalnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.globalnav-inner {
  max-width: 1024px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.globalnav-logo {
  display: flex;
  align-items: center;
  opacity: 0.92;
  transition: opacity 0.3s;
}

.globalnav-logo:hover { opacity: 1; text-decoration: none; }

.globalnav-mark {
  height: 28px;
  width: 28px;
  display: block;
}

.globalnav-list {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.globalnav-list a {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0 10px;
  white-space: nowrap;
  transition: color 0.2s;
  text-decoration: none;
}

.globalnav-list a:hover {
  color: var(--brand);
  text-decoration: none;
}

.globalnav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.globalnav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* Área de clientes — dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--pastel-blue);
  border: 1px solid rgba(74, 126, 184, 0.2);
  padding: 6px 14px;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-dropdown-btn:hover {
  background: #cddff3;
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(74, 126, 184, 0.15);
  padding: 10px 0;
  z-index: 10000;
}

.nav-dropdown.open .nav-dropdown-panel { display: block; }

.nav-dropdown-group {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.nav-dropdown-group:last-child { border-bottom: none; }

.nav-dropdown-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 4px 16px 6px;
}

.nav-dropdown-panel a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown-panel a:hover {
  background: var(--pastel-sky);
  color: var(--brand);
  text-decoration: none;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 9998;
  padding: 20px 24px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-drawer.open { display: flex; }

.mobile-drawer > a {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-clients-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-top: 16px;
  margin-bottom: 4px;
}

.mobile-clients a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

/* ── PROMO SECTIONS (Apple hero bands) ── */
main { padding-top: var(--nav-h); }

.promo {
  text-align: center;
  overflow: hidden;
  position: relative;
}

.promo-copy {
  padding: 55px 24px 0;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.promo-eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.promo-headline {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.07143;
  margin-bottom: 6px;
}

.promo-subhead {
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 400;
  letter-spacing: 0.009em;
  line-height: 1.33341;
  margin-bottom: 14px;
}

.promo-subhead-sm {
  font-size: 17px;
  line-height: 1.47059;
  max-width: 520px;
  margin: 0 auto 18px;
}

.promo-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-top: 14px;
  font-size: 17px;
}

.promo-links a {
  color: var(--link);
}

.promo-links a:hover { color: var(--link-hover); }

.promo-links.light a { color: #2997ff; }
.promo-links.light a:hover { color: #60a5fa; }

.promo-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.3s var(--ease), color 0.3s;
}

.btn-pill-white {
  background: #fff;
  color: var(--text);
}

.btn-pill-white:hover {
  background: #f5f5f7;
  color: var(--text);
}

.btn-pill-blue {
  background: var(--brand);
  color: #fff;
}

.btn-pill-blue:hover {
  background: var(--link-hover);
  color: #fff;
}

.btn-pill-outline {
  background: transparent;
  color: var(--link);
  box-shadow: inset 0 0 0 1px var(--link);
}

.btn-pill-outline:hover {
  background: var(--link);
  color: #fff;
}

.btn-pill-outline-light {
  background: transparent;
  color: #2997ff;
  box-shadow: inset 0 0 0 1px #2997ff;
}

.btn-pill-outline-light:hover {
  background: #2997ff;
  color: #fff;
}

.promo-visual {
  position: relative;
  margin-top: 30px;
  padding-bottom: 40px;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ── HERO ── */
.promo-hero {
  background: linear-gradient(165deg, var(--pastel-sky) 0%, var(--pastel-lavender) 45%, var(--pastel-peach) 100%);
  color: var(--text);
  min-height: calc(88vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
}

.promo-hero .promo-copy { padding-top: 64px; }

.promo-hero .promo-eyebrow { color: var(--brand); font-weight: 500; }

.promo-hero .promo-headline { color: var(--text); }

.promo-brand-name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  font-size: clamp(48px, 9vw, 72px);
  letter-spacing: -0.02em;
}

.promo-brand-name .brand-sifac {
  font-weight: 700;
}

.promo-brand-name .brand-sa {
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transform: translateY(-0.08em);
}

.promo-hero .promo-subhead { color: var(--text-secondary); }

.promo-hero-mark {
  width: 132px;
  height: 132px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(47, 92, 150, 0.22),
    0 8px 16px rgba(47, 92, 150, 0.12);
}

.promo-hero-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 768px) {
  .promo-hero-mark {
    width: 156px;
    height: 156px;
    margin-bottom: 36px;
  }
}

/* ── PLATFORM SECTION ── */
.promo-platform {
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.promo-platform .promo-subhead-sm { color: var(--text-secondary); }

.platform-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1024px;
  margin: 36px auto 0;
  border-top: 1px solid #d2d2d7;
}

.platform-tile {
  padding: 32px 20px 40px;
  text-decoration: none !important;
  color: var(--text);
  border-right: 1px solid #d2d2d7;
  transition: background 0.3s;
}

.platform-tile:last-child { border-right: none; }

.platform-tile:hover {
  background: #f5f5f7;
  text-decoration: none;
}

.platform-tile-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.platform-tile h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin-bottom: 4px;
}

.platform-tile p {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.33337;
}

.platform-tile .tile-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--link);
}

/* ── MIGRATION BAND ── */
.promo-migrate {
  background: linear-gradient(180deg, var(--pastel-peach) 0%, #fff 100%);
  color: var(--text);
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}

.promo-migrate .promo-eyebrow { color: #c27803; }

.promo-migrate .promo-subhead-sm { color: var(--text-secondary); }

.promo-migrate .promo-headline { color: var(--text); }

.migrate-countdown {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 28px 0 8px;
}

.migrate-countdown div {
  text-align: center;
}

.migrate-countdown strong {
  display: block;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--brand);
}

.migrate-countdown span {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── PRODUCT BANDS (dynamic) ── */
.product-band {
  border-bottom: 1px solid #d2d2d7;
  padding-bottom: 44px;
}

.product-band.theme-light {
  background: #fff;
  color: var(--text);
}

.product-band.theme-light .promo-subhead-sm { color: var(--text-secondary); }

.product-band.theme-dark {
  background: #000;
  color: #f5f5f7;
}

.product-band.theme-dark .promo-eyebrow { color: #86868b; }
.product-band.theme-dark .promo-subhead { color: #a1a1a6; }
.product-band.theme-dark .promo-subhead-sm { color: #86868b; }

.product-band.theme-gradient {
  color: #f5f5f7;
  padding-bottom: 50px;
}

.product-band-visual {
  height: 280px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-band-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ── DUO GRID (2 products side by side like Apple) ── */
.promo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d2d2d7;
}

.duo-tile {
  padding: 55px 24px 44px;
  text-align: center;
  border-right: 1px solid #d2d2d7;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.duo-tile:last-child { border-right: none; }

.duo-tile.theme-light { background: #fff; color: var(--text); }
.duo-tile.theme-dark { background: #000; color: #f5f5f7; }

.duo-tile .promo-eyebrow { margin-bottom: 4px; }
.duo-tile .promo-headline { font-size: clamp(32px, 4vw, 40px); }
.duo-tile .promo-subhead-sm {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.duo-tile.theme-dark .promo-subhead-sm { color: #86868b; }

.duo-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.duo-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

/* ── HISTORY ── */
.promo-history {
  background: var(--pastel-mint);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #d2d2d7;
  max-width: 1024px;
  margin: 36px auto 0;
  border: 1px solid #d2d2d7;
  border-radius: 18px;
  overflow: hidden;
}

.stat-cell {
  background: #fff;
  padding: 28px 16px;
  text-align: center;
}

.stat-cell strong {
  display: block;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-cell span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.timeline-clean {
  max-width: 680px;
  margin: 48px auto 0;
  text-align: left;
}

.timeline-row {
  padding: 20px 0;
  border-bottom: 1px solid #d2d2d7;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
}

.timeline-row:last-child { border-bottom: none; }

.timeline-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.timeline-row h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-row p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.42859;
}

/* ── RESOURCES STRIP ── */
.promo-resources {
  background: #fff;
  padding-bottom: 60px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1024px;
  margin: 36px auto 0;
  padding: 0 22px;
}

.resource-item {
  background: #f5f5f7;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
}

.resource-item h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.resource-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.42859;
}

/* ── CONTACT ── */
.promo-contact {
  background: var(--pastel-lavender);
  padding-bottom: 60px;
}

.contact-layout {
  max-width: 680px;
  margin: 36px auto 0;
  text-align: center;
}

.contact-layout p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact-layout a { font-size: 17px; }

.contact-social-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.contact-social-row a {
  color: var(--text-secondary);
  font-size: 20px;
  text-decoration: none;
}

.contact-social-row a:hover { color: var(--text); text-decoration: none; }

.contact-form {
  margin: 32px auto 0;
  max-width: 420px;
  text-align: left;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(74, 126, 184, 0.15);
}

.contact-form textarea { resize: vertical; min-height: 108px; }

.contact-form button {
  justify-self: center;
  margin-top: 4px;
  cursor: pointer;
}

.contact-map {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.06);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

/* ── SUBPAGES (historia, descargas) ── */
.page-sub-hero {
  background: linear-gradient(180deg, var(--pastel-mint) 0%, #fff 100%);
  padding: 56px 22px 36px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-sub-hero h1 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.page-sub-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.page-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px 64px;
}

.page-historia .page-section {
  background: var(--pastel-mint);
}

.timeline-full {
  max-width: 720px;
  margin: 32px auto 0;
}

.page-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 24px;
}

.notice-banner {
  background: var(--pastel-peach);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 32px;
}

.notice-banner strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.notice-banner p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
}

.download-section {
  margin-bottom: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.download-section:last-of-type {
  border-bottom: none;
}

.download-section-head {
  margin-bottom: 18px;
  text-align: left;
}

.download-section-head h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.download-section-head p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 640px;
}

.download-empty {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 28px 16px;
  background: var(--pastel-sky);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.download-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none !important;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 62, 80, 0.08);
}

.download-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.download-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0 6px;
  color: var(--text);
}

.download-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.download-card-cta {
  font-size: 14px;
  color: var(--link);
}

.video-block {
  text-align: center;
}

.video-block h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.video-wrap {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .download-grid { grid-template-columns: 1fr; }
}

/* ── CHAT ASISTENTE ── */
.sifac-bot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  font-family: var(--font);
}

.sifac-bot-toggle {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 28px rgba(47, 92, 150, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.sifac-bot-toggle:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 32px rgba(47, 92, 150, 0.42);
}

.sifac-bot-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(380px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 120px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sifac-bot-panel[hidden] { display: none !important; }

.sifac-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--pastel-sky), var(--pastel-lavender));
  border-bottom: 1px solid var(--border);
}

.sifac-bot-header strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.sifac-bot-header span {
  font-size: 12px;
  color: var(--text-secondary);
}

.sifac-bot-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 4px;
}

.sifac-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafbfd;
}

.sifac-bot-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}

.sifac-bot-msg-user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.sifac-bot-msg-assistant {
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.sifac-bot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 0;
  background: #fafbfd;
}

.sifac-bot-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--link);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.sifac-bot-chip:hover {
  border-color: var(--brand-soft);
  background: var(--pastel-sky);
}

.sifac-bot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.sifac-bot-form input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}

.sifac-bot-form input:focus {
  outline: none;
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(74, 126, 184, 0.12);
}

.sifac-bot-form button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sifac-bot-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .sifac-bot { right: 12px; bottom: 12px; }
  .sifac-bot-panel { bottom: 64px; }
}

/* ── FOOTER (Apple minimal) ── */
.site-footer {
  background: #f5f5f7;
  padding: 18px 0 24px;
  border-top: 1px solid #d2d2d7;
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

.footer-note {
  padding-bottom: 12px;
  border-bottom: 1px solid #d2d2d7;
  margin-bottom: 12px;
  line-height: 1.33337;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 0;
  margin-bottom: 12px;
}

.footer-links-row a {
  color: var(--text-secondary);
  font-size: 12px;
  padding-right: 12px;
  margin-right: 12px;
  border-right: 1px solid #d2d2d7;
  text-decoration: none;
}

.footer-links-row a:last-child { border-right: none; }

.footer-links-row a:hover { text-decoration: underline; color: var(--text); }

.footer-copy { font-size: 12px; color: var(--text-tertiary); }

/* ── PORTFOLIO GRID ── */
.promo-portfolio {
  background: #fff;
  padding-bottom: 60px;
  border-bottom: 1px solid #d2d2d7;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1024px;
  margin: 36px auto 0;
  padding: 0 22px;
}

.portfolio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.portfolio-card-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.portfolio-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.portfolio-card-tag {
  font-size: 14px;
  color: var(--link);
  font-weight: 500;
}

.portfolio-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.42859;
  flex: 1;
}

.portfolio-card-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 14px;
}

/* ── PRICING PAGE ── */
.page-pricing main { padding-top: var(--nav-h); }

.pricing-hero {
  background: linear-gradient(180deg, var(--pastel-sky) 0%, #fff 100%);
  padding: 48px 22px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.pricing-hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 20px 22px;
  background: var(--pastel-lavender);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}

.product-tab {
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 980px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.product-tab:hover { color: var(--text); background: rgba(0, 0, 0, 0.05); }

.product-tab.active {
  background: var(--brand);
  color: #fff;
}

.pricing-product {
  display: none;
  padding: 48px 22px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-product.active { display: block; }

.pricing-product-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.pricing-product-header h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.pricing-product-header p {
  font-size: 17px;
  color: var(--text-secondary);
}

.pricing-group {
  margin-bottom: 56px;
}

.pricing-group-header {
  text-align: center;
  margin-bottom: 28px;
}

.pricing-group-header h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.pricing-group-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.pricing-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  background: #e8f4fd;
  color: var(--link);
  border-radius: 980px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.pricing-card {
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.3s;
}

.pricing-card:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08); }

.pricing-card.featured {
  border-color: var(--link);
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.12);
}

.pricing-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--link);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 980px;
  white-space: nowrap;
}

.pricing-card h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.pricing-card-price {
  margin-bottom: 4px;
}

.pricing-card-price .amount {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--link);
  line-height: 1;
}

.pricing-card-price .amount-label {
  font-size: 28px;
  font-weight: 600;
  color: var(--link);
}

.pricing-card-price .period {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-card-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f2;
}

.pricing-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 20px;
}

.pricing-card li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.4;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--link);
  font-size: 12px;
}

.pricing-group-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1068px) {
  .globalnav-list { display: none; }
  .globalnav-toggle { display: block; }
  .platform-row { grid-template-columns: repeat(2, 1fr); }
  .platform-tile:nth-child(2) { border-right: none; }
  .platform-tile:nth-child(1),
  .platform-tile:nth-child(2) { border-bottom: 1px solid #d2d2d7; }
  .promo-duo { grid-template-columns: 1fr; }
  .duo-tile { border-right: none; border-bottom: 1px solid #d2d2d7; min-height: auto; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 734px) {
  .promo-copy { padding-top: 40px; }
  .platform-row { grid-template-columns: 1fr; }
  .platform-tile { border-right: none; border-bottom: 1px solid #d2d2d7; }
  .platform-tile:last-child { border-bottom: none; }
  .migrate-countdown { gap: 16px; }
  .migrate-countdown strong { font-size: 32px; }
  .timeline-row { grid-template-columns: 1fr; gap: 4px; }
}
