/* ============================================================
   Vista "Branding e identidad corporativa" (Presencia Digital).
   El telefono esta construido por capas para permitir video futuro.
   ============================================================ */

.branding-page {
  --dc-gutter: var(--page-gutter, clamp(32px, 5.5vw, 72px));
  --dc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: clip;
  background: #fff;
  padding-top: 72px;
}

/* ---------------- BRANDING HERO ---------------- */
.branding-hero {
  --brand-ink: #003b46;
  --brand-teal: #176a74;
  --brand-turquoise: #43b8ba;
  --brand-orange: #eb6e25;
  --brand-orange-hover: #d95c19;
  --brand-muted: #647276;
  --brand-line: #e4e9e9;
  overflow: hidden;
  background: #fff;
}

.branding-hero-inner {
  display: grid;
  gap: 48px;
  /* Mismo margen lateral que el encabezado del sitio (sin tope de ancho). */
  width: 100%;
  margin: 0 auto;
  padding: 72px var(--dc-gutter) 54px;
}

.branding-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.branding-eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--brand-teal);
}

.branding-title {
  margin: 0;
  max-width: 690px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0;
  color: var(--brand-ink);
}

.branding-title span {
  display: block;
}

.branding-title em,
.branding-title strong,
.branding-title i {
  font-style: normal;
}

.branding-title em,
.branding-title i {
  color: var(--brand-orange);
}

.branding-title strong {
  position: relative;
  display: inline-block;
  color: var(--brand-turquoise);
}

.branding-title strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.08em;
  border-radius: 999px;
  background: var(--brand-orange);
}

.branding-lead {
  margin: 28px 0 0;
  max-width: 560px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.42;
  color: var(--brand-muted);
}

.branding-lead b {
  font-weight: 600;
  color: #23363b;
}

.branding-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  margin-top: 32px;
  padding: 0 34px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.25s var(--dc-ease), transform 0.25s var(--dc-ease);
}

.branding-cta span {
  transition: transform 0.25s var(--dc-ease);
}

.branding-cta:hover,
.branding-cta:focus-visible {
  background: var(--brand-orange-hover);
}

.branding-cta:hover span,
.branding-cta:focus-visible span {
  transform: translateX(4px);
}

.branding-phone-area {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.branding-blob {
  position: absolute;
  width: min(82vw, 480px);
  height: min(84vw, 500px);
  border-radius: 44% 56% 54% 46% / 42% 38% 62% 58%;
  background: var(--brand-turquoise);
  transform: translate(10%, -2%) rotate(-5deg);
}

.branding-phone {
  position: relative;
  z-index: 1;
  width: min(300px, 76vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  filter: drop-shadow(0 28px 26px rgba(0, 59, 70, 0.22));
}

.phone-screen {
  position: absolute;
  inset: 13px;
  z-index: 1;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
}

.phone-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 7px solid #1d2427;
  border-radius: 42px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.24),
    inset 0 0 0 5px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 88px;
  height: 22px;
  border-radius: 0 0 17px 17px;
  background: #101417;
  transform: translateX(-50%);
}

.phone-button {
  position: absolute;
  width: 4px;
  border-radius: 999px;
  background: #1d2427;
}

.phone-button-left {
  left: -10px;
  top: 105px;
  height: 58px;
}

.phone-button-right {
  right: -10px;
  top: 136px;
  height: 76px;
}

.screen-top {
  display: grid;
  place-items: center;
  min-height: 25%;
  padding: 36px 28px 20px;
  background: #003b46;
}

.screen-top img {
  width: 132px;
  max-height: 70px;
  object-fit: contain;
}

.screen-style {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
  padding: 20px 22px 18px;
  background: #fff;
}

.screen-swatches {
  grid-column: 1 / -1;
  display: flex;
  gap: 13px;
}

.screen-swatches span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: 0 0 0 5px rgba(228, 233, 233, 0.42);
}

