/* =============================================
   SUBURBIA — EL VERDADERO ESTILO QUE DEBE LLEVAR PAPÁ
   Custom styles over Bootstrap 5.2
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* ─── CSS Custom Properties ─────────────────── */
:root {
  --sb-cream: #f2ede4;
  --sb-warm: #faf8f4;
  --sb-dark: #111111;
  --sb-charcoal: #1e1e1e;
  --sb-mid: #555555;
  --sb-rule: #c8b99a;
  --sb-accent: #8b7355;
  --sb-gold: #c9a84c;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-elegant: 'Cormorant Garamond', Georgia, serif;

  --row-h: 880px;
  --landscape-h: 540px;
}

/* ─── Base ───────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--sb-cream);
  color: var(--sb-charcoal);
  -webkit-font-smoothing: antialiased;
}

/* Links — heredan color del contexto y van en bold */
a {
  color: inherit;
  font-weight: 700;
}

a:hover {
  color: inherit;
}

/* Page card */
.sb-page {
  background: var(--sb-warm);
  box-shadow: 0 0 80px rgba(0, 0, 0, .14);
}

/* ══════════════════════════════════════════════
   TOPBAR — Barra roja superior
   BS handles: d-flex align-items-center justify-content-center
══════════════════════════════════════════════ */
.sb-topbar {
  background-color: #D0082C;
  padding: 14px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.sb-topbar__logo {
  height: 42px;
  width: auto;
}

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.sb-header {
  background-color: var(--sb-dark);
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .40) 100%),
    url('../img/portada-back.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.sb-header__eyebrow {
  font-family: var(--font-body);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
}

.sb-header__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.sb-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.04;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.sb-header__title em {
  font-style: italic;
  font-weight: 400;
}

.sb-header__intro {
  font-family: var(--font-elegant);
  font-size: 1.8rem;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
  padding-bottom: 20px;
}

.sb-header__rule {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, .2);
  margin: 1.5rem;
}

/* ══════════════════════════════════════════════
   SECTION ROWS
   BS handles: overflow-hidden on .sb-section
               overflow-hidden position-relative on .sb-section__img
               d-flex flex-column justify-content-center position-relative on .sb-section__text
               d-block w-100 h-100 on img
               position-absolute on .sb-section__num
══════════════════════════════════════════════ */
.sb-section {
  border-bottom: 1px solid rgba(200, 185, 154, .3);
}

/* Image cell */
.sb-section__img {
  min-height: var(--row-h);
}

.sb-section__img img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  object-position: center center;
  transition: transform 1s cubic-bezier(.25, .46, .45, .94);
}

.sb-section:hover .sb-section__img img {
  transform: scale(1.03);
}

/* Filtro blend para imágenes con fondo visible */
.sb-section__img:has(.img-filtro) {
  background-color: var(--sb-warm);
}

.img-filtro {
  mix-blend-mode: multiply;
}

/* Text cell */
.sb-section__text {
  min-height: var(--row-h);
  padding: 80px 72px;
}

.sb-section__text.bg-cream {
  background: var(--sb-cream);
}

.sb-section__text.bg-warm {
  background: var(--sb-warm);
}

.sb-section__text.bg-dark {
  background: var(--sb-dark);
}

/* Fondo completo sección 2 */
#seccion-2 {
  background-color: #f2ede4;
}

/* Ghost number — BS handles: position-absolute */
.sb-section__num {
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(200, 185, 154, .15);
  top: 16px;
  right: 24px;
  user-select: none;
  pointer-events: none;
}

/* ══════════════════════════════════════════════
   SHARED TEXT ELEMENTS
══════════════════════════════════════════════ */
.sb-tag {
  font-family: var(--font-body);
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sb-accent);
  display: block;
  margin-bottom: .6rem;
}

.sb-rule {
  width: 36px;
  height: 2px;
  background: var(--sb-accent);
  border-radius: 1px;
  margin-bottom: 1.1rem;
}

