/* ==========================================================================
   TRE | TINGUARO RAMOS ENTRENAMIENTO — IDENTIDAD VISUAL ETAPA 2
   Paleta: #F26419 | #111315 | #1E2226 | #F7F7F5 | #FFFFFF | #6B7280
   Tipografías: Barlow Condensed (Titulares) + Inter (Cuerpo)
   ========================================================================== */

:root {
  --orange: #F26419;
  --orange-hover: #D9530E;
  --carbon: #111315;
  --graphite: #1E2226;
  --stone: #F7F7F5;
  --white: #FFFFFF;
  --muted: #6B7280;
  --muted-light: #A1A8B3;
  --border-light: #E5E7EB;
  --border-dark: rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 6px 20px rgba(17, 19, 21, 0.06);
  --shadow-lg: 0 18px 45px rgba(17, 19, 21, 0.16);
  --font-display: "Barlow Condensed", Impact, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--carbon);
  background: var(--stone);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.accent {
  color: var(--orange);
}

/* ================= BOTONES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-dark {
  background: var(--carbon);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--graphite);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  border-color: var(--orange);
  color: var(--white);
}

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

.btn-outline-dark:hover {
  border-color: var(--carbon);
  background: var(--carbon);
  color: var(--white);
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 21, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--carbon);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-mark-lg {
  font-size: 2.4rem;
  padding: 12px 22px;
  border-radius: 12px;
}

.brand-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
}

.brand-name {
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.15;
}

.brand-name small {
  display: block;
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--muted-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: #D4D8DF;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--orange);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 4% 24px;
  background: var(--carbon);
  border-top: 1px solid var(--border-dark);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.btn) {
  color: var(--white);
  font-weight: 500;
  padding: 4px 0;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 18%, rgba(242, 100, 25, 0.16), transparent 46%),
    var(--carbon);
  color: var(--white);
  padding: 82px 0 88px;
}

.hero-telemetry {
  position: absolute;
  inset: auto 0 0 0;
  pointer-events: none;
  opacity: 0.9;
}

.hero-telemetry svg {
  width: 100%;
  height: 180px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #E5E7EB;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.08rem;
  color: #D2D6DE;
  max-width: 58ch;
  margin: 0 0 30px;
}

.hero-lead strong {
  color: var(--white);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid var(--border-dark);
  font-size: 0.88rem;
  color: var(--muted-light);
}

.hero-credentials strong {
  color: var(--white);
}

/* Tarjeta lateral Hero */
.hero-card {
  background: rgba(30, 34, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pill-dark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--carbon);
}

.status-live {
  font-size: 0.8rem;
  color: #D2D6DE;
}

.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
  margin-bottom: 8px;
  color: #CBD0D6;
}

.metric-head strong {
  color: var(--white);
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
}

.bar-fill-soft {
  background: linear-gradient(90deg, var(--orange), #FF8E4D);
}

.hero-card-divider {
  height: 1px;
  background: var(--border-dark);
  margin: 24px 0 18px;
}

.hero-card-foot p {
  margin: 0;
  font-size: 0.9rem;
  color: #D2D6DE;
}

.hero-card-foot strong {
  color: var(--white);
}

/* ================= SECCIONES GENERALES ================= */
.section {
  padding: 84px 0;
}

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

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

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

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

.section-head {
  max-width: 720px;
  margin-bottom: 46px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head-dark p {
  color: #B8BFC9;
}

/* ================= DISCIPLINAS ================= */
.cards-grid.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-white {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--carbon);
  border: 2.5px solid var(--orange);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card-white h3 {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-white p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
}

.check-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
}

/* ================= MÉTODO ================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--graphite);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.step-card p {
  margin: 0;
  color: #B8BFC9;
  font-size: 0.93rem;
}

.tools-bar {
  margin-top: 34px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.92rem;
  color: #CBD0D6;
}

.tools-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tools-pills span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--carbon);
  border: 1px solid rgba(242, 100, 25, 0.45);
  color: var(--white);
  font-weight: 600;
  font-size: 0.84rem;
}

/* ================= PLANES ================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--shadow-sm);
}

.price-card-featured {
  background: var(--carbon);
  color: var(--white);
  border: 2px solid var(--orange);
  box-shadow: var(--shadow-lg);
}

.featured-ribbon {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.badge-orange {
  color: var(--orange);
}

.price-card h3 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-desc {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-card-featured .plan-desc {
  color: #C4CAD4;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.price-card-featured .price-value {
  border-top-color: var(--border-dark);
}

.price-value strong {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.price-value span {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-card-featured .price-value span {
  color: var(--muted-light);
}

.check-list-light li {
  color: #E5E7EB;
}

.price-card .btn {
  margin-top: auto;
}

.plan-discount-note {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(242, 100, 25, 0.08);
  border-left: 3px solid var(--orange);
  font-size: 0.82rem;
  color: var(--carbon);
  line-height: 1.45;
}

.plan-discount-note strong {
  display: block;
  color: var(--orange-hover);
  margin-bottom: 2px;
}

/* ================= SOBRE MÍ ================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.about-photo-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--carbon);
  min-height: 390px;
  display: flex;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: radial-gradient(circle at 50% 25%, rgba(242, 100, 25, 0.14), transparent 60%),
    var(--carbon);
}

.photo-placeholder p {
  margin: 0;
  color: #E5E7EB;
}

.photo-placeholder small {
  color: var(--muted-light);
}

.about-content h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.about-content p {
  color: #D2D6DE;
  margin: 0 0 16px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.cred-item {
  background: rgba(17, 19, 21, 0.55);
  border: 1px solid var(--border-dark);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.cred-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--white);
  margin-bottom: 2px;
}

.cred-item span {
  font-size: 0.82rem;
  color: var(--muted-light);
}

/* ================= FORMULARIO ================= */
.form-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.form-intro h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.form-intro > p {
  color: var(--muted);
  margin: 0 0 26px;
}

.direct-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 22px;
}

.direct-box h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.direct-box p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.valuation-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--carbon);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #D5DAE0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--carbon);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.15);
}

.form-feedback {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback.is-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.form-feedback.is-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-privacy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ================= FAQ ================= */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--stone);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--carbon);
  color: var(--white);
  padding: 44px 0 28px;
  border-top: 2px solid var(--orange);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted-light);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: #D2D6DE;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 18px;
  color: var(--muted-light);
  font-size: 0.82rem;
}

/* Barra fija móvil */
.mobile-sticky-bar {
  display: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid,
  .cards-grid.cols-3,
  .steps-grid,
  .pricing-grid,
  .about-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 58px 0 64px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 68px;
  }

  .form-row,
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .valuation-form {
    padding: 22px 18px;
  }

  .mobile-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 10px;
    padding: 10px 4%;
    background: rgba(17, 19, 21, 0.96);
    border-top: 1px solid var(--border-dark);
    backdrop-filter: blur(8px);
  }

  .mobile-sticky-bar .sticky-main {
    flex: 1;
  }
}
