/* Rentia — Web institucional
   Sistema visual basado en el manual de marca v1.0 */

:root {
  --orange:       #E07020;
  --orange-dark:  #C06010;
  --orange-tint:  #F5C090;
  --black:        #1A1A1A;
  --black-deep:   #0F0F0F;
  --charcoal:     #2C2C2C;
  --dark-gray:    #3D3D3D;
  --mid-gray:     #7A7A7A;
  --light-gray:   #C0C0C0;
  --hairline:     #2A2A2A;
  --off-white:    #F2F1EF;
  --paper:        #E8E7E5;
  --white:        #FFFFFF;
  --success:      #22C55E;
  --error:        #EF4444;
  --info:         #3B82F6;
  --warning:      #F59E0B;

  --font-display: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --container:    1320px;
  --gutter:       32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection { background: var(--orange); color: var(--white); }

/* ---------- LAYOUT ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 120px 0;
  position: relative;
}
.section--tight { padding: 88px 0; }

.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--deep {
  background: var(--black-deep);
  color: var(--white);
}
.section--light {
  background: var(--off-white);
  color: var(--black);
}
.section--white {
  background: var(--white);
  color: var(--black);
}

/* ---------- TIPO ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 9vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.section--dark .eyebrow,
.section--deep .eyebrow { color: var(--orange); }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--dark-gray);
  max-width: 56ch;
}
.section--dark .lead,
.section--deep .lead { color: var(--light-gray); }

p { max-width: 64ch; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--white);
  color: var(--black);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav__brand img { height: 36px; width: auto; }
.nav__links {
  display: flex;
  gap: 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 8px;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  color: var(--black);
  opacity: 0.72;
  transition: opacity 150ms ease-out, color 150ms ease-out;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active { opacity: 1; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--orange);
}
.nav__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__signin {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.72;
}
.nav__signin:hover { opacity: 1; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 0;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
  white-space: nowrap;
}
.btn--lg { font-size: 16px; padding: 17px 34px; }
.btn--sm { font-size: 12px; padding: 9px 16px; }

.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); }

.btn--ghost {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  padding: 11px 24px;
}
.btn--ghost:hover { background: var(--orange); color: var(--white); }

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 11px 24px;
}
.btn--secondary:hover { background: var(--white); color: var(--black); }

.btn--secondary-dark {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  padding: 11px 24px;
}
.btn--secondary-dark:hover { background: var(--black); color: var(--white); }

.btn--dark {
  background: var(--black);
  color: var(--white);
}
.btn--dark:hover { background: var(--charcoal); }

.btn .arrow { display: inline-block; transition: transform 150ms ease-out; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  line-height: 1;
}
.badge--orange { background: var(--orange); color: var(--white); }
.badge--black { background: var(--black); color: var(--white); }
.badge--outline { background: transparent; color: var(--black); border: 1px solid var(--black); }
.badge--outline-light { background: transparent; color: var(--white); border: 1px solid var(--white); }
.badge--success { background: var(--success); color: var(--white); }
.badge--error { background: var(--error); color: var(--white); }
.badge--info { background: var(--info); color: var(--white); }
.badge--warning { background: var(--warning); color: var(--white); }
.badge--gray { background: var(--light-gray); color: var(--charcoal); }

/* ---------- SECTION HEADERS ---------- */
.section-mark {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}
.section-mark__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--orange);
  text-transform: uppercase;
}
.section-mark__line {
  flex: 0 0 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}
.section-mark__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- DIVIDERS / HAIRLINES ---------- */
.hairline {
  height: 1px;
  background: rgba(0,0,0,0.1);
  width: 100%;
}
.section--dark .hairline,
.section--deep .hairline { background: rgba(255,255,255,0.08); }

/* ---------- ICON ---------- */
.ico { width: 20px; height: 20px; stroke-width: 1.5; stroke: currentColor; fill: none; flex-shrink: 0; }
.ico--lg { width: 24px; height: 24px; }
.ico--sm { width: 16px; height: 16px; }

/* ---------- FOOTER ---------- */
.foot {
  background: var(--black-deep);
  color: var(--white);
  padding: 88px 0 32px;
}
.foot__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.foot__brand img { height: 32px; margin-bottom: 24px; }
.foot__brand p { color: var(--mid-gray); font-size: 14px; max-width: 32ch; }
.foot__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.foot__col ul { list-style: none; }
.foot__col li { margin-bottom: 12px; }
.foot__col a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.78;
}
.foot__col a:hover { color: var(--orange); opacity: 1; }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.foot__bottom-links { display: flex; gap: 24px; }
.foot__bottom-links a:hover { color: var(--white); }

