/* ===== VARIABLES Y RESET ===== */
:root {
  --bg-primary: #FAFAFA;
  --bg-dark: #121212;
  --text-primary: #000000;
  --text-light: #e0e0e0;
  --text-secondary: #888888;
  --text-secondary-dark: #cccccc;
  --accent: #333333;
  --border-light: rgba(136, 136, 136, 0.3);
  --border-dark: rgba(255, 255, 255, 0.2);
  --code-bg: #2d2d2d;
  --code-bg-dark: #1e1e1e;
  --success: #00ff99;
  --error: #d93025;
  --warning: #ebcb8b;
  --info: #88c0d0;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.4;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 2rem;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
  border-bottom: none;
}

header.scrolled {
  border-bottom: 0.5px solid var(--border-light);
  padding-bottom: 20px;
}

header h1.logo-title {
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  line-height: 1.1;
  font-family: "Lucida Console", Monaco, monospace;
}

header h1.logo-title svg {
  width: 1em;
  height: 1em;
}

nav a {
  margin-left: 1rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-primary);
}

nav a:hover {
  color: var(--text-secondary);
}

/* ===== HERO SECTIONS ===== */
.hero, .alt-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
}

.alt-hero {
  background: #f9f9f9;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-verde {
  background: var(--text-primary);
  color: #ffffff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover, .btn-verde:hover {
  background: var(--text-secondary);
}

.btn-verde {
  margin-top: 1.5rem;
  padding: 12px;
  font-size: 15px;
}

/* ===== FEATURES ===== */
.features {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  gap: 0.8rem;
}

.feature-card {
  border: 1px solid var(--text-secondary);
  border-radius: 4px;
  padding: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  background: #ffffff;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.feature-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.feature-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  font-size: 0.85rem;
}

.feature-card.active .feature-content {
  max-height: 500px;
}

.feature-card svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.feature-card.active svg {
  transform: rotate(45deg);
}

#more-features {
  display: none;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

#more-features .feature-card {
  border: 1px solid var(--text-secondary);
  border-radius: 4px;
  padding: 0.8rem;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.show-more-text {
  margin-top: 1rem;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: normal;
}

.show-more-text:hover {
  color: var(--text-secondary);
}

/* ===== CODE SNIPPETS ===== */
.snippet-desc {
  margin-bottom: 10px;
  font-size: 14px;
  color: #cccccc;
  text-align: left;
}

.snippet-code {
  background-color: var(--code-bg);
  padding: 12px;
  border-radius: 5px;
  min-height: 100px;
  overflow-x: auto;
  outline: none;
  white-space: pre;
  font-size: 14px;
  color: #f8f8f2;
  line-height: 1.5;
  border: 1px solid #444;
  transition: border-color 0.2s;
  text-align: left;
}

.snippet-code:focus {
  border-color: #f8f8f2;
}

.snippet-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: #f0f4ff;
  border: 1px solid #4285F4;
  padding: 12px 15px;
  border-radius: 4px;
  margin: 20px auto 30px;
  font-size: 0.90rem;
  color: #4285F4;
  max-width: 480px;
  text-align: left;
}

.snippet-tip p {
  margin: 0;
}

/* ===== PAGES CONTENT ===== */
.page-content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  line-height: 1.6;
  color: #333;
}

.page-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.page-content p, .page-content ul {
  font-size: 0.9rem;
  color: #555;
}

.page-content ul {
  margin-left: 1.5rem;
  list-style: disc;
}

/* ===== FORM STYLES ===== */
.contact-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  margin: 40px auto 80px auto;
  max-width: 800px;
  padding: 5rem 2rem;
}

.contact-info {
  flex: 1;
  max-width: 400px;
}

.contact-info svg {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.contact-info h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  color: var(--accent);
}

.contact-info p {
  color: #555;
  line-height: 1.6;
}

.contact-form {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.form-step.active {
  display: flex;
}

.form-step label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.form-step input, .form-step textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
  margin-right: 10px;
  box-sizing: border-box;
}

.form-step input:focus, .form-step textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-next {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  font-size: 12px;
  flex: 1;
  transition: var(--transition);
}

