/*
Theme Name: Goldfish + FILLRATE100 Enhanced
Theme URI: https://goldfish.cl
Author: Goldfish Ltd / Atif
Description: Premium Animated Editorial Theme for Goldfish Ltd & FILLRATE100 — Warm paper & dark-ink aesthetic, interactive replenishment charts, animated iceberg diagrams, and bilingual EN/ES support.
Version: 2.0
Text Domain: goldfish-merged
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary / Commercial
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #1B232C;
  --ink-2: #222C36;
  --panel: #212B34;
  --panel-2: #27323C;
  --paper: #F4F1E9;
  --paper-dim: #E9E4D6;
  --paper-card: #FFFFFE;
  --gold: #B4914F;
  --gold-soft: #D8B77D;
  --copper: #C68955;
  --teal: #3E7864;
  --teal-soft: #68A78E;
  --steel: #69798A;
  --text-dark: #2A2F35;
  --text-body: #454F58;
  --text-onink: #D9D3C6;
  --text-onink-dim: #9AA5AC;
  --line: rgba(217,211,198,0.12);
  --line-dark: rgba(27,35,44,0.10);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
::selection { background: var(--gold-soft); color: var(--ink); }

/* Bilingual Language Toggling */
[data-es] { display: none; }
body.lang-es [data-en] { display: none; }
body.lang-es [data-es] { display: initial; }
body.lang-es .b-list [data-es] { display: list-item; }
body.lang-es .feat-body [data-es] { display: block; }
body.lang-es .flex-es { display: flex !important; }

/* Scroll Reading Progress Bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal-soft), var(--copper));
  z-index: 999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 233, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-dark);
  transition: all 0.3s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: conic-gradient(from 210deg, var(--gold), var(--teal-soft), var(--copper), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(180,145,79,0.25);
  transition: transform 0.3s ease;
}
.brand:hover .mark { transform: rotate(12deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .g { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.brand-text .f { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--steel); text-transform: uppercase; font-weight: 600; }
nav.links { display: flex; gap: 28px; font-size: 13.5px; font-weight: 500; }
nav.links ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav.links a { opacity: .75; transition: opacity .2s, color .2s; position: relative; }
nav.links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--gold); transition: width .25s ease; }
nav.links a:hover { opacity: 1; color: var(--ink); }
nav.links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: flex; border: 1px solid rgba(27,35,44,0.18); border-radius: 100px; padding: 3px; font-family: var(--mono); font-size: 11px; font-weight: 600; background: var(--paper-card); }
.lang-toggle button { padding: 5px 12px; border-radius: 100px; background: none; border: 0; cursor: pointer; color: var(--text-body); letter-spacing: .03em; transition: all .2s; }
.lang-toggle button.active { background: var(--ink); color: var(--paper); box-shadow: 0 2px 6px rgba(27,35,44,0.15); }
.nav-cta { font-size: 12.5px; font-weight: 700; padding: 10px 20px; border-radius: 100px; background: var(--ink); color: var(--paper); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; white-space: nowrap; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(27,35,44,0.15); }
.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-btn span { width: 22px; height: 2px; background: var(--ink); transition: 0.3s; }
@media (max-width: 1000px) { nav.links { display: none; } .menu-btn { display: flex; } }

/* Hero Section */
.hero { position: relative; padding: 80px 0 0; background: var(--paper); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-bottom: 60px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; } }
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero p.lead { margin-top: 24px; max-width: 510px; font-size: 17px; color: var(--text-body); line-height: 1.65; }
.hero-ctas { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; font-size: 13.5px; font-weight: 700; border-radius: 100px; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(27,35,44,0.18); }
.btn-ghost { border: 1px solid rgba(27,35,44,0.22); color: var(--ink); background: rgba(255,255,255,0.4); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--paper-dim); transform: translateY(-3px); }

