/*
Theme Name: PolluxData Child
Theme URI: https://polluxdata.com
Description: Tema hijo de Divi para PolluxData. Estilos de contenido dinámico para PolluxBlog y PolluxDocs.
Author: PolluxData
Template: Divi
Version: 1.0.3
*/

/* ============================================================
   POLLUXDATA CHILD - CONTENIDO WORDPRESS
   Este archivo NO redefine header, footer ni chat global.
   Header/footer/chat quedan controlados por header.php, footer.php y /custom.css.
   ============================================================ */

:root {
  --pd-wp-bg: #eef2f7;
  --pd-wp-ink: #06111f;
  --pd-wp-muted: #5b6573;
  --pd-wp-orange: #f07a1f;
  --pd-wp-orange-2: #ff9b3d;
  --pd-wp-line: rgba(7, 26, 45, .10);
  --pd-wp-shadow: 0 24px 70px rgba(7, 26, 45, .10);
}

html,
body {
  overflow-x: hidden !important;
}

body.blog,
body.archive,
body.category,
body.search,
body.single-post,
body.page-id-25555 {
  background: var(--pd-wp-bg) !important;
  color: var(--pd-wp-ink) !important;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Evita que Divi agregue espacios superiores raros ahora que usamos header propio */
body.blog #page-container,
body.archive #page-container,
body.category #page-container,
body.search #page-container,
body.single-post #page-container,
body.page-id-25555 #page-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: hidden !important;
}

body.blog #main-content,
body.archive #main-content,
body.category #main-content,
body.search #main-content,
body.single-post #main-content,
body.page-id-25555 #main-content {
  background:
    radial-gradient(circle at 12% 8%, rgba(240,122,31,.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef2f7 42%, #eef2f7 100%) !important;
  padding: 64px 0 84px !important;
  min-height: 60vh !important;
}

/* Contenedores Divi/WordPress */
body.blog #main-content .container,
body.archive #main-content .container,
body.category #main-content .container,
body.search #main-content .container,
body.single-post #main-content .container {
  width: min(1180px, calc(100% - 44px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.blog #main-content .container:before,
body.archive #main-content .container:before,
body.category #main-content .container:before,
body.search #main-content .container:before,
body.single-post #main-content .container:before,
body.blog #content-area:before,
body.archive #content-area:before,
body.category #content-area:before,
body.search #content-area:before,
body.single-post #content-area:before {
  content: none !important;
  display: none !important;
}

/* Layout con sidebar para Blog, archivos, búsquedas y posts individuales */
body.blog #content-area,
body.archive #content-area,
body.category #content-area,
body.search #content-area,
body.single-post #content-area {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 46px !important;
  align-items: start !important;
  width: 100% !important;
}

body.blog #left-area,
body.archive #left-area,
body.category #left-area,
body.search #left-area,
body.single-post #left-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

body.blog #sidebar,
body.archive #sidebar,
body.category #sidebar,
body.search #sidebar,
body.single-post #sidebar {
  display: block !important;
  width: 330px !important;
  min-width: 330px !important;
  max-width: 330px !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* ============================================================
   LISTADO POLLUXBLOG - TARJETAS
   ============================================================ */

body.blog article.et_pb_post,
body.archive article.et_pb_post,
body.category article.et_pb_post,
body.search article.et_pb_post {
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-radius: 30px !important;
  padding: 34px 38px !important;
  margin: 0 0 36px !important;
  box-shadow: var(--pd-wp-shadow) !important;
  overflow: hidden !important;
}

body.blog article.et_pb_post .entry-featured-image-url,
body.archive article.et_pb_post .entry-featured-image-url,
body.category article.et_pb_post .entry-featured-image-url,
body.search article.et_pb_post .entry-featured-image-url {
  display: block !important;
  margin: 0 0 24px !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: #06111f !important;
}

body.blog article.et_pb_post .entry-featured-image-url img,
body.archive article.et_pb_post .entry-featured-image-url img,
body.category article.et_pb_post .entry-featured-image-url img,
body.search article.et_pb_post .entry-featured-image-url img,
body.blog article.et_pb_post > a img,
body.archive article.et_pb_post > a img,
body.category article.et_pb_post > a img,
body.search article.et_pb_post > a img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 22px !important;
  margin: 0 0 24px !important;
  display: block !important;
}

body.blog article.et_pb_post h2,
body.archive article.et_pb_post h2,
body.category article.et_pb_post h2,
body.search article.et_pb_post h2,
body.blog article.et_pb_post h2 a,
body.archive article.et_pb_post h2 a,
body.category article.et_pb_post h2 a,
body.search article.et_pb_post h2 a {
  color: var(--pd-wp-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2rem, 3vw, 3rem) !important;
  line-height: 1.04 !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  text-decoration: none !important;
  margin: 0 0 12px !important;
}

body.blog article.et_pb_post h2 a:hover,
body.archive article.et_pb_post h2 a:hover,
body.category article.et_pb_post h2 a:hover,
body.search article.et_pb_post h2 a:hover {
  color: var(--pd-wp-orange) !important;
}

body.blog .post-meta,
body.archive .post-meta,
body.category .post-meta,
body.search .post-meta,
body.single-post .post-meta {
  color: var(--pd-wp-muted) !important;
  font-size: 15px !important;
  margin: 0 0 22px !important;
  line-height: 1.55 !important;
}

body.blog .post-meta a,
body.archive .post-meta a,
body.category .post-meta a,
body.search .post-meta a,
body.single-post .post-meta a {
  color: var(--pd-wp-ink) !important;
  font-weight: 800 !important;
}

body.blog .post-meta a:hover,
body.archive .post-meta a:hover,
body.category .post-meta a:hover,
body.search .post-meta a:hover,
body.single-post .post-meta a:hover {
  color: var(--pd-wp-orange) !important;
}

