/* ─────────────────────────────────────────
   COMPONENTS.CSS — Buttons, Nav, Cards
───────────────────────────────────────── */

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal2), var(--blue));
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,168,150,0.25), 0 2px 8px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,168,150,0.35), 0 4px 12px rgba(0,0,0,0.12);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  white-space: nowrap;
}
.btn-ghost:hover {
  background: var(--bg3);
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.35s ease;
}
nav.scrolled {
  background: rgba(245,245,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--teal); }

/* Logo imagen */
.nav-logo-img {
  height: 34px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease, height 0.35s ease;
}
.nav-logo:hover .nav-logo-img { opacity: 0.82; }
nav.scrolled .nav-logo-img { height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245,245,247,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--teal2); }

/* ─── SERVICE CARDS ─── */
.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,168,150,0.04), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal2), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 4px 20px rgba(0,168,150,0.08);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(99,235,218,0.12), rgba(59,130,246,0.08));
  border: 1px solid rgba(99,235,218,0.18);
  font-size: 20px;
  color: var(--teal);
}
.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.service-card > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  background: rgba(99,235,218,0.07);
  border: 1px solid rgba(99,235,218,0.14);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

/* ─── TESTIMONIAL CARDS ─── */
.testi-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: all 0.3s ease;
}
.testi-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.09);
}
.testi-stars {
  color: var(--teal);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testi-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--teal3), var(--blue2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-url { font-size: 12px; color: var(--teal); }

/* ─── ANIMATIONS ─── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.55); }
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(28px, -36px) scale(1.04); }
  66%       { transform: translate(-18px, 18px) scale(0.96); }
}
@keyframes rotate-ring {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes pulse-center {
  0%, 100% { box-shadow: 0 0 55px rgba(99,235,218,0.38), 0 0 110px rgba(99,235,218,0.13); }
  50%       { box-shadow: 0 0 75px rgba(99,235,218,0.56), 0 0 150px rgba(99,235,218,0.22); }
}
@keyframes float-node {
  0%, 100% { filter: brightness(1); }
  50%       { filter: brightness(1.35); }
}
@keyframes grow-bar {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes cta-border {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 1; }
}