.btn-next:hover {
  background: #555;
}

.btn-previous {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  font-size: 12px;
  flex: 1;
  transition: var(--transition);
}

.btn-previous:hover {
  background: var(--accent);
  color: #fff;
}

.progress {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 1.5rem;
}

.progress span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccc;
  display: inline-block;
}

.progress span.active {
  background: var(--accent);
}

.input-error {
  border-color: var(--error);
  background-color: #fdd;
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 4px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

.form-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  transition: var(--transition);
}

.form-note a:hover {
  color: var(--text-primary);
}

.link-contacto {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.link-contacto:hover {
  color: #555555;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.advantage {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem;
  background: #fafafa;
}

.advantage h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.advantage svg {
  flex-shrink: 0;
  margin: 0;
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 1000;
  padding: 0;
}

#back-to-top svg {
  width: 100%;
  height: 100%;
}

/* ===== COOKIES ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1c1c1c;
  color: #fdfdfd;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1 1 60%;
  margin: 0;
}

.cookie-banner a {
  color: #00bfff;
  text-decoration: underline;
}

.cookie-buttons button, #save-cookies {
  background: #fdfdfd;
  color: #1c1c1c;
  border: 1px solid #ccc;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 8px;
  transition: var(--transition);
}

#save-cookies {
  margin-left: 4px;
  margin-top: 12px;
}

.cookie-buttons button:hover, #save-cookies:hover {
  background: #f0f0f0;
  color: #000000;
}

#accept-all {
  background: #fdfdfd;
  border: none;
  color: #1c1c1c;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 8px;
}

#accept-all:hover {
  background: #e0e0e0;
}

#reject-all {
  background: transparent;
  color: #fdfdfd;
  border: 1px solid #fdfdfd;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

#reject-all:hover {
  background: #00000036;
  color: #fafafa;
  border: 1px solid #fafafa;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#configure-cookies {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
}

#configure-cookies svg {
  transition: transform 0.4s ease;
}

#configure-cookies:hover svg {
  transform: rotate(90deg);
}

.cookie-settings {
  position: fixed;
  bottom: 0;
  right: 20px;
  background: #1E1E1E;
  color: #f9f9f9;
  padding: 20px;
  border: 1px solid #1E1E1E;
  border-radius: 4px;
  z-index: 10000;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 8px;
  background: transparent;
  border: none;
  color: #f9f9f9;
  font-size: 18px;
  cursor: pointer;
}

.close-btn:hover {
  color: #f9f9f9;
}

#close-cookies {
  margin-top: 5px;
}

.cookies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.cookie-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-card h4 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #333;
}

.cookie-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ===== BROWSERS SECTION ===== */
.browsers-box {
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
  background: #fff;
}

.browsers-box h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-family: sans-serif;
  color: var(--accent);
}

.browsers-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.browsers-icons img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.browsers-icons img:hover {
  transform: scale(1.15);
}

/* ===== EXTENSION TUTORIAL ===== */
.extension-tutorial {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.extension-tutorial h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.extension-tutorial .subtitle {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 2rem;
}

.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}

.tutorial-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #444;
}

.tutorial-step .icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
  font-size: 2rem;
}

.tutorial-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #666;
}

/* ===== POMODORO SECTION ===== */
.pomodoro-section {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 40px 1rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  background: none;
  border-radius: 8px;
  text-align: left;
}

.pomodoro-left, .pomodoro-right {
  flex: 1;
  min-width: 280px;
}

.pomodoro-left h2 {
  font-size: 1.8rem;
  color: #d9534f;
  margin-bottom: 0.8rem;
}

.pomodoro-left p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.pomodoro-right h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.8rem;
}

.pomodoro-right ul {
  list-style-type: disc;
  padding-left: 1rem;
  color: #555;
  line-height: 1.5;
}

.pomodoro-right ul li {
  margin-bottom: 0.4rem;
}

/* ===== FAQ SECTION ===== */
.faq-container {
  display: flex;
  max-width: 1100px;
  margin: 2rem auto;
  gap: 2rem;
  padding: 5rem 2rem;
}