.sb-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--sb-charcoal);
  margin-bottom: 1.4rem;
}

.sb-title em {
  font-style: italic;
  font-weight: 400;
}

.sb-body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--sb-mid);
}

/* Dark-background overrides */
.sb-section__text.bg-dark .sb-tag {
  color: var(--sb-gold);
}

.sb-section__text.bg-dark .sb-rule {
  background: var(--sb-gold);
}

.sb-section__text.bg-dark .sb-title {
  color: #fff;
}

.sb-section__text.bg-dark .sb-body {
  color: rgba(255, 255, 255, .55);
}

/* ══════════════════════════════════════════════
   LANDSCAPE SECTION — Sección 4
   BS handles: overflow-hidden on .sb-landscape
══════════════════════════════════════════════ */
.sb-landscape {
  border-bottom: 1px solid rgba(200, 185, 154, .3);
}

.sb-landscape__text {
  background: var(--sb-warm);
  padding: 60px 80px;
}

/* Fondo imagen + color Look 4 */
.fondo-img {
  background-image:
    linear-gradient(rgba(254, 244, 226, .72), rgba(254, 244, 226, .72)),
    url('../img/Papá_Todo-Terreno_6-1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ══════════════════════════════════════════════
   CLOSING HERO — Sección 6
   BS handles: position-relative overflow-hidden on section
               d-block w-100 h-100 on img
               mx-auto on rule y body
               d-block on eyebrow
══════════════════════════════════════════════ */
.sb-closing-hero {
  min-height: 640px;
}

/* Imagen de fondo — desborda para el parallax */
.sb-closing-hero__bg {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: 0;
  right: 0;
  z-index: 0;
}

.sb-closing-hero__bg img {
  object-fit: cover;
  object-position: center center;
}

/* Overlay oscuro */
.sb-closing-hero__overlay {
  position: relative;
  z-index: 1;
  min-height: 640px;
  background: linear-gradient(135deg,
      rgba(17, 17, 17, .72) 0%,
      rgba(17, 17, 17, .55) 60%,
      rgba(17, 17, 17, .40) 100%);
}

.sb-closing-hero__content {
  max-width: 620px;
  padding: 40px 0;
}

/* BS handles: d-block */
.sb-closing-hero__eyebrow {
  font-family: var(--font-body);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--sb-gold);
  margin-bottom: 1.4rem;
}

.sb-closing-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.04;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 1.6rem;
}

.sb-closing-hero__title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, .85);
}

/* BS handles: mx-auto */
.sb-closing-hero__rule {
  width: 48px;
  height: 2px;
  background: var(--sb-gold);
  margin-bottom: 1.6rem;
}

/* BS handles: mx-auto */
.sb-closing-hero__body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, .65);
  max-width: 500px;
}

/* ══════════════════════════════════════════════
   FOOTER
   BS handles: d-inline-block text-decoration-none on btn
══════════════════════════════════════════════ */
.sb-footer {
  background: var(--sb-dark);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.sb-footer__btn {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  padding: 14px 40px;
  border-radius: 2px;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.sb-footer__btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .85);
  color: #fff;
}

/* ══════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════ */
.sb-divider {
  height: 1px;
  background: rgba(200, 185, 154, .3);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile
══════════════════════════════════════════════ */
@media (max-width: 991.98px) {

  /* Imagen al 100% natural en mobile */
  .sb-section__img {
    min-height: unset;
  }

  .sb-section__img img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
    inset: unset;
  }

  /* Texto con padding reducido en mobile */
  .sb-section__text {
    min-height: auto;
    padding: 48px 32px;
  }

  /* Ghost number más pequeño en mobile */
  .sb-section__num {
    font-size: 5rem;
  }

  /* Padding reducido en sección landscape */
  .sb-landscape__text {
    padding: 40px 24px;
  }

  /* Closing hero más compacto en mobile */
  .sb-closing-hero,
  .sb-closing-hero__overlay {
    min-height: 480px;
  }

  .sb-closing-hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}