/* === TERRITORIOS PAGE === */

/* =================== HERO =================== */
.ter-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0A1628;
  padding: calc(var(--nav-height, 80px) + 2rem) 1.5rem 3rem;
  overflow: hidden;
}

.ter-hero .particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.ter-hero-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;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.ter-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-weight: 300;
  font-style: italic;
}

/* =================== SECCIÓN 1: ACTOR =================== */
.actor {
  background: #050D1A;
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

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

.actor h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.actor p {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
  margin-bottom: 1.8rem;
  font-weight: 300;
  text-align: center;
}

/* =================== SECCIÓN 2: APLICACIONES =================== */
.aplicaciones {
  background: #0A1628;
  padding: 100px 1.5rem;
  position: relative;
  z-index: 2;
}

.aplicaciones-container {
  max-width: 1000px;
  margin: 0 auto;
}

.aplicaciones h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 3.5rem;
  font-weight: 600;
  line-height: 1.3;
}

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

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

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

.aplicacion-icon {
  margin-bottom: 1.2rem;
}

.aplicacion-card h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.aplicacion-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 300;
}

/* =================== SECCIÓN 3: CASO =================== */
.caso {
  background: #050D1A;
  padding: 80px 1.5rem;
  position: relative;
  z-index: 2;
}

.caso-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.caso-caja {
  background: #0A1628;
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
}

.caso-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: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.caso-texto {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.caso-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 2.5rem;
}

.caso-num-valor {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.caso-num p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  line-height: 1.5;
}

.caso-italic {
  font-style: italic;
  color: rgba(212, 175, 55, 0.85) !important;
  font-size: 1.05rem !important;
  line-height: 1.7;
  font-weight: 300;
}

/* =================== SECCIÓN 4: PROCESO =================== */
.proceso {
  background: #0A1628;
  padding: 80px 1.5rem;
  position: relative;
  z-index: 2;
}

.proceso-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.proceso-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 60px;
}

.proceso-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--color-gold) 50%, transparent 50%);
  background-size: 2px 8px;
  background-repeat: repeat-y;
}

.proceso-paso {
  position: relative;
}

.proceso-num {
  position: absolute;
  left: -60px;
  top: 0;
  width: 48px;
  height: 48px;
  background: #050D1A;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
  z-index: 1;
}

.proceso-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.proceso-content p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.8;
  font-weight: 300;
}

/* =================== SECCIÓN 5: CTA =================== */
.cta-territorio {
  background: #050D1A;
  padding: 80px 1.5rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-territorio-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-territorio h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--color-white);
  margin-bottom: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

.cta-note {
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 300;
  margin-top: 1.5rem;
}

.btn-large {
  font-size: 1.05rem;
  padding: 1.1rem 2.5rem;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .aplicaciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .caso-caja {
    padding: 40px 24px;
  }

  .caso-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .proceso-timeline {
    padding-left: 56px;
  }

  .proceso-num {
    left: -56px;
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }
}

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

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

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

body[data-theme="light"] .actor {
  background: #F5F3EE;
}

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

body[data-theme="light"] .aplicaciones {
  background: #F0EBE0;
}

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

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

body[data-theme="light"] .caso {
  background: #F5F3EE;
}

body[data-theme="light"] .caso-caja {
  background: #FFFFFF;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

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

body[data-theme="light"] .proceso {
  background: #F0EBE0;
}

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

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

body[data-theme="light"] .cta-territorio {
  background: #F5F3EE;
}

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

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

/* === Lista dentro de caso-caja (usada en frutos.html) === */
.caso-lista {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caso-lista li {
  padding-left: 20px;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.caso-lista li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.7em;
  top: 6px;
}

.caso-lista strong {
  color: var(--color-gold);
}

body[data-theme="light"] .caso-lista li {
  color: rgba(42, 42, 42, 0.75);
}
