/* Brava 5 — conversion-first visual direction
   Signature: one controlled "signal" motion around the real product UI.
   Everything else stays quiet, legible and commercially direct. */

:root {
  --conversion-section: clamp(76px, 8vw, 116px);
  --conversion-radius: 30px;
  --conversion-navy: #0b102c;
  --conversion-navy-2: #171a3f;
  --conversion-copy: #596078;
}

body.brava-site {
  overflow-x: clip;
  background: #fff;
}

body.brava-site :is(h1, h2, h3) {
  text-wrap: balance;
}

body.brava-site p {
  text-wrap: pretty;
}

.site-header {
  border-bottom-color: rgba(13, 18, 48, .07);
}

.primary-nav {
  gap: 10px;
}

.primary-nav a {
  padding-inline: 13px;
}

.header-actions .button:first-child {
  box-shadow: none;
}

/* Home thesis */
.page-home .original-hero {
  min-height: min(720px, calc(100svh - 77px));
  padding: clamp(70px, 8vw, 110px) 0;
  background-position: center center;
}

.page-home .original-hero::before {
  background: linear-gradient(90deg, rgba(9, 13, 39, .98) 0%, rgba(9, 13, 39, .9) 48%, rgba(9, 13, 39, .48) 71%, rgba(9, 13, 39, .06) 100%);
}

.page-home .original-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  min-height: 0;
}

.page-home .original-hero-copy {
  max-width: 780px;
  padding: 0;
}

.page-home .original-hero h1 {
  max-width: 770px;
  font-size: clamp(3.5rem, 6.4vw, 6.65rem);
  line-height: .96;
  letter-spacing: -.072em;
}

.page-home .original-hero .hero-lede {
  max-width: 590px;
  color: #d1d5e2;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.6;
}

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

.page-home .original-hero-proof span {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #d9dce7;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(10px);
}

.page-home .original-hero-proof .icon {
  color: #ff8794;
}

.home-platform-strip {
  border-block: 1px solid #eceef3;
  background: #fff;
}

.home-platform-strip .brand-platform-strip-inner {
  min-height: 116px;
}

.home-platform-strip .brand-platform-item {
  filter: saturate(.88);
}

/* Product control room */
.page-home main > .section {
  padding-block: var(--conversion-section);
}

.command-heading,
.objective-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .65fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.command-heading h2,
.objective-heading h2,
.proof-layout h2 {
  max-width: 850px;
  font-size: clamp(2.65rem, 5.4vw, 5.35rem);
  line-height: 1;
  letter-spacing: -.065em;
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
}

.command-layout .portal-showcase-visual {
  min-width: 0;
}

.command-layout .portal-product-window {
  transform: perspective(1500px) rotateY(1.5deg) rotateX(.5deg);
  transform-origin: center;
  border-width: 7px;
  box-shadow: 0 42px 95px rgba(13, 18, 48, .2);
}

.command-layout .portal-product-window img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.command-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.command-live i {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}

.command-live i::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(0, 159, 145, .5);
  border-radius: 50%;
  content: "";
  transform: scale(.45);
  animation: bravaSignal 2.4s ease-out infinite;
}

@keyframes bravaSignal {
  0% { transform: scale(.45); opacity: .8; }
  75%, 100% { transform: scale(1.45); opacity: 0; }
}

.command-steps {
  display: grid;
  gap: 0;
}

.command-steps > article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.command-steps > article:first-child {
  padding-top: 0;
}

.command-steps > article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--brand-gradient);
  font: 700 .75rem var(--font-mono);
  box-shadow: 0 12px 25px rgba(255, 46, 138, .16);
}

.command-steps h3 {
  margin: 1px 0 7px;
  font-size: 1.04rem;
}

.command-steps p {
  margin: 0;
  color: var(--conversion-copy);
  font-size: .86rem;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 28px;
}

/* Objectives replace the duplicated home catalog. */
.objective-section {
  background: #f7f8fb;
}

.objective-heading > div:last-child {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.objective-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.objective-card {
  position: relative;
  display: flex;
  min-height: 470px;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--conversion-radius);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 55px rgba(13, 18, 48, .06);
  transition: transform var(--speed) var(--ease), border-color var(--speed), box-shadow var(--speed);
}

.objective-card::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 46, 138, .13), rgba(255, 46, 138, 0) 68%);
  content: "";
  pointer-events: none;
}

.objective-card:hover {
  transform: translateY(-7px);
  border-color: #ffd0dc;
  box-shadow: 0 28px 70px rgba(13, 18, 48, .11);
}

