/* Reset & Base variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background-color: #050505;
  color: #dddddd;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: auto;
  overflow-y: scroll;
}

body {
  scroll-snap-type: y mandatory;
}

/* Header navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #050505;
  border-bottom: 1px solid #222222;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1.site-title {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: #ffffff;
}

header nav {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
}

header nav a {
  color: #888888;
  text-decoration: none;
  margin-left: 20px;
  display: inline-block;
}

header nav a:hover {
  color: #ffffff;
}

header nav a.active {
  color: #ffffff;
  font-weight: bold;
  border-bottom: 1px solid #ffffff;
}

/* Slide structure */
.slide {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: row;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-top: 55px; /* Offset for fixed header */
  border-bottom: 1px solid #222222;
}

.slide-text {
  width: 50%;
  height: 100%;
  padding: 60px 80px 80px 80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-example {
  width: 50%;
  height: 100%;
  padding: 60px 80px 80px 80px;
  background-color: #0b0b0b;
  border-left: 1px solid #222222;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

/* Slide headings & content styling */
.slide-text h2 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.slide-text h3 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.3rem;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: 600;
}

.slide-text p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #bbbbbb;
}

.slide-text ul, .slide-text ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.slide-text li {
  margin-bottom: 10px;
  color: #bbbbbb;
  font-size: 1.05rem;
}

.slide-text hr {
  border: 0;
  border-top: 1px solid #222222;
  margin: 30px 0;
}

/* Example panel elements */
.example-box {
  width: 100%;
  font-family: monospace;
  font-size: 0.9rem;
}

.example-box pre {
  white-space: pre-wrap;
  color: #dddddd;
  font-family: monospace;
  line-height: 1.4;
  background: #050505;
  padding: 20px;
  border: 1px solid #222222;
  margin-bottom: 20px;
  overflow-x: auto;
}

/* Form controls */
input[type="text"], select, textarea {
  background-color: #050505;
  border: 1px solid #333333;
  color: #ffffff;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 10px;
  width: 100%;
}

input[type="text"]:focus, select:focus, textarea:focus {
  border-color: #ffffff;
}

button {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 8px 16px;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 10px;
}

button:hover {
  background-color: #cccccc;
}

button.btn-secondary {
  background-color: #050505;
  color: #ffffff;
  border: 1px solid #333333;
}

button.btn-secondary:hover {
  border-color: #ffffff;
  background-color: #111111;
}

/* Radio and checkbox lists */
.option-list {
  margin-bottom: 15px;
}
.option-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-family: monospace;
  font-size: 0.9rem;
  cursor: pointer;
  color: #bbbbbb;
}
.option-item:hover {
  color: #ffffff;
}
.option-item input[type="radio"], .option-item input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #ffffff;
}

/* Progress Indicator */
.progress-dots {
  position: fixed;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #444444;
  background-color: transparent;
  cursor: pointer;
}

.progress-dot:hover {
  border-color: #ffffff;
}

.progress-dot.active {
  background-color: #ffffff;
  border-color: #ffffff;
}

/* Footer layout inside slide */
.footer-nav-slide {
  border-top: 1px solid #222222;
  margin-top: auto;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
}

.footer-nav-slide a {
  color: #ffffff;
  text-decoration: underline;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .slide-text, .slide-example {
    padding: 40px;
  }
}

@media (max-width: 900px) {
  body {
    scroll-snap-type: none;
  }
  
  .slide {
    height: auto;
    min-height: 100vh;
    flex-direction: column;
    padding-top: 60px;
    border-bottom: 1px solid #222222;
  }
  
  .slide-text, .slide-example {
    width: 100%;
    height: auto;
    padding: 40px 20px;
  }
  
  .slide-example {
    border-left: none;
    border-top: 1px solid #222222;
  }
  
  .progress-dots {
    display: none;
  }
}

/* Sandbox Styled Button for Metodología */
.btn-sandbox-styled {
  background-color: #ffffff !important;
  color: #050505 !important;
  border: none !important;
  padding: 12px 24px !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  border-radius: 4px !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-sandbox-styled:hover {
  background-color: #e0e0e0 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.15) !important;
}

.btn-sandbox-styled:active {
  background-color: #cccccc !important;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.08) !important;
}
