/* ============================================================
   STYLES.CSS — Ricardo Cabascango · Link in Bio
   ============================================================ */

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

:root {
  --bg:         #04040c;
  --surface:    #07071a;
  --card:       #0b0b1e;
  --card-hover: #0f0f28;
  --border:     #131330;
  --border-hi:  #22224a;

  --blue:    #4361ee;
  --blue-lt: #638bff;
  --cyan:    #00c9ff;
  --purple:  #7c3aed;
  --orange:  #f97316;
  --green:   #22c55e;
  --gold:    #f59e0b;

  --white: #f0f0fa;
  --text:  #a8a8c8;
  --muted: #55557a;

  --sans: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Scrollbar ── */
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent; }
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ── Base ── */
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.018;
  pointer-events: none;
  z-index: 9999;
}

/* ── Canvas bg ── */
#bgCanvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67,97,238,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}

/* ── Page wrapper — link-in-bio ── */
.page {
  position: relative; z-index: 2;
  max-width: 500px;
  margin: 0 auto;
  padding: 52px 20px 72px;
}

/* ── Section header ── */
.section { margin-bottom: 48px; }

.section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.sec-num  { font-family: var(--mono); font-size: 10px; color: var(--blue); letter-spacing: 0.1em; }
.sec-title { font-family: var(--sans); font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; }
.sec-line  { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0px;
}

/* Hero photo with overlay banner */
.hero-photo-wrap {
  position: relative;
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-hi);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(67,97,238,0.08);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-photo-banner {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(to top,
    rgba(4,4,12,0.96) 0%,
    rgba(4,4,12,0.75) 55%,
    transparent 100%);
  text-align: left;
}

.hero-photo-name {
  font-family: var(--sans);
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero-photo-role {
  font-family: var(--body);
  font-size: 13px;
  color: rgba(240,240,250,0.75);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.hero-photo-founder {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.07em;
  color: rgba(240,240,250,0.5);
}

/* Bio cards */
.bio-block {
  width: 100%;
  padding: 0 4px;
  border-top: 2px solid var(--border-hi);
  padding-top: 18px;
  margin-bottom: 4px;
}

.bio-lead {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  color: #e2e2f0;
  line-height: 1.7;
  margin: 0 0 12px 0;
  text-align: left;
}

.bio-sub {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.75;
  margin: 0;
  text-align: left;
}

@keyframes statusGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.07);
  font-family: var(--mono);
  font-size: 10px; color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}


.gradient-text {
  background: linear-gradient(135deg, var(--blue-lt) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role-accent { color: var(--blue-lt); font-weight: 600; }

.founder-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(99, 139, 255, 0.8);
  flex-shrink: 0;
}

.founder-brand { color: rgba(99,139,255,0.9); font-weight: 600; }

/* ── YouTube compact button ── */
.yt-compact {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  margin-bottom: 20px;
}
.yt-compact:hover {
  background: var(--card-hover);
  border-color: rgba(255, 0, 0, 0.35);
  transform: translateY(-1px);
}

.yt-compact-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 0, 0, 0.12);
  border-radius: var(--r-sm);
  color: #ff4040;
}
.yt-compact-icon svg { width: 20px; height: 20px; fill: currentColor; }

.yt-compact-text { flex: 1; }

.yt-compact-title {
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.yt-compact-sub {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
}

.yt-compact-arrow {
  width: 16px; height: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.yt-compact:hover .yt-compact-arrow {
  color: #ff4040;
  transform: translateX(2px);
}

/* ============================================================
   STATS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
  margin-bottom: 48px;
}

.stat-item {
  padding: 18px 10px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--card-hover); }

.stat-val {
  display: flex; align-items: baseline; gap: 1px;
  margin-bottom: 4px;
}

.stat-number {
  font-family: var(--sans);
  font-size: 26px; font-weight: 700;
  color: var(--white); line-height: 1;
  letter-spacing: -0.04em;
}

.stat-suffix {
  font-family: var(--sans);
  font-size: 16px; font-weight: 700;
  color: var(--blue-lt);
}

.stat-label {
  font-family: var(--mono);
  font-size: 8.5px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ============================================================
   SERVICES — Accordion cards
   ============================================================ */
.services-list { display: flex; flex-direction: column; gap: 10px; }

.service-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card.open,
.service-card:has(.card-header-wrap:hover) {
  border-color: var(--border-hi);
}

/* HEADER WRAP — row: link + toggle button */
.card-header-wrap {
  display: flex; align-items: stretch;
  border-left: 4px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  position: relative;
}

/* LINK area (navigable) */
.card-header-link {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 16px;
  flex: 1;
  text-decoration: none; color: inherit;
  min-height: 72px;
  transition: background 0.2s var(--ease);
}
.card-header-link:hover { background: rgba(255,255,255,0.02); }

/* TOGGLE button */
.card-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 52px; flex-shrink: 0;
  background: none; border: none;
  border-left: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  padding: 0;
}
.card-toggle svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.card-toggle:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.service-card.open .card-toggle svg { transform: rotate(180deg); }
.service-card.open .card-toggle { color: var(--white); }

/* CARD BODY — accordion collapse */
.card-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: var(--surface);
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.service-card.open .card-body {
  max-height: 160px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--border);
}

.card-pain {
  font-family: var(--body);
  font-size: 13.5px; font-weight: 300;
  color: var(--text); line-height: 1.65;
}
.pain-hi { font-weight: 500; }

