/*
Theme Name:  Ruta Cloud
Theme URI:   https://rutacloud.com
Author:      Ruta Cloud
Description: Marketing & Technology Agency — Miami. Custom theme v4.
Version:     4.0.0
License:     Proprietary
Text Domain: rutacloud
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS — v4 (Manual de Marca 2026)
═══════════════════════════════════════════ */
:root {
  /* Brand */
  --navy:              #092739;
  --navy-light:        #0d3349;
  --navy-deep:         #071e2e;
  --blue:              #527f95;
  --blue-soft:         #6a9bb3;
  --blue-pale:         #e8f0f5;
  --white:             #ffffff;

  /* Light-side grays */
  --gray-bg:           #f7f8fa;
  --gray-100:          #f0f2f5;
  --gray-200:          #e2e5ea;
  --gray-400:          #9ca3af;
  --gray-600:          #4b5563;
  --gray-800:          #1f2937;

  /* Semantic */
  --text-on-dark:      rgba(255,255,255,0.90);
  --text-on-dark-muted:rgba(255,255,255,0.60);
  --text-on-light:     #1a2e3d;
  --text-on-light-muted:#4b6172;
  --line-dark:         rgba(255,255,255,0.10);
  --line-light:        rgba(9,39,57,0.10);

  /* Typography */
  --font-head: 'Parkinsans', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  /* ADA focus ring */
  --focus-ring: 0 0 0 3px rgba(82,127,149,0.5);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ═══════════════════════════════════════════
   ADA
═══════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sec-dark  { background: var(--navy);   color: var(--text-on-dark); }
.sec-light { background: var(--white);  color: var(--text-on-light); }
.sec-gray  { background: var(--gray-bg); color: var(--text-on-light); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.kicker::before { content: ''; width: 18px; height: 1.5px; background: currentColor; }
.sec-light .kicker, .sec-gray .kicker { color: var(--blue); }
.sec-dark .kicker  { color: var(--blue-soft); }

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 14px;
}
.sec-light .sec-title, .sec-gray .sec-title { color: var(--navy); }
.sec-dark .sec-title  { color: var(--white); }
.sec-title .accent    { color: var(--blue); }

.sec-desc {
  font-size: 16px;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.75;
}
.sec-light .sec-desc, .sec-gray .sec-desc { color: var(--text-on-light-muted); }
.sec-dark .sec-desc   { color: var(--text-on-dark-muted); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  min-height: 48px;
}
.btn-primary         { background: var(--blue); color: var(--white); }
.btn-primary:hover   { background: var(--blue-soft); transform: translateY(-1px); color: var(--white); }
.btn-outline-light   { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.25); }
.btn-outline-light:hover { border-color: var(--blue-soft); color: var(--blue-soft); }
.btn-outline-dark    { background: transparent; color: var(--navy); border: 1.5px solid var(--line-light); }
.btn-outline-dark:hover  { border-color: var(--blue); color: var(--blue); }

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9,39,57,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}
.nav-logo-img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--white); }
.nav-cta-link {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
}
.nav-cta-link:hover { background: var(--blue-soft) !important; }
.nav-lang-switch {
  display: flex;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.nav-lang-switch a {
  padding: 5px 10px !important;
  font-size: 11px !important;
  letter-spacing: 0.04em !important;
  color: rgba(255,255,255,0.85) !important;
}
.nav-lang-switch a[aria-current="page"],
.nav-lang-switch a.active {
  background: rgba(82,127,149,0.25) !important;
  color: var(--blue-soft) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
}

/* ═══════════════════════════════════════════
   HERO — DARK
═══════════════════════════════════════════ */
.hero {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -200px; right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,127,149,0.10) 0%, transparent 65%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 24px;
}
.hero-kicker::before { content: ''; width: 20px; height: 1.5px; background: var(--blue); }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1 .accent { color: var(--blue-soft); }
.hero-desc {
  font-size: 17px;
  color: var(--text-on-dark-muted);
  font-weight: 300;
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-dark);
  border-radius: 16px;
  overflow: hidden;
}
.stat-card {
  background: var(--navy-light);
  padding: 28px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--blue-soft); font-size: 22px; }
.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats  { max-width: 420px; }
}

