:root {
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Nothing You Could Do", cursive;

  --bg: #0e1013;
  --bg-soft: #13161a;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.08);
  --surface-3: rgba(255,255,255,0.12);
  --text: #f6f2eb;
  --muted: #c7c0b3;
  --subtle: #9c9588;
  --line: rgba(255,255,255,0.1);
  --accent: #e2b56d;
  --accent-2: #8cc9bf;
  --shadow: 0 28px 70px rgba(0,0,0,0.25);
  --shadow-soft: 0 16px 34px rgba(0,0,0,0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shell: 1180px;
}

:root[data-theme="light"] {
  --bg: #f7f2ea;
  --bg-soft: #fbf7f1;
  --surface: rgba(255,255,255,0.7);
  --surface-2: rgba(255,255,255,0.92);
  --surface-3: rgba(243,234,223,0.9);
  --text: #17181c;
  --muted: #5c5a55;
  --subtle: #817b72;
  --line: rgba(23,24,28,0.1);
  --shadow: 0 28px 60px rgba(85,67,46,0.12);
  --shadow-soft: 0 14px 28px rgba(85,67,46,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(226,181,109,0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(140,201,191,0.12), transparent 28%),
    var(--bg);
  line-height: 1.65;
  transition: background .35s var(--ease), color .35s var(--ease);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: #111; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.shell { width: min(var(--shell), calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-soft { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02), transparent); }
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; width: 0%; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-header {
  position: sticky; top: 16px; z-index: 80; margin-top: 16px;
}
.header-inner {
  min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 12px 14px 12px 22px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--bg-soft) 74%, transparent); backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: var(--shadow-soft);
}
.brand { display: inline-flex; align-items: center; min-width: max-content; }
.brand-signature-wrap {
  position: relative; display: inline-flex; align-items: center; overflow: visible; padding-right: 16px;
}
.brand-signature {
  position: relative; display: inline-block; font-family: var(--font-script); white-space: nowrap;
  font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.02; color: color-mix(in srgb, var(--text) 24%, transparent);
  letter-spacing: .012em; word-spacing: -.16em; text-rendering: geometricPrecision;
}
.brand-signature::after {
  content: attr(data-text); position: absolute; inset: 0 auto 0 0; width: 0%; overflow: hidden; white-space: nowrap;
  color: var(--text); will-change: width, opacity; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.05));
  animation: sign-loop 6.6s cubic-bezier(.68,-0.02,.27,1) infinite;
}
.brand-signature::before {
  content: ""; position: absolute; left: .1em; right: .45em; bottom: -.12em; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 75%, var(--accent-2)), transparent);
  transform-origin: left center; transform: scaleX(0); opacity: 0;
  animation: underline-loop 6.6s ease-in-out infinite;
}
.brand-pen {
  position: absolute; top: 58%; left: -2px; width: 16px; height: 8px; border-radius: 999px 999px 999px 2px;
  background: linear-gradient(135deg, var(--accent), #f6dfb8); transform: translate(-6px,-50%) rotate(-16deg) scale(.8);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 12%, transparent), 0 8px 18px rgba(0,0,0,.12);
  opacity: 0; animation: pen-loop 6.6s cubic-bezier(.68,-0.02,.27,1) infinite;
}
@keyframes sign-loop {
  0%, 6% { width: 0%; opacity: 1; }
  28%, 74% { width: 100%; opacity: 1; }
  84% { width: 100%; opacity: 0; }
  100% { width: 0%; opacity: 0; }
}
@keyframes underline-loop {
  0%, 16% { transform: scaleX(0); opacity: 0; }
  26%, 74% { transform: scaleX(1); opacity: .7; }
  84%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes pen-loop {
  0%, 6% { opacity: 0; transform: translate(-6px,-50%) rotate(-16deg) scale(.82); }
  10% { opacity: .95; }
  28% { opacity: .95; transform: translate(15.6ch,-50%) rotate(-8deg) scale(1); }
  74% { opacity: .5; transform: translate(15.6ch,-50%) rotate(-8deg) scale(1); }
  84%, 100% { opacity: 0; transform: translate(15.6ch,-50%) rotate(-8deg) scale(.92); }
}

.main-nav {
  justify-self: center; display: flex; align-items: center; gap: 4px; padding: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}
.main-nav a {
  padding: 10px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--muted);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.main-nav a:hover, .main-nav a.active { background: var(--surface-3); color: var(--text); }

.header-actions { display:flex; align-items:center; gap:10px; }
.theme-switch {
  display:flex; align-items:center; gap:12px; padding: 8px 12px 8px 10px; min-height: 52px;
  border: 1px solid var(--line); border-radius: 999px; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), var(--shadow-soft); cursor:pointer;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.theme-switch:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.theme-switch-ui { position: relative; width: 62px; height: 32px; display: inline-block; }
.theme-track {
  position:absolute; inset:0; border-radius:999px; background: linear-gradient(90deg, rgba(226,181,109,0.26), rgba(140,201,191,0.22));
  border:1px solid color-mix(in srgb, var(--line) 92%, transparent);
}
.theme-thumb {
  position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), #f3d7aa); color:#191919; box-shadow: 0 8px 16px rgba(0,0,0,0.18);
  transition: transform .28s var(--ease), background .28s var(--ease), color .28s var(--ease);
}
.thumb-sun, .thumb-moon { position:absolute; font-size: 14px; line-height:1; transition: opacity .2s ease; }
.thumb-moon { opacity:0; }
.theme-switch-copy { font-size:.82rem; color: var(--muted); font-weight:700; white-space:nowrap; }
.theme-switch-copy strong { color: var(--text); text-transform: capitalize; }
:root[data-theme="dark"] .theme-thumb { transform: translateX(30px); background: linear-gradient(135deg, var(--accent-2), #dbeeea); color:#102322; }
:root[data-theme="dark"] .thumb-sun { opacity:0; }
:root[data-theme="dark"] .thumb-moon { opacity:1; }

.menu-toggle {
  display:none; width:48px; height:48px; border:1px solid var(--line); border-radius:999px; background: var(--surface-2); cursor:pointer;
  padding: 13px; gap:4px; place-items:center;
}
.menu-toggle span:not(.sr-only) {
  display:block; width:18px; height:2px; border-radius:999px; background: currentColor; transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity:0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  min-height: calc(100vh - 102px); display:grid; align-items:center; padding-top: 86px;
}
.hero-grid {
  display:grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr); gap: clamp(34px, 7vw, 88px); align-items:center;
}
.eyebrow, .section-tag {
  display:inline-flex; align-items:center; gap:9px; width: fit-content; padding:8px 12px; border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent); text-transform: uppercase; letter-spacing: .03em; font-size: .78rem; font-weight: 800;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #67d391; box-shadow: 0 0 0 6px rgba(103,211,145,0.12);
}

h1,h2,h3,p { margin-top:0; }
h1 {
  margin: 18px 0 18px; font-size: clamp(2.9rem, 6.5vw, 5.8rem); line-height: .94; letter-spacing: -.075em; font-weight: 800; max-width: 760px;
}
h2 {
  margin-bottom: 14px; font-size: clamp(2.1rem, 4.7vw, 4.3rem); line-height: .98; letter-spacing: -.075em; font-weight: 800;
}
h3 {
  margin-bottom: 8px; font-size: 1.24rem; line-height: 1.2; letter-spacing: -.04em;
}
.hero-lead, .lead-text { font-size: clamp(1.05rem, 1.7vw, 1.24rem); line-height: 1.82; color: var(--muted); }
.hero-lead { max-width: 560px; margin-bottom: 24px; }
.hero-actions, .contact-actions { display:flex; flex-wrap:wrap; gap: 12px; align-items:center; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding: 13px 18px; border-radius:999px; border:1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-size: .92rem; font-weight:800; letter-spacing: -.02em; cursor:pointer;
  box-shadow: var(--shadow-soft); transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 18px 36px rgba(0,0,0,0.14); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-secondary { background: var(--surface-2); }
.btn-ghost { background: transparent; }

.hero-highlights {
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 28px; max-width: 720px;
}
.hero-highlights article, .strength-card, .info-card, .timeline-item, .contact-card {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.hero-highlights article { padding: 16px 17px; }
.hero-highlights strong { display:block; font-size: 1.05rem; line-height:1.2; letter-spacing: -.03em; }
.hero-highlights span { display:block; margin-top:4px; color: var(--subtle); font-size:.82rem; font-weight:700; line-height:1.45; }

.hero-card {
  padding: 16px; border-radius: calc(var(--radius-xl) + 6px); border:1px solid var(--line); background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow);
}
.hero-photo-frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 4.5; border-radius: calc(var(--radius-xl) - 4px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent));
}
.hero-photo-frame img { width:100%; height:100%; object-fit: cover; object-position: center 18%; }
.hero-card-copy { padding: 18px 8px 4px; }
.hero-card-copy h2 { font-size: 1.7rem; margin: 8px 0 6px; }
.hero-card-copy p { color: var(--muted); margin:0; }
.mini-label { color: var(--accent); font-size: .77rem; text-transform: uppercase; letter-spacing: .08em; font-weight:800; }

