/* ==========================================================================
   FutBase — Folleto demo / tutorial comercial
   Paleta de marca real del proyecto (lib/core/theme/app_colors.dart)
   ========================================================================== */

:root {
  --olive:        #6B7C4C;
  --olive-dark:   #5A6840;
  --green:        #00554E;
  --green-light:  #007A70;
  --green-dark:   #00423D;
  --accent:       #A4EC13;
  --accent-dark:  #8BC410;

  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white:    #FFFFFF;

  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.06);
  --radius: 18px;
  --maxw: 1040px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------- Layout base ----------------------------- */

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

section { padding: 72px 0; }

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: 40px;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive);
  background: rgba(107, 124, 76, 0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ------------------------------- Portada ------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 45%, var(--olive) 100%);
  color: var(--white);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(164,236,19,0.25), transparent 70%);
  border-radius: 50%;
}

.hero .wrap { position: relative; z-index: 1; }

.hero .brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero .brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px rgba(164,236,19,0.25);
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--accent); }

.hero p {
  font-size: 19px;
  max-width: 600px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
}

.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 12px;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--green-dark); }
.btn-ghost  { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }

/* ------------------------------ KPIs / cifras -------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.stat {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px; padding: 22px;
}
.stat .num { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat .lbl { font-size: 14px; color: rgba(255,255,255,0.82); }

/* ---------------------------- Grid de features ------------------------- */

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.feature {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.feature .shot {
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}
.feature .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

/* Placeholder cuando aún no hay captura */
.feature .shot.placeholder::before {
  content: "📷  captura pendiente";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 15px; font-weight: 600;
  background: repeating-linear-gradient(45deg, var(--gray-100), var(--gray-100) 12px, var(--gray-50) 12px, var(--gray-50) 24px);
}

.feature .body { padding: 22px 24px 26px; }
.feature .body .tag {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--olive); margin-bottom: 8px; display: block;
}
.feature .body h3 { font-size: 21px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.feature .body p  { font-size: 15px; color: var(--gray-700); }

/* Tarjeta a todo el ancho (ocupa las dos columnas): imagen + texto en horizontal */
.feature.wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.feature.wide .shot {
  flex: 1 1 62%; aspect-ratio: auto;
  border-bottom: none; border-right: 1px solid var(--gray-200);
}
.feature.wide .body {
  flex: 1 1 38%; display: flex; flex-direction: column; justify-content: center;
  padding: 32px 34px;
}
.feature.wide .body h3 { font-size: 26px; }
.feature.wide .body p  { font-size: 16px; }

@media (max-width: 860px) {
  .feature.wide { flex-direction: column; }
  .feature.wide .shot {
    flex: none; aspect-ratio: 16 / 10;
    border-right: none; border-bottom: 1px solid var(--gray-200);
  }
}

/* ------------------------------ Bloques rol ---------------------------- */

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.role .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
  background: rgba(107,124,76,0.12);
}
.role h3 { font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.role p  { font-size: 15px; color: var(--gray-700); margin-bottom: 14px; }
.role ul { list-style: none; }
.role li { font-size: 14px; color: var(--gray-700); padding: 6px 0 6px 24px; position: relative; }
.role li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 800; }

.alt { background: var(--white); }

/* ------------------------------- Cierre -------------------------------- */

.closing {
  background: linear-gradient(135deg, var(--olive) 0%, var(--green) 100%);
  color: var(--white); text-align: center; padding: 80px 0;
}
.closing h2 { font-size: 38px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.closing p  { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 28px; }

footer { background: var(--gray-900); color: var(--gray-300); padding: 32px 0; text-align: center; font-size: 14px; }

/* ------------------------------ Responsive ----------------------------- */

@media (max-width: 860px) {
  .hero h1 { font-size: 38px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
}

/* ------------------------------- Impresión PDF ------------------------- */

@media print {
  body { background: var(--white); }
  .no-print { display: none !important; }
  section { padding: 32px 0; page-break-inside: avoid; }
  .hero { padding: 48px 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .feature, .role, .stat, .closing, .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .feature { page-break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