body.blog article.et_pb_post p,
body.archive article.et_pb_post p,
body.category article.et_pb_post p,
body.search article.et_pb_post p {
  color: #4f5b6a !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

/* ============================================================
   POSTS INDIVIDUALES - CONTENIDO COMPLETO Y LEGIBLE
   ============================================================ */

body.single-post article.et_pb_post {
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-radius: 30px !important;
  padding: clamp(28px, 4vw, 48px) !important;
  margin: 0 !important;
  box-shadow: var(--pd-wp-shadow) !important;
  overflow: hidden !important;
}

body.single-post .entry-title,
body.single-post article.et_pb_post h1.entry-title {
  color: var(--pd-wp-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.35rem, 4.2vw, 4.4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.04em !important;
  font-weight: 850 !important;
  margin: 0 0 14px !important;
}

body.single-post .entry-content {
  color: #263244 !important;
  font-size: 1.05rem !important;
  line-height: 1.82 !important;
  overflow-wrap: anywhere !important;
}

body.single-post .entry-content p {
  color: #263244 !important;
  font-size: 1.05rem !important;
  line-height: 1.82 !important;
  margin: 0 0 1.35em !important;
}

body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  color: var(--pd-wp-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  line-height: 1.18 !important;
  letter-spacing: -.025em !important;
  margin: 1.45em 0 .65em !important;
}

body.single-post .entry-content h2 { font-size: clamp(1.9rem, 3vw, 2.8rem) !important; }
body.single-post .entry-content h3 { font-size: clamp(1.55rem, 2.3vw, 2.15rem) !important; }

body.single-post .entry-content ul,
body.single-post .entry-content ol {
  margin: 0 0 1.4em 1.4em !important;
  padding-left: 1.2em !important;
}

body.single-post .entry-content li {
  margin-bottom: .55em !important;
  color: #263244 !important;
}

body.single-post .entry-content li::marker {
  color: var(--pd-wp-orange) !important;
}

body.single-post .entry-content a {
  color: #d95f14 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.single-post .entry-content a:hover {
  color: var(--pd-wp-orange) !important;
  text-decoration: underline !important;
}

body.single-post .entry-content img,
body.single-post article.et_pb_post img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 18px !important;
  margin: 24px auto !important;
  display: block !important;
}

body.single-post .entry-content figure {
  margin: 28px 0 !important;
}

body.single-post .entry-content figcaption {
  color: #6b7686 !important;
  font-size: .92rem !important;
  text-align: center !important;
  margin-top: 8px !important;
}

body.single-post .entry-content blockquote {
  margin: 28px 0 !important;
  padding: 22px 26px !important;
  border-left: 4px solid var(--pd-wp-orange) !important;
  background: #fff4ea !important;
  color: #263244 !important;
  border-radius: 0 18px 18px 0 !important;
}

body.single-post .entry-content pre,
body.single-post .entry-content code {
  font-family: "JetBrains Mono", Consolas, Monaco, monospace !important;
}

body.single-post .entry-content pre {
  background: #07111f !important;
  color: #eef5ff !important;
  border-radius: 18px !important;
  padding: 20px !important;
  overflow-x: auto !important;
  line-height: 1.55 !important;
}

body.single-post .entry-content code {
  background: #eef3f9 !important;
  color: #06111f !important;
  padding: .15em .35em !important;
  border-radius: 6px !important;
}

body.single-post .entry-content pre code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
}

/* Tablas dentro de posts */
body.single-post .entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 28px 0 !important;
  background: #fff !important;
  border: 1px solid var(--pd-wp-line) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: table !important;
}

body.single-post .entry-content th,
body.single-post .entry-content td {
  border: 1px solid rgba(7,26,45,.10) !important;
  padding: 12px 14px !important;
  text-align: left !important;
}

body.single-post .entry-content th {
  background: #07111f !important;
  color: #fff !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

body.blog #sidebar .widget,
body.archive #sidebar .widget,
body.category #sidebar .widget,
body.search #sidebar .widget,
body.single-post #sidebar .widget {
  display: block !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 34px !important;
  box-shadow: none !important;
}

body.blog #sidebar .widgettitle,
body.archive #sidebar .widgettitle,
body.category #sidebar .widgettitle,
body.search #sidebar .widgettitle,
body.single-post #sidebar .widgettitle {
  color: var(--pd-wp-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 1.85rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  border-bottom: 2px solid var(--pd-wp-orange) !important;
  padding-bottom: 12px !important;
  margin: 0 0 18px !important;
}

body.blog #sidebar a,
body.archive #sidebar a,
body.category #sidebar a,
body.search #sidebar a,
body.single-post #sidebar a {
  color: var(--pd-wp-ink) !important;
  text-decoration: none !important;
  font-weight: 750 !important;
  line-height: 1.55 !important;
}

body.blog #sidebar a:hover,
body.archive #sidebar a:hover,
body.category #sidebar a:hover,
body.search #sidebar a:hover,
body.single-post #sidebar a:hover {
  color: var(--pd-wp-orange) !important;
}

/* Buscador sidebar */
body.blog #sidebar .searchform,
body.archive #sidebar .searchform,
body.category #sidebar .searchform,
body.search #sidebar .searchform,
body.single-post #sidebar .searchform {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 48px !important;
  margin: 0 0 32px !important;
}

body.blog #sidebar .searchform input[type="text"],
body.archive #sidebar .searchform input[type="text"],
body.category #sidebar .searchform input[type="text"],
body.search #sidebar .searchform input[type="text"],
body.single-post #sidebar .searchform input[type="text"],
body.blog #sidebar .searchform input[type="search"],
body.archive #sidebar .searchform input[type="search"],
body.category #sidebar .searchform input[type="search"],
body.search #sidebar .searchform input[type="search"],
body.single-post #sidebar .searchform input[type="search"] {
  width: calc(100% - 78px) !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(7,26,45,.12) !important;
  border-right: 0 !important;
  background: #ffffff !important;
  color: var(--pd-wp-ink) !important;
  font-size: 15px !important;
  box-shadow: none !important;
  outline: none !important;
}

body.blog #sidebar .searchform input[type="submit"],
body.archive #sidebar .searchform input[type="submit"],
body.category #sidebar .searchform input[type="submit"],
body.search #sidebar .searchform input[type="submit"],
body.single-post #sidebar .searchform input[type="submit"] {
  width: 78px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border: 1px solid rgba(7,26,45,.12) !important;
  background: #e2e2e2 !important;
  color: #5b6573 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.blog #sidebar .searchform input[type="submit"]:hover,
body.archive #sidebar .searchform input[type="submit"]:hover,
body.category #sidebar .searchform input[type="submit"]:hover,
body.search #sidebar .searchform input[type="submit"]:hover,
body.single-post #sidebar .searchform input[type="submit"]:hover {
  background: var(--pd-wp-orange) !important;
  color: var(--pd-wp-ink) !important;
}