.screen-type {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: end;
  color: var(--brand-ink);
}

.screen-type b {
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 0.9;
}

.screen-type small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand-muted);
}

.screen-lines {
  display: grid;
  align-content: center;
  gap: 8px;
}

.screen-lines span {
  height: 6px;
  border-radius: 999px;
  background: #d8dddd;
}

.screen-lines span:nth-child(2) {
  width: 78%;
}

.screen-lines span:nth-child(3) {
  width: 58%;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 42%;
}

.screen-brand-tile,
.screen-card-tile {
  min-height: 118px;
}

.screen-brand-tile {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #003b46;
}

.screen-brand-tile img {
  width: 102px;
  object-fit: contain;
}

.screen-card-tile {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fafaf8;
  color: var(--brand-ink);
  text-align: center;
  font-family: var(--font-display);
}

.screen-card-tile span {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 5px;
}

.screen-card-tile small {
  margin-top: -22px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.screen-photo-tile {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  min-height: 132px;
  padding: 20px;
  background:
    linear-gradient(0deg, rgba(0, 59, 70, 0.82), rgba(0, 59, 70, 0.14)),
    url("../../assets/images/hero-consulting-family.png") center / cover;
}

.screen-photo-tile p {
  max-width: 150px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--brand-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.12;
}

.branding-phone-line {
  position: absolute;
  z-index: 0;
  bottom: 22px;
  width: min(430px, 74vw);
  height: 34px;
  border-bottom: 4px solid var(--brand-ink);
  border-radius: 50%;
  transform: translateX(4%);
}

.branding-benefits {
  display: grid;
  gap: 0;
  width: calc(100% - (var(--dc-gutter) * 2));
  margin: 0 auto;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(228, 233, 233, 0.9);
  background: #fff;
}

.branding-benefits article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px 0;
}

.branding-benefit-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(67, 184, 186, 0.14);
  color: var(--brand-teal);
  transition: transform 0.25s var(--dc-ease), background-color 0.25s var(--dc-ease);
}

.branding-benefit-icon-alt {
  background: rgba(235, 110, 37, 0.1);
  color: var(--brand-orange);
}

.branding-benefits article:hover .branding-benefit-icon {
  transform: translateY(-3px);
  background: rgba(67, 184, 186, 0.2);
}

.branding-benefit-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branding-benefits h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-ink);
}

.branding-benefits p {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--brand-muted);
}

.branding-logo-strip {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid rgba(228, 233, 233, 0.9);
  background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Carrusel continuo: dos copias idénticas que se desplazan la mitad del ancho */
.branding-logo-track {
  display: flex;
  width: max-content;
  animation: branding-logos 60s linear infinite;
}

.branding-logo-strip:hover .branding-logo-track { animation-play-state: paused; }

.branding-logo-set {
  display: flex;
  align-items: center;
  gap: 72px;
  margin: 0;
  padding: 0 36px;
  list-style: none;
}

.branding-logo-set li { flex: 0 0 auto; display: grid; place-items: center; height: 64px; }

.branding-logo-set img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.62;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.branding-logo-set .is-flat img { height: 18px; }
.branding-logo-set .is-tall img { height: 46px; }
.branding-logo-set .is-xtall img { height: 60px; }
.branding-logo-set li:hover img { opacity: 1; transform: scale(1.05); }

@keyframes branding-logos { to { transform: translateX(-50%); } }

@media (max-width: 599px) {
  .branding-logo-strip { padding: 18px 0; }
  .branding-logo-set { gap: 44px; padding: 0 22px; }
  .branding-logo-set img { height: 26px; max-width: 150px; }
  .branding-logo-set .is-flat img { height: 14px; }
  .branding-logo-set .is-tall img { height: 36px; }
  .branding-logo-set .is-xtall img { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .branding-logo-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .branding-logo-track { animation: none; }
  .branding-logo-set[aria-hidden="true"] { display: none; }
}

.branding-eyebrow,
.branding-title span,
.branding-lead,
.branding-cta,
.branding-phone-area {
  animation: branding-rise 0.62s var(--dc-ease) both;
}

.branding-title span:nth-child(2) { animation-delay: 0.08s; }
.branding-title span:nth-child(3) { animation-delay: 0.16s; }
.branding-lead { animation-delay: 0.22s; }
.branding-cta { animation-delay: 0.3s; }
.branding-phone-area { animation-delay: 0.2s; }

@keyframes branding-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .branding-hero-inner {
    grid-template-columns: minmax(0, 0.52fr) minmax(320px, 0.48fr);
    align-items: center;
    gap: 26px;
    padding-top: 74px;
    padding-bottom: 58px;
  }

  .branding-title {
    font-size: 52px;
  }

  .branding-lead {
    font-size: 18px;
  }

  .branding-phone-area {
    min-height: 450px;
  }

  .branding-phone {
    width: min(270px, 32vw);
  }

  .branding-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 135px;
    padding: 22px 0;
  }

  .branding-benefits article {
    padding: 12px 30px;
  }

  .branding-benefits article + article {
    border-left: 1px solid var(--brand-line);
  }
}

