/*
 * Brava 4.0 — pulido visual y consistencia de marca
 * Capa final: corrige contraste, residuos de la identidad anterior y responsive.
 */

:root {
  --brava-coral: #ff5a5f;
  --brava-pink: #ff2e8a;
  --brava-navy: #0d1230;
  --brava-plum: #401746;
  --brava-orange: #ff8a3d;
  --brava-violet: #7b5cff;
  --brava-turquoise: #00c2b8;
  --brava-yellow: #ffc43d;
  --brava-paper: #ffffff;
  --brava-mist: #f8f4f7;
  --brava-line: #e8e3ea;
  --brava-card-shadow: 0 18px 48px rgba(13, 18, 48, .075);
  --brava-card-shadow-hover: 0 28px 68px rgba(13, 18, 48, .13);
  --brava-ring: 0 0 0 4px rgba(255, 90, 95, .14);
}

html {
  --bg: #fdfcfd;
  --bg-soft: #f8f3f7;
  --surface: #ffffff;
  --surface-2: #fff4f7;
  --surface-3: #f1edf3;
  --ink: #0d1230;
  --ink-2: #242b43;
  --muted: #69718a;
  --muted-2: #8e95a8;
  --line: #e8e3ea;
  --line-strong: #d7cfda;
}


body.brava-site {
  background: var(--bg);
  background-image: none;
}

body.brava-site main {
  overflow: clip;
}

.section,
.section--compact {
  isolation: isolate;
}

.section--dark {
  color: #f8f9fc;
  background-color: var(--brava-navy);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #ffffff;
}

.section--dark p,
.section--dark .lede,
.section--dark .muted {
  color: #c1c6d5;
}

.section--soft {
  background: var(--bg-soft);
}

/* ---------- Header ---------- */
.site-header {
  min-height: 76px;
  border-bottom-color: color-mix(in srgb, var(--line) 92%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.header-inner {
  min-height: 76px;
}

.brand-copy {
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--brava-coral);
}

.primary-nav {
  gap: 3px;
}

.primary-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 670;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--brava-coral) 9%, var(--surface));
}

.site-header .button {
  min-height: 40px;
}

.mobile-panel {
  border-top-color: var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
}

/* ---------- Buttons and common controls ---------- */
.button {
  background: var(--brand-gradient);
  box-shadow: 0 12px 30px rgba(255, 46, 138, .19);
}

.button:hover {
  box-shadow: 0 18px 38px rgba(255, 46, 138, .27);
}

.button--secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: none;
}

.button--secondary:hover {
  color: var(--brava-pink);
  border-color: rgba(255, 90, 95, .55);
  background: color-mix(in srgb, var(--brava-coral) 6%, var(--surface));
  box-shadow: none;
}

.section--dark .button--secondary,
.promo-world .button--secondary,
.cta-panel .button--secondary {
  color: #0d1230;
  border-color: rgba(255,255,255,.82);
  background: #ffffff;
}

.section--dark .button--secondary:hover,
.promo-world .button--secondary:hover,
.cta-panel .button--secondary:hover {
  color: var(--brava-pink);
  background: #fff5f7;
}

.icon-box {
  background: var(--brand-gradient);
}

.eyebrow {
  color: var(--brava-pink);
}

.pill--accent {
  color: var(--ink);
  border-color: rgba(255, 90, 95, .3);
  background: color-mix(in srgb, var(--brava-coral) 9%, var(--surface));
}

/* ---------- Home: intentional section palette ---------- */
.portal-intro-section,
.local-guides-section,
.promo-section,
.faq-home-section,
.home-cta-section {
  background: var(--bg);
}

.platforms-section,
.services-section {
  background: var(--bg-soft);
}




/* ---------- Hero ---------- */
.page-home .original-hero {
  background-color: var(--brava-navy);
  background-position: center;
}

.page-home .original-hero::before {
  background:
    linear-gradient(90deg, rgba(13,18,48,.985) 0%, rgba(13,18,48,.94) 48%, rgba(13,18,48,.28) 100%),
    radial-gradient(circle at 35% 85%, rgba(123,92,255,.13), transparent 38%);
}

.page-home .original-hero-grid {
  min-height: min(840px, calc(100svh - 76px));
}