body.blog .pagination a,
body.archive .pagination a,
body.category .pagination a,
body.search .pagination a {
  color: var(--pd-wp-orange) !important;
  font-weight: 800 !important;
}

/* ============================================================
   POLLUXDOCS
   Página ID 25555 + fallback para contenido sin clases especiales.
   ============================================================ */

body.page-id-25555 #main-content {
  background:
    radial-gradient(circle at 12% 20%, rgba(240,122,31,.10), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(11,47,85,.12), transparent 34%),
    #eef2f7 !important;
  padding: 64px 0 86px !important;
}

body.page-id-25555 #main-content .container,
body.page-id-25555 .container {
  width: min(1080px, calc(100% - 44px)) !important;
  max-width: 1080px !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

body.page-id-25555 #main-content .container:before {
  content: none !important;
  display: none !important;
}

body.page-id-25555 #content-area {
  width: 100% !important;
  display: block !important;
}

body.page-id-25555 #left-area {
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
}

body.page-id-25555 #sidebar,
body.page-id-25555 .widget-area {
  display: none !important;
}

body.page-id-25555 .main_title {
  display: none !important;
}

body.page-id-25555 .entry-content {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-top: 4px solid var(--pd-wp-orange) !important;
  border-radius: 34px !important;
  padding: clamp(34px, 5vw, 58px) !important;
  box-shadow: 0 30px 90px rgba(7,26,45,.12) !important;
  min-height: 360px !important;
}

body.page-id-25555 .entry-content h1,
body.page-id-25555 .entry-content h2 {
  color: var(--pd-wp-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em !important;
  font-weight: 850 !important;
}

body.page-id-25555 .entry-content h1 {
  font-size: clamp(2.6rem, 4.6vw, 4.6rem) !important;
  margin: 0 0 20px !important;
}

body.page-id-25555 .entry-content h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem) !important;
  margin: 0 0 30px !important;
}

body.page-id-25555 .entry-content h3 {
  color: var(--pd-wp-ink) !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem) !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  margin: 28px 0 16px !important;
}

body.page-id-25555 .entry-content p {
  color: var(--pd-wp-muted) !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}

body.page-id-25555 .entry-content a,
body.page-id-25555 .entry-content .wp-block-button__link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--pd-wp-orange), var(--pd-wp-orange-2)) !important;
  color: #06111f !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  box-shadow: 0 14px 35px rgba(240,122,31,.20) !important;
}

body.page-id-25555 .entry-content a:hover,
body.page-id-25555 .entry-content .wp-block-button__link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 42px rgba(240,122,31,.28) !important;
}

/* Si la página PolluxDocs usa el HTML especial anterior, también queda bonito */
.pd-docs-wp {
  background: transparent !important;
  padding: 0 !important;
}

.pd-docs-layout.single {
  max-width: 980px !important;
  margin: 0 auto !important;
}

.pd-docs-main {
  background: #ffffff !important;
  border-radius: 34px !important;
  padding: clamp(34px, 5vw, 54px) !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-top: 4px solid var(--pd-wp-orange) !important;
  box-shadow: 0 30px 90px rgba(7,26,45,.12) !important;
}

.pd-docs-label {
  color: var(--pd-wp-orange) !important;
  font-weight: 950 !important;
  font-size: 12px !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}

.pd-doc-card {
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.10) !important;
  border-radius: 26px !important;
  padding: 30px !important;
  box-shadow: 0 20px 60px rgba(7,26,45,.08) !important;
  margin-top: 24px !important;
}

.pd-doc-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
}

.pd-doc-tags span {
  background: #f2f6fb !important;
  color: var(--pd-wp-ink) !important;
  border-radius: 999px !important;
  padding: 8px 13px !important;
  font-size: .78rem !important;
  font-weight: 850 !important;
}

.pd-doc-tags span:first-child {
  background: #fff0e6 !important;
  color: #b94d00 !important;
}

.pd-doc-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.pd-doc-actions a {
  min-height: 54px !important;
}

/* ============================================================
   MÓVIL / TABLET
   ============================================================ */

@media (max-width: 980px) {
  body.blog #main-content,
  body.archive #main-content,
  body.category #main-content,
  body.search #main-content,
  body.single-post #main-content,
  body.page-id-25555 #main-content {
    padding: 42px 0 64px !important;
  }

  body.blog #content-area,
  body.archive #content-area,
  body.category #content-area,
  body.search #content-area,
  body.single-post #content-area {
    display: block !important;
  }

  body.blog #main-content .container,
  body.archive #main-content .container,
  body.category #main-content .container,
  body.search #main-content .container,
  body.single-post #main-content .container,
  body.page-id-25555 #main-content .container {
    width: min(100% - 28px, 1180px) !important;
  }

  body.blog #left-area,
  body.archive #left-area,
  body.category #left-area,
  body.search #left-area,
  body.single-post #left-area,
  body.blog #sidebar,
  body.archive #sidebar,
  body.category #sidebar,
  body.search #sidebar,
  body.single-post #sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  body.blog #sidebar,
  body.archive #sidebar,
  body.category #sidebar,
  body.search #sidebar,
  body.single-post #sidebar {
    margin-top: 36px !important;
  }

  body.blog article.et_pb_post,
  body.archive article.et_pb_post,
  body.category article.et_pb_post,
  body.search article.et_pb_post,
  body.single-post article.et_pb_post {
    padding: 24px 22px !important;
    border-radius: 24px !important;
  }

  body.blog article.et_pb_post h2,
  body.archive article.et_pb_post h2,
  body.category article.et_pb_post h2,
  body.search article.et_pb_post h2,
  body.blog article.et_pb_post h2 a,
  body.archive article.et_pb_post h2 a,
  body.category article.et_pb_post h2 a,
  body.search article.et_pb_post h2 a {
    font-size: 32px !important;
    line-height: 1.12 !important;
  }

  body.single-post .entry-title,
  body.single-post article.et_pb_post h1.entry-title {
    font-size: 34px !important;
    line-height: 1.1 !important;
  }

  body.page-id-25555 .entry-content {
    padding: 28px 22px !important;
    border-radius: 26px !important;
  }

  .pd-doc-card {
    padding: 24px 20px !important;
  }

  .pd-doc-actions a,
  body.page-id-25555 .entry-content a,
  body.page-id-25555 .entry-content .wp-block-button__link {
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  body.blog article.et_pb_post h2,
  body.archive article.et_pb_post h2,
  body.category article.et_pb_post h2,
  body.search article.et_pb_post h2,
  body.blog article.et_pb_post h2 a,
  body.archive article.et_pb_post h2 a,
  body.category article.et_pb_post h2 a,
  body.search article.et_pb_post h2 a {
    font-size: 30px !important;
  }
}


