/* ==========================================================================
   TRASTONIA - HOJA DE ESTILOS CSS (Estructura organizada para Dreamweaver)
   ========================================================================== */

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bg-header: #000000;
  --bg-body: #ffffff;
  --text-dark: #111111;
  --text-muted: #666666;
  --title-color: #784143;
  --border-color: #e5e5e5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
1. CABECERA & NAVEGACIÓN
   -------------------------------------------------------------------------- */
header {
  background-color: var(--bg-header);
  color: #ffffff;
  width: 100%;
  padding: 15px 10px 10px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-logo-container {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.header-logo-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  object-fit: contain;
}

nav {
  width: 100%;
  max-width: 1000px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 8px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: #cccccc;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
2. ESTRUCTURA Y CONTENIDO PRINCIPAL
   -------------------------------------------------------------------------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 25px;
  background-color: var(--bg-body);
}

section {
  margin-bottom: 70px;
  scroll-margin-top: 30px;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--title-color);
  letter-spacing: 0.05em;
  margin-bottom: 25px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--title-color);
}

/* --------------------------------------------------------------------------
3. SECCIÓN LA REVISTA & FLIPBOOK
   -------------------------------------------------------------------------- */
.magazine-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 30px;
}

.cover-container {
  border: 1px solid var(--border-color);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  background: #fafafa;
}

.cover-image {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.magazine-info h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--title-color);
  margin-bottom: 5px;
}

.magazine-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.magazine-description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 30px;
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--text-dark);
  background: transparent;
  color: var(--text-dark);
}

.btn-primary {
  background-color: var(--text-dark);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #333333;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

.flipbook-container {
  display: none;
  margin-top: 40px;
  background: #111;
  border-radius: 4px;
  padding: 20px;
  color: white;
  text-align: center;
}

.flipbook-mock {
  width: 100%;
  height: 500px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #444;
  margin-top: 15px;
}

/* --------------------------------------------------------------------------
4. MANIFIESTO, QUIÉNES SOMOS & NOTICIAS
   -------------------------------------------------------------------------- */
.manifesto-content {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.8;
  color: #222;
  max-width: 850px;
}

.manifesto-content p {
  margin-bottom: 25px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 20px;
}

.about-card h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--title-color);
  margin-bottom: 8px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.news-card {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--title-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
5. PIE DE PÁGINA
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
6. ADAPTABILIDAD RESPONSIVA (MÓVILES Y TABLETS)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  main {
    padding: 32px 18px;
  }
  .magazine-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cover-container {
    max-width: 300px;
    margin: 0 auto;
  }
  .menu-toggle {
    display: inline-block;
  }
  nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: none;
    padding-top: 0;
  }
  nav.drawer-open {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 8px;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 0 6px 0;
  }
}

/* --------------------------------------------------------------------------
   SISTEMA DE SECCIONES NAVEGABLES INDEPENDIENTES
   -------------------------------------------------------------------------- */
.page-section.active-section {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

nav ul li a.active {
  text-decoration: underline;
  opacity: 1;
  font-weight: bold;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   ESTILOS REUTILIZABLES PARA TÍTULOS Y NOMBRES/ETIQUETAS
   -------------------------------------------------------------------------- */
.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}