:root {
  --bg: #f8fafc;
  --bg-dark: #0f172a;
  --fg: #1e293b;
  --fg-light: #f1f5f9;
  --muted: #64748b;
  --accent-blue: #1e3a8a;
  --accent-blue-light: #3b82f6;
  --accent-green-dark: #059669;
  --card: #ffffff;
  --card-dark: #1e293b;
  --border: #e2e8f0;
  --glow: rgba(16, 185, 129, 0.3);
}

.olympics-container-sciences,
.olympics-container-hydrocarbons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1.5rem;
  width: 95%;
  margin: auto auto 50px auto;
  background-color: var(--container-color);
  border-bottom: 2px solid #c4c4c4;
  border-top: 2px solid #c4c4c4;
}

@media (min-width: 1024px) {
  .olympics-container-sciences,
  .olympics-container-hydrocarbons {
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 3rem 2rem;
  }
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.olympics-container-hydrocarbons .hero-modern,
.olympics-container-sciences .hero-modern {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #0c1222 0%, #0f172a 50%, #0c1a2f 100%);
  border-radius: 20px;
  border: 1px solid rgba(26, 35, 126, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.olympics-container-hydrocarbons .hero-modern {
  background: linear-gradient(135deg, #ffffff 0%, #e8eaf6 100%);
}

/* Orbitas atomicas decorativas */
.orbital-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(26, 35, 126, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbital-ring-1 { width: 300px; height: 300px; animation: rotate 20s linear infinite; }
.orbital-ring-2 { width: 500px; height: 500px; animation: rotate 30s linear infinite reverse; }
.orbital-ring-3 { width: 700px; height: 700px; animation: rotate 40s linear infinite; }

/* Electrones orbitando */
.electron {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-green);
  border-radius: var(--radius);
  box-shadow:
    0 0 12px var(--accent-green),
    0 0 24px rgba(16, 185, 129, 0.5);
}

.olympics-container-hydrocarbons .electron{
  background-color: #fbc02d;
  box-shadow: 0 0 10px #fbc02d;
}

.electron-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.electron-2 { top: 50%; right: 0; transform: translate(50%, -50%); }
.electron-3 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }

/* Contenido del hero */
.olympics-container-sciences .hero-content,
.olympics-container-hydrocarbons .hero-content {
  text-align: center;
  max-width: 800px;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.olympics-container-hydrocarbons .hero-badge-dot{
  background: var(--title-color);
}

.hero-badge span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.olympics-container-hydrocarbons .hero-badge span{
  color: var(--title-color);
}

.hero-title-main {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--fg-light);
}

.olympics-container-hydrocarbons .hero-title-main {
  color: var(--title-color);
}

.hero-title-main .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: wordReveal 0.8s ease forwards;
}

.hero-title-main .word:nth-child(1) {
  animation-delay: 0.4s;
}
.hero-title-main .word:nth-child(2) {
  animation-delay: 0.55s;
}

.hero-title-main .highlight {
  color: var(--accent-green);
}

.olympics-container-hydrocarbons .hero-title-main .word.highlight {
  color: #fbc02d;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-blue-light),
    var(--accent-green)
  );
  margin: 1.25rem auto;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  animation: dividerGrow 0.6s ease 0.9s forwards;
}

.olympics-container-hydrocarbons .hero-divider{
  background: #fbc02d;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 1s forwards;
}

.olympics-container-hydrocarbons .hero-subtitle{
  color: var(--text-color-muted);
}

/* Atom in center */
.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

/* Keyframes */
@keyframes rotate { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); }}
@keyframes wordReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes dividerGrow {to { opacity: 1; transform: scaleX(1); } }

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-green), var(--accent-blue));
  border-radius: 2px;
}

.olympics-container-hydrocarbons .section-title::before{
  background: #fbc02d;
}

/* History Section */
.history-section {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.history-text, .objective-text {
  margin-bottom: 2rem;
}

.history-text p,
.objective-text p {
  margin-bottom: 1rem;
}

.scope-content {
    display: flex;
    margin-top: 10px;
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap;
}

.scope-items {
  padding: 15px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-green));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 3px var(--accent-green);
  transition: transform 0.3s ease;
}

.timeline-item:hover::before {
  transform: scale(1.3);
}

.timeline-year {
  font-weight: 600;
  color: var(--accent-blue);
  font-size: 0.9rem;
}

.timeline-content {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Purpose Section */
.purpose-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.purpose-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.purpose-title svg {
  width: 22px;
  height: 22px;
  color: var(--accent-green);
}

.olympics-container-hydrocarbons .purpose-title svg{
  color: var(--title-color);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .purpose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.purpose-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.03) 0%,
    rgba(16, 185, 129, 0.03) 100%
  );
  border-radius: 12px;
  border: 1px solid rgba(30, 58, 138, 0.06);
  transition: all 0.3s ease;
}

