.nota-ampliada {
    padding: var(--space-xl);
    width: min(var(--news-width), 100%);
    margin: var(--space-sm) auto;
    .title {
        font-size: 32px;
    }
    .foto {
        padding: var(--space-md) 0;
        img {
          width: 100%;
          border-radius: var(--radius-sm);
        }
        .pie-foto {
            font-size: 14px;
            color: var(--color-link);
            line-height: 1.6;
            background: #232323;
            border-radius: var(--space-md);
            padding: var(--space-sm) var(--space-md);
            .creditos {
                font-style: italic;
                font-size: 12px;
                font-weight: 500;
                padding: var(--space-xs) 0;
            }
        }
    }
    .nota {
        .metadata {
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            padding:0 0 var(--space-lg) 0;
            .fecha {
                font-size: 14px;
                color: var(--color-link);
            }
            .redes {
                display: inline-block;
                background: none;
                ul {
                    list-style-position: inside;
                    text-align: right;
                    li {
                        display: inline-block;
                        list-style: none;
                        padding:0 var(--space-sm);
                        font-size: 24px;
                        }
                    }
                }
            }
        .content {
            a {
                color: var(--color-link);
                transition: all 0.15s linear;
                background: #232323;
                padding: 0 var(--space-sm);
                &:hover {
                    color: var(--color-text) !important;
                }

            }
            .resumen {
                h2  {
                    color: var(--color-link);
                    font: 500 24px/28px 'Open-Sans', Arial, Sans-Serif;
                    padding: var(--space-sm) 0;
                    &::after {
                        content: none;
                        }
                }
            }
            .redaccion {
                p {
                    padding: var(--space-md) 0;
                    }
                }
            }

            .tabla-contenedor {
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                table {
                    /*width: 100%;
                    border-collapse: collapse;*/
                    background-color: var(--color-secondary);
                    border: 1px solid var(--color-primary);
                    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
                    margin-bottom: 1.5rem;
                    margin-top: 1.5rem;
                    border-radius: 8px;
                    overflow: hidden;
                    color: #FFF;
                    width: max-content; /* mantiene el ancho real */
                    min-width: 100%;   /* asegura que no colapse */
                    border-collapse: collapse;
                    thead {
                        th {
                            padding: 1rem;
                            text-align: left;
                            font-weight: bold;
                            text-transform: uppercase;
                            letter-spacing: 0.05em;
                            line-height: 1.3 !important;
                            background: var(--color-primary);
                        }
                    }
                tbody {
                tr {
                    border-bottom: 1px solid #7e7474;
                    transition: background-color 0.3s ease;
                    td {
                            padding: 0.75rem 1rem;
                            color: #FFF;
                            letter-spacing: 0.05em;
                            line-height: 1.3 !important;
                            }
                        }
                    }
                }
            }


            .tags {
                ul {
                    li {
                        a {
                            padding: var(--space-xs) var(--space-md);
                        }
                    }
                }
            }
        }
    }



#contentCargarMas {
  .card {
    padding: var(--space-md);
    gap: var(--space-sm);
    grid-template-columns: 170px 1fr;
    a {
      color: #FFF;
      text-decoration: none;
      padding: 0;
      &:hover {
        color: var(--color-link);
        text-decoration: underline;
      }
    }
    .resumen {
      a {
        background: var(--color-primary);
        padding: var(--space-xs) var(--space-sm);
        border-radius: 4px;
        font-size: 12px;
     }
    }
  }
}

.table-wrapper {
  width: 550px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
}

.table-wrapper table {
  width: max-content; /* mantiene el ancho real */
  min-width: 100%;   /* asegura que no colapse */
  border-collapse: collapse;
}


.cdx-marker {
    background: #FFF;
    color: var(--color-secondary);
    padding: 2px var(--space-xs);
    border-radius: var(--space-xs);
    font-weight: 500;
}

code.inline-code {
    padding: 2px var(--space-xs);
    font-weight: 500;
    color: #FFF;
    background-color:var(--color-primary);
    border-radius: var(--space-xs);
}

blockquote.warning {
    position: relative;
    background-color: var(--color-secondary);
    color: #FFF;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 10px;
    line-height: 1.6;
    font-style: normal !important;
    border-left: var(--space-xs) solid var(--color-primary);
    padding: 2.5em 1em 1em 3em;
    border-radius: 10px;
    margin: 2em 0px;
}