/* ============================================================
   AJUSTE V3 - Blog más compacto + posts por secciones + PolluxDocs dark
   Mantiene header, footer y chat como ya están funcionando.
   ============================================================ */

/* Blog listado: portada menos alta para que la tarjeta entre mejor en pantalla */
body.blog article.et_pb_post,
body.archive article.et_pb_post,
body.category article.et_pb_post,
body.search article.et_pb_post {
  padding: 28px 30px !important;
  border-radius: 28px !important;
  margin-bottom: 30px !important;
}

body.blog article.et_pb_post .entry-featured-image-url,
body.archive article.et_pb_post .entry-featured-image-url,
body.category article.et_pb_post .entry-featured-image-url,
body.search article.et_pb_post .entry-featured-image-url,
body.blog article.et_pb_post > a,
body.archive article.et_pb_post > a,
body.category article.et_pb_post > a,
body.search article.et_pb_post > a {
  border-radius: 20px !important;
  max-height: 330px !important;
  overflow: hidden !important;
  background: #06111f !important;
}

body.blog article.et_pb_post .entry-featured-image-url img,
body.archive article.et_pb_post .entry-featured-image-url img,
body.category article.et_pb_post .entry-featured-image-url img,
body.search article.et_pb_post .entry-featured-image-url img,
body.blog article.et_pb_post > a img,
body.archive article.et_pb_post > a img,
body.category article.et_pb_post > a img,
body.search article.et_pb_post > a img {
  width: 100% !important;
  height: 330px !important;
  max-height: 330px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 20px !important;
  margin: 0 0 22px !important;
}

body.blog article.et_pb_post h2,
body.archive article.et_pb_post h2,
body.category article.et_pb_post h2,
body.search article.et_pb_post h2,
body.blog article.et_pb_post h2 a,
body.archive article.et_pb_post h2 a,
body.category article.et_pb_post h2 a,
body.search article.et_pb_post h2 a {
  font-size: clamp(1.85rem, 2.55vw, 2.55rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
}

body.blog article.et_pb_post p,
body.archive article.et_pb_post p,
body.category article.et_pb_post p,
body.search article.et_pb_post p {
  font-size: .98rem !important;
  line-height: 1.65 !important;
}

/* Posts individuales: deja de sentirse como una sola tarjeta gigante */
body.single-post #main-content {
  padding-top: 58px !important;
}

body.single-post article.et_pb_post {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.single-post .et_post_meta_wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-radius: 30px !important;
  padding: clamp(28px, 3.4vw, 42px) !important;
  margin: 0 0 26px !important;
  box-shadow: 0 24px 70px rgba(7,26,45,.09) !important;
  overflow: hidden !important;
}

body.single-post .entry-title,
body.single-post article.et_pb_post h1.entry-title {
  font-size: clamp(2.15rem, 3.35vw, 3.55rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.04em !important;
  margin: 0 0 14px !important;
}

body.single-post .et_post_meta_wrapper img,
body.single-post .et_post_meta_wrapper .entry-featured-image-url img {
  width: 100% !important;
  max-height: 410px !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 20px !important;
  margin: 24px 0 0 !important;
}

body.single-post .entry-content {
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-radius: 28px !important;
  padding: clamp(28px, 3.2vw, 42px) !important;
  box-shadow: 0 24px 70px rgba(7,26,45,.08) !important;
}

body.single-post .entry-content img {
  max-height: 540px !important;
  object-fit: contain !important;
}

/* Sidebar un poco más limpio para acompañar posts y blog */
body.blog #sidebar,
body.archive #sidebar,
body.category #sidebar,
body.search #sidebar,
body.single-post #sidebar {
  padding-top: 4px !important;
}

body.blog #sidebar .widgettitle,
body.archive #sidebar .widgettitle,
body.category #sidebar .widgettitle,
body.search #sidebar .widgettitle,
body.single-post #sidebar .widgettitle {
  font-size: 1.65rem !important;
}

body.blog #sidebar a,
body.archive #sidebar a,
body.category #sidebar a,
body.search #sidebar a,
body.single-post #sidebar a {
  font-size: .95rem !important;
}

/* PolluxDocs: más técnico, compacto y con azul oscuro */
body.page-id-25555,
body.page-id-25555 #page-container {
  background: #06111f !important;
}

body.page-id-25555 #main-content {
  background:
    radial-gradient(circle at 15% 14%, rgba(240,122,31,.18), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(36,94,145,.24), transparent 34%),
    linear-gradient(135deg, #06111f 0%, #071a2d 52%, #0a223c 100%) !important;
  padding: 58px 0 76px !important;
  position: relative !important;
  overflow: hidden !important;
}

body.page-id-25555 #main-content::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
  opacity: .45 !important;
  pointer-events: none !important;
}

body.page-id-25555 #main-content .container,
body.page-id-25555 .container {
  position: relative !important;
  z-index: 1 !important;
  width: min(980px, calc(100% - 44px)) !important;
  max-width: 980px !important;
}