/* ═══════════════════════════════════════════
   TRUST — WHITE
═══════════════════════════════════════════ */
.trust {
  background: var(--white);
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ═══════════════════════════════════════════
   SERVICES — LIGHT
═══════════════════════════════════════════ */
.services { padding: 88px 0; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 26px;
  transition: all 0.3s;
  position: relative;
}
.svc-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(9,39,57,0.08);
  transform: translateY(-2px);
}
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  border-radius: 12px 12px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 16px;
}
.svc-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.svc-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.svc-desc {
  font-size: 14px;
  color: var(--text-on-light-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 16px;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.svc-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
}
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) { .svc-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   CASES — DARK
═══════════════════════════════════════════ */
.cases { padding: 88px 0; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.case-card {
  background: var(--navy-light);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  border-color: rgba(82,127,149,0.3);
}
.case-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-v-pronto  { background: linear-gradient(135deg, #0f3460, #1a5276); }
.case-v-myenvio { background: linear-gradient(135deg, #b8450a, #d4680e); }
.case-v-corte   { background: linear-gradient(135deg, #1a1714, #3d3832); }
.case-brand {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: white;
  text-align: center;
}
.case-brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 6px;
}
.case-body  { padding: 24px; }
.case-ind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 8px;
}
.case-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 10px;
}
.case-desc {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 16px;
}
.case-stats  { display: flex; gap: 20px; }
.case-stat-n {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-soft);
  line-height: 1;
}
.case-stat-l {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: 3px;
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; max-width: 480px; } }

/* ═══════════════════════════════════════════
   APPROACH — LIGHT GRAY
═══════════════════════════════════════════ */
.approach { padding: 88px 0; }
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step-n {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  opacity: 0.35;
  line-height: 1;
}
.step-t {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}
.step-d {
  font-size: 14px;
  color: var(--text-on-light-muted);
  font-weight: 300;
  line-height: 1.65;
}
.stack-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px;
}
.stack-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.stack-item:last-child { border-bottom: none; }
.stack-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.stack-text { font-size: 14px; color: var(--navy); flex: 1; }
.stack-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--blue-pale);
  color: var(--blue);
}
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   AI — DARK
═══════════════════════════════════════════ */
.ai-sec {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.ai-sec::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,127,149,0.08) 0%, transparent 60%);
}
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: 48px;
}
.ai-feat {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.ai-feat:hover { border-color: rgba(82,127,149,0.3); }
.ai-feat-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.ai-feat-t {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.ai-feat-d { font-size: 13px; color: var(--text-on-dark-muted); font-weight: 300; line-height: 1.6; }
.ai-demo {
  background: var(--navy-deep);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 24px;
}
.ai-chat { display: flex; flex-direction: column; gap: 12px; }
.ai-msg {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.ai-msg-u {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
  border-bottom-right-radius: 3px;
  font-weight: 500;
}
.ai-msg-a {
  align-self: flex-start;
  background: var(--navy-light);
  color: var(--text-on-dark);
  border: 1px solid var(--line-dark);
  border-bottom-left-radius: 3px;
  font-weight: 300;
}
.ai-msg-a .hl { color: var(--blue-soft); font-weight: 600; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   CTA — LIGHT
═══════════════════════════════════════════ */
.cta-sec {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--gray-200);
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5.5vw, 50px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-title .accent { color: var(--blue); }
.cta-desc {
  font-size: 17px;
  color: var(--text-on-light-muted);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.75;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════
   FOOTER — DARK
═══════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 56px 0 36px;
  border-top: 1px solid var(--line-dark);
}
.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo-img { height: 40px; width: auto; margin-bottom: 12px; }
.ft-desc {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 260px;
}
.ft-col-title {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 14px;
}
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ft-links a {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.ft-links a:hover { color: var(--white); }
.ft-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ft-copy { font-size: 12px; color: var(--text-on-dark-muted); }
.ft-socials { display: flex; gap: 16px; }
.ft-socials a {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 4px;
}
.ft-socials a:hover { color: var(--blue-soft); }

@media (max-width: 768px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.hero-inner > *:first-child { animation: fadeUp 0.7s ease both; }
.hero-inner > *:last-child  { animation: fadeUp 0.7s ease 0.15s both; }
