:root {
  --black: #090a0a;
  --off: #f5f5f2;
  --champagne: #d8c3ad;
  --gold: #e4b866;
  --line: rgba(255,255,255,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--off); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 108px;
  padding: 25px clamp(34px, 4.2vw, 78px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 3vw, 55px);
  background: linear-gradient(180deg, rgba(9,10,10,.94) 0%, rgba(9,10,10,.76) 72%, rgba(9,10,10,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; white-space: nowrap; }
.brand-mark { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -6px; }
.brand-divider { width: 1px; height: 48px; background: rgba(255,255,255,.6); }
.brand-copy { display: grid; gap: 5px; }
.brand-copy strong { font-size: 19px; letter-spacing: 1.2px; }
.brand-copy small { font-size: 10px; letter-spacing: 2.4px; }

.main-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 2.6vw, 45px); }
.main-nav a { position: relative; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; transition: color .22s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { color: var(--gold); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.active::after { transform: scaleX(1); }

.header-cta { padding: 18px 25px; background: #e8c684; color: #121212; text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .3px; border-radius: 3px; transition: transform .2s ease, background .2s ease; white-space: nowrap; }
.header-cta span { margin-left: 9px; font-size: 17px; }
.header-cta:hover { transform: translateY(-2px); background: #f0d59e; }

.hero {
  position: relative;
  min-height: 920px;
  height: 100vh;
  max-height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-image: url('assets/hero-marc-rivero.png');
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,6,7,.97) 0%, rgba(4,6,7,.91) 25%, rgba(4,6,7,.66) 43%, rgba(4,6,7,.10) 66%, rgba(4,6,7,.03) 100%),
    linear-gradient(0deg, rgba(4,6,7,.70) 0%, transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 52vw);
  margin-left: clamp(55px, 5.3vw, 100px);
  padding-top: 80px;
}

.eyebrow { margin: 0 0 27px; font-size: 13px; font-weight: 500; letter-spacing: 7px; }

.hero h1 { margin: 0; font-size: clamp(58px, 5.25vw, 96px); line-height: .91; letter-spacing: -2.8px; font-weight: 800; }
.hero h1 span { color: var(--champagne); }

.hero-description { max-width: 690px; margin: 26px 0 0; font-size: clamp(15px, 1.15vw, 21px); line-height: 1.55; letter-spacing: .15px; }

.pillars { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 790px; }
.pillar { min-width: 0; padding: 0 26px; border-left: 1px solid var(--line); }
.pillar:first-child { padding-left: 0; border-left: 0; }
.pillar svg { width: 36px; height: 36px; margin-bottom: 11px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pillar h2 { margin: 0 0 7px; font-size: 15px; letter-spacing: .4px; }
.pillar p { margin: 0; font-size: 12px; line-height: 1.45; color: rgba(245,245,242,.92); }


/* ===== V3 · ENTRENA A TU MANERA ===== */
.services-section {
  background: #161616;
  padding: 105px clamp(34px, 5.3vw, 100px) 120px;
}
.services-inner { width: 100%; max-width: 1720px; margin: 0 auto; }
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
}
.section-heading { display: flex; align-items: center; gap: 28px; margin-bottom: 48px; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1;
  letter-spacing: -1.6px;
}
.section-line { height: 1px; flex: 1; background: rgba(216,195,173,.35); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 28px);
}
.service-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: #141515;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(228,184,102,.72);
  box-shadow: 0 24px 55px rgba(0,0,0,.32);
}
.service-image { height: 245px; overflow: hidden; background: #111; }
.service-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.service-card:hover .service-image img { transform: scale(1.035); }

.service-body { position: relative; min-height: 235px; padding: 39px 28px 27px; }
.service-icon {
  position: absolute;
  top: -24px;
  left: 27px;
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6c783;
  color: #111;
  border: 5px solid #141515;
  font-size: 19px;
  font-weight: 900;
}
.service-body h3 {
  margin: 0 0 13px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: .5px;
}
.service-body p {
  margin: 0;
  min-height: 63px;
  color: rgba(245,245,242,.68);
  font-size: 13px;
  line-height: 1.6;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.service-link b { font-size: 15px; transition: transform .22s ease; }
.service-card:hover .service-link b { transform: translateX(5px); }

@media (max-width: 1180px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-image { height: 280px; }
}

@media (max-width: 760px) {
  .services-section { padding: 75px 22px 85px; }
  .section-heading { gap: 18px; margin-bottom: 34px; }
  .section-heading h2 { font-size: clamp(34px, 10vw, 46px); }
  .service-grid { grid-template-columns: 1fr; gap: 22px; }
  .service-image { height: 255px; }
  .service-body { min-height: 0; padding: 39px 24px 25px; }
  .service-body p { min-height: 0; }
}

.anchor { display: block; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto; }
  .main-nav { display: none; }
  .header-cta { justify-self: end; }
  .hero-content { width: 62vw; }
  .hero { background-position: 58% center; }
}

@media (max-width: 760px) {
  .site-header { min-height: 86px; padding: 20px 22px; }
  .brand-mark { font-size: 37px; }
  .brand-divider { height: 38px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 8px; }
  .header-cta { padding: 13px 14px; font-size: 10px; }
  .hero { min-height: 900px; height: auto; align-items: flex-end; background-position: 62% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(4,6,7,.98) 0%, rgba(4,6,7,.88) 52%, rgba(4,6,7,.18) 100%); }
  .hero-content { width: auto; margin: 0; padding: 330px 24px 46px; }
  .eyebrow { font-size: 10px; letter-spacing: 4px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(47px, 13vw, 68px); letter-spacing: -2px; }
  .hero-description { font-size: 15px; margin-top: 20px; }
  .pillars { grid-template-columns: 1fr 1fr; gap: 28px 0; margin-top: 35px; }
  .pillar, .pillar:first-child { padding: 0 15px; border-left: 1px solid var(--line); }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
}