/* Floating Cards Parallax */
.float-stack { position: relative; height: 420px; }
.float-card { position: absolute; background: rgba(255,255,254,0.85); backdrop-filter: blur(14px); border: 1px solid rgba(27,35,44,0.08); border-radius: 18px; padding: 22px 24px; box-shadow: 0 20px 48px rgba(27,35,44,0.08); transition: transform .2s ease-out, box-shadow .2s ease; }
.float-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 24px 56px rgba(27,35,44,0.12); }
.fc1 { top: 0; right: 8%; width: 230px; }
.fc2 { top: 170px; right: 36%; width: 210px; }
.fc3 { top: 290px; right: 2%; width: 220px; }
.float-card .num { font-family: var(--mono); font-size: 30px; color: var(--ink); font-weight: 600; line-height: 1.1; }
.float-card .lbl { font-size: 12px; color: var(--steel); margin-top: 6px; line-height: 1.45; }
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; margin-bottom: 10px; }
@media (max-width: 960px) { .float-stack { display: none; } }

/* Marquee Ticker */
.marquee { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; white-space: nowrap; padding: 18px 0; background: var(--paper-dim); }
.marquee-track { display: inline-flex; gap: 48px; animation: scrollmq 30s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--steel); text-transform: uppercase; display: flex; align-items: center; gap: 48px; font-weight: 500; }
.marquee-track span::after { content: '✦'; color: var(--gold); font-size: 10px; }
@keyframes scrollmq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections Standard */
section { padding: 100px 0; }
.section-dark { background: var(--ink); color: var(--text-onink); }
.kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.section-dark .kicker { color: var(--gold-soft); }
h2.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 48px); max-width: 720px; line-height: 1.14; letter-spacing: -.015em; color: var(--ink); }
.section-dark h2.section-title { color: var(--paper); }
.section-lead { margin-top: 20px; max-width: 620px; font-size: 16px; color: var(--text-body); line-height: 1.65; }
.section-dark .section-lead { color: var(--text-onink-dim); }

/* Iceberg Diagram Section */
.iceberg-wrap { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .iceberg-wrap { grid-template-columns: 1fr; gap: 36px; } }
.iceberg-visual { position: relative; height: 440px; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #E7EEEC 0%, #E7EEEC 34%, #1E4A44 34%, #143530 100%); box-shadow: 0 20px 48px rgba(27,35,44,0.12); }
.iceberg-visual .waterline { position: absolute; left: 0; right: 0; top: 34%; height: 2px; background: rgba(255,255,255,0.6); box-shadow: 0 0 12px rgba(255,255,255,0.4); z-index: 10; }
.iceberg-shape { position: absolute; left: 50%; transform: translateX(-50%); top: 6%; width: 220px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25)); transition: transform 0.4s ease; }
.iceberg-visual:hover .iceberg-shape { transform: translateX(-50%) translateY(-5px); }
.ice-label { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #243; background: rgba(255,255,255,0.85); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 100px; font-weight: 600; z-index: 15; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.ice-label.dark { color: #cfe0da; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.18); }
.lab-tip { top: 12%; left: 8%; }
.lab-sub { bottom: 14%; left: 8%; }
.iceberg-copy .row { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.iceberg-copy .row:first-of-type { border-top: none; }
.row .mark2 { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.row h4 { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.row p { font-size: 14.5px; color: var(--text-body); line-height: 1.6; }

/* Bento Grid */
.bento { margin-top: 56px; display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: auto auto; gap: 24px; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } }
.b-card { border-radius: 20px; padding: 38px; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.b-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(27,35,44,0.12); }
.b-big { grid-row: span 2; background: var(--ink); color: var(--text-onink); position: relative; overflow: hidden; }
.b-small { background: var(--paper-card); border: 1px solid var(--line-dark); }
.b-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; margin-bottom: 22px; font-weight: 600; }
.tag-on-dark { background: rgba(217,211,198,0.12); color: var(--gold-soft); }
.tag-light { background: rgba(62,120,100,0.12); color: var(--teal); }
.b-big h3 { font-family: var(--serif); font-weight: 600; font-size: 34px; margin-bottom: 14px; color: var(--paper); }
.b-small h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin-bottom: 10px; color: var(--ink); }
.b-big p { font-size: 15px; color: var(--text-onink-dim); line-height: 1.7; max-width: 460px; margin-bottom: 26px; }
.b-small p { font-size: 14px; color: var(--text-body); line-height: 1.65; margin-bottom: 18px; }
.b-list { list-style: none; }
.b-list li { font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; color: var(--text-onink); }
.b-list li::before { content: '—'; color: var(--gold-soft); flex-shrink: 0; font-weight: 700; }
.b-link { margin-top: 22px; display: inline-flex; gap: 6px; font-size: 13.5px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Chart Section */
.chart-section { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .chart-section { grid-template-columns: 1fr; gap: 40px; } }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 280px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--gold-soft), var(--teal-soft)); height: 0%; transition: height 1.4s cubic-bezier(.2,.8,.2,1); }
.bar-lbl { font-family: var(--mono); font-size: 9.5px; color: var(--text-onink-dim); text-align: center; }
.bar-val { font-family: var(--mono); font-size: 12px; color: var(--gold-soft); font-weight: 600; }
.feat-list { list-style: none; margin-top: 8px; }
.feat-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.feat-list li:first-child { border-top: none; }
.feat-num { font-family: var(--mono); color: var(--gold-soft); font-size: 13px; flex-shrink: 0; padding-top: 3px; font-weight: 600; }
.feat-body h4 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin-bottom: 6px; color: var(--paper); }
.feat-body p { font-size: 13.5px; color: var(--text-onink-dim); line-height: 1.6; }

