/* =========================================================
   BYG AGENCY — HOME V5
   File: /assets/css/home.css
   Compatible with:
   index-BYG-Agency-V5-historias-con-logos.html

   Brand palette:
   --magenta #CA378C
   --blue    #36AAD9
   --yellow  #F2BC16
   --purple  #9841CF
   --coral   #FE546E
   ========================================================= */

/* =========================================================
   01. TOKENS
   ========================================================= */
:root {
  --magenta: #CA378C;
  --blue: #36AAD9;
  --yellow: #F2BC16;
  --purple: #9841CF;
  --coral: #FE546E;

  --dark-bg: #0b0f19;
  --dark-surface: #141b2d;
  --dark-surface-2: #111827;
  --dark-surface-3: #1b2235;

  --gray-light: #f4f5f7;
  --white: #ffffff;
  --offwhite: #e2e8f0;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-soft-dark: #475569;

  --line-dark: rgba(255,255,255,.08);
  --line-light: rgba(30,41,59,.10);

  --container: 1200px;
  --header-h: 84px;

  --fs-display: clamp(2.9rem, 4.8vw, 5.2rem);
  --fs-h2: clamp(1.95rem, 2.9vw, 3.1rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.5rem);
  --fs-body-lg: clamp(1rem, 1.05vw, 1.08rem);
  --fs-body: .95rem;

  --section-space: clamp(74px, 6vw, 96px);
  --section-space-sm: clamp(52px, 5vw, 72px);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 14px 34px rgba(0,0,0,.12);
  --shadow-md: 0 22px 56px rgba(0,0,0,.20);
  --shadow-lg: 0 32px 90px rgba(0,0,0,.30);

  --ease: cubic-bezier(.4,0,.2,1);
  --transition: 240ms var(--ease);
}

/* =========================================================
   02. BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--dark-bg);
  color: var(--white);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

ul,
ol,
p,
h1,
h2,
h3,
h4,
figure,
fieldset,
blockquote {
  margin: 0;
  padding: 0;
}

fieldset {
  border: 0;
  min-width: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(202,55,140,.30);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(54,170,217,.95);
  outline-offset: 3px;
}

/* =========================================================
   03. UTILITIES
   ========================================================= */
.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-weight: 800;
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow,
.hero-kicker,
.service-index,
.build-card-label,
.footer-title {
  font-size: .72rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
}

.eyebrow--dark {
  color: var(--blue);
}

.text-gradient {
  color: transparent;
  background: linear-gradient(105deg, var(--coral), var(--magenta) 42%, var(--purple) 72%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.section {
  padding: var(--section-space) 0;
}

.section--dark {
  background:
    radial-gradient(circle at 8% 8%, rgba(152,65,207,.07), transparent 26%),
    radial-gradient(circle at 92% 86%, rgba(54,170,217,.05), transparent 26%),
    var(--dark-bg);
}

.section--light {
  background: var(--gray-light);
  color: var(--text-main);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 62px);
}

.section-title {
  max-width: 820px;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 800;
  text-wrap: balance;
}

.section-title--dark {
  color: var(--text-main);
}

.section-copy {
  max-width: 470px;
  color: var(--offwhite);
  font-size: var(--fs-body-lg);
}

.section-copy--dark {
  color: var(--text-muted);
}

/* =========================================================
   04. BUTTONS
   ========================================================= */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  min-height: 54px;
  padding: 15px 24px;
}

.btn--gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  box-shadow: 0 12px 28px rgba(202,55,140,.24);
}

.btn--gradient:hover {
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  box-shadow: 0 16px 34px rgba(202,55,140,.34);
}

.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: transparent;
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.06);
}

.btn--muted {
  color: var(--text-main);
  border: 1px solid rgba(30,41,59,.10);
  background: #fff;
}

.btn--muted:hover {
  background: var(--gray-light);
}