/* ── Accent colours per card ── */
.acc-blue  .card-header-wrap { border-left-color: var(--blue); background: rgba(67,97,238,0.05); }
.acc-cyan  .card-header-wrap { border-left-color: var(--cyan); background: rgba(0,201,255,0.04); }
.acc-purple .card-header-wrap { border-left-color: var(--purple); background: rgba(124,58,237,0.05); }
.acc-orange .card-header-wrap { border-left-color: var(--orange); background: rgba(249,115,22,0.05); }

.acc-blue  .card-icon { background: rgba(67,97,238,0.18);  color: var(--blue-lt); border-color: rgba(67,97,238,0.3); }
.acc-cyan  .card-icon { background: rgba(0,201,255,0.14);  color: var(--cyan);    border-color: rgba(0,201,255,0.25); }
.acc-purple .card-icon { background: rgba(124,58,237,0.18); color: #a78bfa;       border-color: rgba(124,58,237,0.3); }
.acc-orange .card-icon { background: rgba(249,115,22,0.18); color: var(--orange); border-color: rgba(249,115,22,0.3); }

.acc-blue  .pain-hi  { color: var(--blue-lt); }
.acc-cyan  .pain-hi  { color: var(--cyan); }
.acc-purple .pain-hi { color: #a78bfa; }
.acc-orange .pain-hi { color: var(--orange); }

/* Glow on open */
.acc-blue.open   { box-shadow: 0 0 28px rgba(67,97,238,0.12); }
.acc-cyan.open   { box-shadow: 0 0 28px rgba(0,201,255,0.1); }
.acc-purple.open { box-shadow: 0 0 28px rgba(124,58,237,0.12); }
.acc-orange.open { box-shadow: 0 0 28px rgba(249,115,22,0.1); }

/* Icon */
.card-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card-header-link:hover .card-icon { transform: scale(1.07); }
.card-icon svg { width: 22px; height: 22px; }

.card-header-info { flex: 1; min-width: 0; }
.card-tag {
  font-family: var(--mono);
  font-size: 9px; color: var(--muted);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 4px;
}
.card-title {
  font-family: var(--sans);
  font-size: 16px; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em;
}

/* ============================================================
   STACK — Infinite Marquee
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--mono);
  font-size: 12px; color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.marquee-item:hover { border-color: var(--border-hi); color: var(--white); }
.marquee-item svg   { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ============================================================
   YOUTUBE CTA
   ============================================================ */
.yt-block {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
  padding: 22px 24px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(245,158,11,0.22);
  background: linear-gradient(135deg, rgba(245,158,11,0.05) 0%, transparent 70%);
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  margin-bottom: 48px;
}
.yt-block::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245,158,11,0.5) 50%, transparent 100%);
}
.yt-block:hover {
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 0 48px rgba(245,158,11,0.1);
  transform: translateY(-2px);
}

.yt-left { display: flex; align-items: center; gap: 16px; }

.yt-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex; align-items: center; justify-content: center;
}
.yt-icon svg { width: 22px; height: 22px; fill: var(--gold); }

.yt-eyebrow {
  font-family: var(--mono);
  font-size: 9px; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 3px;
}
.yt-headline {
  font-family: var(--sans);
  font-size: 17px; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em; margin-bottom: 2px;
}
.yt-sub { font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 300; }

.yt-cta {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.yt-cta:hover { background: rgba(245,158,11,0.18); border-color: var(--gold); box-shadow: 0 0 20px rgba(245,158,11,0.15); }
.yt-cta svg { width: 14px; height: 14px; fill: var(--gold); }

/* ============================================================
   SOCIAL LINKS — icon only
   ============================================================ */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease),
              color 0.2s var(--ease),
              background 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.social-btn:hover { transform: translateY(-3px); }

.social-btn.linkedin:hover  { border-color: #0a66c2; color: #0a66c2; box-shadow: 0 0 22px rgba(10,102,194,0.25);  background: rgba(10,102,194,0.08); }
.social-btn.tiktok:hover    { border-color: #f0f0f5; color: #f0f0f5; box-shadow: 0 0 22px rgba(255,255,255,0.1);  background: rgba(255,255,255,0.05); }
.social-btn.whatsapp:hover  { border-color: #25d366; color: #25d366; box-shadow: 0 0 22px rgba(37,211,102,0.2);   background: rgba(37,211,102,0.07); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-status { display: flex; align-items: center; gap: 7px; }
.f-dot   { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: statusGlow 2.5s ease-in-out infinite; }
.f-label { font-family: var(--mono); font-size: 10px; color: var(--green); letter-spacing: 0.08em; }
.footer-copy  { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.footer-right { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.footer-right span { color: var(--blue); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.05s; }
.rd2 { transition-delay: 0.15s; }
.rd3 { transition-delay: 0.25s; }
.rd4 { transition-delay: 0.35s; }

/* ============================================================
   RESPONSIVE — mobile first
   ============================================================ */
@media (max-width: 480px) {
  .page { padding: 40px 16px 60px; }
  /* Stats — 4 en fila, tamaño reducido */
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .stat-item { padding: 14px 6px; }
  .stat-number { font-size: 20px; }
  .stat-suffix { font-size: 13px; }
  .stat-label  { font-size: 7.5px; letter-spacing: 0.06em; }

  /* Services accordion */
  .card-header-link { padding: 16px 12px; gap: 12px; min-height: 64px; }
  .card-icon { width: 42px; height: 42px; }
  .card-icon svg { width: 19px; height: 19px; }
  .card-title { font-size: 14.5px; }
  .card-toggle { width: 44px; }

  .yt-block { flex-direction: column; align-items: flex-start; gap: 16px; }
  .yt-cta   { width: 100%; justify-content: center; }

  footer { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 360px) {
  .stat-number { font-size: 17px; }
  .stat-suffix { font-size: 11px; }
  .stat-label  { font-size: 7px; }
}