body.page-id-25555 .entry-content,
.pd-docs-main {
  background:
    radial-gradient(circle at 92% 8%, rgba(240,122,31,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    #07111f !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-top: 3px solid #f07a1f !important;
  border-radius: 30px !important;
  padding: clamp(28px, 4vw, 44px) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.28) !important;
  color: #eaf2ff !important;
}

body.page-id-25555 .entry-content h1,
body.page-id-25555 .entry-content h2,
.pd-docs-main h1,
.pd-docs-main h2 {
  color: #ffffff !important;
  font-size: clamp(2.15rem, 4vw, 3.75rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  margin-bottom: 16px !important;
}

body.page-id-25555 .entry-content p,
.pd-docs-main > p {
  color: #c8d4e6 !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
  max-width: 760px !important;
}

.pd-docs-label {
  color: #ff9b3d !important;
}

.pd-doc-card {
  background: rgba(255,255,255,.96) !important;
  color: #06111f !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 24px !important;
  padding: clamp(24px, 3vw, 32px) !important;
  margin-top: 24px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.20) !important;
}

.pd-doc-card h3 {
  color: #06111f !important;
  font-size: clamp(1.55rem, 2.25vw, 2.05rem) !important;
  line-height: 1.18 !important;
  margin-bottom: 12px !important;
}

.pd-doc-card p {
  color: #526173 !important;
  font-size: .98rem !important;
  line-height: 1.65 !important;
}

.pd-doc-actions {
  gap: 10px !important;
}

.pd-doc-actions a,
body.page-id-25555 .entry-content a,
body.page-id-25555 .entry-content .wp-block-button__link {
  min-height: 50px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  font-size: .95rem !important;
  box-shadow: 0 14px 32px rgba(240,122,31,.18) !important;
}

@media (max-width: 980px) {
  body.blog article.et_pb_post .entry-featured-image-url img,
  body.archive article.et_pb_post .entry-featured-image-url img,
  body.category article.et_pb_post .entry-featured-image-url img,
  body.search article.et_pb_post .entry-featured-image-url img,
  body.blog article.et_pb_post > a img,
  body.archive article.et_pb_post > a img,
  body.category article.et_pb_post > a img,
  body.search article.et_pb_post > a img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  body.single-post .entry-content {
    padding: 24px 22px !important;
  }

  body.page-id-25555 #main-content .container,
  body.page-id-25555 .container {
    width: min(100% - 28px, 980px) !important;
  }
}

/* ============================================================
   AJUSTE V4 - Blog más claro + posts completos + PolluxDocs sin doble marco
   Mantiene header, footer, chat y functions.php como están funcionando.
   ============================================================ */

:root {
  --pd-wp-bg: #f3f6fa;
  --pd-wp-blog-bg: #fbf7f1;
  --pd-wp-card-radius: 22px;
  --pd-wp-media-radius: 16px;
}

/* Blog: fondo beige/crema un poco más claro y limpio */
body.blog #main-content,
body.archive #main-content,
body.category #main-content,
body.search #main-content,
body.single-post #main-content {
  background:
    radial-gradient(circle at 12% 8%, rgba(240,122,31,.055), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(7,26,45,.035), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--pd-wp-blog-bg) 54%, #f6f1ea 100%) !important;
}

/* Blog listado: tarjetas un poco más cuadradas y portadas más contenidas */
body.blog article.et_pb_post,
body.archive article.et_pb_post,
body.category article.et_pb_post,
body.search article.et_pb_post {
  border-radius: var(--pd-wp-card-radius) !important;
  padding: 26px 28px 30px !important;
  margin-bottom: 28px !important;
  box-shadow: 0 22px 62px rgba(7,26,45,.085) !important;
}

body.blog article.et_pb_post .entry-featured-image-url,
body.archive article.et_pb_post .entry-featured-image-url,
body.category article.et_pb_post .entry-featured-image-url,
body.search article.et_pb_post .entry-featured-image-url,
body.blog article.et_pb_post > a,
body.archive article.et_pb_post > a,
body.category article.et_pb_post > a,
body.search article.et_pb_post > a {
  border-radius: var(--pd-wp-media-radius) !important;
  max-height: 300px !important;
  margin-bottom: 22px !important;
}

body.blog article.et_pb_post .entry-featured-image-url img,
body.archive article.et_pb_post .entry-featured-image-url img,
body.category article.et_pb_post .entry-featured-image-url img,
body.search article.et_pb_post .entry-featured-image-url img,
body.blog article.et_pb_post > a img,
body.archive article.et_pb_post > a img,
body.category article.et_pb_post > a img,
body.search article.et_pb_post > a img {
  height: 300px !important;
  max-height: 300px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: var(--pd-wp-media-radius) !important;
  margin: 0 !important;
}

body.blog article.et_pb_post h2,
body.archive article.et_pb_post h2,
body.category article.et_pb_post h2,
body.search article.et_pb_post h2,
body.blog article.et_pb_post h2 a,
body.archive article.et_pb_post h2 a,
body.category article.et_pb_post h2 a,
body.search article.et_pb_post h2 a {
  font-size: clamp(1.75rem, 2.35vw, 2.35rem) !important;
  line-height: 1.08 !important;
}

/* Buscador de sidebar: input más largo y botón mejor integrado */
body.blog #sidebar .widget_search,
body.archive #sidebar .widget_search,
body.category #sidebar .widget_search,
body.search #sidebar .widget_search,
body.single-post #sidebar .widget_search {
  width: 100% !important;
  margin-bottom: 38px !important;
}

body.blog #sidebar .searchform,
body.archive #sidebar .searchform,
body.category #sidebar .searchform,
body.search #sidebar .searchform,
body.single-post #sidebar .searchform {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
}

body.blog #sidebar .searchform input[type="text"],
body.archive #sidebar .searchform input[type="text"],
body.category #sidebar .searchform input[type="text"],
body.search #sidebar .searchform input[type="text"],
body.single-post #sidebar .searchform input[type="text"],
body.blog #sidebar .searchform input[type="search"],
body.archive #sidebar .searchform input[type="search"],
body.category #sidebar .searchform input[type="search"],
body.search #sidebar .searchform input[type="search"],
body.single-post #sidebar .searchform input[type="search"] {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 48px !important;
  border: 1px solid rgba(7,26,45,.13) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 0 15px !important;
  color: #06111f !important;
  box-shadow: none !important;
}

body.blog #sidebar .searchform input[type="submit"],
body.archive #sidebar .searchform input[type="submit"],
body.category #sidebar .searchform input[type="submit"],
body.search #sidebar .searchform input[type="submit"],
body.single-post #sidebar .searchform input[type="submit"] {
  flex: 0 0 86px !important;
  width: 86px !important;
  height: 48px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(7,26,45,.16) !important;
  background: #dedede !important;
  color: #5b6573 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

/* Post individual: una sola tarjeta, sin sidebar lateral. Sidebar baja al final */
body.single-post #main-content .container {
  width: min(1120px, calc(100% - 44px)) !important;
  max-width: 1120px !important;
}

body.single-post #content-area {
  display: block !important;
  width: 100% !important;
}

