/* ============================================================
   Foto Canvas — Design Tokens
   ============================================================ */

/* Tipografia: esta landing usa Open Sans (Google Fonts), cargada en index.html.
   Se removieron los @font-face de Myriad Pro del sistema de diseno porque sus
   archivos no se publican con esta pagina. El token --font-sans se sobreescribe
   en styles.css para apuntar a Open Sans. */

:root {
  /* ---------- Brand colors ---------- */
  --brand-green:        #24BF00;    /* primary action / accent */
  --brand-green-2:      #71BF44;    /* gradient secondary, hover-light variant */
  --brand-green-hover:  #1FAB00;    /* CTA hover (darker) */
  --brand-black:        #000000;    /* dark surface / primary foreground */
  --brand-black-hover:  #1A1A1A;    /* dark CTA hover */
  --brand-grey:         #7A7A7A;    /* secondary brand neutral — ** confirm hex ** */
  --brand-grey-2:       #BFBFBF;    /* lighter grey for dividers, meta on light */
  --brand-cream:        #FAFAFA;    /* off-white alt canvas */
  --brand-white:        #FFFFFF;    /* canvas surface */

  /* Back-compat aliases — keep old --brand-brown* tokens pointing at black
     so existing pages don't break while the system migrates. */
  --brand-brown:        var(--brand-black);
  --brand-brown-hover:  var(--brand-black-hover);

  /* The sanctioned gradient — green-to-green only */
  --grad-green: linear-gradient(135deg, #24BF00 0%, #71BF44 100%);

  /* ---------- Surfaces ---------- */
  --bg-canvas:  var(--brand-white);
  --bg-dark:    var(--brand-black);
  --bg-alt:     var(--brand-cream);

  /* ---------- Foreground (on canvas) ---------- */
  --fg-1: #000000;                  /* primary text on light */
  --fg-2: #4A4A4A;                  /* secondary / meta */
  --fg-3: #7A7A7A;                  /* tertiary / placeholder (= --brand-grey) */
  --fg-4: #C4C4C4;                  /* hairlines, very-light meta */

  /* ---------- Foreground (on dark) ---------- */
  --fg-on-dark-1: #FFFFFF;
  --fg-on-dark-2: rgba(255,255,255,.72);
  --fg-on-dark-3: rgba(255,255,255,.48);

  /* ---------- Semantic ---------- */
  --color-accent:    var(--brand-green);
  --color-success:   #24BF00;
  --color-warning:   #E8A33D;       /* warm amber, matches brand temperature */
  --color-danger:    #C8421F;       /* warm terracotta, never pure red */
  --color-link:      #000000;       /* links are black + green underline */
  --color-focus-ring: #24BF00;

  /* ---------- Borders & dividers ---------- */
  --border-soft:   rgba(0,0,0,.08);
  --border-strong: rgba(0,0,0,.16);
  --border-dark:   rgba(255,255,255,.16);
  --border-input:  rgba(0,0,0,.12);
  --border-input-focus: #24BF00;

  /* ---------- Shadows (neutral black ambient) ---------- */
  --shadow-1: 0 1px 2px rgba(0,0,0,.10);
  --shadow-2: 0 10px 28px -8px rgba(0,0,0,.22);
  --shadow-3: 0 28px 64px -18px rgba(0,0,0,.40);
  --shadow-cta: 0 6px 16px -6px rgba(36,191,0,.50);

  /* ---------- Radii ---------- */
  --r-pill:  9999px;
  --r-card:  20px;
  --r-image: 16px;
  --r-input: 12px;
  --r-tile:  8px;
  --r-tight: 6px;

  /* ---------- Spacing (8-base, prefer the larger steps) ---------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* ---------- Layout ---------- */
  --container-max: 1240px;
  --gutter:        24px;
  --header-h:      72px;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 80ms;
  --dur-base: 200ms;
  --dur-lean: 400ms;
  --dur-hero: 600ms;

  /* ---------- Type family ---------- */
  --font-sans:    'Myriad Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-italic:  'Myriad Variable Italic', 'Myriad Pro', serif;

  /* ---------- Type scale (display values, px) ---------- */
  --t-display:  72px;   /* 88px on XL */
  --t-h1:       56px;
  --t-h2:       40px;
  --t-h3:       28px;
  --t-h4:       22px;
  --t-lead:     20px;   /* body intro / one-line CTA copy */
  --t-body:     17px;
  --t-small:    15px;
  --t-meta:     13px;
  --t-eyebrow:  12px;

  /* ---------- Type weights (Myriad Pro only ships Regular + Bold) ----------
     Map old semantic names to the two real weights. Aliases are kept so
     existing pages and tokens don't break, but every alias resolves to
     either 400 or 700 — we don't fake-synthesize 300/600/800. */
  --w-light:    400;
  --w-regular:  400;
  --w-semibold: 700;
  --w-bold:     700;
  --w-extrabold: 700;
}

/* ============================================================
   Base / reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brand-green); color: #fff; }

/* ============================================================
   Semantic type — drop into pages directly
   ============================================================ */

.display, .t-display {
  font-size: var(--t-display);
  font-weight: var(--w-extrabold);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1, .t-h1 {
  font-size: var(--t-h1);
  font-weight: var(--w-extrabold);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-5);
  text-wrap: balance;
}

h2, .t-h2 {
  font-size: var(--t-h2);
  font-weight: var(--w-extrabold);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h3, .t-h3 {
  font-size: var(--t-h3);
  font-weight: var(--w-bold);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
}

h4, .t-h4 {
  font-size: var(--t-h4);
  font-weight: var(--w-bold);
  line-height: 1.3;
  margin: 0 0 var(--sp-2);
}

.t-lead {
  font-size: var(--t-lead);
  font-weight: var(--w-light);
  line-height: 1.5;
  color: var(--fg-2);
  text-wrap: pretty;
}

p, .t-body {
  font-size: var(--t-body);
  font-weight: var(--w-light);
  line-height: 1.6;
  margin: 0 0 var(--sp-4);
  text-wrap: pretty;
}

.t-small { font-size: var(--t-small); font-weight: var(--w-regular); line-height: 1.5; }
.t-meta  { font-size: var(--t-meta);  font-weight: var(--w-regular); line-height: 1.4; color: var(--fg-2); }

.eyebrow, .t-eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: var(--w-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.eyebrow--green { color: var(--brand-green); }
.eyebrow--on-dark { color: var(--fg-on-dark-2); }

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand-green);
  transition: opacity var(--dur-base) var(--ease-out);
}
a:hover { opacity: .7; }

code, kbd, samp { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .95em; }

/* ============================================================
   Layout utilities
   ============================================================ */

.fc-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.fc-section { padding-block: var(--sp-9); }
@media (max-width: 720px) { .fc-section { padding-block: var(--sp-8); } }

.on-dark {
  background: var(--bg-dark);
  color: var(--fg-on-dark-1);
}
.on-dark .t-lead, .on-dark p { color: var(--fg-on-dark-2); }
.on-dark .eyebrow { color: var(--fg-on-dark-2); }
.on-dark a { color: var(--fg-on-dark-1); text-decoration-color: var(--brand-green); }

/* ============================================================
   Buttons — primary green, secondary outline, dark, ghost
   ============================================================ */

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 52px;
  padding-inline: 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: var(--w-extrabold);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.fc-btn:active { transform: scale(.98); }
.fc-btn:disabled, .fc-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.fc-btn--primary {
  background: var(--brand-green);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.fc-btn--primary:hover { background: var(--brand-green-hover); }

.fc-btn--dark {
  background: var(--brand-black);
  color: #fff;
}
.fc-btn--dark:hover { background: var(--brand-black-hover); }

.fc-btn--outline {
  background: transparent;
  border-color: var(--brand-black);
  color: var(--brand-black);
}
.fc-btn--outline:hover { background: var(--brand-black); color: #fff; }

.on-dark .fc-btn--outline {
  border-color: #fff;
  color: #fff;
}
.on-dark .fc-btn--outline:hover { background: #fff; color: var(--brand-black); }

.fc-btn--ghost {
  background: transparent;
  color: var(--brand-black);
  height: 44px;
  padding-inline: 16px;
  letter-spacing: 0.08em;
}
.fc-btn--ghost:hover { background: rgba(0,0,0,.06); }

.fc-btn--sm { height: 40px; padding-inline: 18px; font-size: 12px; }
.fc-btn--lg { height: 60px; padding-inline: 36px; font-size: 15px; }

/* ============================================================
   Form inputs
   ============================================================ */

.fc-input, .fc-select, .fc-textarea {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: var(--r-input);
  border: 1.5px solid var(--border-input);
  background: var(--bg-canvas);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  font-size: var(--t-body);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.fc-input::placeholder, .fc-textarea::placeholder { color: var(--fg-3); font-weight: var(--w-light); }
.fc-input:focus, .fc-select:focus, .fc-textarea:focus {
  outline: none;
  border-color: var(--border-input-focus);
  box-shadow: 0 0 0 4px rgba(36,191,0,.16);
}
.fc-textarea { height: auto; padding: 14px 18px; min-height: 120px; resize: vertical; }
.fc-label {
  display: block;
  font-size: var(--t-meta);
  font-weight: var(--w-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: var(--sp-2);
}

/* ============================================================
   Cards
   ============================================================ */

.fc-card {
  background: var(--bg-canvas);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.fc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.fc-card__body { padding: var(--sp-6); }

/* ============================================================
   Pills / badges / tags
   ============================================================ */

.fc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  background: rgba(0,0,0,.06);
  color: var(--fg-1);
  font-size: var(--t-meta);
  font-weight: var(--w-bold);
  letter-spacing: 0.04em;
}
.fc-pill--green { background: var(--brand-green); color: #fff; }
.fc-pill--green-soft { background: rgba(36,191,0,.14); color: #167C00; }
.fc-pill--dark { background: var(--brand-black); color: #fff; }
.fc-pill--grey { background: var(--brand-grey); color: #fff; }
