:root {
  --color-primario: #ff6200;
  --color-secundario: #ff4500;
  --color-fondo: #ffffff;
  --color-texto: #333;
  --color-fondo-container: #fff;
  --color-texto-secundario: #444;
  --color-borde: #ddd;
  --color-input-bg: #fff;
  --color-form-bg: #fafafa;
  --color-nota: #555;
  --color-consent: #666;
  --box-shadow: rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --fuente-principal: 'VictoryMarr', Arial, sans-serif;
}

body {
  margin: 0;
  font-family: var(--fuente-principal);
  background: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.8;
  font-size: clamp(17px, 2.5vw, 19px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(90%, clamp(840px, 60vw, 1200px));
  background: var(--color-fondo-container);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--box-shadow);
  flex: 1;
  margin: 0 auto;
}

h1 {
  font-size: clamp(42px, 8vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--color-texto);
  letter-spacing: -1px;
  max-width: 700px;
  margin: 2rem auto 1rem;
}

.accent {
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #ff7a00;
  font-weight: 700;
}

h2 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin: 3rem 0 2rem 0;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  border-radius: 2px;
}

h3 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 3rem 0 1.5rem 0;
  letter-spacing: -0.3px;
  position: relative;
}

h3::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: 20%;
  width: 60%;
  height: 1px;
  background: var(--color-borde);
  opacity: 0.5;
}

hr.section-separator {
  border: none;
  border-top: 1px solid var(--color-borde);
  margin: 3rem 0;
}

details {
  margin: 3rem 0;
}

details summary {
  cursor: pointer;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 2rem 0;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 0.75rem;
  list-style: none; /* Remove default marker */
}

details summary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  border-radius: 2px;
}

details summary::-webkit-details-marker {
  display: none;
}

nav#toc {
  margin: 2rem 0;
  background: rgba(0, 0, 0, 0.01);
  border-radius: var(--radius);
  padding: 1rem;
}

nav#toc h2 {
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

nav#toc ul {
  list-style: disc;
  padding: 0 0 0 1rem;
}

nav#toc li {
  margin: 0.5rem 0;
  border-bottom: 1px solid var(--color-borde);
  padding-bottom: 0.5rem;
}

nav#toc li:last-child {
  border-bottom: none;
}

nav#toc a {
  color: #007bff;
  text-decoration: none;
  position: relative;
}

nav#toc a::after {
  content: "➜";
  margin-left: 0.5rem;
  color: var(--color-primario);
}

nav#toc a:hover {
  color: var(--color-primario);
}

p {
  font-size: clamp(17px, 2.5vw, 19px);
  line-height: 1.8;
  color: var(--color-texto-secundario);
  margin: 0 0 1.5rem 0;
}

.intro {
  font-size: clamp(15px, 2vw, 17px);
  margin: 3rem 0 2rem 0;
  position: relative;
  
  text-align: center;
  font-weight: 300;
  
}

.intro::before,
.intro::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background-color: var(--color-borde);
}

.intro::before {
  top: -1rem;
}

.intro::after {
  bottom: -1rem;
}

strong {
  color: var(--color-texto);
  font-weight: 700;
}

.tecla {
  background: linear-gradient(135deg, #ff8c00 0%, #ff6b00 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid #ff4500;
  box-shadow: 0 2px 8px rgba(255, 108, 0, 0.2);
  position: relative;
  transition: all 0.2s ease;
}

.tecla:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 108, 0, 0.3);
}

.tecla::before {
  content: "💡";
  position: absolute;
  top: -10px;
  left: 15px;
  background: #ff4500;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tecla strong {
  color: #fff;
  font-weight: 800;
}

.tecla p {
  color: #fff;
}

.tecla iframe {
  width: 100%;
  max-width: 250px;
  height: 444px;
  border-radius: 8px;
  margin: 1rem auto;
  display: block;
}

.tecla a {
  color: #fff;
  text-decoration: underline;
}

.tecla a:hover {
  color: #ffe0b2;
}

kbd {
  background: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 0 0 2px #fff inset;
  color: #333;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.85em;
  line-height: 1;
  padding: 2px 4px;
  margin: 0 1px;
  font-weight: bold;
  text-shadow: 0 1px 0 #fff;
}

.tecla kbd {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1), 0 0 0 2px rgba(255,255,255,0.1) inset;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

a {
  color: #ff4500;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: #ff6200;
  text-decoration: underline;
}

a.button-link {
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  margin: 4px 0;
  box-shadow: 0 2px 4px rgba(255, 108, 0, 0.2);
  transition: all 0.3s ease;
  font-weight: 600;
  text-decoration: none;
}

a.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 108, 0, 0.3);
  text-decoration: none;
  background: linear-gradient(135deg, #ff7a00 0%, #ff5500 100%);
}

a[target="_blank"]:after {
  content: "↗";
  margin-left: 6px;
  font-size: 0.9em;
  opacity: 0.8;
}

.tecla a {
  background: rgba(255, 255, 255, 0.9);
  color: #ff4500;
  padding: 6px 12px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tecla a:hover {
  background: #fff;
  border-color: #fff;
  color: #ff4500;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

form.news {
  background: var(--color-form-bg);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 10px var(--box-shadow);
}

.controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

input[type="email"] {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--color-borde);
  border-radius: 4px;
  font-size: 1rem;
  background: var(--color-input-bg);
  color: var(--color-texto);
}

button {
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

.consent-box {
  font-size: 0.9rem;
  color: var(--color-consent);
}

.consent-text a {
  color: #ff4500;
}

.nota {
  margin-top: 1.5em;
  font-size: 1rem;
  color: var(--color-nota);
  font-style: italic;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tools-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--color-borde);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.tools-grid figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--box-shadow);
}

.tools-grid figure img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.tools-grid figure h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.tools-grid figure h3 a {
  color: #fff;
  text-decoration: none;
}

.tools-grid figure h3 a:hover {
  color: var(--color-primario);
  text-decoration: underline;
}

.tools-grid figure p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #000;
  line-height: 1.4;
}

.tools-grid figure p strong {
  color: #000;
}

@media (max-width: 768px) {
  body {
    background: var(--color-fondo);
  }
  .container {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }
  h1 {
    font-weight: 900 !important;
  }
}

@media (max-width: 600px) {
  body {
    padding: 1.5rem;
  }
  h1 {
    font-size: 1.7rem;
  }
  .controls {
    flex-direction: column;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 1800px) {
  .container {
    max-width: 800px;
  }
}

/* Footer */
footer {
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center;
  border-top: 2px solid var(--color-primario);
  background: var(--color-form-bg);
  border-radius: 0 0 var(--radius) var(--radius);
}

.footer-content p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--color-texto-secundario);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav li {
  display: inline;
}

.footer-nav a {
  color: var(--color-primario);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}