/* =========================================================
   NOW! · /servicios/branding/ · BRANDING & DISEÑO
   Origen: NOW-pagina-branding/branding.css (diseño entregado). Colores y tipografía
   desde tokens.css. Se carga solo en esa página (inc/setup.php).
   ========================================================= */
.nb-branding {
  --nb-blue: var(--brand-500);
  --nb-blue-dark: var(--brand-800);
  --nb-black: var(--brand-black);
  --nb-ink: var(--ink-900);
  --nb-yellow: var(--brand-yellow);
  --nb-grey: var(--brand-grey);
  --nb-grey-light: var(--surface-1);
  --nb-line: var(--line);
  --nb-white: var(--surface-0);
  --nb-font: var(--font-base);
  --nb-radius: 22px;
  /* forma "pétalo": tres esquinas redondeadas y una recta */
  --nb-petal: 46% 46% 46% 0;
  --nb-petal-alt: 46% 0 46% 46%;

  font-family: var(--nb-font);
  color: var(--nb-ink);
  line-height: 1.6;
  font-size: 17px;
  background: var(--nb-white);
  overflow-x: hidden;
}
.nb-branding *, .nb-branding *::before, .nb-branding *::after { box-sizing: border-box; }
.nb-branding h1, .nb-branding h2, .nb-branding h3 {
  font-family: var(--nb-font); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em;
}
.nb-branding p { margin: 0 0 1em; }
.nb-branding a:not(.nb-btn) { color: inherit; }
.nb-branding blockquote { margin: 0; }

.nb-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nb-section { padding: 96px 0; position: relative; }
.nb-section--grey { background: var(--nb-grey-light); }
.nb-section--dark { background: var(--nb-black); color: var(--nb-white); }
.nb-section--blue { background: var(--nb-blue); color: var(--nb-white); }

.nb-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nb-blue); margin-bottom: 18px;
}
.nb-eyebrow::before {
  content: ""; width: 14px; height: 14px; background: var(--nb-blue); border-radius: var(--nb-petal);
}
.nb-section--dark .nb-eyebrow, .nb-section--blue .nb-eyebrow { color: var(--nb-yellow); }
.nb-section--dark .nb-eyebrow::before, .nb-section--blue .nb-eyebrow::before { background: var(--nb-yellow); }

.nb-h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; max-width: 820px; }
.nb-lead { font-size: 19px; color: var(--ink-600); max-width: 680px; }
.nb-section--dark .nb-lead { color: var(--dark-muted); }
/* El tema da color de tinta a los títulos: sobre negro y azul van en blanco. */
.nb-section--dark :is(h2, h3), .nb-section--blue :is(h2, h3) { color: var(--surface-0); }
.nb-mark { background: linear-gradient(transparent 58%, var(--nb-yellow) 58%); padding: 0 .08em; }

/* ---------- Botones ---------- */
.nb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--nb-font); font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nb-btn:hover { transform: translateY(-2px); }
.nb-btn--primary { background: var(--brand-700); color: var(--nb-white); }
.nb-btn--primary:hover { background: var(--nb-blue-dark); }
.nb-btn--ghost { border-color: var(--nb-black); color: var(--nb-black); background: transparent; }
.nb-btn--ghost:hover { background: var(--nb-black); color: var(--nb-white); }
.nb-btn--yellow { background: var(--nb-yellow); color: var(--nb-black); }
.nb-btn--yellow:hover { background: var(--nb-white); }
.nb-btn .nb-arrow { transition: transform .2s ease; }
.nb-btn:hover .nb-arrow { transform: translateX(4px); }

/* ---------- Migas ---------- */
.nb-breadcrumb { font-size: 14px; color: var(--nb-grey); padding-top: 28px; }
.nb-breadcrumb a { text-decoration: none; }
.nb-breadcrumb a:hover { color: var(--nb-blue); }
.nb-breadcrumb span[aria-hidden] { margin: 0 8px; }