@media (min-width: 1200px) {
  .branding-hero-inner {
    min-height: 0;
    padding: 46px var(--dc-gutter) 40px;
  }

  .branding-title {
    font-size: 68px;
  }

  .branding-lead {
    font-size: 19px;
  }

  .branding-phone-area {
    min-height: 520px;
  }

  .branding-phone {
    width: min(250px, 20vw);
  }
}

@media (max-width: 767px) {
  .branding-hero-inner {
    padding: 46px max(22px, var(--dc-gutter)) 38px;
  }

  .branding-eyebrow {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 3px;
  }

  .branding-cta {
    width: 100%;
    max-width: 320px;
    min-height: 54px;
    padding: 0 24px;
    font-size: 15px;
  }

  .branding-phone-area {
    min-height: 408px;
  }

  .branding-blob {
    width: min(380px, 82vw);
    height: min(398px, 84vw);
  }

  .branding-benefits {
    width: calc(100% - (var(--dc-gutter) * 2));
  }

  .branding-benefits article + article {
    border-top: 1px solid var(--brand-line);
  }

  .screen-top {
    padding-top: 32px;
  }
}

@media (min-width: 1024px) {
  .branding-page {
    padding-top: 147px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branding-eyebrow,
  .branding-title span,
  .branding-lead,
  .branding-cta,
  .branding-phone-area {
    animation: none !important;
  }
}

/* ============================================================
   SECCIÓN 2 — Portafolio de marca (estilo editorial sobrio).
   Foto limpia + datos debajo; toque de branding: la paleta de
   color de cada proyecto. Carrusel: js/branding-showcase.js
   ============================================================ */
.branding-showcase {
  --bs-ink: #0a2f38;
  --bs-body: #4f6470;
  --bs-soft: #7a8c95;
  --bs-line: #e3e8ee;
  --bs-teal: #176a74;
  --bs-orange: #eb6e25;
  --bs-font: "Inter", var(--font-body);
  --slide-w: 360px;
  --slide-gap: 24px;
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 7vw, 104px) 0 clamp(56px, 6vw, 88px);
  background: #fff;
  font-family: var(--bs-font);
  -webkit-font-smoothing: antialiased;
}

.bs-inner {
  padding-inline: var(--dc-gutter);
}

.bs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* Encabezado con el mismo sistema tipográfico del Home:
   kicker en mayúsculas con línea, título Montserrat 900 teal y acento naranja */
.bs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: "Montserrat", var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal);
}

.bs-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal);
}

