/* Portada B2 (15-nov): las marcas encabezan el titular; la cifra en € es prueba, no titular.
   Todo va dentro de .b2 para no chocar con estilo.css. */
@font-face { font-family: "Barlow Condensed"; src: url("../fuentes/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fuentes/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

.b2 {
  --navy: #0b1b3a; --navy-mid: #12295a; --navy-deep: #07122a;
  --gold: #f5b50f; --gold-soft: #ffd56b; --white: #ffffff; --ink: #1b2536;
  --mist: #f3f5f8; --steel: #556378; --border: #d8dfeb;
  --max: 1200px; --gap: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  color: var(--ink); overflow-x: clip;
}
.b2 img { max-width: 100%; height: auto; display: block; }
.b2 h1, .b2 h2, .b2 h3 { margin: 0; line-height: 1.05; }
.b2 p { margin: 0 0 1em; }
.b2 .wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.b2 .h2 { font-family: var(--cond); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); letter-spacing: -.005em; color: var(--navy); text-wrap: balance; margin-top: 14px; }
.b2 .lead { color: var(--steel); max-width: 58ch; font-size: 1.02rem; margin-top: 14px; }
.b2 .section { padding: var(--gap) 0; }
.b2 .section-head { margin-bottom: clamp(32px, 4vw, 52px); }

/* Buttons */
.b2 .btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; padding: 14px 24px; border-radius: 3px; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease); }
.b2 .btn:active { transform: scale(.97); }
.b2 .btn-gold { background: var(--gold); color: var(--navy); }
.b2 .btn-ghost { border: 2px solid rgba(255,255,255,.4); color: var(--white); }
.b2 .btn-navy { background: var(--navy); color: var(--white); }
.b2 .btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .b2 .btn-gold:hover { background: var(--gold-soft); }
  .b2 .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
  .b2 .btn-navy:hover { background: var(--navy-mid); }
}

/* HERO: wide warehouse photo that pans slowly */
.b2 .hero { position: relative; background: var(--navy-deep); color: var(--white); isolation: isolate; }
.b2 .hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* 15-nov (owner): the whole photo slides through the visible right side (the left is under the dark scrim),
   and fast enough to read as movement. Photo is 90vw wide; it pans from
   "left edge at 55vw" (clear part of the scrim) to "right edge at the hero's right edge". Same for every visitor (owner's request). */
.b2 .hero-photo img { position: absolute; top: 0; right: 0; height: 100%; width: auto; min-width: 90vw; max-width: none; object-fit: cover; will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%); mask-image: linear-gradient(90deg, transparent 0, #000 10%); /* taste-skill-ignore: soft left edge of the moving photo */
  animation: b2-pan 16s ease-in-out infinite alternate; }
@keyframes b2-pan { 0% { transform: translate3d(calc(100% - 45vw), 0, 0); } 100% { transform: translate3d(0, 0, 0); } }
.b2 .hero-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient( /* taste-skill-ignore: scrim over photo */90deg, rgba(7,18,42,.97) 0%, rgba(7,18,42,.9) 38%, rgba(7,18,42,.35) 66%, rgba(7,18,42,.15) 100%); }
.b2 .hero .wrap { min-height: min(80vh, 720px); display: grid; align-content: center; padding-top: 72px; padding-bottom: 150px; }
.b2 .hero-copy { max-width: 820px; }
.b2 .hero h1 { font-family: var(--cond); font-weight: 800; font-size: clamp(2.3rem, 1.4rem + 4.2vw, 5.2rem); line-height: .93; letter-spacing: -.01em; margin-top: 22px; text-wrap: balance; color: var(--white); }
.b2 .hero h1 em { font-style: normal; color: var(--gold); }
.b2 .hero h1 .h1-mas { display: block; margin-top: .3em; font-size: max(.42em, 1.15rem); line-height: 1.1; letter-spacing: .01em; color: rgba(255,255,255,.88); }
.b2 .hero-lead { color: rgba(255,255,255,.84); font-size: 1.08rem; max-width: 54ch; margin: 24px 0 34px; }
.b2 .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.b2 .stats { position: relative; z-index: 2; margin-top: -96px; }
.b2 .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--gold); border-radius: 4px; overflow: hidden; padding-top: 4px; margin: 0; }
.b2 .stat { padding: 26px 28px; background: var(--white); margin: 0; }
.b2 .stat-num { font-family: var(--cond); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.b2 .stat-label { margin: 8px 0 0; font-size: .84rem; color: var(--steel); line-height: 1.4; }

/* WAYS TO BUY */
.b2 .ways-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 16px; }
.b2 .way { position: relative; padding: 28px 24px 26px; border-radius: 4px; background: var(--mist); display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.b2 .way h3 { font-family: var(--cond); font-weight: 700; font-size: 1.55rem; color: var(--navy); }
.b2 .way p { margin: 0; color: var(--steel); font-size: .92rem; }
.b2 .way--main { background: var(--navy); }
.b2 .way--main h3 { color: var(--white); }
.b2 .way--main p { color: rgba(255,255,255,.75); }
.b2 .way--small { background: var(--white); outline: 2px dashed var(--border); outline-offset: -2px; }
.b2 .way-tag { display: inline-block; align-self: flex-start; background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; }

/* LINES */
.b2 .lines { background: var(--mist); }
.b2 .lines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b2 .line-card { background: var(--white); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .3s var(--ease); }
.b2 .line-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--white); }
.b2 .line-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.b2 .line-body { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.b2 .line-body h3 { font-family: var(--cond); font-weight: 800; font-size: 1.9rem; color: var(--navy); }
.b2 .line-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--steel); }
.b2 .line-facts b { color: var(--navy); font-weight: 700; }
.b2 .line-desc { font-size: .92rem; margin: 4px 0 0; flex: 1; }
.b2 .line-brands { margin-top: 14px; padding: 10px 12px; background: var(--mist); border-radius: 3px; font-size: .84rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.b2 .line-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: .88rem; color: var(--navy); }
.b2 .line-more::after { content: "\2192"; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .b2 .line-card:hover { transform: translateY(-4px); }
  .b2 .line-card:hover .line-img img { transform: scale(1.04); }
  .b2 .line-card:hover .line-more::after { transform: translateX(4px); }
}