/* =========================================================
   05. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(11,15,25,.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 144px;
  max-height: 50px;
  object-fit: contain;
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-list > li > a:not(.btn) {
  position: relative;
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  font-weight: 600;
}

.nav-list > li > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--yellow);
  transition: right var(--transition);
}

.nav-list > li > a:not(.btn):hover::after {
  right: 0;
}

.btn--nav {
  min-height: 44px;
  padding: 11px 17px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

/* =========================================================
   06. HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(82px, 8vw, 112px) 0 clamp(66px, 7vw, 90px);
  background:
    radial-gradient(circle at 12% 20%, rgba(202,55,140,.15), transparent 24%),
    radial-gradient(circle at 90% 16%, rgba(54,170,217,.09), transparent 24%),
    linear-gradient(180deg, var(--dark-bg), #0d1220);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr);
  gap: clamp(44px, 6vw, 78px);
  align-items: center;
}

.hero-content,
.hero-media {
  min-width: 0;
}

.hero-content {
  max-width: 760px;
}

.hero-kicker {
  margin-bottom: 20px;
  color: var(--yellow);
}

.hero h1 {
  max-width: 760px;
  font-size: var(--fs-display);
  line-height: .97;
  letter-spacing: -.048em;
  font-weight: 900;
  text-wrap: balance;
}

.hero h1 > span {
  display: block;
}

.hero-title-soft {
  margin-top: .10em;
  color: #fff;
  font-size: .56em;
  line-height: 1.12;
  letter-spacing: -.03em;
  font-style: italic;
  font-weight: 700;
}

.hero-copy {
  max-width: 650px;
  margin-top: 28px;
  color: var(--offwhite);
  font-size: var(--fs-body-lg);
  line-height: 1.74;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  margin-top: 24px;
  color: rgba(255,255,255,.58);
  font-size: .88rem;
}

.hero-proof strong {
  color: #fff;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: var(--radius-lg);
  background: var(--dark-surface);
  box-shadow: var(--shadow-lg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(11,15,25,.92), transparent 52%);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(11,15,25,.82);
  backdrop-filter: blur(12px);
}

.hero-caption-label {
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-caption strong {
  font-size: .95rem;
  line-height: 1.45;
}

/* =========================================================
   07. PILLARS
   ========================================================= */
.pillar-band {
  position: relative;
  z-index: 4;
  margin-top: -30px;
}

.pillar-panel {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(20,27,45,.97);
  box-shadow: var(--shadow-md);
}

.pillar {
  padding: 24px 22px;
}

.pillar + .pillar {
  border-left: 1px solid var(--line-dark);
}

.pillar .material-symbols-rounded {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 1.5rem;
}

.pillar:nth-child(2) .material-symbols-rounded { color: var(--magenta); }
.pillar:nth-child(3) .material-symbols-rounded { color: var(--yellow); }
.pillar:nth-child(4) .material-symbols-rounded { color: var(--coral); }

.pillar h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.pillar p {
  margin-top: 5px;
  color: rgba(226,232,240,.58);
  font-size: .84rem;
}

/* =========================================================
   08. BRANDS
   ========================================================= */
.brands-section {
  padding: var(--section-space-sm) 0;
  background: #0d1220;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.brands-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.brands-head h2 {
  color: #fff;
  font-size: clamp(1.55rem, 2.15vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.brands-head > p:last-child {
  max-width: 610px;
  margin: 14px auto 0;
  color: rgba(226,232,240,.56);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}

.brand-item {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.brand-item img {
  width: auto;
  max-width: 150px;
  max-height: 52px;
  object-fit: contain;
  opacity: .72;
  filter: grayscale(1) brightness(1.35);
  transition:
    transform var(--transition),
    filter var(--transition),
    opacity var(--transition);
}

.brand-item:hover img {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: scale(1.03);
}

/* =========================================================
   09. ABOUT
   ========================================================= */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.prose {
  max-width: 700px;
  margin-top: 26px;
}

.prose p {
  color: var(--text-muted);
  font-size: var(--fs-body-lg);
  line-height: 1.78;
}

.prose p + p {
  margin-top: 16px;
}

.manifesto-card {
  display: inline-grid;
  gap: 3px;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--magenta);
  background: rgba(202,55,140,.06);
}

.manifesto-card span {
  color: var(--text-muted);
}

.manifesto-card strong {
  color: var(--text-main);
}

.build-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 30px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(202,55,140,.10), rgba(54,170,217,.05)),
    var(--dark-surface);
  box-shadow: var(--shadow-sm);
}