.bs-head h2 {
  position: relative;
  max-width: 820px;
  margin: 0;
  font-family: "Montserrat", var(--font-display);
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.bs-head h2 em {
  display: inline-block;
  font-style: normal;
  color: var(--orange);
}

.bs-lead {
  max-width: 620px;
  margin: 20px 0 0;
  font-family: "Inter", var(--font-body);
  font-size: clamp(15px, 1.15vw, 17.5px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}

.bs-nav {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.bs-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cfd8e0;
  border-radius: 50%;
  background: #fff;
  color: var(--bs-ink);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}

.bs-arrow:hover {
  border-color: var(--bs-ink);
  background: #f6f9fb;
}

.bs-arrow[hidden] {
  display: grid;
  opacity: 0.35;
  pointer-events: none;
}

.bs-arrow:focus-visible {
  outline: 2px solid var(--bs-orange);
  outline-offset: 2px;
}

.bs-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bs-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--bs-line);
  list-style: none;
}

.bs-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bs-benefits svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bs-benefits strong {
  display: block;
  font-family: "Montserrat", var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--teal);
}

.bs-benefits span {
  display: block;
  margin-top: 3px;
  font-family: "Inter", var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Carrusel ---------- */
.branding-carousel {
  margin-top: 44px;
}

.branding-carousel-track {
  display: flex;
  gap: var(--slide-gap);
  margin: 0;
  padding: 4px var(--dc-gutter) 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--dc-gutter);
  scroll-behavior: smooth;
  scrollbar-width: none;
  outline: none;
}

.branding-carousel-track::-webkit-scrollbar {
  display: none;
}

.branding-carousel-track:focus-visible {
  box-shadow: inset 0 0 0 2px var(--bs-orange);
  border-radius: 12px;
}

.branding-carousel-track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.project-slide {
  flex: 0 0 var(--slide-w);
  scroll-snap-align: start;
}

.ps-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border-radius: 12px;
  background: #eef2f5;
  box-shadow: 0 0 0 1px rgba(10, 47, 56, 0.06);
}

.ps-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-user-drag: none;
  user-select: none;
}

.ps-media-logo {
  background: #235a75;
}

.ps-media-logo img {
  padding: 0;
  object-fit: cover;
  object-position: center;
  background: #235a75;
}

.ps-media-essenza {
  background: #fff;
}

.ps-media-essenza img {
  padding: clamp(12px, 2vw, 22px);
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.ps-media-uaua {
  background: #fff;
}

.ps-media-uaua img {
  padding: clamp(18px, 3vw, 34px);
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.ps-media-sara {
  background: #ebe7eb;
}

.ps-media-sara img {
  object-fit: cover;
  object-position: center;
}

.ps-media-sabor {
  background: #fff;
}

.ps-media-sabor img {
  padding: clamp(18px, 3vw, 34px);
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.ps-media-sellex {
  background: #fff;
}

.ps-media-sellex img {
  padding: clamp(22px, 3.4vw, 40px);
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.ps-media-isalsas {
  background: #f8f7f2;
}

.ps-media-isalsas img {
  padding: clamp(18px, 3vw, 34px);
  object-fit: contain;
  object-position: center;
  background: #f8f7f2;
}

.project-slide:hover .ps-media img {
  transform: scale(1.035);
}

.ps-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--bs-soft);
}

.ps-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--bs-ink);
}

.ps-cat::before {
  content: "·";
  margin-right: 10px;
  color: #c3ccd3;
}

/* Paleta de color del proyecto */
.ps-palette {
  display: flex;
  margin-left: auto;
}