/* ---------- Hero ---------- */
.nb-hero { padding: 40px 0 110px; }
.nb-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.nb-hero__title { font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; letter-spacing: -.025em; }
.nb-hero__title em { font-style: normal; color: var(--nb-blue); }
.nb-hero__sub { font-size: 20px; color: var(--ink-600); max-width: 560px; margin-bottom: 34px; }
.nb-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Composición disruptiva de pétalos */
.nb-petals { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; margin-left: auto; }
.nb-petal { position: absolute; border-radius: var(--nb-petal); }
.nb-petal--alt { border-radius: var(--nb-petal-alt); }
.nb-petal--blue { background: var(--nb-blue); }
.nb-petal--yellow { background: var(--nb-yellow); }
.nb-petal--black { background: var(--nb-black); }
.nb-petal--outline { border: 2.5px solid var(--nb-black); background: transparent; }
.nb-petal--outline-blue { border: 2.5px solid var(--nb-blue); background: transparent; }
.nb-petal--grey { background: var(--nb-grey-light); }

.nb-petals .p1 { width: 52%; height: 52%; left: 4%; top: 6%; display: grid; place-items: center; color: var(--surface-0);
  font-size: clamp(64px, 9vw, 120px); font-weight: 500; letter-spacing: -.04em; }
.nb-petals .p2 { width: 44%; height: 44%; right: 2%; top: 0; }
.nb-petals .p3 { width: 18%; height: 18%; left: 52%; top: 40%; z-index: 2; }
.nb-petals .p4 { width: 46%; height: 46%; right: 0; bottom: 4%; overflow: hidden; }
.nb-petals .p5 { width: 38%; height: 38%; left: 10%; bottom: 0; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.nb-petals .p6 { width: 12%; height: 12%; left: 0; top: 62%; }
.nb-petals .p7 { width: 9%; height: 9%; right: 44%; bottom: 6%; }

.nb-petals .p2 .nb-swatches { position: absolute; inset: 22% 18%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nb-swatch { border-radius: 10px 10px 10px 0; }
.nb-petals .p4 svg { width: 100%; height: 100%; display: block; }
.nb-petals .p5 small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nb-grey); }
.nb-petals .p5 strong { font-size: clamp(18px, 2vw, 26px); line-height: 1.1; font-weight: 600; }

@keyframes nb-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes nb-spin { to { transform: rotate(360deg) } }
.nb-petals .p3 { animation: nb-float 5s ease-in-out infinite; }
.nb-petals .p6 { animation: nb-float 6s ease-in-out infinite .8s; }
.nb-petals .p7 { animation: nb-float 4.5s ease-in-out infinite 1.4s; }
@media (prefers-reduced-motion: reduce) { .nb-branding * { animation: none !important; transition: none !important; } }

/* ---------- ¿Te pasa esto? ---------- */
.nb-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.nb-quote {
  background: var(--nb-white); border-radius: var(--nb-radius); padding: 34px 30px 30px;
  position: relative; font-size: 19px; font-weight: 500; line-height: 1.45;
}
.nb-quote::before {
  content: "“"; position: absolute; top: -18px; left: 26px; width: 44px; height: 44px;
  background: var(--nb-yellow); border-radius: var(--nb-petal); display: grid; place-items: center;
  font-size: 40px; line-height: 1; padding-top: 12px; color: var(--nb-black); font-weight: 700;
}
.nb-quote:nth-child(2)::before { background: var(--nb-blue); color: var(--surface-0); }
.nb-quote:nth-child(3)::before { background: var(--nb-black); color: var(--surface-0); }
.nb-center-cta { text-align: center; margin-top: 44px; }