/* ---------- UTILS ---------- */
.orange { color: var(--orange); }
.muted { color: var(--mid-gray); }
.center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mt-80 { margin-top: 80px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

/* ---------- DROPDOWN MEGA-MENU (desktop) ---------- */
.nav__item--has-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav__item--has-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__item--has-menu > a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
  transition: transform 150ms ease-out;
}
.nav__item--has-menu:hover > a::after,
.nav__item--has-menu.is-open > a::after {
  transform: translateY(0) rotate(225deg);
}

.nav__mega {
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 720px;
  background: var(--black-deep);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--orange);
  padding: 32px 36px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s linear 200ms;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6);
  z-index: 90;
}
.nav__item--has-menu:hover .nav__mega,
.nav__item--has-menu.is-open .nav__mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.nav__mega-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 400;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.nav__mega-col ul { list-style: none; display: flex; flex-direction: column; }
.nav__mega-col li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out, padding-left 150ms ease-out;
}
.nav__mega-col li a:hover {
  color: var(--orange);
  padding-left: 6px;
}
.nav__mega-col li a small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--mid-gray);
  text-transform: uppercase;
}

/* ---------- HAMBURGER (mobile only) ---------- */
.nav__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  background: transparent;
  border: 0;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

/* ---------- MOBILE DRAWER (full-screen, app-like) ---------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.mobile-drawer.is-open { pointer-events: auto; visibility: visible; }

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 250ms ease-out;
}
.mobile-drawer.is-open .mobile-drawer__backdrop { opacity: 1; }

.mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--black);
  color: var(--white);
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 60px rgba(0,0,0,0.5);
}
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }

.mobile-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.mobile-drawer__head img { height: 24px; }
.mobile-drawer__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--white);
  position: relative;
}
.mobile-drawer__close::before,
.mobile-drawer__close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--white);
}
.mobile-drawer__close::before { transform: rotate(45deg); }
.mobile-drawer__close::after { transform: rotate(-45deg); }

.mobile-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer__section {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-drawer__section:last-child { border-bottom: 0; }
.mobile-drawer__section > h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 400;
  padding: 0 24px 8px;
}
.mobile-drawer__section a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 150ms ease-out, color 150ms ease-out;
  min-height: 52px;
}
.mobile-drawer__section a::after {
  content: "→";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  color: var(--mid-gray);
  margin-left: 8px;
  transition: transform 150ms ease-out, color 150ms ease-out;
}
.mobile-drawer__section a:hover,
.mobile-drawer__section a:active {
  background: rgba(224,112,32,0.08);
  color: var(--orange);
}
.mobile-drawer__section a:hover::after,
.mobile-drawer__section a:active::after {
  color: var(--orange);
  transform: translateX(4px);
}
.mobile-drawer__section a.is-active {
  background: rgba(224,112,32,0.12);
  color: var(--orange);
  border-left: 3px solid var(--orange);
  padding-left: 21px;
}
.mobile-drawer__section--secondary a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--light-gray);
  min-height: 44px;
  padding: 10px 24px;
}
.mobile-drawer__section--secondary a::after { font-size: 14px; }

.mobile-drawer__cta {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--hairline);
  background: var(--black-deep);
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.mobile-drawer__cta .btn { width: 100%; justify-content: center; }
.mobile-drawer__phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--orange);
  text-decoration: none;
  color: var(--white);
}
.mobile-drawer__phone .mono {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
}
.mobile-drawer__phone strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

/* ---------- STICKY MOBILE CTA BAR ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--black);
  border-top: 1px solid var(--hairline);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
  display: none;
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar__inner {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-cta-bar .btn--primary { flex: 1; justify-content: center; }
.mobile-cta-bar__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}
.mobile-cta-bar__phone:hover { background: var(--orange); color: var(--white); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav__mega { width: 600px; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding: 0 20px; height: 64px; }
  .nav__brand img { height: 30px; }
  .mobile-cta-bar { display: block; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .foot { padding: 56px 0 28px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
  .foot__brand { grid-column: 1 / -1; }
  /* Bigger tap targets */
  .btn { padding: 14px 24px; min-height: 44px; }
  .btn--sm { padding: 10px 16px; min-height: 38px; }
  /* Soften display type */
  .display { font-size: clamp(48px, 11vw, 80px); line-height: 0.9; }
  .h1 { font-size: clamp(34px, 8vw, 52px); line-height: 1; }
  .h2 { font-size: clamp(24px, 6vw, 34px); }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .foot__top { grid-template-columns: 1fr; gap: 28px; }
  .foot__bottom { flex-direction: column; gap: 14px; text-align: center; }
  .nav__brand img { height: 28px; }
  .mobile-drawer__panel { max-width: 100%; }
  .ticker__track { gap: 32px; font-size: 11px; }
  .foot__brand img { height: 28px; }
  .foot__col h4 { margin-bottom: 14px; }
  .foot__col li { margin-bottom: 10px; }
}