/* BRANDS */
.b2 .brands-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.b2 .brand-big { background: var(--white); outline: 2px solid var(--mist); outline-offset: -2px; border-radius: 4px; padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; min-height: 190px; }
.b2 .brand-big .logo { height: 46px; display: flex; align-items: center; }
.b2 .brand-big .logo img { max-height: 52px; max-width: 220px; width: auto; height: auto; }
.b2 .brand-big-val { font-family: var(--cond); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--navy); }
.b2 .brand-big-sub { font-size: .84rem; color: var(--steel); margin-top: 6px; }
.b2 .brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.b2 .brand-tile { background: var(--white); outline: 2px solid var(--mist); outline-offset: -2px; border-radius: 4px; min-height: 110px; padding: 18px; display: grid; place-items: center; }
.b2 .brand-tile img { max-height: 40px; max-width: 132px; width: auto; height: auto; object-fit: contain; transition: transform .3s var(--ease); }
.b2 .brand-tile .wordmark { font-family: var(--cond); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); text-align: center; }
@media (hover: hover) and (pointer: fine) { .b2 .brand-tile:hover img { transform: scale(1.06); } }
.b2 .brands-note { margin-top: 18px; font-size: .86rem; color: var(--steel); }
.b2 .brands-note a { font-weight: 700; color: var(--navy); }

