/* ==========================================================================
   QAXpert — components.css
   Botones, cards, badges, nav, forms, acordeones
   ========================================================================== */

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-pill);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(1, 201, 110, 0.3);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1, 201, 110, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-green);
}

.btn-ghost:hover {
  background: var(--brand-light);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-lg);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}

.btn-block {
  width: 100%;
}

/* === BADGES / PILLS === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 16px;
  font-weight: 700;
  font-size: var(--text-xs);
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.badge-brand {
  background: var(--brand-light);
  color: var(--brand-green);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.badge-popular {
  background: var(--brand-green);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}

/* === CARDS === */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-brand);
}

.card-feature {
  text-align: center;
}

.card-feature .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto var(--space-4);
}

/* === GRID === */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === NAV / HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-weight: 900;
  font-size: 24px;
  color: var(--brand-dark);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo .logo-x {
  color: var(--brand-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--text-base);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* === DROPDOWN NAV === */
.nav-has-dropdown {
  position: relative;
}
.nav-has-dropdown > a {
  cursor: pointer;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  list-style: none;
}
.nav-has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}
.nav-dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown li a:hover,
.nav-dropdown li a.active {
  background: var(--brand-light);
  color: var(--brand-green);
}
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    margin-top: 4px;
    min-width: auto;
  }
  .nav-dropdown::before { display: none; }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* === MENÚ HAMBURGUESA MOBILE === */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-primary);
  cursor: pointer;
}

/* === SELECTOR PAÍS === */
.country-selector {
  position: relative;
}

.country-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--space-2);
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: var(--space-2);
  display: none;
  z-index: 200;
}

.country-selector.open .country-dropdown {
  display: block;
}

.country-dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease);
}

.country-dropdown a:hover {
  background: var(--bg-soft);
}

/* === STATS === */
.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat .num {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--brand-dark);
}

.stat .label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* === PLANES CARDS === */
.plan-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border: 2px solid var(--brand-green);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(1.02);
}

.plan-card.featured::before {
  content: '★ EL MÁS ELEGIDO';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-green);
  color: #fff;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.plan-card .plan-icon {
  font-size: 44px;
  margin-bottom: var(--space-3);
}

.plan-card .plan-name {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.plan-card .plan-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.plan-card .plan-price {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.plan-card .plan-price .currency {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
}

.plan-card .plan-duration {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.plan-card .plan-features {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  flex: 1;
  line-height: 2.1;
}

.plan-card .plan-features .yes {
  color: var(--text-secondary);
}

.plan-card .plan-features .no {
  color: var(--text-muted);
  opacity: 0.6;
}

.plan-card .plan-features .highlight {
  color: var(--brand-green);
  font-weight: 600;
}

/* === TESTIMONIOS === */
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--brand-green);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.testimonial-card .quote {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.testimonial-card .author {
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.testimonial-card .role {
  font-size: var(--text-xs);
  color: var(--brand-green);
  font-weight: 600;
}

/* === METHOD CARDS (metodología) === */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.method-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.method-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.method-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-card h4 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.method-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* === TESTIMONIAL LIST (reemplaza carrusel) === */
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.testimonial-list .testimonial-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--duration) var(--ease);
}

.testimonial-list .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* === UTILIDADES === */
.hide-mobile { }

/* === FORMULARIOS === */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: var(--shadow-glow);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* === ACORDEÓN FAQ (CSS-only con details/summary) === */
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-5) var(--space-6);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--brand-green);
  font-weight: 800;
  transition: transform var(--duration) var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  background: var(--brand-black);
  color: var(--text-muted);
  padding: var(--space-12) 0 var(--space-6);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.site-footer .footer-brand .logo {
  color: var(--brand-green);
  margin-bottom: var(--space-3);
}

.site-footer .footer-brand p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.site-footer .footer-contact {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  line-height: 1.8;
  opacity: 0.85;
}

.site-footer .footer-contact a {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  margin-right: var(--space-3);
  transition: color var(--duration) var(--ease);
}

.site-footer .footer-contact a:hover {
  color: var(--brand-green);
}

.site-footer h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer .footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.site-footer .footer-links a:hover {
  color: var(--brand-green);
}

.site-footer .footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-6) auto 0;
  padding: var(--space-4) var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* === SECCIÓN DARK (mentores/empresas) === */
.section-dark {
  background: var(--brand-dark);
  color: var(--brand-light);
  padding: var(--space-20) 0;
  text-align: center;
}

.section-dark h2 {
  color: #fff;
}

.section-dark p {
  color: var(--brand-light);
  opacity: 0.9;
}

.section-dark .company-tags {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.section-dark .company-tags span {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-light);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
}

/* === TRUST STRIP === */
.trust-strip {
  background: var(--bg-white);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}

.trust-strip .trust-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.trust-strip .trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--text-muted);
  opacity: 0.75;
}

.trust-strip .trust-logos .sep {
  color: var(--border-soft);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: var(--space-8); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: var(--space-4) var(--space-6);
    gap: var(--space-4);
    transform: translateY(-200%);
    transition: transform var(--duration) var(--ease);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { transform: translateY(0); }
  .nav-cta { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Testimonios mobile: 2 cols → scroll o stack */
  .testimonial-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .testimonial-list .testimonial-card { padding: 18px; }
  .testimonial-list .quote { font-size: var(--text-xs); line-height: 1.5; }

  /* Ocultar elementos verbose en mobile */
  .hide-mobile { display: none; }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
  .section { padding: var(--space-12) 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .stats-row { gap: var(--space-6); }
  .stat .num { font-size: var(--text-2xl); }

  .btn-lg { padding: 16px 28px; font-size: var(--text-base); }

  /* Testimonios 1 col */
  .testimonial-list { grid-template-columns: 1fr; }

  /* Metodología mobile */
  .method-grid { grid-template-columns: 1fr; gap: 16px; }
  .method-card { padding: 24px 20px; gap: 14px; }
  .method-icon { width: 44px; height: 44px; }
  .method-card h4 { font-size: var(--text-base); }
}

/* === STACK SECTION (componente) === */
.stack-section {
  background: linear-gradient(135deg, #163321, #0a1f14);
  padding: 80px 0;
  color: #fff;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 48px auto 0;
}
.stack-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green);
}
.stack-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(1,201,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-green);
}
.stack-card h3 {
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 8px;
}
.stack-card .stack-lang {
  display: inline-block;
  background: rgba(1,201,110,0.2);
  color: var(--brand-green);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: 12px;
}
.stack-card p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.stack-card ul {
  list-style: none;
  padding: 0;
  margin-top: 16px;
  text-align: left;
}
.stack-card ul li {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stack-card ul li::before {
  content: '\2192 ';
  color: var(--brand-green);
  font-weight: 700;
}

/* === QRE SECTION (componente) === */
.qre-section {
  background: linear-gradient(135deg, #163321, #0a1f14);
  padding: 80px 0;
  color: #fff;
}
.qre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 48px auto 0;
}
.qre-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px;
}
.qre-card h4 {
  color: var(--brand-green);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 8px;
}
.qre-card p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* === INFO BLOCKS (componente) === */
.info-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.info-block {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.info-block h4 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.info-block p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === RESPONSIVE COMPONENTES === */
@media (max-width: 768px) {
  .stack-grid { grid-template-columns: 1fr; max-width: 400px; }
  .qre-grid { grid-template-columns: 1fr; }
  .info-blocks { grid-template-columns: 1fr; }
}