.page-home .original-hero-copy {
  padding-block: clamp(68px, 8vw, 100px);
}

.page-home .original-hero h1 {
  max-width: 820px;
  font-size: clamp(3.35rem, 5.1vw, 5.05rem);
  line-height: .98;
}

.page-home .hero-lede {
  max-width: 720px;
  color: #d8dbe6;
  line-height: 1.55;
}

.page-home .original-hero-actions {
  margin-top: 34px;
}

.page-home .original-hero-proof {
  row-gap: 11px;
  margin-top: 30px;
}

.page-home .original-hero-proof span {
  color: #c6cad8;
}

.brava-hero-visual {
  min-height: 720px;
}

.brava-hero-visual img {
  object-position: 50% 48%;
}

.brava-hero-caption {
  border-color: rgba(255,255,255,.2);
  background: rgba(13,18,48,.72);
}

/* ---------- Platform strip ---------- */
.home-platform-strip {
  border-color: var(--line);
  background: var(--surface);
}

.brand-platform-strip-inner {
  padding-block: 24px;
}

.brand-platform-strip-copy strong {
  color: var(--ink);
  font-size: .9rem;
}

.brand-platform-strip-copy span {
  color: var(--muted);
}

.brand-platform-item {
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--ink-2);
}

.brand-platform-item:hover {
  color: var(--brava-pink);
  background: color-mix(in srgb, var(--brava-coral) 6%, var(--surface));
}

.brand-platform-item img {
  width: 25px;
  height: 25px;
}

/* ---------- Portal showcase ---------- */
.portal-intro-section {
  padding-top: clamp(88px, 9vw, 128px);
  background-image:
    radial-gradient(circle at 88% 12%, rgba(255,46,138,.07), transparent 25%),
    radial-gradient(circle at 8% 88%, rgba(123,92,255,.06), transparent 24%);
}

.portal-intro-heading h2 {
  max-width: 890px;
  margin-inline: auto;
}

.portal-intro-actions {
  justify-content: center;
  margin-top: 32px;
}

.portal-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  min-height: 620px;
  margin-top: clamp(52px, 7vw, 84px);
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at 88% 24%, rgba(255,46,138,.14), transparent 33%),
    linear-gradient(135deg, #fff 0%, #fff8fa 48%, #f3f0ff 100%);
  box-shadow: 0 32px 90px rgba(13,18,48,.11);
}

.portal-showcase::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -220px;
  top: -250px;
  border: 1px solid rgba(255,90,95,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,46,138,.035), 0 0 0 116px rgba(123,92,255,.025);
}

.portal-showcase-copy,
.portal-showcase-visual {
  position: relative;
  z-index: 1;
}

.portal-showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255,90,95,.25);
  border-radius: 999px;
  color: var(--brava-pink);
  background: rgba(255,255,255,.78);
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portal-showcase-label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--brand-gradient);
  clip-path: polygon(50% 0,58% 39%,100% 50%,58% 61%,50% 100%,42% 61%,0 50%,42% 39%);
}

.portal-showcase-copy h3 {
  max-width: 520px;
  margin-top: 22px;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1.02;
}

.portal-showcase-copy > p {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1rem;
}

.portal-feature-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.portal-feature-mini {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(13,18,48,.075);
  border-radius: 17px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
}

.portal-feature-mini .icon-box {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(255,46,138,.13);
}

.portal-feature-mini strong {
  display: block;
  color: var(--ink);
  font-size: .82rem;
}

.portal-feature-mini span:not(.icon-box) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .69rem;
}

.portal-showcase-visual {
  align-self: end;
  margin: 0;
}

.portal-showcase-visual img {
  width: 112%;
  max-width: none;
  margin-left: -4%;
  filter: drop-shadow(0 28px 36px rgba(13,18,48,.17));
}

.portal-showcase-visual figcaption {
  display: flex;
  justify-content: center;
  margin-top: -22px;
}

/* ---------- Platform cards ---------- */
.platforms-section {
  background-image: radial-gradient(circle at 88% 8%, rgba(255,90,95,.06), transparent 25%);
}

.platforms-section .split,
.services-section .text-center {
  position: relative;
  z-index: 1;
}