/* ===== V4 · MR LIBRARY ===== */
.library-section {
  background: #090a0a;
  padding: 105px clamp(34px, 5.3vw, 100px) 125px;
  border-top: 1px solid rgba(255,255,255,.035);
}
.library-inner { width: 100%; max-width: 1720px; margin: 0 auto; }
.library-top {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}
.library-title-row { display: flex; align-items: center; gap: 28px; }
.library-title-row h2 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1;
  letter-spacing: -1.6px;
}
.library-title-row h2 span { color: var(--champagne); }
.library-line { height: 1px; flex: 1; background: rgba(216,195,173,.25); }
.library-motto {
  margin: 18px 0 0;
  font-size: 10px;
  letter-spacing: 6px;
  color: rgba(245,245,242,.72);
}
.library-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.library-intro p {
  margin: 0;
  max-width: 510px;
  color: rgba(245,245,242,.78);
  font-size: 14px;
  line-height: 1.65;
}
.library-all {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 21px;
  border: 1px solid rgba(228,184,102,.75);
  border-radius: 4px;
  text-decoration: none;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease;
}
.library-all:hover { background: var(--gold); color: #111; }

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2vw, 36px);
}
.routine-card {
  overflow: hidden;
  min-width: 0;
  background: #101111;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.routine-card:hover {
  transform: translateY(-7px);
  border-color: rgba(228,184,102,.72);
  box-shadow: 0 24px 55px rgba(0,0,0,.34);
}
.routine-image {
  position: relative;
  height: 310px;
  overflow: hidden;
  background: #111;
}
.routine-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 30%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.routine-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.routine-card:hover .routine-image img { transform: scale(1.035); }

.routine-code {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  display: grid;
  line-height: 1;
}
.routine-code strong { font-size: 30px; letter-spacing: -2px; }
.routine-code small { margin-top: 5px; color: var(--gold); font-size: 8px; letter-spacing: 2px; }
.routine-code b { margin-top: 12px; color: #e9c77e; font-size: 46px; letter-spacing: -2px; }
.demo-badge {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 20px;
  padding: 13px 16px;
  border-radius: 7px;
  background: #e8c684;
  color: #111;
  font-size: 10px;
  font-weight: 900;
}

.routine-body { padding: 24px 24px 25px; }
.routine-symbol {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}
.routine-body h3 {
  margin: 0 0 11px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.2px;
}
.routine-body p {
  margin: 0;
  min-height: 64px;
  color: rgba(245,245,242,.7);
  font-size: 13px;
  line-height: 1.55;
}
.routine-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 15px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(245,245,242,.78);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .35px;
}
.routine-meta span::first-letter { color: var(--gold); }
.routine-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  min-height: 52px;
  border: 1px solid rgba(228,184,102,.8);
  border-radius: 4px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: background .22s ease, color .22s ease;
}
.routine-card:hover .routine-button { background: var(--gold); color: #111; }

@media (max-width: 1180px) {
  .library-top { grid-template-columns: 1fr; gap: 28px; }
  .library-intro { grid-template-columns: 1fr auto; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .routine-image { height: 340px; }
}

@media (max-width: 760px) {
  .library-section { padding: 75px 22px 90px; }
  .library-title-row { gap: 18px; }
  .library-title-row h2 { white-space: normal; font-size: clamp(34px, 10vw, 46px); }
  .library-motto { letter-spacing: 4px; }
  .library-intro { grid-template-columns: 1fr; }
  .library-all { justify-content: center; width: 100%; }
  .library-grid { grid-template-columns: 1fr; gap: 22px; }
  .routine-image { height: 315px; }
  .routine-body p { min-height: 0; }
}


/* ===== V4.2 · FOOTER ===== */
.site-footer {
  background:
    radial-gradient(ellipse at 18% 8%, rgba(228,184,102,.14) 0%, rgba(216,195,173,.055) 28%, transparent 58%),
    radial-gradient(ellipse at 88% 78%, rgba(228,184,102,.07) 0%, transparent 42%),
    #0d0e0e;
  border-top: 1px solid rgba(228,184,102,.72);
  padding: 78px clamp(34px, 5.3vw, 100px) 42px;
}

.footer-inner { max-width: 1720px; margin: 0 auto; }

.footer-main {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(50px, 7vw, 130px);
  padding-bottom: 58px;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: center;
  gap: clamp(30px, 3vw, 58px);
}

.footer-brand-lockup { display: grid; gap: 10px; min-width: 275px; }
.footer-brand-mark {
  color: var(--champagne);
  font-size: 72px;
  line-height: .8;
  font-weight: 800;
  letter-spacing: -9px;
}
.footer-brand-copy { display: grid; gap: 8px; }
.footer-brand-copy strong { font-size: 23px; letter-spacing: 7px; }
.footer-brand-copy small { color: var(--gold); font-size: 11px; letter-spacing: 5px; }

.footer-divider {
  width: 1px;
  height: 138px;
  background: rgba(216,195,173,.7);
}

.footer-brand p {
  margin: 0;
  color: rgba(245,245,242,.78);
  font-size: 16px;
  line-height: 1.65;
}

.footer-social {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
}

.footer-social a {
  min-width: 125px;
  display: grid;
  justify-items: center;
  gap: 13px;
  color: var(--off);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  transition: color .22s ease, transform .22s ease;
}

.footer-social a:hover { color: var(--gold); transform: translateY(-3px); }

.footer-social-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--champagne);
}

