/* =========================================================
   HISPASEEDS · HEADER-BLOG-FIXES.CSS
   =========================================================
   Versión limpia y estable
   - header móvil global
   - drawer móvil Astra por encima del hero/home
   - fixes visuales de blog / archive / single
   ========================================================= */


/* =========================================================
   01. HEADER MÓVIL GLOBAL
   ========================================================= */
@media (max-width: 921px) {
  .ast-header-break-point .main-header-bar {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(8, 8, 8, 0.96) !important;
    border-bottom: 1px solid rgba(230, 184, 92, 0.12);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1000;
  }

  .ast-header-break-point .main-header-bar .ast-container,
  .ast-header-break-point .site-primary-header-wrap,
  .ast-header-break-point .main-header-bar .main-header-container {
    min-height: 52px;
    align-items: center;
  }

  .ast-header-break-point .site-branding,
  .ast-header-break-point .ast-site-identity,
  .ast-header-break-point .site-logo-img,
  .ast-header-break-point .custom-logo-link {
    display: flex !important;
    align-items: center !important;
    min-height: 52px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .ast-header-break-point .custom-logo-link,
  .ast-header-break-point .site-logo-img a {
    display: inline-flex !important;
    align-items: center !important;
  }

  .ast-header-break-point .custom-logo-link img,
  .ast-header-break-point .site-logo-img img,
  .ast-header-break-point .custom-logo {
    display: block !important;
    max-height: 42px !important;
    width: auto !important;
    height: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .ast-mobile-menu-buttons-minimal.menu-toggle,
  .ast-mobile-popup-trigger-minimal,
  .ast-menu-toggle,
  .menu-toggle.main-header-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px;
    background: rgba(230, 184, 92, 0.06);
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1001;
  }

  /* Drawer móvil Astra: fix real */
  .ast-header-break-point .ast-mobile-popup-drawer {
    right: 0 !important;
    left: auto !important;
    max-width: 85vw;
    width: 320px;
    background: #080808 !important;
    z-index: 999999 !important;
  }

  .ast-header-break-point .ast-mobile-popup-drawer.active,
  .ast-header-break-point .ast-mobile-popup-drawer.ast-popup-drawer.active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .ast-header-break-point .ast-mobile-popup-overlay {
    z-index: 999998 !important;
  }

  .ast-header-break-point .main-header-menu,
  .ast-header-break-point .main-header-menu .menu-link,
  .ast-header-break-point .main-header-menu > .menu-item > .menu-link,
  .ast-header-break-point .main-header-menu .sub-menu .menu-link {
    font-size: 18px;
  }

  .ast-header-break-point .main-header-menu .menu-link,
  .ast-header-break-point .main-header-menu > .menu-item > .menu-link,
  .ast-header-break-point .main-header-menu .sub-menu .menu-link {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .ast-header-break-point .main-header-bar {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .ast-header-break-point .main-header-bar .ast-container,
  .ast-header-break-point .site-primary-header-wrap,
  .ast-header-break-point .main-header-bar .main-header-container {
    min-height: 46px;
  }

  .ast-header-break-point .custom-logo-link img,
  .ast-header-break-point .site-logo-img img,
  .ast-header-break-point .custom-logo {
    max-height: 34px !important;
  }

  .ast-mobile-menu-buttons-minimal.menu-toggle,
  .ast-mobile-popup-trigger-minimal,
  .ast-menu-toggle,
  .menu-toggle.main-header-menu-toggle {
    min-width: 40px;
    min-height: 40px;
  }

  .ast-header-break-point .ast-mobile-popup-drawer {
    width: min(320px, 88vw);
  }
}


/* =========================================================
   02. BASE OSCURA PARA BLOG / ARCHIVOS / SINGLE
   ========================================================= */
body.blog,
body.archive,
body.search.search-results,
body.single-post {
  background-color: #080808 !important;
}

body.blog #page,
body.archive #page,
body.search.search-results #page,
body.single-post #page,
body.blog .site,
body.archive .site,
body.search.search-results .site,
body.single-post .site,
body.blog #content,
body.archive #content,
body.search.search-results #content,
body.single-post #content,
body.blog .site-content,
body.archive .site-content,
body.search.search-results .site-content,
body.single-post .site-content,
body.blog .content-area,
body.archive .content-area,
body.search.search-results .content-area,
body.single-post .content-area,
body.blog .site-main,
body.archive .site-main,
body.search.search-results .site-main,
body.single-post .site-main,
body.blog .ast-container,
body.archive .ast-container,
body.search.search-results .ast-container,
body.single-post .ast-container {
  background:
    linear-gradient(rgba(8, 8, 8, 0.95), rgba(8, 8, 8, 0.98)),
    url('/wp-content/uploads/2026/03/bg-luxury-texture.webp') !important;
  background-repeat: repeat !important;
  background-size: 1200px auto !important;
  box-shadow: none !important;
}


/* =========================================================
   03. RETÍCULA GENERAL
   ========================================================= */
body.blog .ast-container,
body.archive .ast-container,
body.search.search-results .ast-container,
body.single-post .ast-container {
  max-width: 1360px !important;
  width: calc(100% - 56px) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 921px) {
  body.blog .ast-container,
  body.archive .ast-container,
  body.search.search-results .ast-container,
  body.single-post .ast-container {
    width: calc(100% - 28px) !important;
  }
}


/* =========================================================
   04. CONTENIDO / ESPACIADO
   ========================================================= */
body.blog .site-content,
body.archive .site-content,
body.search.search-results .site-content,
body.single-post .site-content {
  padding-top: 34px !important;
  padding-bottom: 56px !important;
}

@media (max-width: 921px) {
  body.blog .site-content,
  body.archive .site-content,
  body.search.search-results .site-content,
  body.single-post .site-content {
    padding-top: 22px !important;
    padding-bottom: 38px !important;
  }
}


/* =========================================================
   05. TIPOGRAFÍA Y LECTURA
   ========================================================= */
body.blog .entry-title,
body.archive .entry-title,
body.single-post .entry-title,
body.search.search-results .entry-title,
body.blog .page-title,
body.archive .page-title,
body.search.search-results .page-title,
body.blog .entry-title a,
body.archive .entry-title a,
body.single-post .entry-title a,
body.search.search-results .entry-title a {
  color: #f5efe4 !important;
}

body.blog .entry-meta,
body.archive .entry-meta,
body.single-post .entry-meta,
body.search.search-results .entry-meta,
body.blog .entry-meta *,
body.archive .entry-meta *,
body.single-post .entry-meta *,
body.search.search-results .entry-meta * {
  color: rgba(240, 232, 220, 0.72) !important;
}

body.blog .entry-content,
body.archive .entry-content,
body.single-post .entry-content,
body.search.search-results .entry-content,
body.blog .entry-content p,
body.archive .entry-content p,
body.single-post .entry-content p,
body.search.search-results .entry-content p,
body.blog .page-content,
body.archive .page-content,
body.search.search-results .page-content {
  color: #e8e0d2 !important;
}

body.single-post .entry-content blockquote {
  padding: 18px 22px !important;
  border-left: 3px solid rgba(230, 184, 92, 0.50) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border-radius: 10px !important;
}


/* =========================================================
   06. BLOG / ARCHIVOS · LIMPIEZA VISUAL
   ========================================================= */
@media (min-width: 922px) {
  body.blog .ast-row,
  body.archive .ast-row,
  body.search.search-results .ast-row {
    column-gap: 38px !important;
  }

  body.blog .post,
  body.archive .post,
  body.search.search-results .post,
  body.blog .ast-article-post,
  body.archive .ast-article-post,
  body.search.search-results .ast-article-post {
    padding-bottom: 30px !important;
    margin-bottom: 30px !important;
    border-bottom: 1px solid rgba(230, 184, 92, 0.08) !important;
  }

  body.blog .entry-title,
  body.archive .entry-title,
  body.search.search-results .entry-title {
    font-size: clamp(30px, 2.4vw, 40px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
    margin-bottom: 14px !important;
  }

  body.blog .entry-content p,
  body.archive .entry-content p,
  body.search.search-results .entry-content p {
    max-width: 760px !important;
    font-size: 18px !important;
    line-height: 1.68 !important;
  }
}


/* =========================================================
   07. POSTS / TARJETAS
   ========================================================= */
body.blog article,
body.archive article,
body.search.search-results article,
body.single-post article,
body.blog .post,
body.archive .post,
body.search.search-results .post,
body.single-post .post,
body.blog .ast-article-post,
body.archive .ast-article-post,
body.search.search-results .ast-article-post,
body.single-post .ast-article-post,
body.blog .ast-article-single,
body.archive .ast-article-single,
body.search.search-results .ast-article-single,
body.single-post .ast-article-single {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

@media (max-width: 921px) {
  .ast-header-break-point .ast-mobile-popup-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(320px, 85vw) !important;
    height: 100vh !important;
    max-width: 85vw !important;
    background: #080808 !important;
    z-index: 999999 !important;
    transform: translateX(100%) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .ast-header-break-point .ast-mobile-popup-drawer.active,
  .ast-header-break-point .ast-mobile-popup-drawer.ast-popup-drawer.active {
    transform: translateX(0) !important;
  }

  .ast-header-break-point .ast-mobile-popup-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999998 !important;
  }
}