.platform-grid {
  gap: 20px;
}

.platform-card {
  isolation: isolate;
  min-height: 305px;
  padding: 26px;
  border-color: var(--line);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--brava-card-shadow);
}

.platform-card::after {
  z-index: -1;
  width: 132px;
  height: 132px;
  right: -66px;
  top: -66px;
  opacity: .94;
  background: var(--brand-gradient);
}

.platform-card::before {
  content: "";
  position: absolute;
  right: 25px;
  bottom: 24px;
  width: 12px;
  height: 12px;
  background: var(--brava-coral);
  clip-path: polygon(50% 0,58% 39%,100% 50%,58% 61%,50% 100%,42% 61%,0 50%,42% 39%);
  opacity: .8;
}

.platform-card:hover {
  border-color: rgba(255,90,95,.38);
  box-shadow: var(--brava-card-shadow-hover);
}

.platform-card h3,
.catalog-service-card h3 {
  color: var(--ink);
}

.platform-card p,
.catalog-service-card p {
  color: var(--ink-2);
}

.platform-card p {
  min-height: 2.7em;
}

.platform-logo-shell {
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(13,18,48,.08);
}

.service-tag {
  max-width: 72%;
  color: #c51b61;
  border: 1px solid #ffd4df;
  background: #fff1f5;
  text-align: right;
}

.platform-arrow {
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 9px 22px rgba(255,46,138,.16);
}

.platform-card:hover .platform-arrow {
  color: #ffffff;
  background: var(--brand-gradient);
}

/* ---------- Local Guides ---------- */
.local-guides-section {
  background-image: radial-gradient(circle at 82% 35%, rgba(123,92,255,.055), transparent 26%);
}

.guide-point .icon {
  color: var(--brava-coral);
}

.guide-visual {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 85% 15%, rgba(255,46,138,.17), transparent 31%),
    linear-gradient(145deg, #0d1230 0%, #12183a 58%, #1f1740 100%);
  box-shadow: 0 34px 85px rgba(13,18,48,.22);
}

.guide-map {
  opacity: .6;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255,90,95,.32) 0 3px, transparent 4px),
    radial-gradient(circle at 75% 64%, rgba(123,92,255,.28) 0 3px, transparent 4px),
    linear-gradient(35deg, transparent 48%, rgba(255,255,255,.055) 49% 51%, transparent 52%),
    linear-gradient(-25deg, transparent 48%, rgba(255,255,255,.04) 49% 51%, transparent 52%);
}

.guide-profile {
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.085);
  box-shadow: 0 24px 52px rgba(0,0,0,.22);
}

.guide-avatar,
.guide-pin {
  color: #ffffff;
  background: var(--brand-gradient);
}

.guide-profile small,
.guide-profile-stats span {
  color: #aeb5c7;
}

.guide-stars {
  color: var(--brava-coral);
}

.stat-band {
  border-color: var(--line);
  background: var(--line);
  box-shadow: var(--brava-card-shadow);
}

.stat-band-item {
  background: var(--surface);
}

.stat-band-item strong {
  color: var(--ink);
}

/* ---------- Promo ---------- */
.promo-section {
  padding-block: clamp(72px, 8vw, 108px);
}

.promo-world--brava {
  position: relative;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  gap: clamp(34px, 5vw, 70px);
  padding: clamp(42px, 6vw, 74px);
  border: 1px solid rgba(255,255,255,.1);
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,46,138,.30), transparent 30%),
    radial-gradient(circle at 58% 100%, rgba(123,92,255,.18), transparent 34%),
    linear-gradient(132deg, #0d1230 0%, #17163a 52%, #4b1744 100%);
  box-shadow: 0 34px 90px rgba(13,18,48,.24);
}

.promo-world--brava::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background: url('/assets/images/brava/pattern-sparkles.png') center/920px auto;
}

.promo-world--brava::after {
  content: "";
  width: 260px;
  height: 260px;
  right: -70px;
  bottom: -90px;
  opacity: .055;
  background: url('/assets/brand/logo-mark-white.svg') center/contain no-repeat;
}

.promo-world--brava > * {
  position: relative;
  z-index: 1;
}

.promo-world--brava h2 {
  color: #ffffff;
  font-size: clamp(2.55rem, 4.5vw, 4.8rem);
}

