/* ---------- Base ---------- */

:root {
  --bg: #0a0c0f;
  --bg-alt: #101317;
  --card: #15181d;
  --border: #232830;
  --text: #eef1f5;
  --text-muted: #96a0ad;

  --orange: #e05a00;
  --orange-light: #ff7a1f;
  --red: #e2453d;
  --green: #22b573;
  --yellow: #f5c518;

  --radius: 14px;
  --container: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-orange { color: var(--orange-light); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 14px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red { background: var(--red); }
.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); }
.dot-orange { background: var(--orange); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(224, 90, 0, 0.5);
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(224, 90, 0, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange-light);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(10, 12, 15, 0.9), rgba(10, 12, 15, 0.7));
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-dot { color: var(--orange); }
.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px;
}

.nav-link {
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.active {
  background: var(--orange);
  color: #fff;
}

.header-cta {
  padding: 11px 22px;
  border-radius: 100px;
  border: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.header-cta:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s 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); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 6px;
  max-width: var(--container);
  margin: 12px auto 0;
  padding: 12px 24px 4px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.nav-mobile.open {
  max-height: 400px;
  opacity: 1;
  padding: 12px 24px 20px;
}
.nav-mobile .nav-link {
  padding: 12px 16px;
  border-radius: 12px;
}
.nav-mobile .nav-link.active {
  background: rgba(224, 90, 0, 0.15);
  color: var(--orange-light);
}
.nav-mobile-cta {
  margin-top: 8px;
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  padding: 70px 0 100px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange-light);
}
.hero-stats span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 20px 20px;
}

.gex-chart {
  color: var(--text-muted);
  overflow: visible;
}

.line-support, .line-flip, .line-resistance {
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  opacity: 0;
  animation: draw-line 0.9s ease forwards;
}
.line-support { stroke: var(--red); animation-delay: 0.15s; }
.line-flip { stroke: var(--yellow); animation-delay: 0.35s; }
.line-resistance { stroke: var(--green); animation-delay: 0.55s; }

@keyframes draw-line {
  from { opacity: 0; }
  to { opacity: 0.8; }
}

.price-path {
  stroke: var(--orange-light);
  stroke-width: 2.4;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-path 2.2s 0.5s ease forwards;
  filter: drop-shadow(0 0 6px rgba(255, 122, 31, 0.4));
}
@keyframes draw-path {
  to { stroke-dashoffset: 0; }
}

.price-dot {
  fill: var(--orange-light);
  opacity: 0;
  animation: dot-appear 0.3s 2.4s ease forwards, pulse 1.8s 2.7s ease-in-out infinite;
}
@keyframes dot-appear { to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 8; opacity: 0.5; }
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Section shared ---------- */

section {
  padding: 90px 0;
}

.section-head {
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

/* ---------- Servicios ---------- */

.servicios {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 90, 0, 0.4);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-orange {
  background: rgba(224, 90, 0, 0.12);
  color: var(--orange-light);
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Qué es el Gamma Exposure ---------- */

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 16px;
}
.section-sub em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.regimen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 30px;
}

.regimen-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.regimen-positivo { border-left-color: var(--green); }
.regimen-negativo { border-left-color: var(--red); }

.regimen-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.regimen-positivo .regimen-tag { color: var(--green); }
.regimen-negativo .regimen-tag { color: var(--red); }

.regimen-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.regimen-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.gex-flip-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.94rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.gex-flip-note .dot { margin-top: 6px; }
.gex-flip-note strong { color: var(--text); }

/* ---------- Precio ---------- */

.precio-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}

.precio-monto {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.precio-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--orange-light);
}
.precio-periodo {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.precio-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  text-align: left;
}
.precio-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.precio-cta {
  width: 100%;
  margin-bottom: 14px;
}

.precio-nota {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Sobre mí ---------- */

.sobre-mi-inner {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 50px;
  align-items: center;
}

.sobre-mi-avatar img {
  width: 100%;
  max-width: 220px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
}

.sobre-mi-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.sobre-mi-tag {
  color: var(--orange-light);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.sobre-mi-text {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 22px;
}

.sobre-mi-quote {
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

/* ---------- Contacto ---------- */

.contacto {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contacto-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contacto-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.contacto-info p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 400px;
}

.contacto-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contacto-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contacto-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-row input,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 0.94rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-row.error input,
.form-row.error textarea {
  border-color: var(--red);
}

.form-error {
  font-size: 0.78rem;
  color: var(--red);
  min-height: 14px;
}

.form-submit {
  margin-top: 4px;
}

.form-success {
  display: none;
  font-size: 0.9rem;
  color: var(--green);
  text-align: center;
  padding: 10px;
  background: rgba(34, 181, 115, 0.1);
  border-radius: 10px;
}
.form-success.visible {
  display: block;
}

/* ---------- Footer ---------- */

.footer {
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
  margin-top: 12px;
}

.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-nav .nav-link {
  padding: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav .nav-link:hover {
  color: var(--orange-light);
}

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-legal {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal p {
  font-size: 0.76rem;
  color: var(--text-muted);
  max-width: 620px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-sub {
    max-width: 100%;
  }
  .contacto-inner {
    grid-template-columns: 1fr;
  }
  .cards-grid,
  .regimen-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sobre-mi-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sobre-mi-avatar img {
    max-width: 160px;
  }
  .sobre-mi-quote {
    margin: 0 auto;
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .nav-pill,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-mobile {
    display: flex;
  }
  .cards-grid,
  .regimen-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 40px 0 70px;
  }
  .precio-card {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .hero-stats {
    gap: 24px;
  }
}