body.single-post #left-area {
  width: min(920px, 100%) !important;
  max-width: 920px !important;
  margin: 0 auto !important;
  float: none !important;
  padding: 0 !important;
}

body.single-post article.et_pb_post {
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-radius: 26px !important;
  padding: clamp(28px, 3.8vw, 44px) !important;
  box-shadow: 0 24px 70px rgba(7,26,45,.085) !important;
  overflow: hidden !important;
}

body.single-post .et_post_meta_wrapper {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.single-post .entry-content {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

body.single-post .entry-title,
body.single-post article.et_pb_post h1.entry-title {
  font-size: clamp(2rem, 3vw, 3.25rem) !important;
  line-height: 1.06 !important;
  margin-bottom: 14px !important;
}

body.single-post .post-meta {
  margin-bottom: 22px !important;
}

body.single-post .et_post_meta_wrapper img,
body.single-post .et_post_meta_wrapper .entry-featured-image-url img,
body.single-post article.et_pb_post > img,
body.single-post article.et_pb_post > a img {
  width: 100% !important;
  max-height: 430px !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 18px !important;
  margin: 22px 0 26px !important;
}

body.single-post .entry-content p {
  font-size: 1.04rem !important;
  line-height: 1.78 !important;
}

/* Sidebar del post al final, como bloque de navegación complementaria */
body.single-post #sidebar {
  width: min(920px, 100%) !important;
  min-width: 0 !important;
  max-width: 920px !important;
  margin: 34px auto 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  float: none !important;
  padding: 0 !important;
}

body.single-post #sidebar .widget {
  background: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 18px 50px rgba(7,26,45,.06) !important;
  margin: 0 !important;
}

body.single-post #sidebar .widget_search {
  grid-column: 1 / -1 !important;
}

/* PolluxDocs: azul técnico de fondo, pero una sola tarjeta clara y legible */
body.page-id-25555,
body.page-id-25555 #page-container {
  background: #071a2d !important;
}

body.page-id-25555 #main-content {
  background:
    radial-gradient(circle at 18% 16%, rgba(240,122,31,.11), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(45,112,170,.18), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #08213a 58%, #0a2f55 100%) !important;
  padding: 54px 0 72px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Quita el doble marco: el wrapper queda transparente */
body.page-id-25555 .entry-content {
  background: transparent !important;
  border: 0 !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  color: inherit !important;
}

.pd-docs-wp {
  padding: 0 !important;
  background: transparent !important;
}

.pd-docs-layout.single {
  max-width: 940px !important;
  margin: 0 auto !important;
}

.pd-docs-main {
  background:
    radial-gradient(circle at 92% 6%, rgba(240,122,31,.10), transparent 28%),
    #ffffff !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  border-top: 4px solid #f07a1f !important;
  border-radius: 26px !important;
  padding: clamp(30px, 4vw, 46px) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.22) !important;
  color: #06111f !important;
}

body.page-id-25555 .entry-content h1,
body.page-id-25555 .entry-content h2,
.pd-docs-main h1,
.pd-docs-main h2 {
  color: #06111f !important;
  font-size: clamp(2.15rem, 4vw, 3.6rem) !important;
  line-height: 1.02 !important;
  margin-bottom: 16px !important;
}

body.page-id-25555 .entry-content p,
.pd-docs-main > p {
  color: #5b6573 !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.pd-docs-label {
  color: #f07a1f !important;
}

body.page-id-25555 .entry-content .pd-doc-card,
.pd-doc-card {
  background: #f8fafc !important;
  color: #06111f !important;
  border: 1px solid rgba(7,26,45,.10) !important;
  border-radius: 20px !important;
  padding: clamp(22px, 3vw, 30px) !important;
  margin-top: 22px !important;
  box-shadow: 0 18px 50px rgba(7,26,45,.08) !important;
}

body.page-id-25555 .entry-content .pd-doc-card h3,
.pd-doc-card h3 {
  color: #06111f !important;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem) !important;
  line-height: 1.18 !important;
}

body.page-id-25555 .entry-content .pd-doc-card p,
.pd-doc-card p {
  color: #526173 !important;
  font-size: .98rem !important;
  line-height: 1.65 !important;
}

body.page-id-25555 .entry-content .pd-doc-tags span,
.pd-doc-tags span {
  color: #06111f !important;
  background: #eef3f9 !important;
}

body.page-id-25555 .entry-content .pd-doc-tags span:first-child,
.pd-doc-tags span:first-child {
  background: #fff0e6 !important;
  color: #b94d00 !important;
}

body.page-id-25555 .entry-content .pd-doc-actions a,
.pd-doc-actions a,
body.page-id-25555 .entry-content a.wp-block-button__link {
  min-height: 48px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  font-size: .95rem !important;
}

@media (max-width: 980px) {
  body.single-post #left-area,
  body.single-post #sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.single-post #sidebar {
    grid-template-columns: 1fr !important;
  }

  body.blog article.et_pb_post .entry-featured-image-url img,
  body.archive article.et_pb_post .entry-featured-image-url img,
  body.category article.et_pb_post .entry-featured-image-url img,
  body.search article.et_pb_post .entry-featured-image-url img,
  body.blog article.et_pb_post > a img,
  body.archive article.et_pb_post > a img,
  body.category article.et_pb_post > a img,
  body.search article.et_pb_post > a img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* ============================================================
   AJUSTE V5 - Portadas completas + PolluxDocs más suave
   Mantiene header, footer, chat y functions.php sin cambios.
   ============================================================ */

/* BLOG: portadas completas en el listado principal, sin recorte */
body.blog article.et_pb_post .entry-featured-image-url,
body.archive article.et_pb_post .entry-featured-image-url,
body.category article.et_pb_post .entry-featured-image-url,
body.search article.et_pb_post .entry-featured-image-url,
body.blog article.et_pb_post > a,
body.archive article.et_pb_post > a,
body.category article.et_pb_post > a,
body.search article.et_pb_post > a {
  max-height: none !important;
  background: #07111f !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.blog article.et_pb_post .entry-featured-image-url img,
body.archive article.et_pb_post .entry-featured-image-url img,
body.category article.et_pb_post .entry-featured-image-url img,
body.search article.et_pb_post .entry-featured-image-url img,
body.blog article.et_pb_post > a img,
body.archive article.et_pb_post > a img,
body.category article.et_pb_post > a img,
body.search article.et_pb_post > a img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 16px !important;
  display: block !important;
  margin: 0 !important;
}