.ps-palette i {
  width: 16px;
  height: 16px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(10, 47, 56, 0.08);
  transition: margin 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-slide:hover .ps-palette i {
  margin-left: 4px;
}

.ps-title {
  margin: 8px 0 0;
  font-family: var(--bs-font);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ps-title a {
  color: var(--bs-ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.3s ease;
}

.project-slide:hover .ps-title a,
.ps-title a:focus-visible {
  background-size: 100% 1.5px;
}

.ps-title a:focus-visible {
  outline: 2px solid var(--bs-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.ps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-teal);
  text-decoration: none;
}

.ps-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.project-slide:hover .ps-link svg {
  transform: translateX(3px);
}

.branding-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.branding-carousel-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd8e0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.branding-carousel-dots button[aria-selected="true"] {
  width: 22px;
  background: var(--bs-ink);
}

.branding-carousel-dots button:focus-visible {
  outline: 2px solid var(--bs-orange);
  outline-offset: 3px;
}

/* Entrada suave */
.branding-showcase.bs-anim .bs-inner,
.branding-showcase.bs-anim .branding-carousel {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.55s ease-out, translate 0.55s ease-out;
}

.branding-showcase.bs-anim .branding-carousel {
  transition-delay: 0.1s;
}

.branding-showcase.bs-anim.is-visible .bs-inner,
.branding-showcase.bs-anim.is-visible .branding-carousel {
  opacity: 1;
  translate: 0 0;
}

@media (max-width: 1023px) {
  .branding-showcase {
    --slide-w: 320px;
    --slide-gap: 18px;
  }
}

@media (max-width: 767px) {
  .branding-showcase {
    --slide-w: min(80vw, 320px);
    --slide-gap: 14px;
  }

  .bs-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bs-nav {
    display: none;
  }

  .bs-benefits {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branding-carousel-track { scroll-behavior: auto; }

  .ps-media img,
  .ps-palette i,
  .branding-showcase.bs-anim .bs-inner,
  .branding-showcase.bs-anim .branding-carousel {
    transition: none;
  }

  .project-slide:hover .ps-media img { transform: none; }
}

/* ============================================================
   PLANES DE IDENTIDAD VISUAL — estilo sobrio tipo checkout
   (Inter, tarjetas blancas con borde fino, sin adornos).
   ============================================================ */
.bplans {
  --bp-ink: #0a2f38;
  --bp-body: #4f6470;
  --bp-soft: #7a8c95;
  --bp-line: #e3e8ee;
  --bp-teal: #176a74;
  --bp-turq: #43b8ba;
  --bp-orange: #eb6e25;
  --bp-font: "Inter", var(--font-body);
  padding: clamp(56px, 6vw, 88px) var(--dc-gutter);
  background: #f6f9fb;
  border-top: 1px solid var(--bp-line);
  border-bottom: 1px solid var(--bp-line);
  font-family: var(--bp-font);
  -webkit-font-smoothing: antialiased;
}

.bplans-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.bplans-head {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.bplans-eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-teal);
}

.bplans-head h2 {
  margin: 0;
  font-family: var(--bp-font);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--bp-ink);
}

.bplans-head p:not(.bplans-eyebrow) {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--bp-body);
}

/* ---------- Tarjetas ---------- */
.bplans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.bplan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 47, 56, 0.04), 0 8px 24px -12px rgba(10, 47, 56, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.bplan:hover {
  border-color: #cfd8e0;
  box-shadow: 0 1px 2px rgba(10, 47, 56, 0.05), 0 18px 40px -18px rgba(10, 47, 56, 0.18);
}

.bplan.is-featured {
  border: 2px solid var(--bp-teal);
  padding: 27px;
  box-shadow: 0 1px 2px rgba(10, 47, 56, 0.05), 0 24px 48px -20px rgba(23, 106, 116, 0.28);
}

.bplan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bplan-name {
  margin: 0;
  font-family: var(--bp-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bp-ink);
}

.bplan-badge {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(23, 106, 116, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: var(--bp-teal);
}

.bplan-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bp-body);
}

.bplan-price {
  margin-top: 24px;
}

.bplan-from,
.bplan-unit {
  display: block;
  font-size: 13px;
  color: var(--bp-soft);
}

.bplan-price p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0;
}