.build-card-label {
  color: var(--blue);
}

.build-card h3 {
  margin-top: 12px;
  font-size: clamp(1.35rem, 1.9vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.build-card ul {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  list-style: none;
}

.build-card li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.76);
}

.build-card li .material-symbols-rounded {
  color: var(--blue);
  font-size: 1.2rem;
  margin-top: 2px;
}

/* =========================================================
   10. SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.service-card {
  min-width: 0;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent),
    var(--dark-surface);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.16);
  box-shadow: var(--shadow-sm);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.service-icon {
  color: var(--blue);
  font-size: 1.8rem;
}

.service-card:nth-child(2) .service-icon { color: var(--magenta); }
.service-card:nth-child(3) .service-icon { color: var(--yellow); }
.service-card:nth-child(4) .service-icon { color: var(--coral); }

.service-index {
  color: rgba(255,255,255,.42);
}

.service-card h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.service-card p {
  margin-top: 14px;
  color: rgba(226,232,240,.64);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
}

.text-link .material-symbols-rounded {
  font-size: 1rem;
}

/* =========================================================
   11. TRANSFORMATION
   ========================================================= */
.transformation {
  background:
    radial-gradient(circle at 14% 18%, rgba(202,55,140,.10), transparent 26%),
    radial-gradient(circle at 86% 82%, rgba(54,170,217,.08), transparent 26%),
    #0f1422;
}

.transformation > .container > h2 {
  max-width: 900px;
  font-size: clamp(1.9rem, 2.9vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -.036em;
}

.transformation > .container > h2 span {
  display: block;
}

.transformation-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-top: 38px;
}

.transformation-grid article {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

.transformation-grid .material-symbols-rounded {
  color: var(--blue);
  font-size: 1.5rem;
}

.transformation-grid article:nth-child(2) .material-symbols-rounded { color: var(--magenta); }
.transformation-grid article:nth-child(3) .material-symbols-rounded { color: var(--yellow); }
.transformation-grid article:nth-child(4) .material-symbols-rounded { color: var(--coral); }

.transformation-grid h3 {
  margin-top: 14px;
  font-size: 1rem;
}

.transformation-grid p {
  margin-top: 6px;
  color: rgba(226,232,240,.58);
  font-size: .88rem;
}

/* =========================================================
   12. PROCESS
   ========================================================= */
.process {
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.process li {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}

.process li > span {
  color: var(--magenta);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.process h3 {
  color: var(--text-main);
  font-size: 1.15rem;
}

.process p {
  margin-top: 5px;
  color: var(--text-muted);
}

/* =========================================================
   13. HISTORIAS — LOGOS / IMÁGENES
   ========================================================= */
.section-head--stories {
  align-items: start;
}

.stories-logo-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
}

.story-logo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent),
    var(--dark-surface);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.story-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.15);
  box-shadow: var(--shadow-sm);
}

.story-logo-card-media {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.045), transparent 58%),
    linear-gradient(145deg, rgba(152,65,207,.07), rgba(54,170,217,.035)),
    #101522;
}

.story-logo-card-media img {
  width: auto;
  max-width: 170px;
  max-height: 72px;
  object-fit: contain;
  opacity: .96;
  transition:
    transform var(--transition),
    filter var(--transition);
}

.story-logo-card:hover .story-logo-card-media img {
  transform: scale(1.035);
}

.story-logo-card-body {
  padding: 24px;
}

.story-logo-card-body h3 {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.35;
}