/* Un poco más de aire para que la portada completa no se sienta apretada */
body.blog article.et_pb_post,
body.archive article.et_pb_post,
body.category article.et_pb_post,
body.search article.et_pb_post {
  padding: 26px 28px 32px !important;
}

/* POLLUXDOCS: fondo más suave, técnico, sin cansar la vista */
body.page-id-25555,
body.page-id-25555 #page-container {
  background: #edf3f8 !important;
}

body.page-id-25555 #main-content {
  background:
    radial-gradient(circle at 82% 26%, rgba(11,47,85,.28), transparent 34%),
    radial-gradient(circle at 15% 18%, rgba(240,122,31,.09), transparent 30%),
    linear-gradient(135deg, #f7fafc 0%, #edf3f8 40%, #dce8f3 65%, #0c2a48 100%) !important;
  padding: 54px 0 72px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Patrón técnico muy sutil, parecido al resto de la web pero más claro */
body.page-id-25555 #main-content::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background-image:
    linear-gradient(rgba(7,26,45,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,26,45,.035) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
  opacity: .55 !important;
  pointer-events: none !important;
}

/* Decoración tipo documento/nube técnica sin cargar imágenes externas */
body.page-id-25555 #main-content::after {
  content: "" !important;
  position: absolute !important;
  right: 7vw !important;
  top: 130px !important;
  width: 260px !important;
  height: 260px !important;
  border-radius: 42px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.20), rgba(255,255,255,.04)),
    radial-gradient(circle at 70% 22%, rgba(240,122,31,.15), transparent 34%) !important;
  box-shadow: 0 30px 90px rgba(7,26,45,.12) !important;
  transform: rotate(7deg) !important;
  opacity: .40 !important;
  pointer-events: none !important;
}

body.page-id-25555 #content-area,
body.page-id-25555 #left-area,
body.page-id-25555 .entry-content,
.pd-docs-wp,
.pd-docs-layout.single,
.pd-docs-main {
  position: relative !important;
  z-index: 1 !important;
}

.pd-docs-layout.single {
  max-width: 920px !important;
}

.pd-docs-main {
  background:
    radial-gradient(circle at 96% 0%, rgba(240,122,31,.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)) !important;
  border: 1px solid rgba(7,26,45,.10) !important;
  border-top: 4px solid #f07a1f !important;
  border-radius: 24px !important;
  padding: clamp(28px, 3.8vw, 44px) !important;
  box-shadow: 0 26px 80px rgba(7,26,45,.13) !important;
  color: #06111f !important;
}

.pd-docs-label {
  color: #f07a1f !important;
}

body.page-id-25555 .entry-content h1,
body.page-id-25555 .entry-content h2,
.pd-docs-main h1,
.pd-docs-main h2 {
  color: #06111f !important;
  text-shadow: none !important;
  font-size: clamp(2rem, 3.7vw, 3.35rem) !important;
  line-height: 1.04 !important;
}

body.page-id-25555 .entry-content p,
.pd-docs-main > p {
  color: #526173 !important;
}

body.page-id-25555 .entry-content .pd-doc-card,
.pd-doc-card {
  background: #f9fbfd !important;
  border: 1px solid rgba(7,26,45,.10) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 46px rgba(7,26,45,.07) !important;
}

body.page-id-25555 .entry-content .pd-doc-card p,
.pd-doc-card p {
  color: #536579 !important;
}

/* Botones Docs menos pesados */
body.page-id-25555 .entry-content a,
body.page-id-25555 .entry-content .wp-block-button__link,
.pd-doc-actions a {
  min-height: 50px !important;
  padding: 13px 20px !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 34px rgba(240,122,31,.16) !important;
}

@media (max-width: 980px) {
  body.page-id-25555 #main-content::after {
    display: none !important;
  }

  .pd-docs-layout.single {
    max-width: min(100% - 28px, 920px) !important;
  }

  .pd-docs-main {
    padding: 26px 22px !important;
  }
}

/* ============================================================
   AJUSTE FINAL V6 - Botones PolluxDocs más elegantes y compactos
   ============================================================ */
body.page-id-25555 .entry-content .pd-doc-actions,
.pd-doc-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 18px !important;
}

body.page-id-25555 .entry-content .pd-doc-actions a,
.pd-doc-actions a,
body.page-id-25555 .entry-content .pd-doc-actions .wp-block-button__link {
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 11px 18px !important;
  border-radius: 14px !important;
  font-family: Manrope, Inter, system-ui, sans-serif !important;
  font-size: .9rem !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -.01em !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease !important;
}

body.page-id-25555 .entry-content .pd-doc-actions a:nth-child(1),
.pd-doc-actions a:nth-child(1) {
  background: #ff861f !important;
  color: #06111f !important;
  border: 1px solid rgba(255,134,31,.92) !important;
  box-shadow: 0 10px 24px rgba(240,122,31,.16) !important;
}

body.page-id-25555 .entry-content .pd-doc-actions a:nth-child(2),
.pd-doc-actions a:nth-child(2) {
  background: #0b1c32 !important;
  color: #ffffff !important;
  border: 1px solid rgba(11,28,50,.92) !important;
  box-shadow: 0 10px 24px rgba(7,26,45,.12) !important;
}

body.page-id-25555 .entry-content .pd-doc-actions a:nth-child(3),
.pd-doc-actions a:nth-child(3) {
  background: #fff7ef !important;
  color: #0b1c32 !important;
  border: 1px solid rgba(240,122,31,.26) !important;
  box-shadow: none !important;
}

body.page-id-25555 .entry-content .pd-doc-actions a:hover,
.pd-doc-actions a:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 28px rgba(240,122,31,.18) !important;
}

body.page-id-25555 .entry-content .pd-doc-actions a:nth-child(2):hover,
.pd-doc-actions a:nth-child(2):hover {
  box-shadow: 0 12px 28px rgba(7,26,45,.18) !important;
}

@media (max-width: 680px) {
  body.page-id-25555 .entry-content .pd-doc-actions,
  .pd-doc-actions {
    gap: 10px !important;
  }

  body.page-id-25555 .entry-content .pd-doc-actions a,
  .pd-doc-actions a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 46px !important;
  }
}