.section-grid { display:grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items:start; }
.section-top { max-width: 760px; margin-bottom: 34px; }
.section-top p, .content-stack p { color: var(--muted); }
.pill-list { display:flex; flex-wrap:wrap; gap: 10px; margin-top: 28px; }
.pill-list span, .strength-list span {
  display:inline-flex; align-items:center; min-height: 38px; padding: 9px 13px; border-radius: 999px; border:1px solid var(--line); background: var(--surface-2); font-size: .88rem; font-weight:700;
}
.content-stack p:last-child { margin-bottom: 0; }

.timeline { display:grid; gap: 16px; }
.timeline-item {
  display:grid; grid-template-columns: 62px minmax(0,1fr); gap: 18px; padding: 18px; align-items:start; transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.timeline-item:hover, .strength-card:hover, .info-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); }
.timeline-meta, .meta-inline { color: var(--accent); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.timeline-main p { color: var(--muted); margin-bottom: 0; }
.clean-list { margin: 14px 0 0; padding: 0; list-style: none; display:grid; gap: 8px; }
.clean-list li { position: relative; padding-left: 18px; color: var(--subtle); }
.clean-list li::before { content: ""; position:absolute; left:0; top: .7em; width: 7px; height:7px; border-radius:50%; background: var(--accent); }
.is-muted .timeline-main p { color: var(--subtle); }

.entity-avatar {
  width: 62px; height: 62px; border-radius: 18px; display:grid; place-items:center; color:#fff; font-weight: 800; letter-spacing: -.04em; font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.avatar-teleticket { background: linear-gradient(135deg, #eb4848, #961515); }
.avatar-canales { background: linear-gradient(135deg, #1d1f26, #6b6e79); }
.avatar-killa { background: linear-gradient(135deg, #8a5be7, #3b2674); }
.avatar-sales { background: linear-gradient(135deg, #1da7d7, #0a5570); }
.avatar-isil { background: linear-gradient(135deg, #fb5d2d, #9f2e0c); }
.avatar-esan { background: linear-gradient(135deg, #3467c4, #163261); }

.strength-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.strength-card { padding: 22px; }
.strength-head { display:flex; align-items:flex-start; gap: 14px; margin-bottom: 18px; }
.strength-head h3 { margin-bottom: 4px; }
.strength-head p { margin:0; color: var(--muted); }
.strength-icon {
  width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px; display:grid; place-items:center; font-weight: 900;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, #fff), color-mix(in srgb, var(--accent-2) 60%, #fff)); color:#1d1d1d;
}
.strength-list { display:flex; flex-wrap: wrap; gap: 10px; }
.language-list span {
  display:grid; grid-template-columns: auto 1fr; align-items:center; gap: 12px; min-width: 220px; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent), var(--surface-2));
}
.language-list .flag { font-style: normal; font-size: 1.35rem; line-height: 1; filter: saturate(1.05); }
.language-list .lang-copy { display:grid; gap: 2px; }
.language-list .lang-copy strong { font-size: .95rem; line-height: 1.1; }
.language-list .lang-copy small { color: var(--subtle); font-size: .78rem; font-weight: 700; }
.tool-list span { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 13%, transparent), var(--surface-2)); }

.cards-grid { display:grid; gap: 18px; }
.cards-grid.two-up { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards-grid.three-up { grid-template-columns: repeat(3, minmax(0,1fr)); }
.info-card { padding: 22px; }
.card-head { display:flex; align-items:center; gap: 14px; margin-bottom: 10px; }
.card-head h3 { margin-bottom: 2px; }
.info-card p { margin-bottom: 0; color: var(--muted); }
.cert-pill {
  display:inline-flex; align-items:center; width: fit-content; margin-bottom: 16px; padding: 7px 11px; border-radius:999px; font-size:.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); border:1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.contact-card {
  padding: clamp(24px, 4vw, 34px); display:grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items:center; background: linear-gradient(145deg, var(--surface-2), var(--surface));
}
.contact-card p { color: var(--muted); max-width: 720px; }
.site-footer { padding: 22px 0 30px; }
.footer-inner { display:flex; justify-content:space-between; gap: 14px; color: var(--subtle); font-size: .9rem; }
.footer-inner a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav a { padding-inline: 11px; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .main-nav {
    position: fixed; top: 94px; left: 20px; right: 20px; z-index: 75; display:none; flex-direction: column; align-items: stretch; padding: 12px;
    border-radius: 22px; background: color-mix(in srgb, var(--bg-soft) 92%, transparent); backdrop-filter: blur(18px);
  }
  .main-nav.open { display:flex; }
  .main-nav a { text-align: center; }
  .menu-toggle { display:grid; }
  .header-inner { grid-template-columns: auto auto; }
  .main-nav { justify-self: stretch; grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .shell { width: min(var(--shell), calc(100% - 26px)); }
  .site-header { top: 10px; margin-top: 10px; }
  .header-inner {
    grid-template-columns: 1fr auto auto; min-height: 70px; padding: 10px 10px 10px 16px;
  }
  .brand-signature { font-size: 2rem; word-spacing: -.1em; }
  .brand-pen { display:none; }
  .theme-switch-copy { display:none; }
  .theme-switch { padding-inline: 8px; gap: 0; }
  .hero-highlights, .strength-grid, .cards-grid.two-up, .cards-grid.three-up { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.45rem, 15vw, 4rem); }
  h2 { font-size: clamp(1.85rem, 9vw, 2.8rem); }
  .hero { padding-top: 56px; }
  .timeline-item { grid-template-columns: 1fr; }
  .entity-avatar { width: 54px; height: 54px; border-radius: 16px; }
  .hero-actions, .contact-actions, .footer-inner { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .footer-inner { text-align:center; }
}