.story-logo-card-tag {
  margin-top: 7px;
  color: var(--yellow);
  font-size: .72rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.story-logo-card-body > p:last-child {
  margin-top: 14px;
  color: rgba(226,232,240,.60);
  font-size: .86rem;
  line-height: 1.68;
}

/* Logos con fondos oscuros o poco contraste */
.story-logo-card:nth-child(2) .story-logo-card-media img,
.story-logo-card:nth-child(4) .story-logo-card-media img,
.story-logo-card:nth-child(8) .story-logo-card-media img {
  filter: brightness(1.18);
}

/* =========================================================
   14. FAQ
   ========================================================= */
.faq-section {
  background: var(--gray-light);
  color: var(--text-main);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.faq-list {
  border-top: 1px solid var(--line-light);
}

.faq-item {
  border-bottom: 1px solid var(--line-light);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 0;
  list-style: none;
  cursor: pointer;
  color: var(--text-main);
  font-size: .94rem;
  line-height: 1.45;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  flex: 0 0 auto;
  transition: transform var(--transition);
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 22px;
}

.faq-answer p {
  max-width: 740px;
  color: var(--text-muted);
}

/* =========================================================
   15. CONTACT
   ========================================================= */
.contact-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(202,55,140,.12), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(54,170,217,.08), transparent 28%),
    var(--dark-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(460px,1.15fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.contact-copy h2 {
  max-width: 560px;
  font-size: clamp(2rem, 3.25vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 20px;
  color: var(--offwhite);
  font-size: var(--fs-body-lg);
}

.contact-details {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}

.contact-details a,
.contact-details > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.74);
}

.contact-details .material-symbols-rounded {
  color: var(--blue);
  font-size: 1.15rem;
}

/* =========================================================
   16. FORM
   ========================================================= */
.form-shell {
  min-width: 0;
  padding: clamp(26px,4vw,38px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent),
    rgba(20,27,45,.97);
  box-shadow: var(--shadow-lg);
}

.form-progress {
  height: 5px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.08);
}

.form-progress-bar {
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--magenta), var(--purple), var(--blue));
  transition: width 320ms var(--ease);
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 28px;
  color: rgba(255,255,255,.46);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form-step legend,
.form-step h3 {
  display: block;
  width: 100%;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(1.3rem,1.9vw,1.8rem);
  line-height: 1.14;
  letter-spacing: -.03em;
  font-weight: 800;
}

.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.option:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
}

.option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--magenta);
}

.option:has(input:checked) {
  border-color: var(--magenta);
  background: rgba(202,55,140,.09);
  box-shadow: 0 0 0 3px rgba(202,55,140,.07);
}

.field + .field {
  margin-top: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  color: #fff;
  background: rgba(255,255,255,.035);
}

.field input {
  min-height: 52px;
  padding: 0 15px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  padding: 14px 15px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,.32);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 4px rgba(54,170,217,.10);
}

.field [aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(254,84,110,.08);
}

.field-help,
.privacy-note {
  margin-top: 8px;
  color: rgba(255,255,255,.42);
  font-size: .75rem;
}

.form-error {
  margin-top: 8px;
  color: #ff8ea0;
  font-size: .78rem;
  font-weight: 700;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}

.form-actions--end {
  justify-content: flex-end;
}

/* =========================================================
   17. FOOTER
   ========================================================= */
.footer {
  padding: 58px 0 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: var(--dark-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px,1.4fr) repeat(3,minmax(150px,.6fr));
  gap: 36px;
}

.footer-brand img {
  width: 142px;
  max-height: 48px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 330px;
  margin-top: 14px;
  color: rgba(226,232,240,.52);
  font-size: .8rem;
}

.footer-grid > div:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-title {
  margin-bottom: 4px;
  color: var(--blue);
}

.footer a,
.footer span {
  color: rgba(226,232,240,.66);
  font-size: .84rem;
}

.footer a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-bottom span {
  color: rgba(226,232,240,.38);
  font-size: .74rem;
}

/* =========================================================
   18. TABLET
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --header-h: 78px;
  }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(300px,.82fr);
    gap: 38px;
  }

  .hero-card,
  .hero-card img {
    min-height: 500px;
  }

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

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

  .contact-layout {
    grid-template-columns: minmax(0,.8fr) minmax(420px,1.2fr);
  }
}

/* =========================================================
   19. MOBILE NAV / TABLET STACK
   ========================================================= */
