/*
Theme Name: The Fan Lab
Theme URI: https://thefanlab.org
Author: Deewan / The Burboh Group
Author URI: https://thefanlab.org
Description: Tema institucional para The Fan Lab — agencia de gestión y monetización para creadoras digitales.
Version: 1.0.0
License: Propietario
Text Domain: thefanlab
Tags: custom-logo, full-width-template, custom-menu
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111111;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --blue:        #0057FF;
  --blue-light:  #EBF1FF;
  --blue-mid:    #D6E4FF;
  --white:       #ffffff;
  --black:       #111111;
  --gray-text:   #444444;
  --gray-muted:  #666666;
  --gray-label:  #888888;
  --surface:     #F7F8FF;
  --border:      #E8EDFF;
  --border-soft: #eeeeee;
  --radius-pill: 100px;
  --radius-card: 20px;
  --radius-img:  24px;
  --max-width:   1200px;
  --section-pad: 80px 48px;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1, h2, h3, h4 {
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
}

h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
p  { color: var(--gray-text); }

.tfl-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-label);
  margin-bottom: 12px;
  display: block;
}

.tfl-pill {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.tfl-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.tfl-section {
  padding: var(--section-pad);
}

/* ============================================================
   BOTONES
   ============================================================ */
.tfl-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
  font-family: inherit;
}
.tfl-btn:hover { opacity: .88; transform: translateY(-1px); }
.tfl-btn:active { transform: scale(.98); }

.tfl-btn--primary {
  background: var(--blue);
  color: var(--white);
}

.tfl-btn--outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 12px 28px;
  font-size: 14px;
}

.tfl-btn--white {
  background: var(--white);
  color: var(--blue);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.tfl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tfl-header__logo img {
  height: 26px;
  width: auto;
}

.tfl-nav {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}

.tfl-nav a {
  font-size: 14px;
  color: var(--gray-muted);
  transition: color .2s;
  font-weight: 500;
}
.tfl-nav a:hover { color: var(--blue); }

.tfl-header__cta {
  margin-left: 16px;
}

/* Hamburger mobile */
.tfl-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.tfl-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all .3s;
}

/* ============================================================
   HERO
   ============================================================ */
.tfl-hero {
  padding: 80px 48px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tfl-hero__body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 36px;
  max-width: 480px;
}

.tfl-hero__ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.tfl-hero__image {
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-height: 640px;
}

.tfl-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ============================================================
   STATS CARDS
   ============================================================ */
.tfl-stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 48px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tfl-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.tfl-stat-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.tfl-stat-card__number {
  font-size: 44px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 10px;
}

.tfl-stat-card__label {
  font-size: 14px;
  color: var(--gray-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================================
   SERVICIOS / GRID DE CARDS
   ============================================================ */
.tfl-services {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.tfl-services__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.tfl-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tfl-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}

.tfl-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.tfl-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.tfl-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-muted);
}

/* ============================================================
   PROCESO (CÓMO TRABAJAMOS)
   ============================================================ */
.tfl-process {
  padding: var(--section-pad);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  max-width: var(--max-width);
  margin: 0 auto;
}

.tfl-process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tfl-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.tfl-step p {
  font-size: 14px;
  color: var(--gray-muted);
  line-height: 1.65;
}

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.tfl-why {
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tfl-why__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.tfl-why__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--gray-text);
}

.tfl-why__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.tfl-why__tagline {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--black);
}

.tfl-why__tagline span { color: var(--blue); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.tfl-cta-section {
  padding: 0 48px 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tfl-cta {
  background: var(--blue);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.tfl-cta__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.tfl-cta__body {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
}

.tfl-cta__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.tfl-cta__logo {
  height: 20px;
  width: auto;
  opacity: .35;
  filter: brightness(100);
}

/* ============================================================
   FOOTER
   ============================================================ */
.tfl-footer {
  border-top: 1px solid var(--border-soft);
  padding: 36px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.tfl-footer__logo img {
  height: 22px;
  width: auto;
}

.tfl-footer__copy {
  font-size: 13px;
  color: var(--gray-label);
}

.tfl-footer__links {
  display: flex;
  gap: 24px;
}

.tfl-footer__links a {
  font-size: 13px;
  color: var(--gray-label);
  transition: color .2s;
}
.tfl-footer__links a:hover { color: var(--blue); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.tfl-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  padding: 32px 40px;
  gap: 32px;
}

.tfl-mobile-nav.is-open {
  display: flex;
}

.tfl-mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--black);
  line-height: 1;
}

.tfl-mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}

.tfl-mobile-nav ul a {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 56px 24px; }

  .tfl-header { padding: 0 24px; }
  .tfl-nav, .tfl-header__cta { display: none; }
  .tfl-hamburger { display: flex; }

  .tfl-hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 36px;
  }
  .tfl-hero__image { height: 300px; }

  .tfl-stats-cards { grid-template-columns: 1fr; padding: 0 24px 48px; }

  .tfl-services__intro { grid-template-columns: 1fr; }
  .tfl-services__grid { grid-template-columns: 1fr 1fr; }
  .tfl-services, .tfl-process, .tfl-why { padding: 56px 24px; }

  .tfl-process__grid { grid-template-columns: 1fr 1fr; }

  .tfl-why { grid-template-columns: 1fr; }

  .tfl-cta { grid-template-columns: 1fr; gap: 32px; padding: 48px 32px; }
  .tfl-cta-section { padding: 0 24px 48px; }
  .tfl-cta__side { align-items: flex-start; }

  .tfl-footer { flex-direction: column; gap: 20px; text-align: center; padding: 32px 24px; }
  .tfl-footer__links { justify-content: center; }
}

@media (max-width: 540px) {
  .tfl-services__grid { grid-template-columns: 1fr; }
  .tfl-process__grid { grid-template-columns: 1fr; }
}