/* ---------- El diseño es el diferencial ---------- */
.nb-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.nb-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nb-ad { border-radius: 16px; padding: 14px; background: var(--dark-800); aspect-ratio: 4 / 5; display: flex; flex-direction: column; gap: 10px; }
.nb-ad__img { flex: 1; border-radius: 10px; background: var(--dark-700); }
.nb-ad__line { height: 9px; border-radius: 9px; background: var(--dark-700); }
.nb-ad__line.short { width: 60%; }
.nb-ad--brand { background: var(--nb-white); transform: scale(1.08); box-shadow: 0 30px 60px color-mix(in srgb, var(--brand-500) 35%, transparent); position: relative; z-index: 2; }
.nb-ad--brand .nb-ad__img { background: var(--nb-blue); position: relative; overflow: hidden; }
.nb-ad--brand .nb-ad__img::before { content: ""; position: absolute; width: 62%; height: 62%; right: -10%; bottom: -10%; background: var(--nb-yellow); border-radius: var(--nb-petal); }
.nb-ad--brand .nb-ad__img::after { content: ""; position: absolute; width: 34%; height: 34%; left: 12%; top: 12%; border: 2.5px solid var(--surface-0); border-radius: var(--nb-petal-alt); }
.nb-ad--brand .nb-ad__line { background: var(--nb-black); }
.nb-ad--brand .nb-ad__line.short { background: var(--nb-blue); }
.nb-feed__label { display: flex; justify-content: space-between; font-size: 13px; color: var(--nb-grey); margin-top: 22px; letter-spacing: .06em; text-transform: uppercase; }
.nb-feed__label b { color: var(--nb-yellow); font-weight: 600; }

/* ---------- Tarjetas ---------- */
.nb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.nb-card {
  border: 1.5px solid var(--nb-line); border-radius: var(--nb-radius); padding: 34px 30px; background: var(--nb-white);
  transition: border-radius .35s ease, border-color .35s ease, transform .35s ease;
}
.nb-card:hover { border-radius: 40px 40px 40px 0; border-color: var(--nb-blue); transform: translateY(-4px); }
.nb-card h3 { font-size: 22px; font-weight: 600; margin-top: 22px; }
.nb-card p { color: var(--ink-600); margin: 0; }
.nb-icon {
  width: 58px; height: 58px; border-radius: var(--nb-petal); background: color-mix(in srgb, var(--brand-500) 10%, transparent);
  display: grid; place-items: center; color: var(--nb-blue);
}
.nb-icon svg { width: 28px; height: 28px; }
.nb-card:nth-child(3n+2) .nb-icon { background: var(--nb-yellow); color: var(--nb-black); }
.nb-card:nth-child(3n+3) .nb-icon { background: var(--nb-black); color: var(--nb-white); }

/* ---------- Respeto + IA ---------- */
.nb-respect { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.nb-respect__statement { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; font-weight: 400; }
.nb-ai {
  background: var(--nb-blue); color: var(--nb-white); border-radius: 40px 40px 40px 0; padding: 40px 36px;
  position: relative; overflow: hidden;
}
.nb-ai::after {
  content: ""; position: absolute; width: 110px; height: 110px; right: -40px; top: -40px;
  background: var(--nb-yellow); border-radius: var(--nb-petal-alt);
}
.nb-ai h3 { font-size: 26px; font-weight: 600; max-width: 80%; position: relative; z-index: 1; }
.nb-ai p { margin: 0; color: var(--brand-50); position: relative; z-index: 1; }
.nb-ai__formula { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; font-weight: 600; position: relative; z-index: 1; }
.nb-ai__formula span { background: color-mix(in srgb, var(--surface-0) 16%, transparent); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.nb-ai__formula i { font-style: normal; color: var(--nb-yellow); font-size: 20px; }

/* ---------- Proceso ---------- */
.nb-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 52px; counter-reset: nb-step; position: relative; }
.nb-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; border-top: 2px dashed var(--dark-600); }
.nb-step { position: relative; }
.nb-step__num {
  width: 60px; height: 60px; border-radius: var(--nb-petal); background: var(--nb-white); color: var(--nb-black);
  display: grid; place-items: center; font-weight: 700; font-size: 18px; position: relative; z-index: 1; margin-bottom: 22px;
}
.nb-step:nth-child(2) .nb-step__num { background: var(--nb-blue); color: var(--surface-0); }
.nb-step:nth-child(3) .nb-step__num { background: var(--nb-yellow); }
.nb-step:nth-child(4) .nb-step__num { background: var(--nb-blue); color: var(--surface-0); }
.nb-step:nth-child(5) .nb-step__num { background: var(--nb-yellow); }
.nb-step h3 { font-size: 20px; font-weight: 600; color: var(--surface-0); }
.nb-step p { color: var(--dark-muted); font-size: 15.5px; margin: 0; }

