/* ============================================================
   RENTEE SHARED STYLES — usado por nosotros.html, blog.html y blog/*
   ============================================================ */

:root {
  --blue-50:  #eef0ff;
  --blue-100: #d8dcff;
  --blue-200: #b8c0ff;
  --blue-300: #8a96f5;
  --blue-400: #5c6eea;
  --blue-500: #3848d8;
  --blue-600: #1d2bb8;
  --blue-700: #0e1a8e;
  --blue-800: #050d6e;
  --blue-900: #000887;
  --blue-950: #00064a;

  --mint-50:  #e6fff6;
  --mint-100: #c4fce5;
  --mint-200: #93f9d0;
  --mint-300: #5cf6bb;
  --mint-400: #2bf5aa;
  --mint-500: #07f49e;   /* nuevo brand mint (Rentee 2026) */
  --mint-600: #06c481;   /* darker para texto · contraste WCAG AA */

  --gold:   #FFD874;
  --coral:  #FF8B7A;
  --pink:   #FFB7E5;
  --sky:    #B0D5FF;

  --gray-50:  #f8f9fc;
  --gray-100: #f1f3f8;
  --gray-200: #e3e6f1;
  --gray-300: #c8cdd9;
  --gray-400: #9da3b3;
  --gray-500: #6e7088;
  --gray-600: #4f5266;
  --gray-700: #353749;
  --gray-800: #1e1f2e;
  --gray-900: #0a0a2e;

  --bg:           var(--gray-50);
  --bg-elevated:  #ffffff;
  --bg-overlay:   rgba(255,255,255,0.7);
  --bg-soft:      var(--gray-100);
  --text:         var(--gray-900);
  --heading:      #0e08a6;   /* azul Rentee para titulares (h1–h4) */
  --text-soft:    var(--gray-600);
  --text-muted:   var(--gray-500);
  --accent:       var(--blue-900);
  --accent-soft:  var(--blue-50);
  --success:      var(--mint-500);
  --success-soft: var(--mint-100);
  --border:       var(--gray-200);
  --border-soft:  var(--gray-100);
  --shadow-sm:    0 1px 2px rgba(0,8,135,.04), 0 2px 4px rgba(0,8,135,.04);
  --shadow-md:    0 4px 6px rgba(0,8,135,.04), 0 12px 24px -6px rgba(0,8,135,.12);
  --shadow-lg:    0 24px 64px -16px rgba(0,8,135,.28);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px; --r-pill: 999px;

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --sp-20: 80px; --sp-24: 96px;

  --ff: 'Poppins', system-ui, -apple-system, sans-serif;
  --ff-display: 'Instrument Serif', Georgia, serif;
  --fs-xs: 0.78rem; --fs-sm: 0.875rem; --fs-base: 1rem; --fs-lg: 1.125rem;
  --fs-xl: 1.25rem; --fs-2xl: 1.5rem; --fs-3xl: 1.875rem; --fs-4xl: 2.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--ff); color: var(--text); background: var(--bg);
  line-height: 1.55; font-size: 16px; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 { margin: 0; color: var(--heading); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
p { margin: 0 0 1em; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }

.display { font-family: var(--ff-display); font-weight: 400; font-style: italic; }
.serif-accent { font-family: var(--ff-display); font-style: italic; font-weight: 400; color: var(--accent); }
.muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.gradient-text {
  background: linear-gradient(110deg, var(--blue-900) 0%, var(--blue-500) 40%, var(--mint-500) 80%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 32px); }
.container--narrow { max-width: 760px; }
section { padding-block: clamp(48px, 7vw, 96px); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; padding: 12px 20px; border-radius: var(--r-pill);
  transition: all 0.2s; line-height: 1; letter-spacing: -0.01em; white-space: nowrap;
}
.btn-primary { background: var(--blue-900); color: #fff; box-shadow: 0 6px 20px -6px rgba(0,8,135,0.5); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(0,8,135,0.6); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-mint { background: var(--mint-400); color: var(--blue-950); box-shadow: 0 6px 20px -6px rgba(108,214,148,0.55); }
.btn-mint:hover { transform: translateY(-1px); background: var(--mint-300); }
.btn-ghost { background: var(--bg-soft); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-lg { padding: 14px 24px; font-size: var(--fs-base); }
.btn-icon { width: 16px; height: 16px; transition: transform 0.2s; flex-shrink: 0; }
.btn:hover .btn-icon { transform: translateX(3px); }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0; transition: all 0.25s;
  background: var(--bg-overlay); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}
.header.scrolled { padding: 8px 0; border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.header__logo { display: flex; align-items: center; gap: var(--sp-3); }
.header__logo img { height: 28px; }
.header__nav { display: flex; align-items: center; gap: var(--sp-8); font-size: var(--fs-sm); font-weight: 500; }
.header__nav a { color: var(--text-soft); padding: 6px 0; position: relative; }
.header__nav a:hover { color: var(--text); }
.header__nav a.active { color: var(--accent); font-weight: 600; }
.header__cta { display: flex; align-items: center; gap: var(--sp-2); }
@media (max-width: 920px) {
  .header__nav { display: none; }
  .header__cta .btn-outline { display: none; }
}
body { padding-top: 64px; }

/* Footer */
.footer { background: #050d20; color: rgba(255,255,255,0.7); padding: 64px 0 24px; }
.footer__grid {
  display: grid; gap: var(--sp-12); grid-template-columns: 1fr; margin-bottom: var(--sp-12);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: var(--sp-10); } }
.footer__brand p { font-size: var(--fs-sm); margin: var(--sp-4) 0 var(--sp-6); max-width: 320px; line-height: 1.65; }
.footer__certs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.footer__cert {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 8px 12px; background: rgba(255,255,255,0.05); border-radius: var(--r-sm);
  font-size: var(--fs-xs); border: 1px solid rgba(255,255,255,0.08);
}
.footer__cert img { height: 20px; opacity: 0.95; }
.footer__col h4 { color: #fff; font-size: var(--fs-sm); margin-bottom: var(--sp-4); font-weight: 600; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.footer__col a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer__col a:hover { color: var(--mint-300); }
.footer__bottom {
  padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: var(--fs-xs); color: rgba(255,255,255,0.45);
}
.footer__social { display: flex; gap: var(--sp-2); }
.footer__social a {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: all 0.2s;
}
.footer__social a:hover { background: var(--mint-400); color: var(--blue-950); transform: translateY(-2px); }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
[data-animate].in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   BLOG PAGES
   ============================================================ */

/* Blog index */
.blog-hero {
  padding: 100px 0 60px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--mint-200) 30%, transparent) 0%, transparent 70%);
  text-align: center;
}
.blog-hero h1 { margin: var(--sp-4) 0 var(--sp-4); }
.blog-hero p { font-size: var(--fs-lg); color: var(--text-soft); max-width: 640px; margin: 0 auto; }

.blog-filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center;
  margin: var(--sp-10) 0 var(--sp-12);
}
.filter-chip {
  padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-soft); cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--text); }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.blog-grid {
  display: grid; gap: var(--sp-6); grid-template-columns: 1fr;
  margin-bottom: var(--sp-16);
}
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-xl);
  overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.blog-card__thumb {
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; color: rgba(255,255,255,0.95); position: relative; overflow: hidden;
}
.blog-card__thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.blog-card__thumb--blue { background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-500) 100%); }
.blog-card__thumb--mint { background: linear-gradient(135deg, var(--mint-600) 0%, var(--mint-400) 100%); }
.blog-card__thumb--gold { background: linear-gradient(135deg, #C58E2E 0%, var(--gold) 100%); color: var(--blue-950); }
.blog-card__thumb--purple { background: linear-gradient(135deg, #4F3DAC 0%, #8A6EFF 100%); }
.blog-card__thumb--coral { background: linear-gradient(135deg, #D04C3E 0%, var(--coral) 100%); }
.blog-card__thumb--sky { background: linear-gradient(135deg, #2A5BAB 0%, var(--blue-400) 100%); }
.blog-card__thumb--ink { background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-700) 100%); }
.blog-card__thumb--peach { background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%); }
.blog-card__thumb--forest { background: linear-gradient(135deg, #06c481 0%, #044d33 100%); }
.blog-card__thumb--lilac { background: linear-gradient(135deg, var(--pink) 0%, #6B5BE3 100%); }
.blog-card__body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.blog-card__category {
  display: inline-block; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--sp-3); align-self: flex-start;
}
.blog-card__title { font-size: var(--fs-lg); font-weight: 700; color: var(--text); margin-bottom: var(--sp-3); line-height: 1.3; }
.blog-card__excerpt { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.55; flex: 1; margin-bottom: var(--sp-4); }
.blog-card__meta {
  display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-3);
  border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-muted);
}

/* Article page */
.article-hero {
  padding: 100px 0 40px;
  text-align: left;
  background: radial-gradient(ellipse 60% 50% at 30% 0%, color-mix(in srgb, var(--blue-100) 50%, transparent) 0%, transparent 70%);
}
.article-hero__container { max-width: 760px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 32px); }
.article-back {
  display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: var(--fs-sm);
  margin-bottom: var(--sp-6); transition: color 0.2s;
}
.article-back:hover { color: var(--accent); }
.article-category {
  display: inline-block; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--sp-4);
}
.article-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--sp-4); }
.article-hero__sub { font-size: var(--fs-lg); color: var(--text-soft); margin-bottom: var(--sp-6); line-height: 1.5; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  font-size: var(--fs-sm); color: var(--text-muted); padding-top: var(--sp-5); border-top: 1px solid var(--border);
}
.article-meta__author { display: flex; align-items: center; gap: var(--sp-2); }
.article-meta__avatar {
  width: 32px; height: 32px; border-radius: 50%; background-size: cover; background-position: center;
  background-color: var(--accent);
}
.article-meta__author strong { color: var(--text); }

.article-feature-img {
  max-width: 1100px; margin: var(--sp-6) auto var(--sp-12); border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 16/8; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; font-size: 6rem; color: rgba(255,255,255,0.9);
  padding-inline: clamp(20px, 4vw, 32px);
}

.article-body {
  max-width: 760px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 32px);
  font-size: 1.1rem; line-height: 1.75; color: var(--text);
  padding-bottom: var(--sp-16);
}
.article-body p { margin: 0 0 1.4em; color: var(--text); }
.article-body h2 { font-size: clamp(1.5rem, 2.5vw, 1.85rem); margin: 2.2em 0 0.7em; color: var(--accent); }
.article-body h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.4em; color: var(--text); }
.article-body li { margin-bottom: 0.6em; }
.article-body blockquote {
  border-left: 4px solid var(--mint-400);
  padding: var(--sp-4) var(--sp-6); margin: 1.6em 0;
  background: var(--mint-50); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic; color: var(--text);
}
.article-body a { color: var(--accent); text-decoration: underline; font-weight: 500; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body code {
  background: var(--bg-soft); padding: 2px 6px; border-radius: 4px;
  font-family: 'SF Mono', Consolas, monospace; font-size: 0.92em;
}

.article-cta {
  max-width: 760px; margin: var(--sp-12) auto 0; padding: var(--sp-8);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--mint-100) 100%);
  border-radius: var(--r-xl); text-align: center;
}
.article-cta h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); color: var(--accent); }
.article-cta p { color: var(--text); margin-bottom: var(--sp-5); }

