/* ============================================================
   YAXKIN TECH — STYLESHEET
   Design: Maya-tech aesthetic. Dark teal base, jade accents,
   gold highlights. Editorial layout, not generic.
   ============================================================ */

:root {
  --dark: #0A1628;
  --dark-teal: #0D2137;
  --jade: #1A6B4F;
  --jade-light: #2ECC71;
  --gold: #C9A84C;
  --gold-soft: #D4A843;
  --cream: #F0F7F4;
  --white: #FFFFFF;
  --gray-100: #F5F7FA;
  --gray-200: #E8ECF1;
  --gray-400: #94A3B8;
  --gray-600: #64748B;
  --gray-800: #1E293B;
  --text: #1A1A2E;
  --text-light: #64748B;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 48px rgba(10, 22, 40, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 107, 79, 0.15);
  transition: var(--transition);
}

.nav__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}

.nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.nav__logo-icon {
  color: var(--jade-light); font-size: 20px;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 4px rgba(46, 204, 113, 0.3)); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(46, 204, 113, 0.6)); }
}

.nav__logo-text {
  font-family: var(--font-body); font-weight: 700; font-size: 18px;
  letter-spacing: 3px; color: var(--white);
}

.nav__logo-accent { color: var(--gray-400); font-weight: 400; }

.nav__links {
  display: flex; align-items: center; gap: 32px;
}

.nav__links a {
  text-decoration: none; color: var(--gray-400);
  font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  transition: var(--transition); position: relative;
}

.nav__links a:hover { color: var(--white); }

.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--jade-light);
  transition: var(--transition);
}

.nav__links a:hover::after { width: 100%; }

.nav__cta {
  background: var(--jade) !important; color: var(--white) !important;
  padding: 10px 20px !important; border-radius: 8px;
  font-weight: 600 !important;
}

.nav__cta:hover { background: var(--jade-light) !important; }
.nav__cta::after { display: none !important; }

.nav__burger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}

.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero__bg { position: absolute; inset: 0; }

.hero__grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(26, 107, 79, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 107, 79, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__glow {
  position: absolute; top: 20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26, 107, 79, 0.15), transparent 70%);
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

.hero__content {
  position: relative; max-width: var(--max-w);
  margin: 0 auto; padding: 0 24px;
}

.hero__tag {
  font-size: 12px; letter-spacing: 4px; color: var(--gold);
  font-weight: 600; margin-bottom: 24px;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.15;
  color: var(--white); margin-bottom: 24px;
  max-width: 800px;
}

.hero__title-accent {
  color: var(--jade-light);
  display: inline;
}

.hero__sub {
  font-size: 1.1rem; color: var(--gray-400);
  max-width: 600px; margin-bottom: 40px;
  line-height: 1.8;
}

.hero__sub strong { color: var(--white); }

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.hero__stats {
  display: flex; gap: 48px; flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero__stat { display: flex; flex-direction: column; }

.hero__stat-num {
  font-family: var(--font-display); font-size: 2.8rem;
  font-weight: 700; color: var(--white);
  line-height: 1;
}

.hero__stat-plus { font-size: 2rem; color: var(--jade-light); font-weight: 700; }

.hero__stat-label {
  font-size: 13px; color: var(--gray-600);
  max-width: 160px; margin-top: 4px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: none;
  transition: var(--transition);
}

.btn--primary {
  background: var(--jade); color: var(--white);
  box-shadow: 0 4px 16px rgba(26, 107, 79, 0.3);
}

.btn--primary:hover {
  background: var(--jade-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 107, 79, 0.4);
}

.btn--ghost {
  background: transparent; color: var(--jade-light);
  border: 1.5px solid rgba(46, 204, 113, 0.3);
}

.btn--ghost:hover {
  border-color: var(--jade-light);
  background: rgba(46, 204, 113, 0.05);
}

.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section-tag {
  font-size: 12px; letter-spacing: 4px; color: var(--jade);
  font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--dark-teal);
  margin-bottom: 16px; line-height: 1.2;
}

.section-sub {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 640px; margin-bottom: 48px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 100px 0; background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--jade), var(--jade-light));
  opacity: 0; transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(26, 107, 79, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-card__icon { font-size: 2rem; margin-bottom: 16px; }

.service-card__title {
  font-weight: 700; font-size: 1.15rem;
  color: var(--dark-teal); margin-bottom: 12px;
}

.service-card__desc {
  font-size: 0.93rem; color: var(--text-light);
  line-height: 1.7; margin-bottom: 16px;
}

.service-card__tags {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
}

.service-card__tags li {
  font-size: 11px; padding: 4px 10px;
  background: var(--cream); color: var(--jade);
  border-radius: 20px; font-weight: 600;
  letter-spacing: 0.5px;
}

.service-card--cta {
  background: var(--dark-teal);
  border-color: transparent;
}

.service-card--cta .service-card__title { color: var(--white); }
.service-card--cta .service-card__desc { color: var(--gray-400); }
.service-card--cta:hover { transform: translateY(-4px); }

/* ============================================================
   WHY US
   ============================================================ */
.why {
  padding: 100px 0;
  background: var(--gray-100);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.why__item { position: relative; }

.why__num {
  font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 700;
  color: rgba(26, 107, 79, 0.08);
  line-height: 1; margin-bottom: -12px;
}

.why__item h3 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--dark-teal); margin-bottom: 8px;
}

.why__item p { font-size: 0.93rem; color: var(--text-light); }

