:root {
  /* Paleta de Colores Principal */
  --color-primary: #0F1C2E;
  /* Azul profundo */
  --color-accent: #D4AF37;
  /* Dorado suave/premium */
  --color-secondary: #6A5ACD;
  /* Morado suave espiritual */
  --color-bg-light: #F5F3EE;
  /* Fondo claro editorial */
  --color-text-main: #2E2E2E;
  /* Texto principal */
  --color-white: #FFFFFF;
  /* Blanco puro */

  /* TipografÃ­as */
  --font-headings: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Transiciones y Sombras */
  --transition-smooth: all 0.3s ease-in-out;
  --shadow-subtle: 0 4px 12px rgba(15, 28, 46, 0.05);
  --shadow-hover: 0 8px 24px rgba(15, 28, 46, 0.1);
  --border-radius: 4px;
  /* Bordes sutiles para look elegante */
}

/* Reset BÃ¡sico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

strong,
b {
  font-weight: 700;
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Contenedor Principal */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-text-main);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid rgba(15, 28, 46, 0.2);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* --- Animaciones Generales --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

   

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  background-color: var(--color-bg-light);
  border-bottom: 1px solid rgba(15, 28, 46, 0.08);
  /* Línea final y fina */
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

/* Navegación Desktop */
.main-nav ul {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-main);
  position: relative;
  padding-bottom: 5px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Menú Móvil Botón */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  transition: var(--transition-smooth);
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 18px;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

.logo-text-footer {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-accent);
  /* Dorado en el footer */
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-white);
  padding-left: 5px;
  /* Pequeño shift al hacer hover */
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVO BASE
   ========================================================================== */
@media (max-width: 768px) {
  .header-actions {
    display: none;
    /* Ocultar botón 'Explorar' en móvil para mantener limpio */
  }

  .mobile-menu-btn {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .main-nav a {
    font-size: 1.5rem;
    font-family: var(--font-headings);
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-brand p {
    margin: 0 auto;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-bg-light);
  /* Sutil degradado lineal para dar textura sin usar imagen */
  background-image: linear-gradient(135deg, rgba(245, 243, 238, 1) 0%, rgba(220, 215, 205, 0.4) 100%);
  position: relative;
  overflow: hidden;
}

/* Estrella elegante sutil geométrica de fondo */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50vh;
  height: 50vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(245, 243, 238, 0) 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.hero p.subtitle {
  font-size: 1.25rem;
  color: var(--color-text-main);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* ==========================================================================
   PROPÓSITO EDITORIAL (ABOUT)
   ========================================================================== */
.purpose {
  padding: 5rem 0;
  text-align: center;
  background-color: var(--color-white);
  border-top: 1px solid rgba(15, 28, 46, 0.05);
  border-bottom: 1px solid rgba(15, 28, 46, 0.05);
}

.purpose-content {
  max-width: 700px;
  margin: 0 auto;
}

.purpose h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.purpose p {
  font-size: 1.25rem;
  font-weight: 300;
  color: #4A4A4A;
  line-height: 1.8;
}

/* ==========================================================================
   ÁREAS TEMÁTICAS (CARDS)
   ========================================================================== */
.areas {
  padding: 5rem 0;
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.area-card {
  background-color: var(--color-white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(15, 28, 46, 0.05);
  /* slightly more visible */
  height: 100%;
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Ícono simulado con CSS simple */
.area-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background-color: rgba(106, 90, 205, 0.1);
  /* Morado sutil */
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.area-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.area-card p {
  color: #555;
  font-size: 0.95rem;
}

/* ==========================================================================
   ARTÍCULOS DESTACADOS
   ========================================================================== */
.articles {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  border: 1px solid rgba(15, 28, 46, 0.08);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
}

.article-image {
  width: 100%;
  height: 220px;
  background-color: #E8E5DF;
  /* Color placeholder pálido */
  position: relative;
  overflow: hidden;
}

/* Placeholder imagen generada CSS */
.article-image::before {
  content: 'Contenido Editorial';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-weight: 300;
  color: rgba(15, 28, 46, 0.25);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ==========================================================================
   ARTÍCULO DESTACADO (HEADER ARTÍCULOS)
   ========================================================================== */
.featured-article-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  border: 1px solid rgba(15, 28, 46, 0.08);
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
}

@media (max-width: 992px) {
  .featured-article-block {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.article-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  /* Changed to brand accent from secondary */
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.read-more {
  font-family: var(--font-headings);
  color: var(--color-primary);
  font-weight: 600;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  color: var(--color-accent);
}

/* Flecha derecha simple */
.read-more::after {
  content: '?';
  transition: transform 0.3s ease;
}

.read-more:hover::after {
  transform: translateX(5px);
}

/* ==========================================================================
   CALL TO ACTION (EXPLORAR)
   ========================================================================== */
.cta-section {
  padding: 5rem 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.cta-section .btn-outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-section .btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* ==========================================================================
   RESPOSIVE AJUSTES INTERNOS
   ========================================================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p.subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .purpose h2,
  .section-title,
  .cta-section h2 {
    font-size: 2rem;
  }

  .purpose,
  .areas,
  .articles,
  .cta-section,
  .newsletter-section {
    padding: 4rem 0;
  }

  .article-content {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   PÁGINAS INTERNAS
   ========================================================================== */
.page-header {
  padding: 6rem 0 3rem;
  text-align: center;
  background-color: var(--color-bg-light);
  border-bottom: 1px solid rgba(15, 28, 46, 0.05);
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
}

.page-content {
  padding: 5rem 0;
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   PUBLICACIONES (EBOOKS)
   ========================================================================== */
.publications {
  padding: 5rem 0;
  background-color: var(--color-white);
  border-top: 1px solid rgba(15, 28, 46, 0.05);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.publication-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid rgba(15, 28, 46, 0.08);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(212, 175, 55, 0.3);
}

.publication-cover {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: #E8E5DF;
  /* Color placeholder */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(15, 28, 46, 0.05);
}

.publication-cover::before {
  content: 'Edición Digital';
  font-family: var(--font-body);
  font-weight: 300;
  color: rgba(15, 28, 46, 0.3);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.publication-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.publication-topic {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.publication-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  line-height: 1.3;
}

.publication-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.publication-action {
  margin-top: auto;
}

/* ==========================================================================
   NEWSLETTER CAPTURE
   ========================================================================== */
.newsletter-section {
  padding: 6rem 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.newsletter-content {
  max-width: 650px;
  margin: 0 auto;
}

.newsletter-section h2 {
  color: var(--color-white);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 280px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border-radius: var(--border-radius);
  outline: none;
  transition: var(--transition-smooth);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.1);
}

.newsletter-submit {
  border: none;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

.newsletter-submit:hover {
  background-color: var(--color-white);
}

/* Formularios Contacto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.form-group input,
.form-group textarea {
  padding: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(15, 28, 46, 0.2);
  border-radius: var(--border-radius);
  background-color: var(--color-white);
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}