/* ==========================================================================
   Beyond Trading Academy — estilos base
   Paleta: negro #000000 · blanco #F9F9F9 · turquesa #6AB2AD
   Tipografía: Bebas Neue (títulos) + Archivo (cuerpo de texto), Google Fonts
   ========================================================================== */

:root {
  --navy: #000000;
  --light: #F9F9F9;
  --turquoise: #4E938E;
  --white: #FFFFFF;
  --black: #000000;

  --font: 'Archivo', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;

  --section-padding-y: 40px;
  --container-max: 1120px;
  --container-pad: 24px;

  --radius: 4px;
}

@media (min-width: 768px) {
  :root {
    --section-padding-y: 64px;
  }
}

/* ---- Reset básico ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--black);
  background: var(--light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---- Tipografía ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.4rem;
}

p {
  font-weight: 300;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 12px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head p {
  font-weight: 300;
}

.placeholder {
  opacity: 0.55;
  font-style: italic;
}

/* ---- Secciones: fondo claro / oscuro ---- */
section {
  padding: var(--section-padding-y) 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--dark .eyebrow {
  color: var(--turquoise);
}

.section--light {
  background: var(--light);
  color: var(--black);
}

.divider {
  border: none;
  border-top: 2px solid var(--turquoise);
  width: 64px;
  margin: 24px auto;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--turquoise);
  color: var(--navy);
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--turquoise);
  color: var(--turquoise);
}

.btn--outline:hover {
  background: var(--turquoise);
  color: var(--navy);
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   Pop-up
   ========================================================================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 21, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.popup-overlay[hidden] {
  display: none;
}

.popup {
  position: relative;
  background: var(--navy);
  color: var(--white);
  max-width: 420px;
  width: 100%;
  padding: 48px 32px 40px;
  border-radius: 24px;
  text-align: center;
  border-top: 4px solid var(--turquoise);
  border-bottom: 4px solid var(--turquoise);
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
}

.popup h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.popup p {
  margin-bottom: 24px;
  font-weight: 300;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 0;
}

.site-header .container {
  max-width: 1320px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 92px;
  height: 92px;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 2.7rem;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }
}

.site-nav a:hover {
  color: var(--turquoise);
}

/* Verde de WhatsApp real: excepción puntual pedida por el cliente, no usar en otros botones. */
.header-whatsapp {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

.header-whatsapp svg {
  width: 34px;
  height: 34px;
}

.header-whatsapp:hover {
  opacity: 0.85;
}

.logo-word span {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--turquoise);
  margin-top: 2px;
}

/* ==========================================================================
   1. Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--white);
  padding-top: 90px;
}

.hero.has-photo {
  background-image: url('../assets/img/hero-photo.jpg');
  background-size: cover;
  background-position: center;
}

.hero.has-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(31,38,45,0.7);
}

.hero__bg-icon {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 640px;
  max-width: 85vw;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .accent {
  color: var(--turquoise);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
}

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

/* ==========================================================================
   2. Problema
   ========================================================================== */

.problem .container {
  max-width: 760px;
  text-align: center;
}

/* ==========================================================================
   3. Programa Conquistador
   ========================================================================== */

.program-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .program-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }
}

.program-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.program-item__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ==========================================================================
   4. Quiénes somos
   ========================================================================== */

#quienes-somos {
  padding-top: 24px;
}

@media (min-width: 768px) {
  #quienes-somos {
    padding-top: 36px;
  }
}

.founders {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .founders {
    grid-template-columns: 1fr 1fr;
  }
}

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

.founder-photo {
  aspect-ratio: 3 / 4;
  width: 25%;
  min-width: 110px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(0,0,0,0.04);
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: rgba(0,0,0,0.45);
  font-size: 0.85rem;
}

.founder-card h3 {
  color: var(--turquoise);
  margin-bottom: 4px;
}

/* ==========================================================================
   5. Partners
   ========================================================================== */

.partners .container {
  text-align: center;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 32px;
}

.partner-logo {
  width: 160px;
  height: 72px;
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  padding: 8px;
}

/* ==========================================================================
   5b. Qué vas a lograr
   ========================================================================== */

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 32px;
}

@media (min-width: 640px) {
  .outcomes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .outcomes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.outcome-item {
  text-align: center;
}

.outcome-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  margin-bottom: 16px;
}

.outcome-item__icon svg {
  width: 24px;
  height: 24px;
}

.outcome-item h3 {
  margin-bottom: 8px;
}

/* ==========================================================================
   6. Testimonios
   ========================================================================== */

.testimonials-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
}

.testimonials-track::-webkit-scrollbar {
  height: 6px;
}

.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 82%;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 28px 24px;
}

@media (min-width: 768px) {
  .testimonials-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
  .testimonial-card {
    flex: unset;
  }
}

.testimonial-card__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
}

.testimonial-card__country {
  font-size: 0.85rem;
  opacity: 0.6;
}

.testimonial-card p {
  font-style: italic;
}

/* ==========================================================================
   7. Planes
   ========================================================================== */

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.plan-card--featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: scale(1);
  box-shadow: 0 20px 40px rgba(31,38,45,0.25);
}

@media (min-width: 900px) {
  .plan-card--featured {
    transform: scale(1.05);
    z-index: 1;
  }
}

.plan-card__tag {
  align-self: flex-start;
  background: var(--turquoise);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.plan-card__price {
  margin: 12px 0 4px;
  font-size: 2rem;
  font-weight: 800;
}

.plan-card__price-old {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 0.95rem;
  font-weight: 400;
  display: block;
}

.plan-card p {
  margin-bottom: 24px;
  flex-grow: 1;
}

/* ==========================================================================
   8. Contacto WhatsApp
   ========================================================================== */

.whatsapp-section .container {
  max-width: 640px;
  text-align: center;
}

.whatsapp-section .btn {
  margin-top: 16px;
}

/* ==========================================================================
   9. Para quién es / no es
   ========================================================================== */

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.filter-card {
  padding: 28px;
  border-radius: 8px;
}

.filter-card--yes {
  background: rgba(106, 178, 173, 0.12);
  border: 1px solid var(--turquoise);
}

.filter-card--no {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
}

.filter-card h3 {
  margin-bottom: 16px;
}

.filter-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--turquoise);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  margin-top: 14px;
}

/* ==========================================================================
   11. CTA final
   ========================================================================== */

.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 24px;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.footer {
  padding: 48px 0 32px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-disclaimer {
  font-size: 0.75rem;
  opacity: 0.55;
  max-width: 640px;
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.5;
}