/* ---------- Qué incluye ---------- */
.nb-includes .nb-card h3 { font-size: 21px; }

/* ---------- FAQ ---------- */
.nb-faq { max-width: 860px; margin-top: 40px; }
.nb-faq details { border-bottom: 1.5px solid var(--nb-line); }
.nb-faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-size: 20px; font-weight: 600;
}
.nb-faq summary::-webkit-details-marker { display: none; }
.nb-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: var(--nb-petal); background: var(--nb-white);
  display: grid; place-items: center; font-size: 22px; font-weight: 400; transition: background .2s ease, transform .2s ease;
}
.nb-faq details[open] summary::after { content: "–"; background: var(--nb-yellow); }
.nb-faq details p { padding: 0 56px 26px 0; color: var(--ink-600); margin: 0; }
.nb-faq summary h3 { display: inline; font-size: inherit; font-weight: inherit; margin: 0; }

/* ---------- Relacionados ---------- */
.nb-related { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.nb-related__label { font-weight: 600; margin-right: 8px; }
.nb-related a {
  text-decoration: none; padding: 11px 22px; border: 1.5px solid var(--nb-line); border-radius: 999px; font-weight: 500;
  transition: border-color .2s ease, color .2s ease;
}
.nb-related a:hover { border-color: var(--nb-blue); color: var(--nb-blue); }

/* ---------- Cierre ---------- */
.nb-cta { text-align: center; overflow: hidden; }
.nb-cta h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 600; margin-bottom: 18px; }
.nb-cta p { font-size: 20px; color: var(--brand-50); max-width: 620px; margin: 0 auto 34px; }
.nb-cta .nb-container { position: relative; z-index: 1; }
.nb-cta__petal { position: absolute; }
.nb-cta__petal.a { width: 220px; height: 220px; left: -60px; top: -50px; background: var(--nb-yellow); border-radius: var(--nb-petal-alt); }
.nb-cta__petal.b { width: 160px; height: 160px; right: 6%; bottom: -60px; border: 2.5px solid var(--surface-0); border-radius: var(--nb-petal); }
.nb-cta__petal.c { width: 70px; height: 70px; right: 14%; top: 22%; background: var(--nb-black); border-radius: var(--nb-petal); animation: nb-float 6s ease-in-out infinite; }

/* ---------- Responsive ---------- */
.nb-cta__photo { display: block; width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface-0); position: relative; z-index: 1; }

@media (max-width: 1024px) {
  .nb-steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .nb-steps::before { display: none; }
}
@media (max-width: 900px) {
  .nb-section { padding: 72px 0; }
  .nb-hero__grid, .nb-diff, .nb-respect { grid-template-columns: 1fr; gap: 44px; }
  .nb-petals { max-width: 440px; margin: 0 auto; }
  .nb-quotes, .nb-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nb-branding { font-size: 16px; }
  .nb-quotes, .nb-cards, .nb-steps { grid-template-columns: 1fr; }
  .nb-quote { margin-top: 12px; }
  .nb-hero__ctas .nb-btn { width: 100%; justify-content: center; }
  .nb-faq summary { font-size: 18px; }
  .nb-cta__petal.a { width: 110px; height: 110px; left: -55px; top: -55px; }
  .nb-cta__petal.b { width: 100px; height: 100px; bottom: -50px; }
  .nb-cta__petal.c { display: none; }
}
