/* ═══════════════════════════════════════════════════
   BIGROOM — GLOBAL CSS
   Tipografía generosa, espaciado amplio, carácter propio
═══════════════════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  /* Marca */
  --dark:     #142b2e;
  --dark2:    #0d1f22;
  --forest:   #1e5b45;
  --green:    #2d7a5a;
  --mint:     #3ecf8e;
  --cream:    #f7f4ef;
  --white:    #ffffff;

  /* Píxeles del logo */
  --px-orange: #f5a623;
  --px-green:  #3ecf8e;
  --px-blue:   #4f9cf7;
  --px-purple: #9b79f0;
  --px-coral:  #f26b54;
  --px-teal:   #3ecfcf;
  --px-lime:   #a8d96c;

  /* Texto */
  --text:      #1a2c2e;
  --text-2:    #3d5a5e;
  --text-3:    #7a9ea3;
  --border:    #d8e6e3;
  --border-2:  #eaf0ee;

  /* Espaciado generoso */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;
  --space-2xl: 140px;

  /* Radios */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 40px;

  /* Sombras */
  --sh-sm: 0 2px 8px rgba(20,43,46,.07);
  --sh-md: 0 6px 24px rgba(20,43,46,.10);
  --sh-lg: 0 16px 56px rgba(20,43,46,.14);

  /* Fuentes */
  --f-display: 'Clash Display', 'Syne', sans-serif;
  --f-body:    'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;        /* ← línea generosa, no aplastada */
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ─── CONTAINER ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow { max-width: 820px; }
.container--wide   { max-width: 1340px; }

/* ─── TIPOGRAFÍA — ESPACIOSA ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  line-height: 1.18;        /* titulares abiertos */
  letter-spacing: -.01em;
  color: var(--dark);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem,   4vw,   3.2rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { line-height: 1.8; color: var(--text-2); font-size: 1.05rem; }

/* Acento de color en títulos */
.accent         { color: var(--green); }
.accent--mint   { color: var(--mint); }
.accent--orange { color: var(--px-orange); }

/* ─── ETIQUETA DE SECCIÓN ─── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: #e3f5ec;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
}

/* ─── SECCIÓN BASE ─── */
.section {
  padding: var(--space-2xl) 0;
}
.section--cream  { background: var(--cream); }
.section--dark   { background: var(--dark2); color: var(--white); }
.section--forest { background: var(--forest); color: var(--white); }

/* ─── BOTONES ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 14px 28px;
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  transition: all .22s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--dark);
  color: var(--white);
}
.btn--primary:hover { background: var(--dark2); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--green {
  background: var(--green);
  color: var(--white);
}
.btn--green:hover { background: var(--forest); transform: translateY(-2px); box-shadow: var(--sh-md); }

.btn--outline {
  border-color: var(--dark);
  color: var(--dark);
}
.btn--outline:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }

.btn--outline-white {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.btn--outline-white:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

.btn--ghost {
  color: var(--text-2);
  font-weight: 500;
}
.btn--ghost:hover { color: var(--dark); background: var(--cream); border-radius: var(--r-md); }

.btn--lg { padding: 17px 36px; font-size: 1.05rem; border-radius: var(--r-xl); }
.btn--sm { padding: 9px 20px; font-size: .85rem; border-radius: var(--r-md); }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: 72px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled {
  border-color: var(--border-2);
  box-shadow: var(--sh-sm);
}
.nav-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color .18s, background .18s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); background: var(--cream); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--mint);
  border-radius: 50%;
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 16px; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  margin-left: auto;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: all .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--white);
  z-index: 899;
  flex-direction: column;
  padding: 24px 28px;
  gap: 4px;
  border-top: 1px solid var(--border-2);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-2);
}
.nav-mobile .btn { margin-top: 16px; justify-content: center; }

/* ─── FOOTER ─── */
.footer { background: var(--dark2); color: rgba(255,255,255,.65); padding: var(--space-xl) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img {
  height: 40px;
  display: block;
  margin-bottom: 22px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 40px rgba(62, 207, 142, 0.10);
  filter: none;
}
.footer-brand p    { font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.45); max-width: 280px; }
.footer-social     { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a   {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.15); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h5 {
  font-family: var(--f-display);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 18px;
}
.footer-col a { display: block; font-size: .88rem; color: rgba(255,255,255,.45); padding: 6px 0; transition: color .18s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.28);
}

/* ─── TARJETA GENÉRICA ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: var(--sh-md); transform: translateY(-5px); border-color: var(--border); }
.card--featured { border-color: var(--green); }
.card-body { padding: 32px 28px; }

/* ─── BADGE / PILL ─── */
.badge {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}
.badge--green  { background: #ddf5ea; color: var(--forest); }
.badge--dark   { background: var(--dark); color: var(--white); }
.badge--orange { background: #fef0d5; color: #8a5a0a; }
.badge--blue   { background: #dceeff; color: #1a4a8a; }
.badge--purple { background: #ede8ff; color: #4a2e9a; }
.badge--gray   { background: var(--border-2); color: var(--text-2); }

/* ─── ANIMACIONES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  40%      { transform: translateY(-10px) rotate(4deg); }
  70%      { transform: translateY(5px) rotate(-2deg); }
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .5; }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

.anim-fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.anim-fade-up.in { opacity: 1; transform: translateY(0); }

/* Stagger delays */
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }
.delay-5 { transition-delay: .5s !important; }

/* ─── BARRA DE PROGRESO ─── */
#scroll-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mint), var(--green));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform .1s linear;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  :root { --space-2xl: 90px; --space-xl: 64px; }
}
