/* ===== Navbar — Retro Terminal ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(13, 2, 8, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.nav-logo img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
}

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

.nav-links a {
  color: #008F11;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition), text-shadow var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #00FF41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.nav-links a::before {
  content: '> ';
  color: #008F11;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #00FF41;
  box-shadow: 0 0 8px #00FF41;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0;
  padding: 4px;
}

.lang-switch a {
  padding: 4px 12px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #008F11;
  transition: all var(--transition);
}

.lang-switch a.active {
  background: rgba(0, 255, 65, 0.15);
  color: #00FF41;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #00FF41;
  border-radius: 0;
  transition: all var(--transition);
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 2, 8, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #00FF41;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ===== Buttons — Terminal Command Style ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 0;
  font-family: var(--font-mono) !important;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: transparent;
  color: #00FF41;
  border: 2px solid #00FF41;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.btn-primary:hover {
  background: rgba(0, 255, 65, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.35);
  color: #00FF41;
}

.btn-outline {
  background: transparent;
  color: #00CC33;
  border: 1px solid rgba(0, 255, 65, 0.3);
}

.btn-outline:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: #00FF41;
  color: #00FF41;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-whatsapp {
  background: transparent;
  color: #00FF41;
  border: 2px solid #00FF41;
}

.btn-whatsapp:hover {
  background: rgba(0, 255, 65, 0.1);
  color: #00FF41;
  transform: translateY(-2px);
}

/* ===== Cards — Terminal Panels ===== */

.card {
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 0;
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: #00FF41;
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.12);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-icon img {
  width: 40px;
  height: 40px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 255, 65, 0.05);
  color: #00FF41;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== Badge — Terminal Label ===== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00FF41;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00FF41;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px #00FF41;
}

/* ===== Forms — Terminal Input ===== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #00CC33;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 255, 65, 0.02);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 0;
  color: #00FF41;
  font-family: var(--font-mono) !important;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00FF41;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), inset 0 0 10px rgba(0, 255, 65, 0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #008F11;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FF41' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 40px;
}

[dir="ltr"] .form-group select {
  background-position: right 16px center;
  padding-left: 18px;
  padding-right: 40px;
}

.form-error {
  color: #FF3333;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #FF3333;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  text-align: center;
  padding: 40px;
  display: none;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  color: #00FF41;
  margin-bottom: 12px;
}

/* ===== FAQ Accordion — Terminal ===== */

.faq-item {
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: #00FF41;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: start;
  font-family: var(--font-mono) !important;
  font-size: 1rem;
  font-weight: 600;
  color: #00FF41;
  gap: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--transition);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: #00FF41;
  border-radius: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: #00CC33;
  line-height: 1.8;
}

/* ===== Theme Toggle — Terminal Style ===== */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.2);
  cursor: pointer;
  transition: all var(--transition);
  color: #008F11;
  padding: 0;
}

.theme-toggle:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: #00FF41;
  color: #00FF41;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s ease;
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

/* Light mode (default): show sun, hide moon */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Logo styling */
.nav-logo img,
.footer-brand img {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}