/* INSPECT BAND */
.b2 .inspect { position: relative; color: var(--white); isolation: isolate; background: var(--navy); }
.b2 .inspect-photo { position: absolute; inset: 0; z-index: -1; }
.b2 .inspect-photo img { width: 100%; height: 100%; object-fit: cover; }
.b2 .inspect-photo::after { /* taste-skill-ignore: scrim over photo */ content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,18,42,.94), rgba(7,18,42,.72)); }
.b2 .inspect .h2 { color: var(--white); max-width: 18ch; }
.b2 .inspect .lead { color: rgba(255,255,255,.78); }
.b2 .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; counter-reset: s; }
.b2 .step { padding: 26px 24px 0 0; counter-increment: s; }
.b2 .step::before { content: "0" counter(s); display: block; font-family: var(--cond); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.b2 .step strong { display: block; font-size: 1.02rem; margin-bottom: 6px; }
.b2 .step p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.72); }
.b2 .shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 52px; }
.b2 .shot { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: var(--navy-mid); }
.b2 .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .b2 .shot:hover img { transform: scale(1.05); } }
.b2 .shots-note { margin: 14px 0 0; font-size: .86rem; color: rgba(255,255,255,.66); }
.b2-lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.b2-lightbox::backdrop { background: rgba(7,18,42,.88); }
.b2-lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 3px; display: block; }
.b2-lightbox button { position: fixed; top: 16px; right: 16px; background: #f5b50f; color: #0b1b3a; border: 0; font-weight: 800; padding: 10px 16px; border-radius: 3px; cursor: pointer; }

/* CONTACT */
.b2 .contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.b2 .person { display: flex; gap: 24px; align-items: center; background: var(--mist); border-radius: 4px; padding: 24px; border-left: 4px solid var(--gold); }
.b2 .person img { width: 104px; height: 140px; object-fit: cover; object-position: 50% 20%; border-radius: 3px; flex: none; }
.b2 .person-name { font-family: var(--cond); font-weight: 800; font-size: 1.7rem; color: var(--navy); line-height: 1; }
.b2 .person-role { font-size: .88rem; color: var(--steel); margin: 6px 0 14px; }
.b2 .person-links { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .95rem; }
.b2 .person-links a { text-decoration: none; color: var(--navy); }
.b2 .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.b2 .company { margin-top: 26px; font-size: .86rem; color: var(--steel); line-height: 1.7; }
.b2 .company a { color: var(--navy); }

/* Signature motion: rise on scroll, only where supported and motion allowed */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .b2 .rise { animation: b2-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .b2 .rise:nth-child(2) { animation-range: entry 6% entry 51%; }
    .b2 .rise:nth-child(3) { animation-range: entry 12% entry 57%; }
    @keyframes b2-rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .b2 .btn, .b2 .line-card, .b2 .line-img img, .b2 .brand-tile img, .b2 .line-more::after, .b2 .shot img { transition: none; }
}

/* 15-nov (owner): ways to buy come after the lines, smaller */
.b2 .section--ways { padding-top: calc(var(--gap) * .6); }
.b2 .section--ways .h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.b2 .section--ways .way { padding: 18px 18px 16px; gap: 6px; }
.b2 .section--ways .way h3 { font-size: 1.2rem; }
.b2 .section--ways .way p { font-size: .86rem; }

/* PRICES: compact summary of the three lines (15-nov, owner's request: brief, not a catalogue) */
.b2 .prices { background: var(--mist); padding: clamp(40px, 5vw, 64px) 0; }
.b2 .prices-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 22px; }
.b2 .prices-head .h2 { margin-top: 0; }
.b2 .prices-foot { margin: 0; font-size: .88rem; color: var(--steel); }
.b2 .prices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.b2 .price-line { background: var(--white); border-radius: 4px; padding: 22px 22px 20px; border-top: 4px solid var(--gold); display: flex; flex-direction: column; min-width: 0; }
.b2 .price-line h3 { font-family: var(--cond); font-weight: 800; font-size: 1.5rem; line-height: 1.05; }
.b2 .price-line h3 a { color: var(--navy); text-decoration: none; }
.b2 .price-total { margin: 8px 0 0; font-family: var(--cond); font-size: 2.3rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.b2 .price-meta { margin: 6px 0 14px; color: var(--steel); font-size: .9rem; }
.b2 .pdet { margin-top: auto; }
.b2 .pdet summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 2px solid var(--gold); }
.b2 .pdet summary::-webkit-details-marker { display: none; }
.b2 .pdet summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.b2 .pdet[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.b2 .plist { list-style: none; margin: 14px 0 12px; padding: 0; font-size: .88rem; }
.b2 .plist li { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 6px 8px; border-radius: 2px; }
.b2 .plist li:nth-child(odd) { background: var(--mist); }
.b2 .plist a { color: var(--ink); text-decoration: none; min-width: 0; }
.b2 .plist span { font-weight: 700; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.b2 .price-more { display: inline-block; font-weight: 800; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }
@media (hover: hover) and (pointer: fine) {
  .b2 .plist a:hover, .b2 .price-line h3 a:hover { color: var(--navy-mid); text-decoration: underline; }
  .b2 .pdet summary:hover { color: var(--navy-mid); }
}
@media (prefers-reduced-motion: reduce) { .b2 .pdet summary::after { transition: none; } }
@media (max-width: 1020px) { .b2 .prices-grid { grid-template-columns: 1fr; } }

/* RESPONSIVE */
@media (max-width: 1020px) {
  .b2 .ways-grid { grid-template-columns: 1fr 1fr; }
  .b2 .lines-grid { grid-template-columns: 1fr; max-width: 640px; }
  .b2 .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .b2 .steps { grid-template-columns: 1fr 1fr; }
  .b2 .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .b2 .hero-photo::after { /* taste-skill-ignore: scrim over photo */ background: linear-gradient(180deg, rgba(7,18,42,.82) 0%, rgba(7,18,42,.94) 60%); }
  .b2 .hero .wrap { min-height: 0; padding-top: 48px; padding-bottom: 120px; }
  .b2 .hero-photo img { -webkit-mask-image: none; mask-image: none; animation-duration: 18s; animation-name: b2-pan-movil; }
  @keyframes b2-pan-movil { 0% { transform: translate3d(calc(100% - 100vw), 0, 0); } 100% { transform: translate3d(0, 0, 0); } }
  .b2 .stats { margin-top: -84px; }
  .b2 .stats-grid { grid-template-columns: 1fr 1fr; }
  .b2 .stat { padding: 20px 18px; }
  .b2 .ways-grid, .b2 .brands-feature, .b2 .steps { grid-template-columns: 1fr; }
  .b2 .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .b2 .person { flex-direction: column; align-items: flex-start; }
  .b2 .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-right: -16px; padding-right: 16px; }
  .b2 .shot { flex: 0 0 62%; scroll-snap-align: start; }
}