.footer-social-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social-separator {
  width: 1px;
  height: 76px;
  background: rgba(216,195,173,.42);
}

.footer-bottom {
  min-height: 88px;
  border-top: 1px solid rgba(216,195,173,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  color: rgba(245,245,242,.78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

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

.footer-bottom-separator {
  width: 1px;
  height: 17px;
  background: rgba(228,184,102,.72);
}

@media (max-width: 1000px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-social { max-width: 620px; width: 100%; }
}

@media (max-width: 760px) {
  .site-footer { padding: 65px 22px 30px; }
  .footer-main { gap: 52px; padding-bottom: 46px; }
  .footer-brand { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand-lockup { min-width: 0; }
  .footer-brand-mark { font-size: 62px; }
  .footer-brand-copy strong { font-size: 20px; letter-spacing: 5px; }
  .footer-divider { width: 90px; height: 1px; }
  .footer-brand p { font-size: 14px; }
  .footer-social { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .footer-social-separator { display: none; }
  .footer-social a { min-width: 0; font-size: 9px; letter-spacing: 1px; }
  .footer-social-icon svg { width: 30px; height: 30px; }
  .footer-bottom { padding: 28px 0 10px; gap: 13px 16px; line-height: 1.7; text-align: center; }
}


/* ===== V4.4 · MOBILE MENU ===== */
.menu-toggle,
.mobile-menu { display: none; }

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
  }

  .header-cta { justify-self: end; }

  .menu-toggle {
    position: relative;
    z-index: 32;
    width: 48px;
    height: 48px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid rgba(228,184,102,.48);
    border-radius: 4px;
    background: rgba(9,10,10,.56);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-toggle span {
    width: 22px;
    height: 1.5px;
    display: block;
    background: var(--gold);
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
  }

  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .mobile-menu {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    width: min(430px, 100vw);
    height: 100dvh;
    padding: 132px 42px 44px;
    display: flex;
    flex-direction: column;
    background:
      radial-gradient(ellipse at 90% 8%, rgba(228,184,102,.10), transparent 35%),
      rgba(9,10,10,.985);
    border-left: 1px solid rgba(228,184,102,.25);
    box-shadow: -25px 0 60px rgba(0,0,0,.38);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .32s ease, visibility .32s ease;
  }

  .mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav { display: grid; }

  .mobile-nav a {
    position: relative;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
    color: var(--off);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.4px;
    transition: color .2s ease, padding-left .2s ease;
  }

  .mobile-nav a::after {
    content: "→";
    position: absolute;
    right: 0;
    color: rgba(228,184,102,.55);
    font-size: 18px;
    font-weight: 400;
  }

  .mobile-nav a:hover,
  .mobile-nav a:focus-visible,
  .mobile-nav a.active {
    color: var(--gold);
    padding-left: 7px;
  }

  .mobile-menu-cta {
    margin-top: auto;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border: 1px solid rgba(228,184,102,.78);
    border-radius: 4px;
    color: var(--gold);
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.2px;
  }

  .mobile-menu-cta span { font-size: 20px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-header > .header-cta { display: none; }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-menu {
    width: 100%;
    padding: 112px 24px 30px;
    border-left: 0;
  }

  .mobile-nav a {
    padding: 16px 0;
    font-size: 15px;
  }

  .mobile-menu-cta { margin-top: 30px; }
}