.article-related {
  background: var(--bg-soft); padding: var(--sp-20) 0;
}
.article-related h2 { text-align: center; margin-bottom: var(--sp-10); }
.article-related__grid {
  display: grid; gap: var(--sp-5); grid-template-columns: 1fr;
}
@media (min-width: 700px) { .article-related__grid { grid-template-columns: repeat(3, 1fr); } }

/* About page */
.about-hero {
  padding: 100px 0 60px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, color-mix(in srgb, var(--mint-200) 25%, transparent) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 90% 100%, color-mix(in srgb, var(--blue-100) 50%, transparent) 0%, transparent 70%);
  text-align: center;
}
.about-hero h1 { margin: var(--sp-4) 0 var(--sp-5); }
.about-hero p { font-size: var(--fs-lg); color: var(--text-soft); max-width: 720px; margin: 0 auto 0; }

.about-section { padding: clamp(48px, 6vw, 80px) 0; }
.about-section--soft { background: var(--bg-soft); }
.about-section__head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-12); }
.about-section__head h2 { margin-bottom: var(--sp-4); }

.values-grid {
  display: grid; gap: var(--sp-5); grid-template-columns: 1fr;
}
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card {
  padding: var(--sp-6); background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-xl); transition: all 0.3s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.value-card__icon { font-size: 2rem; margin-bottom: var(--sp-3); }