.parrafo-dark {
    background-color: var(--color-secondary);
    border: 1px solid: var(--color-brdr);
    color: #ffffff;
    padding: 1rem !important;
    border-radius: var(---radius-sm);
    line-height: 1.6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin: 1.5rem 0;
}

.cita {
    position: relative;
    background-color: var(--color-secondary);
    border-left: 6px solid var(--color-primary);
    padding: 2rem 2rem 2rem 3rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: var(---radius-sm);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    font-family: 'Open Sans', sans-serif;
    color: #FFF;
    .blockquoteAutor {
      color: #FFF;
    }
}

/*ESPECIAL CMS*/
.embed .popular-post.section{
  position: relative;
  width: 100%;
  overflow: hidden;          /* <-- acÃ¡ se recorta */
  border-radius: 10px;
}

/* PISTA QUE SE MUEVE */
.embed .popular-post-owl{
  display: flex;
  width: 100%;
  transition: transform .45s ease;
  will-change: transform;
}

/* CADA SLIDE */
.embed .popular-post-owl .item{
  flex: 0 0 100%;
  box-sizing: border-box;
}

/* IMAGEN */
.embed .popular-post-owl .item img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* PIE DE FOTO */
.embed .popular-post-owl .item p{
  margin: 0;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.3;
  background: #000;
  color: #fff;
}

/* FLECHAS ENCIMA */
.embed .arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  border: 0;
  background: rgba(0,0,0,.6);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: transform .15s ease, background .2s ease;
}

.embed .arrow-left{ left: 8px; }
.embed .arrow-right{ right: 8px; }

.embed .arrow:hover{
  transform: translateY(-50%) scale(1.06);
  background: rgba(0,0,0,.8);
}

/*Foto embed*/
/* ===== Base para cualquier foto embed ===== */
figure.align,
figure.alignleft,
figure.alignrigth,
figure.alignright {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  clear: both; /* evita que se monten con otros floats */
  text-align: center; /* por defecto centrado */
}

figure.align a,
figure.alignleft a,
figure.alignrigth a,
figure.alignright a {
  display: block;
}

figure.align img,
figure.aligncenter img,
figure.alignleft img,
figure.alignrigth img,
figure.alignright img {
  display: block;
  width: 100%;        /* ocupa el ancho del figure */
  height: auto;
  max-width: 100%;    /* nunca se pasa del contenedor */
  border-radius: 8px; /* opcional */
}

/* Caption bonito */
figure.align figcaption,
figure.aligncenter figcaption,
figure.alignleft figcaption,
figure.alignrigth figcaption,
figure.alignright figcaption {
  font-size: 0.9rem;
  line-height: 1.35;
  color: #666;
  margin-top: .5rem;
  text-align: center;
}

/* ===== Alineaciones en desktop ===== */

/* Centro (tu clase "align") */
figure.align, figure.aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 100%;
}

/* Izquierda */
figure.alignleft {
  float: left;
  margin: .5rem 1rem .8rem 0;
  text-align: left;
  max-width: 50%;     /* tope para que no sea gigante */
}

/* Derecha (soporta align-rigth y align-right) */
figure.alignrigth,
figure.alignright {
  float: right;
  margin: .5rem 0 .8rem 1rem;
  text-align: right;
  width: 50%;
  max-width: 420px;
}

/* si quieres que el caption de left/right quede alineado con la foto */
figure.alignleft figcaption { text-align: left; }
figure.alignrigth figcaption,
figure.alignright figcaption { text-align: right; }


/* ===== Mobile: todo a una columna, sin floats ===== */
@media (max-width: 768px) {
  figure.alignleft,
  figure.alignrigth,
  figure.alignright {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem auto;
    text-align: center;
  }

  figure.alignleft figcaption,
  figure.alignrigth figcaption,
  figure.alignright figcaption {
    text-align: center;
  }
}

/* oembed dast*/
.oEmbedDAST a {
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
  color: var(--color-link);
}

.oEmbedDAST .author-box-style-1 {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-left: 4px solid #5ba85b;
  background-color: var(--color-secondary);
  border-radius: 8px;
  transition: background-color 0.3s ease;
  transition: all 0.15s linear;
}

.oEmbedDAST .author-img img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #5ba85b;
}

.oEmbedDAST .author-content {
  flex: 1;
}

.oEmbedDAST .author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-link);
  margin: 0;
  line-height: 1.3;
}
.oEmbedDAST .author-name:hover {
  color: #FFF;
}
.oEmbedDAST .user-desc {
  display: none;
}
