/* ============================================================
   SINGLE POST — mobile first
============================================================ */

.single-post .site-content {
  padding: 20px 30px 30px 30px;
}

.single-post .acx-metas-hori {
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.single-post .acx-metas {
  margin-bottom: 1rem;
}

.post-meta-separator {
  color: var(--color-gray-mid);
  user-select: none;
}


/* ============================================
   Featured image — layout grid moderno
============================================ */

.post-content-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    align-items: start;
}

.post-content-grid:not(:has(.acx-featured-image)) {
    grid-template-columns: 1fr;
}

.post-content-grid .post-content {
    min-width: 0;
    max-width: 720px;
    margin: 0 auto;
}

.acx-featured-image {
    position: sticky;
    top: 2rem;
}

.acx-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#commentform .wp-block-kadence-advancedbtn .kb-button.btn-navy, .wp-block-kadence-advancedbtn a.kb-button.btn-navy, .btn-navy, a.btn-navy, a.btn-navy:visited, #submit {
    background: red;
}

@media (max-width: 900px) {
    .post-content-grid {
        grid-template-columns: 40% 1fr;
        gap: 1.5rem;
    }

    .acx-featured-image {
        position: static;
    }
}

@media (max-width: 600px) {
    .post-content-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .acx-featured-image img {
        border-radius: 8px;
        max-height: 280px;
        width: 100%;
        object-fit: cover;
    }
}


/* ==========================================================================
   METADATOS
========================================================================== */

.acx-metas-hori {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.acx-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--color-text-gray, #6b7280);
}

.acx-metas__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.post-meta-separator {
    display: none;
}

@media (min-width: 600px) {
    .acx-metas-hori {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .post-meta-separator {
        display: inline;
        color: var(--color-text-gray, #9ca3af);
    }
}


/* Featured image */
.post-featured-image {
    width: 100%;
    margin: 1.5rem 0 2.5rem;
    border-radius: 16px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: cover;
}

@media (min-width: 640px) {
  .post-featured-image img {
    border-radius: 24px;
  }
}


/* ==========================================================================
   COMENTARIOS
========================================================================== */

#comments {
    margin: 4rem auto;
}

#reply-title {
    text-align: center;
}

h2.comments-title {
    font-size: var(--font-size-xl);
    color: var(--color-gray-dark);
}


/* ============================================
   BOTONES DE COMPARTIR
============================================ */

.acx-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin: 3rem 0 2rem;
    padding: 20px 0 30px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    justify-content: center;
}

.acx-share-buttons p {
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

.acx-share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.acx-share-buttons .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.acx-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 8px;
    line-height: 1;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
    position: relative;
}

.acx-share-btn:hover,
.acx-share-btn:visited {
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-text-inverse);
}

.acx-share-btn:active {
    transform: translateY(0);
}

.acx-share-btn svg {
    flex-shrink: 0;
}

.acx-share-btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border: 2px solid var(--color-focus);
}

/* Facebook */
.acx-share-facebook,
.acx-share-facebook:visited {
    color: #ffffff;
    background-color: #0D67DE;
    border: 2px solid #0D67DE;
}
.acx-share-facebook:hover,
.acx-share-facebook:focus {
    color: #ffffff;
    background-color: #125ab8;
    border: 2px solid #125ab8;
}

/* X / Twitter */
.acx-share-x,
.acx-share-x:visited {
    color: #ffffff;
    background-color: #000000;
    border: 2px solid #000000;
}
.acx-share-x:hover,
.acx-share-x:focus {
    color: #ffffff;
    background-color: var(--color-gray-dark);
}

/* WhatsApp */
.acx-share-whatsapp,
.acx-share-whatsapp:visited {
    color: #ffffff;
    background-color: #126832;
    border: 2px solid #126832;
}
.acx-share-whatsapp:hover,
.acx-share-whatsapp:focus {
    color: #ffffff;
    background-color: #147137;
    border: 2px solid #147137;
}

/* LinkedIn */
.acx-share-linkedin,
.acx-share-linkedin:visited {
    color: #ffffff;
    background-color: #0a66c2;
    border: 2px solid #0a66c2;
}
.acx-share-linkedin:hover,
.acx-share-linkedin:focus {
    color: #ffffff;
    background-color: #064c91;
    border: 2px solid #064c91;
}