.bplan-price strong {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--bp-ink);
  font-variant-numeric: tabular-nums;
}

.bplan-price p span {
  font-size: 14px;
  font-weight: 500;
  color: var(--bp-soft);
}

.bplan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  border: 1px solid #cfd8e0;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--bp-ink);
  text-decoration: none;
  box-shadow: 0 1px 1px rgba(10, 47, 56, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bplan-cta:hover {
  border-color: var(--bp-ink);
  background: #f6f9fb;
}

.is-featured .bplan-cta {
  border-color: var(--bp-ink);
  background: var(--bp-ink);
  color: #fff;
}

.is-featured .bplan-cta:hover {
  background: #134652;
}

.bplan-cta:focus-visible {
  outline: 2px solid var(--bp-turq);
  outline-offset: 2px;
}

.bplan-time {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--bp-body);
}

.bplan-time svg,
.bplan-list svg,
.bplans-trust svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bplan-time svg { color: var(--bp-soft); }

.bplan-includes {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--bp-line);
}

.bplan-inc {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bp-ink);
}

.bplan-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bplan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bp-body);
}

.bplan-list svg {
  margin-top: 2px;
  color: var(--bp-teal);
  stroke-width: 2;
}

/* ---------- Confianza + cierre ---------- */
.bplans-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.bplans-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--bp-body);
}

.bplans-trust svg {
  color: var(--bp-teal);
  stroke-width: 2;
}

.bplans-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 36px;
  padding: 24px 28px;
  border: 1px solid var(--bp-line);
  border-radius: 12px;
  background: #fff;
}

.bplans-close h3 {
  margin: 0;
  font-family: var(--bp-font);
  font-size: 17px;
  font-weight: 600;
  color: var(--bp-ink);
}

.bplans-close p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--bp-body);
}

.bplans-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--bp-orange);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 47, 56, 0.1);
  transition: background-color 0.15s ease;
}

.bplans-close-btn:hover { background: #d95f1a; }

.bplans-close-btn span { transition: transform 0.15s ease; }
.bplans-close-btn:hover span { transform: translateX(3px); }

.bplans-close-btn:focus-visible {
  outline: 2px solid var(--bp-turq);
  outline-offset: 2px;
}

/* Entrada suave (js/branding-showcase.js agrega .bp-anim / .is-visible) */
.bplans.bp-anim .bplans-head,
.bplans.bp-anim .bplan,
.bplans.bp-anim .bplans-trust,
.bplans.bp-anim .bplans-close {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.5s ease-out, translate 0.5s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bplans.bp-anim .bplan:nth-child(2) { transition-delay: 0.06s, 0.06s, 0s, 0s; }
.bplans.bp-anim .bplan:nth-child(3) { transition-delay: 0.12s, 0.12s, 0s, 0s; }

.bplans.bp-anim.is-visible .bplans-head,
.bplans.bp-anim.is-visible .bplan,
.bplans.bp-anim.is-visible .bplans-trust,
.bplans.bp-anim.is-visible .bplans-close {
  opacity: 1;
  translate: 0 0;
}

/* PC: precio, botón y lista alineados entre las tres tarjetas */
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .bplans-grid {
      grid-template-rows: repeat(6, auto);
      row-gap: 0;
    }

    .bplan {
      display: grid;
      grid-row: span 6;
      grid-template-rows: subgrid;
      align-content: start;
    }
  }
}

@media (max-width: 1023px) {
  .bplans-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    margin-inline: auto;
  }

  .bplan.is-featured { order: -1; }

  .bplans-close {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .bplan { padding: 24px; }
  .bplan.is-featured { padding: 23px; }
  .bplans-close-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bplan,
  .bplan-cta,
  .bplans.bp-anim .bplans-head,
  .bplans.bp-anim .bplan,
  .bplans.bp-anim .bplans-trust,
  .bplans.bp-anim .bplans-close {
    transition: none !important;
  }
}