.faq-menu {
  flex: 0 0 250px;
}

.faq-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-menu li {
  padding: 0.8rem 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.faq-menu li.active {
  border-left: 3px solid #dddddd;
  font-weight: bold;
}

.faq-menu li:hover {
  background-color: rgba(206, 206, 206, 0.178);
}

.faq-content {
  flex: 1;
}

.faq-item {
  display: none;
}

.faq-item.active {
  display: block;
}

.faq-item h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.faq-item p {
  line-height: 1.6;
  margin-top: 0.5rem;
}

.faq-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.faq-content th, .faq-content td {
  padding: 0.8rem 1rem;
  text-align: left;
}

.faq-content thead {
  background: linear-gradient(135deg, #cccccc, #cccccc);
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-content tbody tr {
  border-bottom: 1px solid #eaeaea;
  transition: background 0.2s ease-in-out;
}

.faq-content tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.faq-content tbody tr:hover {
  background: #ebebeb8e;
}

.tip-box {
  padding: 0.75rem 1rem;
  border-left: 4px solid #0077cc;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: var(--transition);
}

.table-replacement {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: none;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.table-replacement .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.table-replacement .cell {
  flex: 1 1 45%;
}

.table-replacement .cell.label {
  font-weight: 600;
}

.table-replacement .cell.value {
  text-align: left;
}

.faq-search-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

#faqSearch {
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 2rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
}

.search-icon, .clear-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #888;
}

.search-icon {
  left: 8px;
}

.clear-icon {
  right: 8px;
  cursor: pointer;
  display: none;
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: none;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.suggestions-list li {
  padding: 0.5rem;
  cursor: pointer;
}

.suggestions-list li:hover {
  background-color: #f0f0f0;
}

/* ===== CODE DEBUGGER ===== */
.code-debugger {
  margin-top: 40px;
  background: var(--code-bg-dark);
  border-radius: 8px;
  color: #ffffff;
  font-family: sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
}

.debugger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #333;
  background: var(--code-bg);
}

.debugger-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #f8f8f2;
}

.debugger-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.debugger-controls select {
  background: var(--code-bg-dark);
  color: #f8f8f2;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.85rem;
}

.debug-btn, .small-btn, .tool-btn {
  background: #444;
  border: none;
  color: #f8f8f2;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.debug-btn {
  padding: 5px 10px;
}

.debug-btn:hover, .small-btn:hover, .tool-btn:hover {
  background: #666;
}

.small-btn {
  padding: 3px 8px;
  font-size: 0.75rem;
}

.debugger-body {
  display: flex;
  flex-direction: column;
}

.code-editor-container {
  width: 100%;
  max-height: 250px;
  overflow: auto;
  border-bottom: 1px solid #444;
}

.code-editor-container textarea {
  width: 100%;
  height: 100%;
  min-height: 160px;
  box-sizing: border-box;
  resize: none;
  padding: 12px;
  background: var(--code-bg);
  border: none;
  color: #f8f8f2;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  outline: none;
}

.debugger-output {
  background: #111;
  padding: 12px;
  border-top: 1px solid #333;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: #aaa;
}

#output-content {
  background: var(--code-bg-dark);
  padding: 10px;
  border-radius: 4px;
  min-height: 60px;
  font-size: 0.85rem;
  color: var(--success);
  white-space: pre-wrap;
  word-wrap: break-word;
}

#code-input, .code-editor-container, #output-content {
  text-align: left;
  display: block;
}

.debugger-footer {
  background: var(--code-bg);
  padding: 10px 15px;
  border-top: 1px solid #333;
}

.debug-tools {
  display: flex;
  gap: 10px;
}