/* Copiar enlace */
.acx-share-copy,
.acx-share-copy:visited {
    background-color: #f3f4f6;
    color: var(--color-gray-dark);
}
.acx-share-copy:hover,
.acx-share-copy:focus {
    color: #ffffff;
    background-color: var(--color-gray-dark);
    border: 2px solid var(--color-gray-dark);
}

/* Tooltip */
.acx-share-btn[aria-label]:hover::after {
    content: attr(aria-label);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.acx-share-btn[aria-label]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    pointer-events: none;
    z-index: 10;
}

@media (max-width: 480px) {
    .acx-share-buttons {
        gap: 15px;
    }

    .acx-share-label {
        width: 100%;
        margin-bottom: 4px;
    }
}


/* Fuentes */
.fuentes-section {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.fuentes-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-gray-mid);
  margin-bottom: 0.625rem;
}

.fuentes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fuentes-list li {
  font-size: var(--font-size-sm);
  color: var(--color-gray-mid);
  line-height: var(--line-height-snug);
  padding-left: 1rem;
  position: relative;
}

.fuentes-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.4;
}

.fuentes-list a,
.fuentes-list a:visited {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0, 0, 0, 0.2);
}

.fuentes-list a:hover,
.fuentes-list a:focus {
  text-decoration-color: var(--color-brand-dark);
}

@media (min-width: 640px) {
  .fuentes-section {
    padding: 1.25rem 1.5rem;
  }
}


/* ── Dark mode ── */
html[data-theme="dark"] .single-post .acx-metas-hori {
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .acx-meta-item,
html[data-theme="dark"] .post-meta-separator {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .fuentes-section {
    border-top-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .fuentes-title,
html[data-theme="dark"] .fuentes-list li {
    color: var(--color-text-muted);
}

html[data-theme="dark"] .fuentes-list a,
html[data-theme="dark"] .fuentes-list a:visited {
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .fuentes-list a:hover,
html[data-theme="dark"] .fuentes-list a:focus {
    text-decoration-color: var(--color-brand);
}

html[data-theme="dark"] .acx-share-buttons {
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .acx-share-label {
    color: #ffffff;
}

html[data-theme="dark"] .acx-share-copy,
html[data-theme="dark"] .acx-share-copy:visited {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .acx-share-copy:hover,
html[data-theme="dark"] .acx-share-copy:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}


/* ── High contrast ── */
html[data-contrast="high"] .single-post .acx-metas-hori {
    border-color: #ffffff;
}

html[data-contrast="high"] .acx-meta-item,
html[data-contrast="high"] .post-meta-separator {
    color: #ffffff !important;
}

html[data-contrast="high"] .fuentes-section {
    border-top-color: #ffffff;
}

html[data-contrast="high"] .fuentes-title {
    color: #ffffff !important;
}

html[data-contrast="high"] .fuentes-list li {
    color: #f2f2f2 !important;
}

html[data-contrast="high"] .fuentes-list a,
html[data-contrast="high"] .fuentes-list a:visited {
    color: #ffd400 !important;
    text-decoration-color: #ffd400;
}

html[data-contrast="high"] .acx-share-buttons {
    border-color: #ffffff;
}

html[data-contrast="high"] .acx-share-label {
    color: #ffffff !important;
}

html[data-contrast="high"] h3 {
    color: #ffffff !important;
}

html[data-contrast="high"] h3 a:hover,
html[data-contrast="high"] h3 a:focus {
    color: #ffd400 !important;
}

html[data-contrast="high"] .acx-share-btn,
html[data-contrast="high"] .acx-share-btn:visited {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

html[data-contrast="high"] .acx-share-btn:hover,
html[data-contrast="high"] .acx-share-btn:focus {
    background-color: #ffd400 !important;
    color: #000000 !important;
    border-color: #ffd400 !important;
}

html[data-contrast="high"] .acx-share-btn:focus-visible {
    outline: 3px solid #ffd400 !important;
    outline-offset: 2px;
}