/* ============================================================
   TEAM
   ============================================================ */
.team { padding: 100px 0; background: var(--white); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 32px;
}

.team__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: var(--transition);
}

.team__card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 107, 79, 0.15);
}

.team__photo--placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jade), var(--dark-teal));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 20px;
}

.team__name {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--dark-teal); margin-bottom: 4px;
}

.team__role {
  font-size: 0.85rem; color: var(--jade);
  font-weight: 600; margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.team__bio {
  font-size: 0.93rem; color: var(--text-light);
  margin-bottom: 12px;
}

.team__location {
  font-size: 0.85rem; color: var(--gold);
  font-weight: 600; margin-bottom: 16px;
}

.team__skills {
  display: flex; flex-wrap: wrap; gap: 6px; list-style: none;
}

.team__skills li {
  font-size: 11px; padding: 4px 10px;
  background: var(--cream); color: var(--jade);
  border-radius: 20px; font-weight: 600;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: 100px 0; background: var(--dark); color: var(--white); }
.process .section-tag { color: var(--gold); }
.process .section-title { color: var(--white); }

.process__steps {
  display: flex; align-items: flex-start;
  gap: 0; flex-wrap: wrap; justify-content: center;
}

.process__step {
  flex: 1; min-width: 220px; max-width: 280px;
  text-align: center; padding: 20px;
}

.process__step-num {
  width: 48px; height: 48px;
  border-radius: 50%; border: 2px solid var(--jade);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem; color: var(--jade-light);
  margin-bottom: 16px;
}

.process__step h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px; color: var(--white);
}

.process__step p { font-size: 0.87rem; color: var(--gray-400); }

.process__connector {
  width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--jade), transparent);
  margin-top: 44px; flex-shrink: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 100px 0; background: var(--gray-100); }

.cta-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-box__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--dark-teal);
  margin-bottom: 16px; max-width: 700px;
  margin-left: auto; margin-right: auto;
}

.cta-box__sub {
  font-size: 1.05rem; color: var(--text-light);
  margin-bottom: 32px;
}

.cta-box__actions {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}

.cta-box__locations {
  display: flex; gap: 48px; justify-content: center;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.cta-box__location {
  display: flex; flex-direction: column; gap: 4px;
}

.cta-box__location strong { font-size: 0.95rem; color: var(--dark-teal); }
.cta-box__location span { font-size: 0.85rem; color: var(--text-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark); padding: 48px 0;
  border-top: 1px solid rgba(26, 107, 79, 0.15);
}

.footer__inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}

.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__tagline { font-size: 13px; color: var(--gray-600); margin-left: 16px; }

.footer__links { display: flex; gap: 24px; }
.footer__links a {
  font-size: 13px; color: var(--gray-400);
  text-decoration: none; transition: var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__copy p { font-size: 12px; color: var(--gray-600); }

/* ============================================================
   PAGE TEMPLATE (for casos.html, errores.html)
   ============================================================ */
.page-hero {
  background: var(--dark); padding: 140px 0 60px;
  text-align: center;
}
.page-hero .section-tag { color: var(--gold); }
.page-hero .section-title { color: var(--white); }
.page-hero .section-sub { color: var(--gray-400); margin: 0 auto; }

.page-content { padding: 80px 0; }

.story-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 40px;
  margin-bottom: 32px; transition: var(--transition);
}
.story-card:hover { box-shadow: var(--shadow); }

.story-card__sector {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--jade); text-transform: uppercase; margin-bottom: 8px;
}
.story-card__title {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 700; color: var(--dark-teal); margin-bottom: 12px;
}
.story-card__problem, .story-card__solution, .story-card__result {
  margin-bottom: 12px;
}
.story-card__problem strong, .story-card__solution strong, .story-card__result strong {
  display: block; font-size: 0.8rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 4px;
}
.story-card__problem strong { color: #CC3333; }
.story-card__solution strong { color: var(--jade); }
.story-card__result strong { color: var(--gold); }
.story-card p { font-size: 0.93rem; color: var(--text-light); line-height: 1.7; }

.story-card__metrics {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--gray-200);
  margin-top: 16px;
}
.story-card__metric { text-align: center; }
.story-card__metric-num {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 700; color: var(--jade); display: block;
}
.story-card__metric-label { font-size: 0.75rem; color: var(--text-light); }

.error-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 32px;
  margin-bottom: 24px;
}
.error-card__num {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; color: rgba(201, 168, 76, 0.2);
  float: left; margin-right: 16px; line-height: 1;
}
.error-card h3 { font-size: 1.1rem; color: var(--dark-teal); margin-bottom: 8px; }
.error-card p { font-size: 0.93rem; color: var(--text-light); line-height: 1.7; }
.error-card__fix {
  margin-top: 12px; padding: 12px 16px;
  background: var(--cream); border-radius: 8px;
  font-size: 0.87rem; color: var(--jade);
}
.error-card__fix strong { color: var(--dark-teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav__links { 
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--dark);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 24px;
  }
  .nav__links.active { display: flex; }
  .nav__burger { display: flex; }
  
  .hero__stats { gap: 24px; }
  .services__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .process__steps { flex-direction: column; align-items: center; }
  .process__connector { width: 2px; height: 24px; margin: 0; }
  .cta-box { padding: 40px 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; justify-content: center; }
}

/* ============================================================
   ANIMATIONS (scroll-triggered via JS)
   ============================================================ */
[data-aos] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible {
  opacity: 1; transform: translateY(0);
}
