/* ============================================================
   fitbyflorr — réplica + Heavy Duty
   Fuentes: Outfit (títulos) · Inter (texto)
   ============================================================ */

:root {
  --black: #0d141a;
  --ink: #23232a;
  --slate: #454655;
  --white: #ffffff;
  --paper: #f7f8fa;
  --line: #e7e8ee;
  --pink: #fc5185;
  --pink-dark: #d63163;
  --pink-soft: #ffe8ef;
  --gold: #ffcd35;

  --font-head: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1224px;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(13, 20, 26, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pink-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 12px 30px -12px rgba(252, 81, 133, 0.8); }
.btn-primary:hover { background: var(--pink-dark); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--white); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand span { color: var(--pink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-ig {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.nav-ig:hover { transform: rotate(-8deg) scale(1.05); background: var(--pink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../assets/img/hero.png");
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.04);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,20,26,0.35) 0%, rgba(13,20,26,0.15) 40%, rgba(13,20,26,0.82) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 5rem; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero .kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-dark { background: var(--black); color: #fff; }
.section-paper { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split .media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.6rem 0 1.2rem;
}
.section-title.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--slate); max-width: 60ch; }
.section-dark .lead { color: rgba(255,255,255,0.8); }
.stack > * + * { margin-top: 1.4rem; }

/* ---------- Welcome band ---------- */
.welcome { text-align: center; }
.welcome .big {
  font-size: clamp(1.8rem, 4vw, 3rem);
  max-width: 20ch;
  margin: 0 auto 1.5rem;
}

/* ---------- Team CTA ---------- */
.team .media img { aspect-ratio: 3 / 4; }

/* ---------- Blog / bitácora ---------- */
.badge-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-dark);
}
.section-dark .pill { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.subscribe {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 1.8rem auto 0;
}
.subscribe input {
  flex: 1;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.subscribe input:focus { outline: none; border-color: var(--pink); }

/* ---------- Social row ---------- */
.socials { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.socials a {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.socials a:hover { transform: translateY(-3px); background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-grid a:hover { color: #fff; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; }
.footer-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Blog / bitácora listing ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 1rem; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head p { color: var(--slate); margin-top: 0.6rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
  padding: 2.5rem 0 4rem;
}
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 0.75rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; }
.post-card h2 { font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
.post-card .excerpt { color: var(--slate); font-size: 0.95rem; flex: 1; }
.post-card .more { margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--pink-dark); }
.post-card:hover .more { color: var(--black); }

/* ---------- Single post ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-hero { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.article-hero .post-meta { justify-content: center; }
.article-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0.8rem 0; }
.article-hero .excerpt { color: var(--slate); font-size: 1.15rem; max-width: 60ch; margin: 0 auto; }
.article-cover { max-width: 980px; margin: 1rem auto 2.5rem; padding: 0 24px; }
.article-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.article-body { padding-bottom: 4rem; }
.article-body p { font-size: 1.12rem; line-height: 1.8; margin: 0 0 1.4rem; color: #1c1c22; }
.article-body p strong { font-weight: 700; color: var(--black); }
.article-body p em { font-style: italic; }
.article-back { display: inline-flex; align-items: center; gap: 0.4rem; margin: 1rem 0 2rem; font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--slate); }
.article-back:hover { color: var(--black); }
.article-nav { border-top: 1px solid var(--line); padding: 2rem 0 4rem; text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .media { order: -1; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; gap: 0; padding: 0; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { display: block; padding: 1rem; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .hero { min-height: 78vh; }
}
