* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #c0392b;
  --dark: #1a1a2e;
  --gray: #555;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --white: #fff;
}

body {
  font-family: 'Georgia', serif;
  color: #222;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* NAV */
header {
  background: var(--dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 3px solid var(--red);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: -0.5px;
}

.logo span { color: var(--red); }

nav {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 2rem;
  overflow-x: auto;
  white-space: nowrap;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav a {
  color: #ccc;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--red); }

/* HERO */
.hero {
  background: var(--light-gray);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.hero h1 span { color: var(--red); }
.hero p { color: var(--gray); font-size: 1.1rem; }

/* SECTION LABEL */
.section-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  font-weight: bold;
  margin-bottom: 1rem;
}

/* CATEGORIES GRID */
.categories-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  padding: 1.5rem;
  border-radius: 4px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.category-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.category-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }

.category-card h3 {
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--gray);
  font-family: 'Arial', sans-serif;
}

/* AUTHORS */
.authors-section {
  background: var(--light-gray);
  padding: 3rem 2rem;
}

.authors-section .inner { max-width: 1200px; margin: 0 auto; }

.authors-section h2 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.author-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.author-info .badge-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-family: 'Arial', sans-serif;
  margin-bottom: 0.3rem;
}

.author-info p {
  font-size: 0.8rem;
  color: var(--gray);
  font-family: 'Arial', sans-serif;
}

/* CONTACT */
.contact-section {
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-section h2 { font-size: 2rem; color: var(--dark); margin-bottom: 0.5rem; }
.contact-section p { color: var(--gray); margin-bottom: 2rem; font-family: 'Arial', sans-serif; }

form { display: flex; flex-direction: column; gap: 1rem; }

form input, form textarea, form select {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Arial', sans-serif;
  background: var(--white);
  transition: border-color 0.2s;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--red);
}

form textarea { min-height: 150px; resize: vertical; }

form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

form button:hover { background: #a93226; }

/* NOSOTROS */
.nosotros-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.nosotros-section h2 { font-size: 2rem; color: var(--dark); margin-bottom: 1rem; }
.nosotros-section p { color: var(--gray); font-family: 'Arial', sans-serif; margin-bottom: 1rem; line-height: 1.8; }

.mision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.mision-card {
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem;
  background: var(--light-gray);
  border-radius: 0 4px 4px 0;
}

.mision-card h4 { color: var(--dark); margin-bottom: 0.5rem; font-size: 1rem; }
.mision-card p { font-size: 0.85rem; margin: 0; }

/* FOOTER */
footer {
  background: var(--dark);
  color: #aaa;
  text-align: center;
  padding: 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  margin-top: 3rem;
}

footer span { color: var(--red); }

/* PAGE HEADER */
.page-header {
  background: var(--dark);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header h1 span { color: var(--red); }
.page-header p { color: #aaa; font-family: 'Arial', sans-serif; }

@media (max-width: 600px) {
  .header-top { padding: 0.75rem 1rem; }
  nav { padding: 0.4rem 1rem; gap: 1rem; }
  .categories-section, .authors-section, .contact-section, .nosotros-section { padding: 2rem 1rem; }
}