.value-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.value-card p { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.55; }

.team-grid {
  display: grid; gap: var(--sp-5); grid-template-columns: 1fr;
}
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
  text-align: center; padding: var(--sp-6); background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--r-xl); transition: all 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.team-photo {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto var(--sp-4);
  background-size: cover; background-position: center top;
  box-shadow: 0 8px 24px -6px rgba(0,8,135,0.25);
}
.team-name { font-size: var(--fs-lg); font-weight: 700; color: var(--text); margin-bottom: 4px; }
.team-role { font-size: var(--fs-xs); color: var(--accent); font-weight: 700; margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: 0.08em; }
.team-bio { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.55; }

.about-stats {
  display: grid; gap: var(--sp-6); grid-template-columns: 1fr; text-align: center;
}
@media (min-width: 700px) { .about-stats { grid-template-columns: repeat(3, 1fr); } }
.about-stat__num { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.about-stat__label { font-size: var(--fs-sm); color: var(--text-soft); margin-top: var(--sp-2); }

.cta-final {
  background: var(--blue-950); color: #fff; text-align: center;
}
.cta-final__inner { max-width: 720px; margin: 0 auto; }
.cta-final h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-final p { color: rgba(255,255,255,0.85); font-size: var(--fs-lg); margin-bottom: var(--sp-8); }
.cta-final__buttons { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FLOATING WHATSAPP — always visible bottom-right, all pages
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: -webkit-inline-flex;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  pointer-events: auto;
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waPulse 2.5s infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  background: #1DAB52;
  box-shadow: 0 16px 36px -8px rgba(37,211,102,0.7);
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  display: block;
}
.wa-float__label {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #000887;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-float:hover .wa-float__label { opacity: 1; }
@media (max-width: 720px) {
  .wa-float { bottom: 88px; right: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float__label { display: none; }
}
