/*
Theme Name: MenteFocus Child
Theme URI:  https://mentefocus.com
Description: Tema hijo personalizado para Astra - MenteFocus (moderno, minimalista, enfocado en productividad y bienestar digital).
Author: MenteFocus
Author URI: https://mentefocus.com
Template: astra
Version: 1.1.0
Text Domain: mentefocus-child
*/

/* =========================================
   ESTILOS GLOBALES
========================================= */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111827;
  background-color: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #1e40af;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #111827;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: #374151;
}

/* =========================================
   HEADER / MENÚ PRINCIPAL
========================================= */
header.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease;
}

header.site-header.scrolled {
  background: rgba(255,255,255,0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Enlaces del menú */
#mainMenu {
  display: flex;
  gap: 25px;
  align-items: center;
}

#mainMenu a {
  color: #111827;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

#mainMenu a:hover {
  color: #2563eb;
  transform: translateY(-1px);
}

/* Pestaña activa */
#mainMenu a.active {
  color: #2563eb;
  font-weight: 600;
}

/* ====== MENÚ MÓVIL ====== */
@media (max-width: 768px) {
  #mainMenu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 65px;
    right: 15px;
    width: 220px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  #mainMenu.show {
    display: flex;
  }

  #mainMenu a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  #mainMenu a:last-child {
    border-bottom: none;
  }

  #menuToggle {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #111827;
  }
}

/* =========================================
   SECCIONES / CONTENIDO
========================================= */
.section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 700;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #6b7280;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  text-align: center;
  padding: 80px 20px;
}

.hero h1 span {
  color: #2563eb;
}

.hero p {
  color: #4b5563;
  font-size: 1.1rem;
}

/* Cards de artículos */
.card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* =========================================
   BOTONES
========================================= */
.btn-primary {
  background-color: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: #1e40af;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 8px 16px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: #2563eb;
  color: #fff;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #111827;
  color: #e5e7eb;
  padding: 60px 20px 20px;
  margin-top: 80px;
}

footer h3, footer h4 {
  color: #ffffff;
  margin-bottom: 15px;
}

footer p, footer a {
  color: #9ca3af;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #2563eb;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 6px;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

footer .footer-bottom {
  border-top: 1px solid #1f2937;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* =========================================
   UTILIDADES
========================================= */
.text-primary {
  color: #2563eb !important;
}

.bg-light {
  background: #f9fafb !important;
}

.bg-primary {
  background: #2563eb !important;
}

.text-white {
  color: #fff !important;
}

/* =========================================
   RESPONSIVE BASE
========================================= */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 60px 15px;
  }

  h2 {
    font-size: 1.6rem;
  }
}

/* =========================================
   COOKIE BANNER
========================================= */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  color: #e5e7eb;
  z-index: 9999;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-consent a {
  color: #60a5fa;
}

.cookie-consent a:hover {
  color: #93c5fd;
}