.promo-world--brava p {
  color: #c7cbd8;
  line-height: 1.65;
}

.promo-world--brava .eyebrow {
  color: #ff8c96;
}

.promo-visual-group {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  gap: 16px;
  align-items: stretch;
}

.promo-off {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 25px;
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 20px 50px rgba(255,46,138,.24);
}

.promo-off span {
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.promo-off strong {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  line-height: .85;
  letter-spacing: -.08em;
}

.promo-off b {
  margin-top: 8px;
  font-size: 1.6rem;
  letter-spacing: .1em;
}

.promo-off small {
  margin-top: 18px;
  color: rgba(255,255,255,.84);
  font-size: .68rem;
}

.promo-platforms {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.promo-badge {
  min-height: 128px;
  border-color: rgba(255,255,255,.12);
  color: #ffffff;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(12px);
}

.promo-badge:last-child {
  grid-column: 1 / -1;
}

.promo-badge span {
  color: #dce0e9;
}

/* ---------- Service catalogue ---------- */
.services-section {
  background-image:
    radial-gradient(circle at 12% 10%, rgba(255,46,138,.055), transparent 22%),
    radial-gradient(circle at 92% 82%, rgba(123,92,255,.055), transparent 24%);
}

.service-catalog-grid {
  gap: 20px;
}

.catalog-service-card {
  position: relative;
  min-height: 300px;
  padding: 25px;
  overflow: hidden;
  border-color: var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--brava-card-shadow);
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
}

.catalog-service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity var(--speed);
}

.catalog-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,90,95,.35);
  box-shadow: var(--brava-card-shadow-hover);
}

.catalog-service-card:hover::before {
  opacity: 1;
}

.catalog-service-card p {
  min-height: 3.2em;
}

.catalog-service-card-meta {
  align-items: flex-end;
  gap: 18px;
}

.catalog-service-card-meta > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.catalog-service-card-meta span,
.catalog-service-card-meta strong {
  display: block;
}

.catalog-service-card-meta span {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-service-card-meta strong {
  color: var(--ink);
  line-height: 1.2;
}

.catalog-service-card-meta .link-arrow {
  flex: 0 0 auto;
  padding-bottom: 2px;
}

.logo-stack .platform-logo-shell {
  border-color: var(--surface);
}

/* ---------- Guarantee ---------- */
.guarantee-section {
  background:
    radial-gradient(circle at 92% 12%, rgba(255,46,138,.22), transparent 31%),
    radial-gradient(circle at 9% 88%, rgba(123,92,255,.16), transparent 30%),
    #0d1230 url('/assets/images/brava/pattern-sparkles.png') center/900px auto;
}

.guarantee-heading {
  grid-template-columns: 1.05fr .95fr;
}

.guarantee-card {
  min-height: 260px;
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.065);
  box-shadow: 0 18px 44px rgba(0,0,0,.12);
}

.guarantee-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,90,95,.42);
  background: rgba(255,255,255,.09);
}

.guarantee-card .icon-box {
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 12px 28px rgba(255,46,138,.22);
}

.guarantee-card h3 {
  color: #ffffff;
}

.guarantee-card p {
  color: #c1c6d5;
  line-height: 1.65;
}

/* ---------- FAQ ---------- */
.faq-home-section {
  position: relative;
  background-image: radial-gradient(circle at 88% 28%, rgba(255,90,95,.055), transparent 25%);
}

.faq-home-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 340px;
  right: max(2vw, 10px);
  bottom: 50px;
  opacity: .15;
  background: url('/assets/images/brava/faq-decoration-polished.png') center/contain no-repeat;
  pointer-events: none;
}

.faq-heading-grid {
  grid-template-columns: 1fr .8fr;
}

.faq-item {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(13,18,48,.055);
}

.faq-item:hover {
  border-color: rgba(255,90,95,.32);
}

.faq-item.is-open {
  border-color: rgba(255,90,95,.48);
  box-shadow: 0 18px 42px rgba(255,46,138,.09);
}

/* ---------- CTA ---------- */
.home-cta-section {
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: clamp(90px, 10vw, 130px);
}