/* ============================================================
   V7 FIX FINAL - PORTADAS COMPLETAS + PÁGINAS LEGALES
   Mantiene header/footer/chat desde PHP. No tocar functions.php.
   ============================================================ */

/* Blog principal: mostrar las portadas completas, sin recorte */
body.blog article.et_pb_post .entry-featured-image-url,
body.archive article.et_pb_post .entry-featured-image-url,
body.category article.et_pb_post .entry-featured-image-url,
body.search article.et_pb_post .entry-featured-image-url,
body.blog article.et_pb_post > a,
body.archive article.et_pb_post > a,
body.category article.et_pb_post > a,
body.search article.et_pb_post > a {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  background: #06111f !important;
}

body.blog article.et_pb_post .entry-featured-image-url img,
body.archive article.et_pb_post .entry-featured-image-url img,
body.category article.et_pb_post .entry-featured-image-url img,
body.search article.et_pb_post .entry-featured-image-url img,
body.blog article.et_pb_post > a img,
body.archive article.et_pb_post > a img,
body.category article.et_pb_post > a img,
body.search article.et_pb_post > a img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}

/* Páginas legales de WordPress: términos y privacidad */
body.page:not(.page-id-25555) {
  background: #f3f6fa !important;
  color: #06111f !important;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.page:not(.page-id-25555) #page-container {
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: hidden !important;
}

body.page:not(.page-id-25555) #main-content {
  background:
    radial-gradient(circle at 12% 8%, rgba(240,122,31,.055), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fa 44%, #f3f6fa 100%) !important;
  padding: 72px 0 86px !important;
  min-height: 70vh !important;
}

body.page:not(.page-id-25555) #main-content .container {
  width: min(980px, calc(100% - 44px)) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.page:not(.page-id-25555) #main-content .container:before,
body.page:not(.page-id-25555) #content-area:before {
  content: none !important;
  display: none !important;
}

body.page:not(.page-id-25555) #content-area {
  display: block !important;
  width: 100% !important;
}

body.page:not(.page-id-25555) #left-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
}

body.page:not(.page-id-25555) #sidebar {
  display: none !important;
}

body.page:not(.page-id-25555) article.page,
body.page:not(.page-id-25555) .et_pb_post,
body.page:not(.page-id-25555) .hentry {
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.08) !important;
  border-radius: 22px !important;
  padding: clamp(30px, 4vw, 52px) !important;
  box-shadow: 0 22px 62px rgba(7,26,45,.075) !important;
  color: #06111f !important;
}

body.page:not(.page-id-25555) .entry-title,
body.page:not(.page-id-25555) .main_title {
  color: #06111f !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.1rem, 4vw, 3.8rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em !important;
  margin: 0 0 28px !important;
}

/* Forzar textos oscuros dentro del contenido legal, aunque vengan con estilos inline blancos */
body.page:not(.page-id-25555) #main-content .entry-content,
body.page:not(.page-id-25555) #main-content .entry-content p,
body.page:not(.page-id-25555) #main-content .entry-content div,
body.page:not(.page-id-25555) #main-content .entry-content span,
body.page:not(.page-id-25555) #main-content .entry-content li,
body.page:not(.page-id-25555) #main-content .entry-content strong,
body.page:not(.page-id-25555) #main-content .entry-content em,
body.page:not(.page-id-25555) #main-content .entry-content td,
body.page:not(.page-id-25555) #main-content .entry-content td * {
  color: #243247 !important;
}

body.page:not(.page-id-25555) #main-content .entry-content p,
body.page:not(.page-id-25555) #main-content .entry-content li,
body.page:not(.page-id-25555) #main-content .entry-content td {
  font-size: 1.02rem !important;
  line-height: 1.75 !important;
}

body.page:not(.page-id-25555) #main-content .entry-content h1,
body.page:not(.page-id-25555) #main-content .entry-content h2,
body.page:not(.page-id-25555) #main-content .entry-content h3,
body.page:not(.page-id-25555) #main-content .entry-content h4 {
  color: #06111f !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  margin: 28px 0 16px !important;
}

body.page:not(.page-id-25555) #main-content .entry-content h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.25rem) !important;
}

body.page:not(.page-id-25555) #main-content .entry-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem) !important;
}

body.page:not(.page-id-25555) #main-content .entry-content a {
  color: #f07a1f !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.page:not(.page-id-25555) #main-content .entry-content a:hover {
  color: #c85f10 !important;
}

/* Tablas legales legibles */
body.page:not(.page-id-25555) #main-content .entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 26px 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(7,26,45,.12) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 36px rgba(7,26,45,.055) !important;
}

body.page:not(.page-id-25555) #main-content .entry-content th,
body.page:not(.page-id-25555) #main-content .entry-content table tr:first-child td {
  background: #101927 !important;
  color: #ffffff !important;
  font-weight: 850 !important;
}

body.page:not(.page-id-25555) #main-content .entry-content th *,
body.page:not(.page-id-25555) #main-content .entry-content table tr:first-child td * {
  color: #ffffff !important;
}

body.page:not(.page-id-25555) #main-content .entry-content td,
body.page:not(.page-id-25555) #main-content .entry-content th {
  border: 1px solid rgba(7,26,45,.12) !important;
  padding: 14px 16px !important;
  vertical-align: top !important;
}

body.page:not(.page-id-25555) #main-content .entry-content tr:nth-child(even) td {
  background: #f7f9fc !important;
}

body.page:not(.page-id-25555) #main-content .entry-content tr:nth-child(odd) td:not(:first-child),
body.page:not(.page-id-25555) #main-content .entry-content tr:nth-child(odd) td {
  background: #ffffff !important;
}

body.page:not(.page-id-25555) #main-content .entry-content hr {
  border: 0 !important;
  border-top: 1px solid rgba(7,26,45,.16) !important;
  margin: 34px 0 !important;
}

body.page:not(.page-id-25555) #main-content .entry-content img {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 760px) {
  body.page:not(.page-id-25555) #main-content {
    padding: 42px 0 64px !important;
  }

  body.page:not(.page-id-25555) article.page,
  body.page:not(.page-id-25555) .et_pb_post,
  body.page:not(.page-id-25555) .hentry {
    padding: 24px 20px !important;
    border-radius: 18px !important;
  }

  body.page:not(.page-id-25555) #main-content .entry-content table {
    display: block !important;
    overflow-x: auto !important;
    white-space: normal !important;
  }
}