.purpose-number {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.olympics-container-hydrocarbons .purpose-number{
  background: var(--title-color);
}

.purpose-item p {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.5;
}

/* Characteristics Section */
.characteristics-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.char-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.char-title svg {
  width: 22px;
  height: 22px;
  color: var(--accent-blue);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
}

.olympics-container-hydrocarbons .char-grid{
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.olympics-container-hydrocarbons .char-item:nth-child(1){
  grid-column: 1 / -1;
  flex-direction: row;
}

.char-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: default;
}

.olympics-container-hydrocarbons .char-item{
  flex-direction: column;
  align-items: flex-start;
}

.char-item:hover{
  transform: translateY(-5px);
}

.char-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.char-item:nth-child(1) .char-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.char-item:nth-child(2) .char-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.char-item:nth-child(3) .char-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.char-item:nth-child(4) .char-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.olympics-container-hydrocarbons .char-item .char-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.char-icon svg {
  width: 24px;
  height: 24px;
}

.char-item:nth-child(1) .char-icon svg {
  color: var(--accent-blue);
}
.char-item:nth-child(2) .char-icon svg {
  color: var(--accent-green-dark);
}
.char-item:nth-child(3) .char-icon svg {
  color: #d97706;
}
.char-item:nth-child(4) .char-icon svg {
  color: #7c3aed;
}

.olympics-container-hydrocarbons .char-item .char-icon svg {
  color: var(--accent-blue);
}

.char-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.char-info p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}
    /* Theme Generator - Simple & Clean */
    .theme-generator {
      background: var(--card);
      border-radius: 20px;
      padding: 2rem;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }
    
    .theme-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 2rem;
      border-bottom: 2px solid var(--border);
    }
    
    .theme-points {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    
    .theme-point {
      display: flex;
      gap: 1rem;
      padding: 1.25rem;
      background: var(--bg);
      border-radius: 12px;
      border: 1px solid rgba(30, 58, 138, 0.06);
      transition: all 0.3s ease;
    }

    .point-content {
      flex: 1;
    }
    
    .point-content p {
      font-size: 0.95rem;
      color: var(--fg);
      line-height: 1.6;
    }
    
    .point-highlight {
      font-weight: 600;
      color: var(--accent-blue);
    }
/* Terminology */
.terminology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .terminology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.term-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.term-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.term-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.term-card:nth-child(1) .term-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.term-card:nth-child(2) .term-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}
.term-card:nth-child(3) .term-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.term-card:nth-child(4) .term-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}
.term-icon svg {
  width: 28px;
  height: 28px;
}

.term-card:nth-child(2) .term-icon svg {
  color: var(--accent-green-dark);
}
.term-card:nth-child(3) .term-icon svg {
  color: #d97706;
}
.term-card:nth-child(4) .term-icon svg {
  color: #7c3aed;
}  
.term-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.term-list {
  list-style: none;
}

.term-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.term-list li:last-child {
  border-bottom: none;
}

.term-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}

.olympics-container-hydrocarbons .term-list li::before {
  background: var(--title-color);
}

/* Value Chain - Interactive Tabs */
.value-chain-section {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.value-chain-tabs {
  display: grid;
  grid-template-columns: repeat(auto, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .value-chain-tabs {
    grid-template-columns: repeat(4, 1fr);
  }
  .olympics-container-hydrocarbons .value-chain-tabs {
    grid-template-columns: repeat(5, 1fr);
  }
}

.value-tab {
  padding: 1.25rem 1rem;
  background: var(--bg);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  border-right: 1px solid var(--border);
}

.value-tab:last-child {
  border-right: none;
}

.value-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.value-tab.active {
  background: var(--card);
}

.value-tab.active::after {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
}

.value-tab:hover {
  background: white;
}

.tab-number {
  width: 36px;
  height: 36px;
  background: var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 auto 0.5rem;
  transition: all 0.3s ease;
}

.value-tab.active .tab-number {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  color: white;
}

.tab-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s ease;
}

.value-tab.active .tab-title {
  color: var(--fg);
}

/* Value Content Panel */
.value-content-panel {
  padding: 2rem;
  display: none;
  animation: fadeSlide 0.4s ease;
}

.value-content-panel.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.value-content-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.value-content-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-content-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.value-content-title {
  flex: 1;
}

.value-content-title h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.value-content-title p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.value-summary {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.03) 0%,
    rgba(16, 185, 129, 0.03) 100%
  );
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.value-summary h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-summary h4 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

.value-summary ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.value-summary li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.5;
}

.value-summary li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Value Materials */
.value-materials {
  margin-top: 1.5rem;
}

.value-materials h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-materials h4 svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

