/* === SISTEMA PAGE === */

/* =================== HERO =================== */
.sistema-hero {
  min-height: 60vh;
  background: rgba(10, 22, 40, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height, 70px) + 2rem) 1.5rem 3rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.particles-sistema {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.sistema-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(212, 175, 55, 0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: rgba(212, 175, 55, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.sistema-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.sistema-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  line-height: 1.6;
}

/* =================== SECCIÓN 1: QUÉ ES =================== */
.que-es {
  background: rgba(10, 22, 40, 0.86);
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.que-es-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.que-es-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-gold);
  margin-bottom: 2rem;
  font-weight: 600;
}

.que-es-text p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.que-es-highlight {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.que-es-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qe-badge {
  background: #050D1A;
  border: 1px solid var(--color-gold);
  padding: 16px 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

.qe-badge:hover {
  transform: translateX(4px);
}

.qe-badge-icon {
  flex-shrink: 0;
}

.qe-badge-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* =================== SECCIÓN 2: DESCUBRIMIENTO =================== */
.descubrimiento {
  background: rgba(5, 13, 26, 0.86);
  padding: 120px 1.5rem;
  position: relative;
  z-index: 2;
}

.descubrimiento-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.desc-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--color-gold);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.descubrimiento h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.descubrimiento p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.desc-box {
  border: 1px solid var(--color-gold);
  background: rgba(10, 22, 40, 0.9);
  padding: 48px;
  border-radius: 8px;
  max-width: 700px;
  margin: 2.5rem auto 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =================== SECCIÓN 3: FUNDAMENTOS =================== */
.fundamentos {
  background: rgba(10, 22, 40, 0.86);
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.fundamentos-container {
  max-width: 1100px;
  margin: 0 auto;
}

.fundamentos h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 600;
}

.fundamentos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.fund-card {
  background: #050D1A;
  border-left: 4px solid var(--color-gold);
  padding: 40px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fund-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.fund-icon {
  margin-bottom: 1.5rem;
}

.fund-title {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.fund-text {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* =================== SECCIÓN 4: ARQUITECTURA =================== */
.arquitectura {
  background: rgba(5, 13, 26, 0.86);
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.arq-container {
  max-width: 900px;
  margin: 0 auto;
}

.arquitectura h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-white);
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.arq-intro {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.arq-flow {
  position: relative;
}

.arq-block {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 48px;
}

.arq-block:last-child {
  padding-bottom: 0;
}

/* Línea punteada dorada conectando los bloques */
.arq-block:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: 0;
  width: 2px;
  background-image: linear-gradient(to bottom, rgba(212, 175, 55, 0.5) 50%, transparent 50%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
}

.arq-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold);
  background: #050D1A;
  position: relative;
  z-index: 1;
}

.arq-title {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.arq-text {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* =================== SECCIÓN 5: VALORES =================== */
.valores {
  background: rgba(10, 22, 40, 0.86);
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.valores-container {
  max-width: 1100px;
  margin: 0 auto;
}

.valores h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 600;
}

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

.val-card {
  background: #050D1A;
  border-top: 2px solid var(--color-gold);
  padding: 28px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.val-card:hover {
  transform: translateY(-3px);
}

.val-title {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.val-text {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* =================== SECCIÓN 6: CTA FINAL =================== */
.cta-final {
  background: rgba(5, 13, 26, 0.86);
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.cta-final-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.cta-final p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-back {
  color: var(--color-gold);
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.cta-back:hover {
  opacity: 0.7;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  .que-es-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fundamentos-grid {
    grid-template-columns: 1fr;
  }

  .valores-grid {
    grid-template-columns: 1fr;
  }

  .arq-block {
    gap: 20px;
  }

  .arq-number {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .arq-block:not(:last-child)::before {
    left: 25px;
    top: 52px;
  }

  .desc-box {
    padding: 32px 24px;
  }
}

/* =================== LIGHT THEME =================== */
body[data-theme="light"] .sistema-hero {
  background: rgba(245, 243, 238, 0.86);
}

body[data-theme="light"] .sistema-hero h1 {
  color: var(--color-cosmos);
}

body[data-theme="light"] .sistema-hero-subtitle {
  color: rgba(42, 42, 42, 0.6);
}

body[data-theme="light"] .que-es {
  background: rgba(245, 243, 238, 0.86);
}

body[data-theme="light"] .que-es-text p {
  color: rgba(42, 42, 42, 0.7);
}

body[data-theme="light"] .que-es-highlight {
  color: rgba(42, 42, 42, 0.9);
}

body[data-theme="light"] .qe-badge {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .qe-badge-text {
  color: rgba(42, 42, 42, 0.75);
}

body[data-theme="light"] .descubrimiento {
  background: rgba(239, 233, 223, 0.86);
}

body[data-theme="light"] .descubrimiento h2 {
  color: var(--color-cosmos);
}

body[data-theme="light"] .descubrimiento p {
  color: rgba(42, 42, 42, 0.7);
}

body[data-theme="light"] .desc-box {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(42, 42, 42, 0.85);
}

body[data-theme="light"] .fundamentos {
  background: rgba(245, 243, 238, 0.86);
}

body[data-theme="light"] .fund-card {
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .fund-text {
  color: rgba(42, 42, 42, 0.72);
}

body[data-theme="light"] .arquitectura {
  background: rgba(239, 233, 223, 0.86);
}

body[data-theme="light"] .arquitectura h2 {
  color: var(--color-cosmos);
}

body[data-theme="light"] .arq-intro {
  color: rgba(42, 42, 42, 0.7);
}

body[data-theme="light"] .arq-number {
  background: #FFFFFF;
}

body[data-theme="light"] .arq-text {
  color: rgba(42, 42, 42, 0.72);
}

body[data-theme="light"] .valores {
  background: rgba(245, 243, 238, 0.86);
}

body[data-theme="light"] .val-card {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .val-text {
  color: rgba(42, 42, 42, 0.72);
}

body[data-theme="light"] .cta-final {
  background: rgba(239, 233, 223, 0.86);
}

body[data-theme="light"] .cta-final h2 {
  color: var(--color-cosmos);
}

body[data-theme="light"] .cta-final p {
  color: rgba(42, 42, 42, 0.7);
}