.cta-panel {
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 85% 12%, rgba(255,90,95,.24), transparent 32%),
    linear-gradient(125deg, #0d1230 0%, #1b173d 58%, #64194f 100%);
  box-shadow: 0 34px 90px rgba(13,18,48,.22);
}

.cta-panel h2 {
  color: #ffffff;
}

.cta-panel p {
  color: #c4c8d5;
}

.cta-panel .eyebrow {
  color: #ff8892;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.05);
  background:
    radial-gradient(circle at 88% 8%, rgba(255,46,138,.12), transparent 25%),
    #080c21 url('/assets/images/brava/pattern-sparkles.png') center/1000px auto;
}

.site-footer p,
.site-footer .footer-links,
.site-footer .footer-links span {
  color: #a9afc0;
}

.footer-title {
  color: #ffffff;
}

.footer-bottom {
  border-top-color: rgba(255,255,255,.08);
  color: #8c93a7;
}

/* ---------- Other public pages ---------- */
.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 16%, rgba(255,46,138,.12), transparent 30%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, #fff0f5), var(--bg-soft));
}

.page-hero::before {
  opacity: .58;
}


.page-hero h1,
.article-hero h1 {
  color: var(--ink);
}

.price-card,
.config-step,
.contact-card,
.resource-card,
.builder-panel,
.builder-platform-card,
.builder-service-card,
.legal-nav,
.compliance-note {
  border-color: var(--line);
  background: var(--surface);
}

.price-card:not(.price-card--featured),
.config-step,
.contact-card,
.resource-card,
.builder-panel {
  box-shadow: var(--brava-card-shadow);
}

.builder-progress-step.is-active,
.builder-platform-card.is-selected,
.service-option.is-selected {
  color: var(--ink);
  border-color: rgba(255,90,95,.65);
  background: color-mix(in srgb, var(--brava-coral) 9%, var(--surface));
  box-shadow: var(--brava-ring);
}

.builder-progress-step.is-active i,
.builder-progress-step.is-complete i,
.builder-platform-card.is-selected .builder-check,
.service-option-icon,
.range-value,
.discount-scale span.is-active,
.summary-savings,
.discount-ribbon .is-best {
  color: #ffffff;
  border-color: transparent;
  background: var(--brand-gradient);
}

.range-control input[type="range"] {
  accent-color: var(--brava-coral);
}

.config-summary,
.builder-summary,
.price-card--featured {
  color: #ffffff;
  border-color: rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 100% 0, rgba(255,46,138,.2), transparent 32%),
    #0d1230 url('/assets/images/brava/pattern-sparkles.png') center/760px auto;
}

.config-summary h2,
.config-summary h3,
.builder-summary h2,
.builder-summary h3,
.price-card--featured h2,
.price-card--featured h3 {
  color: #ffffff;
}

.summary-line,
.summary-total span,
.summary-total small,
.summary-note,
.builder-summary p,
.price-card--featured p {
  color: #b9bfce;
}

.summary-line strong,
.summary-total strong {
  color: #ffffff;
}

.contact-method,
.faq-search,
.segmented,
.range-control {
  border-color: var(--line);
  background: var(--surface);
}

.resource-art {
  background: var(--brand-gradient-soft);
}

.article-hero {
  background: linear-gradient(135deg, var(--surface), var(--bg-soft));
}


/* ---------- Portal demo ---------- */
.portal-v2-page {
  color: #f7f8fb;
  background: #080c21;
}

.portal-v2-sidebar {
  border-color: #252d52;
  background:
    radial-gradient(circle at 10% 5%, rgba(255,46,138,.10), transparent 22%),
    #0d1230;
}

.portal-v2-main {
  background:
    radial-gradient(circle at 92% 0, rgba(255,46,138,.09), transparent 30%),
    #080c21;
}

.portal-v2-topbar {
  border-color: #252d52;
  background: rgba(8,12,33,.88);
}

.portal-v2-note {
  color: #d1d4de;
  border-color: rgba(255,90,95,.28);
  background: rgba(255,90,95,.08);
}