.objective-card--dark {
  color: #fff;
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(145deg, #0b102c 0%, #19143b 62%, #38183c 100%);
}

.objective-card--dark p,
.objective-card--dark .objective-index {
  color: #bec3d2;
}

.objective-index {
  color: var(--muted);
  font: 700 .68rem var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.objective-logos {
  display: flex;
  min-height: 64px;
  align-items: center;
  margin: 34px 0 42px;
}

.objective-logos .platform-logo-shell + .platform-logo-shell {
  margin-left: -10px;
}

.objective-card h3 {
  max-width: 390px;
  margin: 0 0 14px;
  color: inherit;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.objective-card p {
  max-width: 390px;
  margin: 0;
  color: var(--conversion-copy);
  font-size: .9rem;
  line-height: 1.65;
}

.objective-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 30px;
  color: inherit;
  font-size: .8rem;
  font-weight: 800;
}

.objective-link .icon {
  width: 16px;
  height: 16px;
}

/* Proof is deliberately compact and evidence-led. */
.proof-section {
  color: #fff;
  background: linear-gradient(130deg, var(--conversion-navy) 0%, #15163a 58%, #321637 100%);
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
}

.proof-layout h2 {
  color: #fff;
  font-size: clamp(2.6rem, 4.5vw, 4.45rem);
}

.proof-layout .lede {
  max-width: 630px;
  color: #bdc2d2;
}

.proof-actions {
  margin-top: 28px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--conversion-radius);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(12px);
}

.proof-grid article {
  min-height: 190px;
  padding: clamp(25px, 4vw, 40px);
}

.proof-grid article:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, .11);
}

.proof-grid article:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.proof-grid strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
}

.proof-grid span {
  display: block;
  max-width: 190px;
  margin-top: 9px;
  color: #aeb4c7;
  font-size: .75rem;
  line-height: 1.5;
}

/* Keep the promotion special without letting it dominate the whole page. */
.page-home .promo-section {
  background: #fff;
}

.page-home .promo-world--brava {
  min-height: 610px;
  padding: clamp(42px, 6vw, 74px);
}

.page-home .promo-world--brava h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
}

.page-home .guarantee-section {
  padding-block: clamp(78px, 8vw, 108px);
}

.page-home .guarantee-grid {
  gap: 14px;
}

.page-home .guarantee-card {
  min-height: 250px;
  padding: 28px;
}

.page-home .faq-home-section {
  padding-bottom: 86px;
}

.page-home .faq-list {
  max-width: 980px;
}

.page-home .home-cta-section {
  padding-block: 42px 90px;
}

.page-home .cta-panel {
  min-height: 330px;
  padding: clamp(38px, 6vw, 72px);
}

/* Compact inner heroes: content first, no oversized decorative raster art. */
body.brava-site .page-hero {
  display: flex;
  min-height: 0;
  align-items: center;
  padding: clamp(64px, 7vw, 94px) 0 clamp(56px, 6vw, 82px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff 0%, #fff7fa 60%, #f7f5ff 100%);
}

body.brava-site .page-hero::before {
  opacity: 1;
  background:
    linear-gradient(90deg, transparent 0 69%, rgba(255, 90, 95, .08) 69% 69.12%, transparent 69.12%),
    radial-gradient(circle at 88% 18%, rgba(255, 46, 138, .12), transparent 28%);
}

body.brava-site .page-hero .container {
  min-height: 0;
}

body.brava-site .page-hero h1 {
  max-width: 1020px;
  font-size: clamp(2.75rem, 5.8vw, 5.35rem);
  line-height: .99;
  letter-spacing: -.066em;
}

body.brava-site .page-hero p {
  max-width: 760px;
  color: var(--conversion-copy);
  line-height: 1.65;
}

body.brava-site .page-hero-art,
body.brava-site .contact-brand-visual {
  display: none;
}

body.brava-site .page-hero--dark {
  color: #fff;
  background: linear-gradient(125deg, #0b102c 0%, #19163e 62%, #42163f 100%);
}

body.brava-site .page-hero--dark h1 {
  color: #fff;
}

body.brava-site .page-hero--dark p {
  color: #c5c9d7;
}

/* The configurator becomes the product, not an afterthought. */
.page-precios .page-hero {
  padding-block: clamp(48px, 5vw, 70px);
}

.page-precios .page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 5.3vw, 5rem);
}

.pricing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.pricing-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.pricing-hero-note::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.page-precios .page-hero + .section--compact {
  padding-block: 22px;
}

.page-precios #configurador {
  padding-block: clamp(42px, 5vw, 66px);
}

.page-precios .discount-ribbon div {
  padding: 16px;
}

.page-precios .discount-ribbon strong {
  font-size: 1.25rem;
}

.page-precios .discount-ribbon .is-best span {
  color: rgba(255, 255, 255, .86);
}

.page-precios .package-builder {
  gap: 20px;
}

.page-precios .builder-panel {
  min-height: 520px;
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(13, 18, 48, .055);
}

