/*
Theme Name: Yunke
Theme URI: https://yunke.com.pa
Author: Yunke
Author URI: https://yunke.com.pa
Description: Tema personalizado para Yunke - Estudio de Diseño y Desarrollo de Productos Digitales.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yunke
*/

/* ===========================
   YUNKE — Bold / Industrial
   =========================== */

:root {
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-raised: #1a1a1a;
  --text: #ffffff;
  --text-dim: #888888;
  --accent: #FF4D00;
  --accent-hover: #FF6B2B;
  --border: #222222;
  --border-light: #2a2a2a;
  --container: 1240px;
  --header-h: 72px;
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: min(100% - 3rem, var(--container));
  margin: 0 auto;
}

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 36px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 99;
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  padding: 3rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-nav[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--border-light);
  background: transparent;
  color: var(--text);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--text);
}

.btn-header {
  padding: 0.65rem 1.25rem;
  font-size: 0.75rem;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.btn-header:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 0.875rem;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.dot {
  color: inherit;
}

.hero-sub {
  max-width: 480px;
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  opacity: 0.9;
}

/* ===========================
   STATS BAR
   =========================== */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.stat-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ===========================
   SECTIONS — headings use Bebas
   =========================== */
.section {
  padding: 7rem 0;
}

.section-dark {
  background: var(--bg-surface);
}

.section-label {
  margin-bottom: 4rem;
}

.tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ===========================
   SERVICES — horizontal rows
   =========================== */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.service-row:last-child {
  border-bottom: 1px solid var(--border);
}

.service-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
}

.service-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.service-info p {
  max-width: 540px;
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===========================
   PROCESS — grid cards
   =========================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.process-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  margin-left: -1px;
  margin-top: -1px;
  transition: background 0.3s var(--ease);
}

.process-card:hover {
  background: var(--bg-raised);
}

.process-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.process-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===========================
   CTA
   =========================== */
.cta-section {
  padding: 7rem 0 8rem;
  border-top: 1px solid var(--border);
}

.cta-block {
  max-width: 800px;
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.cta-block p {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
}

.cta-actions {
  margin-top: 2.5rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-left .logo { margin-bottom: 0.75rem; }
.footer-left .logo-img { height: 56px; }

.footer-left p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ===========================
   ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-row.reveal:nth-child(2) { transition-delay: 0.06s; }
.service-row.reveal:nth-child(3) { transition-delay: 0.12s; }
.service-row.reveal:nth-child(4) { transition-delay: 0.18s; }

.process-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.process-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.process-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.process-card.reveal:nth-child(5) { transition-delay: 0.32s; }

.stat-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.stat-item.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container { width: min(100% - 2rem, var(--container)); }

  .nav, .header-inner .btn-header { display: none; }
  .menu-toggle { display: flex; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-right {
    order: -1;
  }

  .hero-logo-img {
    max-width: 200px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn { width: 100%; }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.75rem 1rem;
  }

  .stat-item:last-child { border-bottom: none; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .service-num { padding-top: 0; }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 5rem 0; }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 3rem; }
  .section-label h2, .cta-block h2 { font-size: 2.75rem; }
  .stat-num { font-size: 2.5rem; }
}
