/* ==========================================================================
   LA TRIBU - HOJA DE ESTILOS UNIFICADA (style.css)
   ========================================================================== */

/* 1. VARIABLES GLOBALES */
:root {
  --primary: #FF5A1F;
  --primary-hover: #E0480F;
  --secondary: #0F172A;
  --secondary-light: #1E293B;
  --accent-blue: #0EA5E9;
  --dark: #121212;
  --gray-dark: #1F1F1F;
  --gray-light: #F8FAFC;
  --gray-border: #E2E8F0;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #F1F5F9;
  --border-color: #E2E8F0;
  --white: #FFFFFF;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --transition: all 0.3s ease-in-out;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
}

/* 2. RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: #334155;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.jtify {
  text-align: justify;
}

/* 3. SECCIONES Y ENCABEZADOS COMUNES */
.section-padding {
  padding: 65px 0;
  position: relative;
}

.section-bg-alt {
  background-color: var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-tagline {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  color: var(--secondary);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
}

/* 4. NAVEGACIÓN (NAVBAR) */
.navbar {
  background-color: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
}

.nav-logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

/* 5. BOTONES */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}

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

.btn-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-link:hover {
  background-color: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* 6. GRIDS & LAYOUTS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

/* 7. HERO GLOBAL & FORMULARIOS HERO */
.hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 41, 59, 0.86) 100%),
              url('https://images.unsplash.com/photo-1546519638-68e109498ffc?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 60px 0;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.hero-badge-logo {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 50%;
  padding: 4px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #E2E8F0;
  margin-bottom: 30px;
  font-weight: 300;
}

.form-card, .hero-form-card {
  background: rgba(255, 255, 255, 0.98);
  padding: 35px 30px;
  border-radius: 12px;
  text-align: left;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--primary);
  max-width: 550px;
  margin: 0 auto;
}

.form-card.accent-border {
  border-top-color: var(--accent-blue);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: #fff;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.2);
}

/* 8. CONTENEDOR DE IMÁGENES */
.img-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  background-color: #e2e8f0;
}

.img-box img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.img-box:hover img {
  transform: scale(1.03);
}

.img-box-contain {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.img-box-contain img {
  object-fit: contain;
  max-height: 300px;
}

/* 9. CAJAS DE PROBLEMA, MODELO, FONDOS OSCUROS & MÉTRICAS */
.problem-box {
  background: #fff;
  border-left: 5px solid var(--primary);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.problem-box p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.problem-highlight {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 15px;
}

.model-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--accent-blue);
  transition: var(--transition);
}

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

.model-card-img {
  height: 170px;
  width: 100%;
  object-fit: cover;
}

.model-card-body {
  padding: 22px;
  position: relative;
}

.model-step-number {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--accent-blue);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  right: 15px;
}

.model-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.sports-bg-section, .about-bg-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%),
              url('https://images.unsplash.com/photo-1519766304817-4f37bda74a29?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #fff;
}

.sports-bg-section .section-title, .about-bg-section .section-title {
  color: #fff;
}

.sports-bg-section p, .about-bg-section p {
  color: #CBD5E1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.glass-card h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.win-list {
  list-style: none;
  margin: 20px 0;
}

.win-list li {
  padding: 8px 0 8px 25px;
  position: relative;
  color: #E2E8F0;
}

.win-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 25px 0;
  text-align: center;
}

.metric-item {
  background: var(--bg-light);
  padding: 18px 10px;
  border-radius: 8px;
  border-bottom: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.findings-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.findings-card.fortalezas { border-top: 4px solid #10B981; }
.findings-card.oportunidades { border-top: 4px solid #F59E0B; }

.findings-card h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.findings-card ol {
  padding-left: 20px;
  color: #475569;
}

.findings-card li {
  margin-bottom: 10px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background: #fff;
  padding: 18px 20px;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--secondary);
}

.faq-answer {
  padding: 18px 20px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  font-size: 0.94rem;
  color: #475569;
}

.cta-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
  text-align: center;
  padding: 75px 0;
  border-top: 4px solid var(--primary);
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #CBD5E1;
  max-width: 720px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 10. ESTILOS ESPECÍFICOS: LABORATORIO */
.lab-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-dark) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.lab-tag {
  display: inline-block;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.lab-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.lab-hero p {
  font-size: 1.15rem;
  color: #CCC;
  max-width: 760px;
  margin: 0 auto 30px;
}

.lab-nav-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.lab-pill {
  background: #ECEFF1;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.lab-card {
  background: var(--white);
  border-radius: 8px;
  padding: 35px 30px;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lab-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.06);
  border-color: var(--primary);
}

.lab-card-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.lab-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.lab-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.lab-card ul {
  list-style-type: none;
  padding: 0;
  margin-top: 10px;
}

.lab-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.lab-card ul li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.quote-banner {
  background-color: var(--dark);
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}

.quote-banner blockquote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.quote-banner span {
  color: var(--primary);
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* 11. MÓDULO RESULTADOS, GRÁFICAS & DESCARGAS */
.subnav-resultados {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -10px;
}

.subnav-btn {
  background: transparent;
  border: 2px solid var(--gray-border);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.subnav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.subnav-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.chart-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.chart-badge {
  background: #FFF3E0;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.chart-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
}

.metric-summary-bar {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.summary-box {
  background: var(--gray-light);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  border-top: 3px solid var(--primary);
  min-width: 180px;
  flex: 1;
}

.summary-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.results {
  margin-top: 20px;
  background-color: #121212;
  color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
}

.rtitle {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.downloads-panel {
  margin-top: 50px;
  background: #FAFAFA;
  border: 1px dashed var(--gray-border);
  border-radius: 8px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-download {
  background: var(--dark);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  display: inline-block;
}

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

.btn-secondary-download {
  background: transparent;
  border: 1px solid var(--dark);
  color: var(--dark);
}

.btn-secondary-download:hover {
  background: var(--dark);
  color: var(--white);
}

/* 12. FOOTER COMÚN */
footer {
  background-color: #090D14;
  color: #94A3B8;
  padding: 55px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  margin-bottom: 35px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.footer-col p, .footer-col a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

/* 13. RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .nav-links {
    display: none;
  }
  .order-2-mobile {
    order: 2;
  }
  .order-1-mobile {
    order: 1;
  }
}

@media (max-width: 600px) {
  .section-padding {
    padding: 45px 0;
  }
  .hero {
    padding: 50px 0;
  }
  .cta-buttons .btn, .section-actions .btn-link, .btn-block {
    width: 100%;
  }
  .problem-box {
    padding: 20px;
  }
  .form-card, .hero-form-card {
    padding: 25px 20px;
  }
  .metric-summary-bar {
    flex-direction: column;
  }
  .summary-box {
    width: 100%;
  }
}