.portal-kpi-v2,
.portal-card-v2,
.portal-big-service,
.portal-delivery-v2,
.portal-ai-context-v2,
.portal-ai-work-v2,
.portal-buy-card-v2 {
  border-color: rgba(255,255,255,.085);
  background: #131a37;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.portal-kpi-v2 small,
.portal-card-v2-head span,
.portal-feed-row-v2 small,
.portal-feed-row-v2 time,
.portal-big-service p,
.portal-delivery-v2 small,
.portal-delivery-v2 time,
.portal-buy-card-v2 p,
.portal-v2-heading p {
  color: #939bad;
}

.portal-kpi-v2 strong,
.portal-card-v2 strong,
.portal-big-service h3,
.portal-delivery-v2 strong,
.portal-ai-context-v2 strong,
.portal-ai-work-v2 strong,
.portal-buy-card-v2 h3,
.portal-v2-heading h1,
.portal-v2-heading h2 {
  color: #ffffff;
}

.portal-service-card-v2 {
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.045);
}

.portal-progress-v2 {
  background: #2a3155;
}

.portal-progress-v2 i,
.portal-chart-v2 i {
  background: var(--brand-gradient);
}

.portal-delivery-status {
  color: #ffc1d0;
  background: rgba(255,90,95,.14);
}

.portal-ai-context-v2 blockquote {
  color: #d7dae3;
  border-left-color: var(--brava-coral);
  background: rgba(255,255,255,.045);
}

.portal-ai-tone-v2 button {
  color: #9ca3b5;
  border-color: #343d63;
}

.portal-ai-tone-v2 button[aria-pressed="true"] {
  color: #ffffff;
  border-color: transparent;
  background: var(--brand-gradient);
}

.portal-ai-work-v2 textarea {
  color: #f2f3f8;
  border-color: #343d63;
  background: #0b1029;
}

.portal-v2-page .pill--accent {
  color: #ffd5df;
  border-color: rgba(255,90,95,.3);
  background: rgba(255,90,95,.10);
}

.portal-v2-page .pill--success {
  color: #8ce7db;
  border-color: rgba(0,194,184,.32);
  background: rgba(0,194,184,.10);
}

.portal-v2-page .pill--success .pill-dot {
  background: var(--brava-turquoise);
  box-shadow: 0 0 0 4px rgba(0,194,184,.14);
}

.portal-v2-page .platform-logo-shell {
  border-color: rgba(255,255,255,.1);
  background: #ffffff;
}

.portal-v2-page .button--ghost {
  color: #b0b6c6;
}

.portal-v2-page .button--ghost:hover {
  color: #ffffff;
  border-color: rgba(255,90,95,.28);
  background: rgba(255,90,95,.09);
}