@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 20px 20px;
    pointer-events: none;
  }

  .nav-list {
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 18px;
    background: rgba(11,15,25,.98);
    opacity: 0;
    transform: translateY(-8px);
    transition:
      max-height 360ms var(--ease),
      opacity 240ms var(--ease),
      transform 240ms var(--ease),
      border-color 240ms var(--ease);
  }

  .site-header.nav-open .main-nav {
    pointer-events: auto;
  }

  .site-header.nav-open .nav-list {
    max-height: 620px;
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(255,255,255,.08);
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .nav-list li:last-child {
    border-bottom: 0;
    padding: 12px;
  }

  .nav-list > li > a:not(.btn) {
    display: block;
    padding: 15px 16px;
  }

  .nav-list > li > a:not(.btn)::after {
    display: none;
  }

  .btn--nav {
    width: 100%;
  }

  .hero-grid,
  .section-head,
  .about-layout,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-card,
  .hero-card img {
    min-height: 470px;
  }

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

  .pillar + .pillar {
    border-left: 0;
  }

  .pillar:nth-child(even) {
    border-left: 1px solid var(--line-dark);
  }

  .pillar:nth-child(n+3) {
    border-top: 1px solid var(--line-dark);
  }

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

  .build-card,
  .faq-intro,
  .contact-copy {
    position: static;
  }

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

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

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

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

/* =========================================================
   20. MOBILE
   ========================================================= */
@media (max-width: 600px) {
  :root {
    --header-h: 74px;
    --section-space: 66px;
    --section-space-sm: 50px;
    --fs-h2: clamp(1.7rem, 7.3vw, 2.25rem);
  }

  .container {
    width: calc(100% - 40px);
  }

  .brand img {
    width: 124px;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero-kicker {
    margin-bottom: 24px;
    font-size: .64rem;
    line-height: 1.7;
    letter-spacing: .05em;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.18rem, 9.5vw, 2.95rem);
    line-height: 1.02;
    letter-spacing: -.03em;
  }

  .hero h1 > .text-gradient {
    margin-top: .18em;
  }

  .hero-title-soft {
    margin-top: .28em !important;
    font-size: .5em;
    line-height: 1.16;
  }

  .hero-copy {
    margin-top: 30px;
    font-size: .92rem;
    line-height: 1.82;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-card,
  .hero-card img {
    min-height: 410px;
  }

  .pillar-panel {
    grid-template-columns: 1fr;
  }

  .pillar:nth-child(even) {
    border-left: 0;
  }

  .pillar:nth-child(n+2) {
    border-top: 1px solid var(--line-dark);
  }

  .brands-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .brand-item {
    flex: 0 0 72%;
    min-width: 220px;
    scroll-snap-align: start;
  }

  .section-title {
    line-height: 1.08;
    letter-spacing: -.028em;
  }

  .build-card {
    padding: 24px;
  }

  .service-card {
    padding: 24px;
  }

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

  .process li {
    grid-template-columns: 46px minmax(0,1fr);
    gap: 15px;
  }

  .stories-logo-grid {
    grid-template-columns: 1fr;
  }

  .story-logo-card-media {
    min-height: 138px;
    padding: 24px 20px;
  }

  .story-logo-card-media img {
    max-width: 160px;
    max-height: 64px;
  }

  .story-logo-card-body {
    padding: 22px;
  }

  .contact-copy h2 {
    font-size: clamp(1.9rem, 8.6vw, 2.55rem);
    line-height: 1.06;
  }

  .form-shell {
    padding: 22px;
    border-radius: 22px;
  }

  .form-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   21. SMALL MOBILE
   ========================================================= */
@media (max-width: 390px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9.2vw, 2.55rem);
  }

  .hero-copy {
    margin-top: 28px;
    font-size: .89rem;
  }

  .hero-card,
  .hero-card img {
    min-height: 380px;
  }
}

/* =========================================================
   22. ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   23. BYG HOME V6 — HERO RESPONSIVE OPTIMIZATION
   Compatible con:
   index-BYG-Agency-V6-hero-optimizado.html

   Objetivo:
   - Mantener el móvil como referencia aprobada.
   - Evitar que "Transformación" se corte en desktop.
   - Controlar cada línea del H1 de forma independiente.
   ========================================================= */

/* Estructura nueva del H1 */
.hero-title {
  width: 100%;
  max-width: 100%;
}

.hero-title-main,
.hero-title-accent,
.hero-title-soft {
  display: block;
  max-width: 100%;
}

.hero-title-word {
  display: block;
}

.hero-title-accent {
  width: fit-content;
  max-width: 100%;
  margin-top: .12em;
  font-size: .78em;
  line-height: .98;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.hero-title-soft {
  width: fit-content;
  max-width: 100%;
  margin-top: .18em;
  font-size: .48em;
  line-height: 1.12;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  position: relative;
  padding-left: 11px;
  color: rgba(255,255,255,.62);
  font-size: .72rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}

/* =========================================================
   DESKTOP LARGE
   ========================================================= */
@media (min-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
    gap: clamp(54px, 5vw, 82px);
  }

  .hero-content {
    max-width: 690px;
  }

  .hero h1 {
    max-width: 690px;
    font-size: clamp(3.35rem, 4.35vw, 4.95rem);
    line-height: .98;
    letter-spacing: -.044em;
  }

  .hero-title-accent {
    font-size: .76em;
    letter-spacing: -.035em;
  }

  .hero-title-soft {
    font-size: .46em;
  }

  .hero-copy {
    max-width: 610px;
  }

  .hero-card,
  .hero-card img {
    min-height: 535px;
  }
}

/* =========================================================
   DESKTOP MEDIUM
   Evita ruptura entre 1025px y 1179px
   ========================================================= */
@media (min-width: 1025px) and (max-width: 1179px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
    gap: 42px;
  }

  .hero-content {
    max-width: 620px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(3rem, 4.2vw, 4.2rem);
    line-height: .99;
    letter-spacing: -.04em;
  }

  .hero-title-accent {
    font-size: .73em;
    letter-spacing: -.032em;
  }

  .hero-title-soft {
    font-size: .45em;
    line-height: 1.14;
  }

  .hero-copy {
    max-width: 580px;
    font-size: 1rem;
  }

  .hero-card,
  .hero-card img {
    min-height: 510px;
  }
}