.materials-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .materials-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.material-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.material-item:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.material-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.material-item-icon.video {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.material-item-icon.pdf {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.material-item-icon.article {
  background: linear-gradient(135deg, #10b981, #059669);
}

.material-item-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.material-item-info {
  flex: 1;
  min-width: 0;
}

.material-item-info h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.material-item-info p {
  font-size: 0.8rem;
  color: var(--muted);
}

.material-item-arrow {
  color: var(--muted);
  transition: all 0.2s ease;
}

.material-item:hover .material-item-arrow {
  color: var(--accent-blue);
  transform: translateX(3px);
}

/* Materials Grid */
.materials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.material-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.material-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.material-thumb {
  height: 140px;
  background: linear-gradient(
    135deg,
    var(--accent-blue) 0%,
    var(--accent-green-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.material-thumb svg {
  width: 48px;
  height: 48px;
  color: white;
}

.material-thumb .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.material-info {
  padding: 1.25rem;
}

.material-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.material-info p {
  font-size: 0.85rem;
  color: var(--muted);
}

.material-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.material-btn:hover {
  background: var(--accent-green-dark);
}

/* Olympic Route Timeline */
.route-section {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.route-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  flex-wrap: wrap;
  gap: 2rem;
}

.route-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    margin-top: 5px;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-top: 10px solid var(--primary-color);
    opacity: 0.5;
}

@media (min-width: 768px) {
  .route-timeline {
    flex-direction: row;
    row-gap: 20px;
    column-gap: 0;
    
  }
  .route-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.75rem;
    right: -1rem;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--primary-color);
    opacity: 0.5;
  }
  .olympics-container-hydrocarbons .route-stage {
    flex: 0 1 250px;
  }
}

.route-stage {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
}


.stage-circle {
  width: 70px;
  height: 70px;
  background: var(--card);
  border: 4px solid var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.route-stage:hover .stage-circle {
  transform: scale(1.15);
  background: var(--accent-blue);
}

.route-stage:hover .stage-circle svg {
  color: white;
}

.stage-circle svg {
  width: 28px;
  height: 28px;
  color: var(--accent-blue);
  transition: color 0.3s ease;
}

.route-stage h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.route-stage p {
  font-size: 0.8rem;
  color: var(--muted);
}

.olympics-container-sciences .route-stage:nth-child(5) .stage-circle {
  border-color: var(--accent-green);
}
.olympics-container-sciences .route-stage:nth-child(5):hover .stage-circle {
  background: var(--accent-green);
}
.olympics-container-sciences .route-stage:nth-child(5) .stage-circle svg {
  color: var(--accent-green);
}
.olympics-container-sciences .route-stage:nth-child(5):hover .stage-circle svg {
  color: white;
}
.olympics-container-hydrocarbons .route-stage:nth-child(7) .stage-circle{
  border-color: #fbc02d;
}
.olympics-container-hydrocarbons .route-stage:nth-child(7):hover .stage-circle{
  background: #fbc02d;
}
.olympics-container-hydrocarbons .route-stage:nth-child(7) .stage-circle svg{
  color: #fbc02d;
}
.olympics-container-hydrocarbons .route-stage:nth-child(7):hover .stage-circle svg{
  color: white;
}


/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 5rem;
    height: fit-content;
  }
}

.sidebar-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.olympics-container-hydrocarbons .sidebar-title{
  border-color: var(--title-color);
}

.sidebar-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
}
.olympics-container-hydrocarbons .sidebar-title svg{
  color: var(--title-color);
}
/* Boletines PDF */
.boletin-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--bg);
}

.boletin-item:last-child {
  margin-bottom: 0;
}

.boletin-item:hover {
  border-color: var(--accent-green);
  background: white;
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(30, 58, 138, 0.1);
}

.boletin-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.boletin-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.boletin-info {
  flex: 1;
  min-width: 0;
}

.boletin-info h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boletin-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.boletin-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.boletin-arrow {
  color: var(--muted);
  transition: all 0.2s ease;
}

.boletin-item:hover .boletin-arrow {
  color: var(--accent-blue);
  transform: translateX(3px);
}
/* contacto */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--fg);
}


.registro-button {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--fg);
    font-weight: bold;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}




/* Contenedor Principal MODAL REGISTRO */
.container-olympic-teacher {
  overflow-y: auto;
}

.modal-content.container-registro {
    background: white;
    padding: 2rem;
    border-radius: 0 0 16px 16px;
    text-align: center;
    max-width: 800px;
    width: 90%;
    /* margin: 10px auto 50px auto; */
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Decoración superior */
.container-registro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

/* Grid del Formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .full-width {
        grid-column: span 2;
    }
}

/* Estilos de Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

label span.required {
    color: var(--error-color);
    margin-left: 2px;
}

input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input.error {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

.helper-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.error-msg {
    font-size: 0.8rem;
    color: var(--error-color);
    margin-top: 0.3rem;
    display: none;
}

/* Botón */
.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Iconos SVG simples */
.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background-color: #d1fae5;
    color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.modal-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-close {
    background-color: var(--text-main);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 0.9;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--text-main);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background-color: var(--error-color);
}
