/*
Theme Name: Warmazono Book Library
Theme URI: https://warmazon.com
Author: Warmazon
Author URI: https://warmazon.com
Description: Tema completo de librería digital para Warmazon con categorías: eBook, Periódico, Revista, Comic y Audiolibro.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, e-commerce, dark-mode, library, books
Text Domain: warmazono-book-library
*/

/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #0b0d0e;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background-color: #0b0d0e;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: #26cc9a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0d0e;
}

.logo-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.subbrand {
  font-size: 0.7rem;
  color: #8e8e8e;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #26cc9a;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem 5rem;
}

/* HERO SECTION */
.hero {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  color: #26cc9a;
}

.hero p {
  color: #a0a0a0;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* SEARCH BOX */
.search-box {
  display: flex;
  max-width: 550px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: #333;
}

.search-box button {
  background-color: #26cc9a;
  border: none;
  padding: 0 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background 0.2s;
}

.search-box button:hover {
  background-color: #1eb386;
}

.search-box button svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

/* CATEGORIES SECTION */
.categories-section {
  text-align: center;
}

.categories-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.categories-section h2 span {
  color: #26cc9a;
}

.subtitle {
  color: #a0a0a0;
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
}

/* GRID DE TARJETAS */
.grid-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

/* TARJETAS */
.card {
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ÍCONOS EN BLANCO Y ENGROSADOS */
.card-icon {
  width: 42px;
  height: 42px;
  background-color: #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 3;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.category-title-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.category-title-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.card p {
  font-size: 0.75rem;
  color: #e0e0e0;
  margin-bottom: 1.8rem;
  min-height: 2.2em;
  display: flex;
  align-items: center;
}

/* BOTONES DENTRO DE LAS TARJETAS */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* COLORES DE LAS TARJETAS */
.card-ebook { background-color: #173b5e; }
.card-periodico { background-color: #a84325; }
.card-revista { background-color: #1b7a37; }
.card-comic { background-color: #8a2be2; }
.card-audiolibro { background-color: #c0392b; }

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2rem;
  background-color: #0b0d0e;
  border-top: 1px solid #1a1d20;
  color: #8e8e8e;
  font-size: 0.8rem;
}