.tool-btn {
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

footer a {
  color: #333333;
  transition: var(--transition);
}

footer a:hover {
  color: #1f1f1f;
}

/* ===== UTILITY CLASSES ===== */
.log { color: #d8dee9; }
.info { color: var(--info); }
.warn { color: var(--warning); }
.error { color: var(--error); }

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--bg-dark);
    color: var(--text-light);
  }

  a {
    color: #ffffff;
  }

  header {
    background: #1c1c1c;
    border-bottom: 0.5px solid var(--border-dark);
  }

  nav a {
    color: var(--text-light);
  }

  nav a:hover {
    color: #bbbbbb;
  }

  .hero, .alt-hero {
    background: #1a1a1a;
  }

  .hero h2 {
    color: #ffffff;
  }

  .hero p {
    color: var(--text-secondary-dark);
  }

  .btn-primary, .btn-verde {
    background: #ffffff;
    color: #000000;
  }

  .btn-primary:hover, .btn-verde:hover {
    background: #cccccc;
  }

  .feature-card, #more-features .feature-card {
    background: #1e1e1e;
    border: 1px solid #555555;
    color: var(--text-light);
  }

  .feature-card svg {
    color: #bbbbbb;
  }

  .feature-card.active svg {
    color: #ffffff;
  }

  .feature-title span {
    color: var(--text-light);
  }

  .feature-content p {
    color: var(--text-secondary-dark);
  }

  .show-more-text {
    color: var(--text-light);
  }

  .show-more-text:hover {
    color: var(--text-secondary);
  }

  .snippet-code {
    background-color: var(--code-bg);
    color: #f8f8f2;
    border: 1px solid #555555;
  }

  .page-content {
    color: #ddd;
  }

  .page-content h3 {
    color: #fff;
  }

  .page-content p, .page-content ul {
    color: #ccc;
  }

  footer {
    color: #aaa;
  }

  footer a {
    color: #ccc;
  }

  footer a:hover {
    color: #fff;
  }

  .contact-form {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .contact-form input, .contact-form textarea {
    background: var(--code-bg);
    color: var(--text-light);
    border: 1px solid #555555;
  }

  .link-contacto {
    color: var(--text-light);
  }

  .link-contacto:hover {
    color: #bbbbbb;
  }

  .advantage {
    background: #1e1e1e;
    border: 1px solid #555555;
    color: var(--text-light);
  }

  .advantage svg {
    color: var(--text-secondary-dark);
  }

  .advantage h3 {
    color: #ffffff;
  }

  .advantage p {
    color: var(--text-secondary-dark);
  }

  .snippet-tip {
    background-color: #1a1a2e;
    border-color: #4285F4;
    color: #a0c4ff;
  }

  .cookie-card {
    background: #1e1e1e;
    border: 1px solid #444;
    color: var(--text-light);
  }

  .cookie-card h4 {
    color: #fff;
  }

  .cookie-card p {
    color: #ccc;
  }

  .browsers-box {
    background: #1e1e1e;
    color: var(--text-light);
  }

  .browsers-box h3 {
    color: #fff;
  }

  .browsers-icons img {
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.2));
  }

  .extension-tutorial {
    background: #1e1e1e;
    border: 1px solid #555;
    color: var(--text-light);
  }

  .tutorial-step .icon {
    background: #2a2a2a;
  }

  .tutorial-step p {
    color: #ccc;
  }

  .tutorial-note {
    color: #aaa;
  }

  .faq-menu li:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .faq-menu li.active {
    border-left-color: #bbbbbb;
  }

  .pomodoro-left h2 {
    color: #ff6b6b;
  }

  .pomodoro-left p, .pomodoro-right h3, .pomodoro-right ul li {
    color: #ccc;
  }

  .faq-content table {
    background: #1e1e1e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  }

  .faq-content thead {
    background: linear-gradient(135deg, #333, #444);
    color: #fff;
  }

  .faq-content th, .faq-content td {
    color: #ddd;
    border-color: #333;
  }

  .faq-content tbody tr {
    border-bottom: 1px solid #333;
  }

  .faq-content tbody tr:nth-child(even) {
    background: #2a2a2a;
  }

  .faq-content tbody tr:hover {
    background: #3a3a3a;
  }

  #faqSearch {
    background-color: #1c1c1c;
    border: 1px solid #444;
    color: var(--text-light);
  }

  #faqSearch::placeholder {
    color: #888;
  }

  .search-icon, .clear-icon {
    color: #bbb;
  }

  .suggestions-list {
    background: #1c1c1c;
    border: 1px solid #444;
  }

  .suggestions-list li:hover {
    background-color: #333;
  }

  .code-editor-container textarea {
    background: var(--code-bg-dark);
    color: var(--text-light);
    caret-color: var(--success);
  }

  .debugger-output {
    background: #2D2D2D;
    border-top: 1px solid #4d4d4d;
    color: var(--text-light);
  }

  #output-content {
    background: #2a2a2a;
    color: var(--success);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
  }

  .advantages {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .advantage {
    padding: 0.8rem;
  }

  .advantage h3 {
    font-size: 0.95rem;
  }

  .advantage p {
    font-size: 0.85rem;
  }

  .contact-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 5rem 2rem;
    margin: 20px auto 50px auto;
    align-items: center;
    justify-content: center;
  }

  .contact-info {
    max-width: 90%;
    text-align: center;
  }

  .contact-form {
    max-width: 90%;
    padding: 1.5rem;
  }

  .form-step {
    gap: 0.8rem;
  }

  .form-step input, .form-step textarea {
    padding: 8px;
    font-size: 13px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 0.6rem;
  }

  .btn-next, .btn-previous {
    flex: 1 1 100%;
    padding: 10px;
    font-size: 14px;
  }

  .progress {
    justify-content: center;
    gap: 5px;
  }

  .progress span {
    width: 8px;
    height: 8px;
  }

  .browsers-box {
    padding: 1rem;
    margin: 1rem auto;
    max-width: 90%;
  }

  .browsers-box h3 {
    font-size: 1rem;
  }

  .browsers-icons {
    flex-wrap: wrap;
    gap: 15px;
  }

  .browsers-icons img {
    width: 50px;
    height: 50px;
  }

  .pomodoro-section {
    flex-direction: column;
    gap: 1rem;
    padding: 20px 1rem;
  }

  .pomodoro-left, .pomodoro-right {
    min-width: 100%;
  }

  .pomodoro-left h2 {
    font-size: 1.6rem;
  }

  .pomodoro-left p {
    font-size: 0.95rem;
  }

  .pomodoro-right h3 {
    font-size: 1.3rem;
  }

  .pomodoro-right ul li {
    font-size: 0.9rem;
  }

  .faq-container {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 1rem;
  }

  .faq-menu {
    flex: 1 1 100%;
  }

  .faq-menu li {
    padding: 0.6rem 0.8rem;
  }

  .faq-content {
    flex: 1 1 100%;
  }

  .faq-item h2 {
    font-size: 1.2rem;
  }

  .faq-item p {
    font-size: 0.9rem;
  }

  .faq-content table, .faq-content thead, .faq-content tbody, .faq-content th, .faq-content td, .faq-content tr {
    display: block;
    width: 100%;
  }

  .faq-content thead {
    display: none;
  }

  .faq-content tbody tr {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: #f9f9f9;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }

  .faq-content tbody td {
    padding: 0.4rem 0.6rem;
    text-align: left;
    position: relative;
    padding-left: 50%;
    font-size: 0.9rem;
    border: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .faq-content tbody td:last-child {
    border-bottom: 0;
  }

  .faq-content tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
  }

  .faq-content tbody tr:nth-child(even) {
    background: #f5f5f5;
  }

  .table-replacement .cell {
    flex: 1 1 100%;
  }

  .code-debugger {
    max-width: 100%;
    margin-top: 20px;
  }

  .debugger-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .debugger-controls {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 10px;
  }

  .debugger-controls select, .debug-btn {
    width: 100%;
  }

  .code-editor-container {
    max-height: 200px;
  }

  .code-editor-container textarea {
    font-size: 12px;
  }

  #output-content {
    font-size: 0.75rem;
    padding: 8px;
  }

  .small-btn {
    font-size: 0.7rem;
    padding: 2px 6px;
  }

  .debugger-footer {
    padding: 8px 15px;
  }

  .tool-btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ===== SCROLLBAR STYLING ===== */
.code-editor-container::-webkit-scrollbar {
  width: 6px;
}

.code-editor-container::-webkit-scrollbar-track {
  background: transparent;
}

.code-editor-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.code-editor-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.code-editor-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}