/* =========================================================
   TABLET
   ========================================================= */
@media (min-width: 821px) and (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    gap: 34px;
  }

  .hero-content {
    max-width: 560px;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(2.75rem, 5vw, 3.7rem);
    line-height: 1;
    letter-spacing: -.038em;
  }

  .hero-title-accent {
    font-size: .72em;
    letter-spacing: -.03em;
  }

  .hero-title-soft {
    font-size: .45em;
  }
}

/* =========================================================
   MOBILE / APPROVED LOOK
   Mantiene la composición de referencia:
   HISTORIAS
   REALES.
   TRANSFORMACIÓN
   que merece
   SER CONTADA.
   ========================================================= */
@media (max-width: 820px) {
  .hero-title-main {
    display: block;
  }

  .hero-title-word {
    display: block;
  }

  .hero-title-accent {
    width: 100%;
    max-width: 100%;
    margin-top: .16em;
    font-size: .72em;
    line-height: .98;
    letter-spacing: -.025em;
    white-space: normal;
  }

  .hero-title-soft {
    width: 100%;
    max-width: 100%;
    margin-top: .22em !important;
    font-size: .48em;
    line-height: 1.12;
    letter-spacing: -.015em;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: clamp(2.18rem, 9.3vw, 2.92rem);
    line-height: 1.02;
    letter-spacing: -.028em;
  }

  .hero-title-accent {
    font-size: .69em;
    margin-top: .14em;
  }

  .hero-title-soft {
    margin-top: .22em !important;
    font-size: .47em;
    line-height: 1.12;
  }

  .hero-tags {
    gap: 9px 14px;
    margin-top: 24px;
  }

  .hero-tags li {
    font-size: .68rem;
    letter-spacing: .055em;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .hero-title-accent {
    font-size: .68em;
  }

  .hero-title-soft {
    font-size: .46em;
  }
}