.page-precios .builder-summary {
  top: 91px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(145deg, #0b102c, #19163d 72%, #3b173d);
}

.builder-summary-total strong,
.discount-ribbon strong {
  font-variant-numeric: tabular-nums;
}

.builder-selected-list,
.builder-summary-total,
.builder-summary-lines {
  min-width: 0;
}

/* Contact should feel like one decision, not a decorative landing page. */
.page-contacto main > .section {
  padding-block: clamp(64px, 7vw, 92px);
}

.page-contacto .contact-layout {
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.page-contacto .contact-copy h1 {
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.page-contacto .contact-card {
  box-shadow: 0 28px 70px rgba(13, 18, 48, .1);
}

.objective-section .eyebrow {
  color: #c91469;
}

.objective-section .brand-disclaimer {
  color: #596078 !important;
  font-size: .72rem;
  line-height: 1.55;
}

/* Less interruption on desktop, useful action dock on mobile. */
.floating-contact {
  min-height: 48px;
  padding-inline: 17px;
  box-shadow: 0 16px 42px rgba(13, 18, 48, .22);
}

.page-precios .floating-contact {
  display: none;
}

@media (max-width: 1100px) {
  .command-heading,
  .objective-heading,
  .proof-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .command-layout {
    grid-template-columns: 1fr;
  }

  .command-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .command-steps > article {
    grid-template-columns: 1fr;
    align-content: start;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
  }

  .command-steps > article:first-child {
    padding-top: 20px;
  }

  .command-actions {
    grid-column: 1 / -1;
  }

  .objective-grid {
    grid-template-columns: 1fr;
  }

  .objective-card {
    min-height: 390px;
  }

  .proof-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --conversion-section: 68px;
  }

  .page-home .original-hero {
    min-height: calc(100svh - 68px);
    padding: 58px 0 48px;
    background-position: 61% center;
  }

  .page-home .original-hero::before {
    background: linear-gradient(180deg, rgba(9, 13, 39, .94) 0%, rgba(9, 13, 39, .86) 65%, rgba(9, 13, 39, .7) 100%);
  }

  .page-home .original-hero-grid {
    grid-template-columns: 1fr;
  }

  .page-home .original-hero h1 {
    font-size: clamp(2.7rem, 13.2vw, 4.15rem);
    line-height: .98;
  }

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

  .page-home .original-hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .original-hero-proof span {
    justify-content: flex-start;
    font-size: .7rem;
  }

  .command-heading h2,
  .objective-heading h2,
  .proof-layout h2 {
    font-size: clamp(2.45rem, 11.6vw, 3.7rem);
  }

  .command-heading,
  .objective-heading {
    margin-bottom: 34px;
  }

  .command-layout .portal-product-window {
    transform: none;
  }

  .command-steps {
    grid-template-columns: 1fr;
  }

  .command-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .command-actions .button {
    width: 100%;
  }

  .objective-card {
    min-height: 360px;
  }

  .objective-logos {
    margin-block: 28px 34px;
  }

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

  .proof-grid article {
    min-height: 145px;
    padding: 22px;
    border-right: 0;
    border-bottom: 0;
  }

  .proof-grid article:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .11);
  }

  .proof-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, .11);
  }

  .page-home .promo-world--brava {
    min-height: 0;
    padding: 34px 23px;
  }

  .page-home .guarantee-grid {
    grid-template-columns: 1fr;
  }

  .page-home .guarantee-card {
    min-height: 0;
    padding: 22px;
  }

  body.brava-site .page-hero {
    padding: 54px 0 48px;
  }

  body.brava-site .page-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.85rem);
  }

  .page-precios .page-hero + .section--compact {
    padding-block: 14px;
  }

  .page-precios .builder-navigation {
    position: sticky;
    z-index: 20;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 10px;
    border: 1px solid rgba(13, 18, 48, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 48px rgba(13, 18, 48, .18);
    backdrop-filter: blur(16px);
  }

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

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
    border-radius: 18px;
  }

  .cookie-banner p {
    margin: 5px 0 12px;
    font-size: .73rem;
    line-height: 1.45;
  }

  .cookie-actions .button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: .7rem;
  }

  .cookie-actions .button--ghost {
    min-height: 32px;
    padding: 5px 8px;
    border-color: transparent;
    background: transparent;
  }

}

@media (max-width: 420px) {
  .page-home .original-hero h1 {
    font-size: clamp(2.35rem, 10vw, 2.7rem);
    letter-spacing: -.055em;
  }

  .page-home .original-hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .objective-card {
    min-height: 340px;
  }

  .objective-card h3 {
    font-size: 1.65rem;
  }

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

  .promo-badge,
  .promo-badge:last-child {
    grid-column: auto;
    min-height: 66px;
    padding: 7px 3px;
    border-radius: 14px;
  }

  .promo-badge .platform-logo-shell {
    width: 42px;
    height: 42px;
  }

  .promo-badge > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .command-live i::after {
    animation: none;
    opacity: 0;
  }

  .objective-card {
    transition: none;
  }
}
