/* Restaurar estilo de h2 para línea decorativa */
h2 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  margin: 4rem 0 2.5rem 0;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 1rem;
  text-align: left;
}
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'VictoryMarr', Arial, sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.9;
  font-size: clamp(17px, 2.5vw, 19px);
  scroll-behavior: smooth;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

/* Contenedor principal */

/* Palabras clave (tags) */
.keywords {
  margin: 0 0 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
}
.kw {
  display: inline-block;
  padding: 0.25em 0.85em;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 999px;
  background: #f2f2f2;
  color: #333;
  border: 1.5px solid #e0e0e0;
  margin-bottom: 0.2em;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
.kw-hardware { background: linear-gradient(90deg,#ffe0b2,#ffd180); color: #b26a00; border-color: #ffd180; }
.kw-teclado { background: linear-gradient(90deg,#e3f2fd,#bbdefb); color: #1565c0; border-color: #bbdefb; }
.kw-raton { background: linear-gradient(90deg,#fce4ec,#f8bbd0); color: #ad1457; border-color: #f8bbd0; }
.kw-ergonomia { background: linear-gradient(90deg,#e8f5e9,#a5d6a7); color: #1b5e20; border-color: #a5d6a7; }
.kw-monitor { background: linear-gradient(90deg,#ede7f6,#b39ddb); color: #4527a0; border-color: #b39ddb; }
.kw-creadores { background: linear-gradient(90deg,#fffde7,#fff9c4); color: #fbc02d; border-color: #fff9c4; }
.kw-audio { background: linear-gradient(90deg,#e1f5fe,#81d4fa); color: #0277bd; border-color: #81d4fa; }
.kw-auriculares { background: linear-gradient(90deg,#f3e5f5,#ce93d8); color: #6a1b9a; border-color: #ce93d8; }
.kw-estudio { background: linear-gradient(90deg,#fbe9e7,#ffab91); color: #d84315; border-color: #ffab91; }
.kw-microfono { background: linear-gradient(90deg,#f1f8e9,#c5e1a5); color: #558b2f; border-color: #c5e1a5; }
.kw-comunicacion { background: linear-gradient(90deg,#fff3e0,#ffcc80); color: #ef6c00; border-color: #ffcc80; }
.kw-soporte { background: linear-gradient(90deg,#e0f2f1,#80cbc4); color: #00695c; border-color: #80cbc4; }
.kw-gaming { background: linear-gradient(90deg,#f9fbe7,#dce775); color: #827717; border-color: #dce775; }
.kw-accesorio { background: linear-gradient(90deg,#f5f5f5,#bdbdbd); color: #424242; border-color: #bdbdbd; }
.kw-movil { background: linear-gradient(90deg,#e1f5fe,#b3e5fc); color: #0288d1; border-color: #b3e5fc; }
.kw-iluminacion { background: linear-gradient(90deg,#fffde7,#ffe082); color: #ff6f00; border-color: #ffe082; }
.kw-video { background: linear-gradient(90deg,#e3f2fd,#90caf9); color: #1976d2; border-color: #90caf9; }
.kw-mesa { background: linear-gradient(90deg,#f1f8e9,#aed581); color: #33691e; border-color: #aed581; }
.kw-reposapies { background: linear-gradient(90deg,#fbe9e7,#ffccbc); color: #bf360c; border-color: #ffccbc; }
.kw-oficina { background: linear-gradient(90deg,#e0f7fa,#80deea); color: #00838f; border-color: #80deea; }
.kw-almohadilla { background: linear-gradient(90deg,#f3e5f5,#b39ddb); color: #512da8; border-color: #b39ddb; }
.kw-muneca { background: linear-gradient(90deg,#fff3e0,#ffe0b2); color: #e65100; border-color: #ffe0b2; }
.kw-silla { background: linear-gradient(90deg,#f1f8e9,#c5e1a5); color: #558b2f; border-color: #c5e1a5; }
.kw-herramienta { background: linear-gradient(90deg,#e0f7fa,#4dd0e1); color: #006064; border-color: #4dd0e1; }
.kw-presentacion { background: linear-gradient(90deg,#fce4ec,#f06292); color: #ad1457; border-color: #f06292; }
#page-wrapper {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin: 2rem auto;
  padding: 0 2.5rem;
  width: 33%;
  max-width: 1200px;
  border-radius: 8px;
  overflow: hidden;
}


.keywords {
  margin: 0 0 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  justify-content: center;
}
.kw {
  display: inline-block;
  padding: 0.13em 0.7em;
  font-size: 0.74em;
  font-weight: 500;
  border-radius: 7px;
  background: #f2f2f2;
  color: #333;
  border: none;
  margin-bottom: 0.1em;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
/* Colores planos para cada tipo de tag */
.kw-salud { background: #e0f7fa; color: #00796b; }
.kw-comodidad { background: #fff9c4; color: #827717; }
.kw-productividad { background: #ffe0b2; color: #e65100; }
.kw-nivelpro { background: #e1bee7; color: #6a1b9a; }
.kw-precision { background: #bbdefb; color: #1565c0; }
.kw-nitidez { background: #f8bbd0; color: #ad1457; }
.kw-util { background: #c8e6c9; color: #2e7d32; }
.kw-accesible { background: #f5f5f5; color: #424242; }
.kw-pijotada { background: #ffe0e0; color: #c62828; }
.kw-orden { background: #d7ccc8; color: #4e342e; }
.kw-descubrimiento { background: #b3e5fc; color: #0288d1; }
.kw-ergonomia { background: #c5e1a5; color: #33691e; }

/* Tipografía */
h1 {
  font-size: clamp(42px, 8vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  color: #000;
  letter-spacing: -1px;
  max-width: 700px;
  margin: 2.5rem auto 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-align: center;
}

h1 span,
h1 .accent { 
  color: #ff7a00;
  font-weight: 900;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  transform: none;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  border-radius: 2px;
}

h3 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  margin: 2.5rem 0 1.5rem 0;
}

p { 
  margin: 1.2rem 0;
  font-size: clamp(17px, 2.5vw, 19px);
  line-height: 1.9;
  color: #444;
}

br {
  display: block;
  content: "";
  margin-top: 0.4em;
}

ul { 
  margin: 2rem 0 2rem 1.5rem;
}

li { 
  margin-bottom: 1rem;
  font-size: clamp(17px, 2.5vw, 19px);
  line-height: 1.8;
  color: #333;
}

strong { 
  color: #000; 
  font-weight: 700; 
}

em { 
  font-style: italic; 
}

.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;
}

.author {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.subtitle {
  font-size: clamp(18px, 2.5vw, 20px);
  color: #444;
  font-weight: 400;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  text-align: center;
  margin-bottom: 4rem;
}

/* Productos */
.products {
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.product-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1rem;
  aspect-ratio: 1 / 1;
}

.product-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: #000;
}

.product-card p {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.amazon-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #ff9900;
  color: #000;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.amazon-btn:hover {
  background: #e68a00;
  color: #000;
  text-decoration: none;
}

/* Newsletter forms */
.news {
  margin: 0 auto;
}

form {
  margin-top: 1rem;
}

.controls {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
}

input[type="email"] {
  padding: 0.9rem 1rem;
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  flex: 1;
  min-width: 0;
  background: #fff;
  color: #000;
  box-sizing: border-box;
}

button {
  padding: 0.9rem 1.5rem;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

button:hover { 
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  color: #fff;
}

.consent-box {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #333;
}

.consent-box label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  cursor: pointer;
}

.consent-box input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text {
  line-height: 1.4;
  text-align: left;
  font-size: 0.8rem;
  color: var(--muted);
}

.consent-text a {
  color: #000;
  text-decoration: underline;
}

/* Legal */
.legal {
  text-align: center;
  margin: 4rem 0;
}

.legal p {
  font-size: 0.85rem;
  color: #666;
  max-width: 100%;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #e9ecef;
}

footer a {
  color: #000;
  text-decoration: underline;
}

footer a:hover {
  color: #ff7a00;
}

/* Newsletter sections as cards */
.newsletter-top,
.newsletter-bottom {
  max-width: 68ch;
}

.newsletter-top *,
.newsletter-bottom * {
  max-width: 100%;
}

.newsletter-top h2,
.newsletter-bottom h2 {
  margin-bottom: 2rem;
  text-align: left;
}

.news {
  padding: 3rem 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
  #page-wrapper {
    width: 95%;
    margin: 1rem auto;
    padding: 0 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  h2 {
    font-size: clamp(24px, 6vw, 30px);
  }

  .controls {
    flex-direction: column;
  }
  
  input[type="email"],
  button {
    width: 100%;
  }

  .news {
    padding: 2rem 1.5rem;
  }
}

/* Accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}