/* ==========================================================================
   Bloques VDLN (Estilo Elementor ligero para Portal y WordPress)
   ========================================================================== */

/* 1. Tabla de contenidos */
.vdln-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #764d8e;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}
.vdln-toc-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 0.6rem 0;
}
.vdln-toc-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
}
.vdln-toc-list li {
    margin: 0.25rem 0;
}
.vdln-toc-list li.vdln-toc-h3 {
    margin-left: 1rem;
    list-style-type: disc;
}
.vdln-toc-list li.vdln-toc-h4 {
    margin-left: 2rem;
    list-style-type: circle;
}
.vdln-toc-list a {
    color: #764d8e;
    text-decoration: none;
    font-weight: 500;
}
.vdln-toc-list a:hover {
    text-decoration: underline;
}

/* 2. Contenedores / Columnas (1 a 4) */
.vdln-section {
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.25rem 0;
}
.vdln-bg-none {
    padding: 0.5rem 0;
    background: transparent;
}
.vdln-bg-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.vdln-bg-dark {
    background: #2e1d3a;
    color: #ffffff;
}
.vdln-bg-dark h2,
.vdln-bg-dark h3,
.vdln-bg-dark h4,
.vdln-bg-dark p {
    color: #ffffff;
}
.vdln-cols {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .vdln-cols-1 { grid-template-columns: 1fr; }
    .vdln-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vdln-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vdln-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vdln-col {
    min-width: 0;
}

/* 3. Títulos */
.vdln-heading {
    margin: 1rem 0 0.6rem;
    line-height: 1.3;
    font-weight: 700;
}

/* 4. Botones (2 variantes corporativas) */
.vdln-btn-wrap {
    margin: 1rem 0;
}
.vdln-btn {
    display: inline-block;
    padding: 0.7rem 1.45rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    border-radius: 10px;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.vdln-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.vdln-btn-primary {
    background-color: #764d8e;
    color: #ffffff !important;
    border: 2px solid #764d8e;
}
.vdln-btn-inverse {
    background-color: #ffffff;
    color: #764d8e !important;
    border: 2px solid #ffffff;
}

/* 5. Galerías (Grid y Slider) */
.vdln-gallery-grid {
    display: grid;
    gap: 0.85rem;
    margin: 1.25rem 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .vdln-gallery-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vdln-gallery-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vdln-gallery-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vdln-gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
}
.vdln-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.vdln-gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.25rem 0;
    background: #0f172a;
}
.vdln-slider-track {
    display: flex;
    transition: transform 0.35s ease;
}
.vdln-slider-slide {
    min-width: 100%;
    margin: 0;
}
.vdln-slider-slide img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}
.vdln-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
}
.vdln-slider-prev { left: 12px; }
.vdln-slider-next { right: 12px; }

/* Tablas editoriales */
.entry-content table,
.mce-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.entry-content table th,
.entry-content table td,
.mce-content-body table th,
.mce-content-body table td {
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.75rem;
    text-align: left;
}
.entry-content table th,
.mce-content-body table th {
    background: #f1f5f9;
    font-weight: 600;
}

/* 6. Espaciador vertical */
.vdln-spacer {
    display: block;
    width: 100%;
    clear: both;
}

/* 7. Imagen individual insertada en contenido */
.vdln-image-figure {
    margin: 1rem 0;
}
.vdln-image-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}
.vdln-image-center {
    text-align: center;
}
.vdln-image-center img {
    margin: 0 auto;
}
.vdln-image-left img {
    margin-right: auto;
}
.vdln-image-right img {
    margin-left: auto;
}
.vdln-image-figure figcaption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.4rem;
}

/* 8. Vídeo incrustado 16:9 */
.vdln-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.25rem 0;
    border-radius: 10px;
    background: #0f172a;
}
.vdln-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