.portal-v2-page .button--secondary {
  color: #f3f4f8;
  border-color: #3a4368;
  background: #171e3d;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .portal-showcase {
    grid-template-columns: 1fr;
  }

  .portal-showcase-copy {
    max-width: 760px;
  }

  .portal-feature-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .portal-showcase-visual img {
    width: min(980px, 112%);
    margin-inline: auto;
  }

  .promo-world--brava {
    grid-template-columns: 1fr;
  }

  .promo-visual-group {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 980px) {
  .page-home .original-hero-grid {
    min-height: auto;
  }

  .brava-hero-visual {
    min-height: 610px;
  }

  .faq-heading-grid,
  .guarantee-heading {
    grid-template-columns: 1fr;
  }

  .faq-home-section::after {
    width: 300px;
    height: 240px;
    opacity: .08;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

  .header-inner {
    min-height: 68px;
  }

  .section {
    padding-block: clamp(72px, 18vw, 96px);
  }

  .page-home .original-hero-copy {
    padding-top: 58px;
    padding-bottom: 42px;
  }

  .page-home .original-hero h1 {
    font-size: clamp(2.9rem, 13.7vw, 4.45rem);
    line-height: .98;
  }

  .page-home .hero-lede {
    font-size: 1rem;
  }

  .page-home .original-hero-proof {
    display: grid;
    gap: 10px;
  }

  .brava-hero-visual {
    min-height: 500px;
  }

  .brand-platform-strip-inner {
    gap: 18px;
  }

  .brand-platform-logos {
    gap: 8px;
  }

  .brand-platform-item {
    font-size: .66rem;
  }

  .portal-showcase {
    min-height: auto;
    padding: 28px 22px 18px;
    border-radius: 28px;
  }

  .portal-feature-list {
    grid-template-columns: 1fr;
  }

  .portal-showcase-visual img {
    width: 122%;
    margin-left: -11%;
  }

  .platform-card,
  .catalog-service-card {
    min-height: auto;
  }

  .platform-card p,
  .catalog-service-card p {
    min-height: 0;
  }

  .service-tag {
    max-width: 68%;
    font-size: .58rem;
  }

  .promo-world--brava {
    padding: 34px 24px;
    border-radius: 28px;
  }

  .promo-visual-group {
    grid-template-columns: 1fr;
  }

  .promo-off {
    min-height: 210px;
  }

  .promo-platforms {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .promo-badge:last-child {
    grid-column: 1 / -1;
  }

  .catalog-service-card-meta {
    align-items: flex-end;
  }

  .catalog-service-card-meta span {
    white-space: normal;
  }

  .guarantee-card {
    min-height: auto;
  }

  .cta-panel {
    padding: 36px 24px;
    border-radius: 28px;
  }

  .cta-panel h2 {
    font-size: clamp(2.3rem, 11vw, 3.5rem);
  }
}

@media (max-width: 420px) {
  .page-home .original-hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 11.4vw, 3.25rem);
    letter-spacing: -.052em;
  }

  .page-home .original-hero-actions .button {
    width: 100%;
  }

  .brand-platform-logos {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .promo-platforms {
    grid-template-columns: 1fr;
  }

  .promo-badge:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-card,
  .catalog-service-card,
  .guarantee-card {
    transition: none;
  }
}

/* ---------- Final product polish ---------- */
:where(a, button, input, select, textarea) {
  touch-action: manipulation;
}

:where(h1, h2, h3, h4, section, article)[id] {
  scroll-margin-top: 104px;
}

.field :is(input, textarea, select):focus-visible,
.faq-search input:focus-visible,
.portal-ai-work-v2 textarea:focus-visible,
.ai-draft-box textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brava-coral) 72%, transparent);
  outline-offset: 2px;
}

.portal-product-window {
  overflow: hidden;
  border: 8px solid #0d1230;
  border-radius: 24px;
  background: #0d1230;
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 32px 70px rgba(13,18,48,.22);
}

.portal-product-chrome {
  position: relative;
  display: flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  color: rgba(255,255,255,.66);
  background: #0d1230;
}

.portal-product-chrome > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5a5f;
}

.portal-product-chrome > span:nth-child(2) { background: #ffc43d; }
.portal-product-chrome > span:nth-child(3) { background: #00c2b8; }

.portal-product-chrome small {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: .58rem;
  letter-spacing: .03em;
}

.portal-showcase-visual .portal-product-window img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.portal-showcase-visual .portal-product-window img {
  filter: none;
}

.portal-showcase-visual figcaption {
  margin-top: 18px;
}

.cookie-banner {
  max-height: min(88svh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.floating-contact {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}

body:has(.cookie-banner.is-visible) .floating-contact {
  opacity: 0;
  pointer-events: none;
}

.modal {
  overscroll-behavior: contain;
}

.form-status[aria-live] {
  min-height: 1.5em;
}

body.portal-v2-page :is(h1, h2, h3, h4) {
  color: #ffffff;
}

body.portal-v2-page p {
  color: #aeb4c5;
}

@media (max-width: 760px) {
  .portal-product-window {
    border-width: 5px;
    border-radius: 16px;
  }

  .portal-product-chrome {
    height: 30px;
    padding-inline: 10px;
  }

  .portal-product-chrome > span {
    width: 7px;
    height: 7px;
  }

  .portal-product-chrome small {
    display: none;
  }
}

@media (max-width: 900px) {
  .mobile-panel {
    visibility: hidden;
    transition: grid-template-rows .35s var(--ease), visibility 0s linear .35s;
  }

  .mobile-panel.is-open {
    visibility: visible;
    transition-delay: 0s;
  }

  .portal-v2-sidebar {
    visibility: hidden;
    transition: transform var(--speed) var(--ease), visibility 0s linear var(--speed);
  }

  .portal-v2-sidebar.is-open {
    visibility: visible;
    transition-delay: 0s;
  }
}