/* About Section */
.about-grid { margin-top: 56px; display: grid; grid-template-columns: 220px 1fr; gap: 52px; align-items: start; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.founder-photo { width: 160px; height: 160px; border-radius: 50%; background: linear-gradient(155deg, var(--gold-soft), var(--teal)); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 38px; color: #fff; font-weight: 600; box-shadow: 0 14px 36px rgba(62,120,100,0.25); border: 4px solid var(--paper-card); }
.about-copy p { font-size: 15.5px; color: var(--text-body); line-height: 1.75; margin-bottom: 18px; max-width: 660px; }
.about-who { margin-top: 12px; font-size: 14px; color: var(--steel); }
.about-who b { color: var(--ink); }

/* Resources Grid */
.strip-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .strip-grid { grid-template-columns: 1fr; } }
.strip-card { background: var(--paper-card); border: 1px solid var(--line-dark); border-radius: 16px; padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease; }
.strip-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(27,35,44,0.09); }
.strip-card .ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-family: var(--mono); font-size: 14px; font-weight: 700; }
.strip-card h4 { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.strip-card p { font-size: 13.5px; color: var(--text-body); line-height: 1.6; margin-bottom: 16px; }
.strip-card a { font-size: 13px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* CTA Section */
.cta { text-align: center; padding: 140px 0; position: relative; overflow: hidden; background: var(--ink); }
.cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 800px 450px at 50% 30%, rgba(180,145,79,0.18), transparent 70%); }
.cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4.5vw, 56px); max-width: 720px; margin: 0 auto 22px; color: var(--paper); position: relative; }
.cta p { max-width: 520px; margin: 0 auto 38px; color: var(--text-onink-dim); font-size: 16.5px; position: relative; }
.cta .hero-ctas { justify-content: center; position: relative; }
.cta .btn-primary { background: var(--paper); color: var(--ink); }
.cta .btn-ghost { border-color: rgba(217,211,198,0.28); color: var(--paper); }
.cta .btn-ghost:hover { background: rgba(217,211,198,0.1); }

/* Footer */
footer { background: var(--ink); color: var(--text-onink-dim); padding: 64px 0 32px; font-size: 13.5px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; font-weight: 600; }
.foot-grid a { display: block; padding: 6px 0; opacity: .82; transition: opacity .2s, color .2s; }
.foot-grid a:hover { opacity: 1; color: var(--gold-soft); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 14px; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
