/**
 * CAMPOAVENTURAS — NOTICIAS FIX CSS
 * Correcciones responsivas y visuales para páginas de blog/noticias
 * Aplicar como último archivo CSS (mayor especificidad)
 * Versión: 1.0 | Fecha: 2026-04-08
 */

/* =============================================
   1. HERO NOTICIAS — Corrección base
   ============================================= */

.hero-news {
    background: linear-gradient(135deg,
        rgba(255,102,0,0.92) 0%,
        rgba(30,58,95,0.88) 55%,
        rgba(107,204,241,0.85) 100%);
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 42vh;
    display: flex;
    align-items: center;
}

/* Ola decorativa inferior */
.hero-news::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.06)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 1;
    pointer-events: none;
}

/* Partículas decorativas */
.hero-news::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107,204,241,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-news .container-fluid {
    position: relative;
    z-index: 2;
}

/* Título del hero */
.hero-news .hero-title-3d {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: #fff !important;
    text-shadow:
        3px 3px 0 rgba(0,0,0,0.4),
        6px 6px 12px rgba(0,0,0,0.35),
        0 0 20px rgba(107,204,241,0.4);
    animation: titleLevitateXL 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

/* Subtítulo del hero */
.hero-news .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.92;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* Badge de cantidad */
.hero-news .badge {
    font-size: 0.9rem;
    padding: 0.5em 1em;
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(8px);
    color: #fff !important;
}

/* =============================================
   2. BUSCADOR — Corrección Safari iOS / mobile
   ============================================= */

/* Contenedor del buscador */
.hero-news .search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-news .search-box .form-control {
    border-radius: 50px !important;
    padding: 0.85rem 3.5rem 0.85rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.95);
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: 100%;
}

.hero-news .search-box .form-control:focus {
    border-color: #ff6600;
    box-shadow: 0 8px 32px rgba(255,102,0,0.25);
    outline: none;
}

/* Botón de búsqueda — reposicionado correctamente */
.hero-news .search-box .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6600;
    border: none;
    border-radius: 50px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 0;
}

.hero-news .search-box .search-btn:hover {
    background: #cc5200;
    transform: translateY(-50%) scale(1.08);
}

/* =============================================
   3. BREADCRUMB — Corrección de duplicados
   ============================================= */

.breadcrumb-section {
    background: rgba(248,249,250,0.95) !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    z-index: 10;
}

.breadcrumb-section .breadcrumb {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
}

.breadcrumb-section .breadcrumb-item {
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb-section .breadcrumb-item a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-section .breadcrumb-item a:hover {
    color: #cc5200;
}

/* =============================================
   4. FILTROS / CATEGORÍAS
   ============================================= */

.filters-section {
    background: #fff !important;
    padding: 1.25rem 0;
    border-bottom: 2px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.filters-section h5 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 0.75rem;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Corrección especificidad para botones activos */
.category-btn.btn.btn-outline-primary.active,
.category-btn.active {
    background-color: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255,102,0,0.3) !important;
}

.category-btn {
    border-radius: 50px !important;
    padding: 0.4rem 1rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
    white-space: nowrap;
}

.category-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255,102,0,0.2) !important;
}

/* =============================================
   5. GRID DE ARTÍCULOS — Layout responsivo
   ============================================= */

.articles-section {
    padding: 3rem 0 4rem;
    background: #f8f9fa;
}

/* =============================================
   6. ARTICLE CARD — Corrección completa
   ============================================= */

.article-card {
    background: #fff;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07) !important;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
    height: 100%;
    border: 2px solid transparent !important;
    display: flex;
    height: 100%;
    flex-direction: column;
    position: relative; /* FIX: necesario para pseudo-elementos */
}

/* Barra de acento superior al hover */
.article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #6bccf1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 2;
    border-radius: 18px 18px 0 0;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.13) !important;
    border-color: rgba(255,102,0,0.2) !important;
}

/* Imagen */
.article-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f, #ff6600);
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.article-card:hover .article-image img {
    transform: scale(1.06);
}

/* Overlay degradado en imagen */
.article-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    pointer-events: none;
}

/* Badge categoría */
.article-category {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.25) !important;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Contenido */
.article-content {
    flex-grow: 1;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.article-card:hover .article-title a {
    color: #ff6600;
}

.article-excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta (fecha/vistas) + botón leer más */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.07);
    font-size: 0.8rem;
    color: #999;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Botón leer más — corrección del btn-outline-primary en cards */
.article-card .btn-outline-primary {
    border-color: #ff6600 !important;
    color: #ff6600 !important;
    border-radius: 50px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 0.35rem 1rem !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0.75rem;
}

.article-card .btn-outline-primary:hover {
    background-color: #ff6600 !important;
    color: #fff !important;
    transform: translateX(3px);
}

/* =============================================
   7. VISTA DETALLE DEL ARTÍCULO
   ============================================= */

/* Contenedor principal */
.article-detail {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    position: relative; /* FIX crítico */
}

/* Imagen cabecera — FIX: ratio correcto en todos los dispositivos */
.article-header {
    position: relative; /* FIX crítico */
    overflow: hidden;
}

.article-header .ratio.ratio-16x9 {
    max-height: 480px;
    overflow: hidden;
}

.article-header .ratio.ratio-16x9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overlay con datos del artículo */
.article-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 50%, transparent 100%);
    padding: 2.5rem 2rem 2rem;
    z-index: 2;
}

/* Título del artículo detalle */
.article-header-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    font-weight: 800;
    line-height: 1.25;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 1rem;
}

/* Meta info (fecha, autor, vistas) */
.article-header-content .d-flex {
    flex-wrap: wrap;
    gap: 1rem;
}

.article-header-content span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Cuerpo del artículo */
.article-body {
    padding: 2.5rem;
    background: #fff;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.content-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.content-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.75rem 0 0.75rem;
}

.content-text p {
    margin-bottom: 1.25rem;
}

.content-text ul, .content-text ol {
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.content-text strong {
    color: #ff6600;
    font-weight: 700;
}

.content-text a {
    color: #ff6600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Botones de navegación inferior en detalle */
.article-body .d-flex.justify-content-between {
    gap: 1rem;
    flex-wrap: wrap;
}

.article-body .d-flex.justify-content-between .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    justify-content: center;
    border-radius: 50px !important;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
}

/* =============================================
   8. ESTADO SIN RESULTADOS
   ============================================= */

.articles-section .alert-info {
    background: linear-gradient(135deg, rgba(107,204,241,0.1), rgba(255,102,0,0.08));
    border: 2px solid rgba(107,204,241,0.4);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    color: #1a1a1a;
}

.articles-section .alert-info .fas {
    font-size: 3rem;
    color: #6bccf1;
    display: block;
    margin-bottom: 1rem;
}

/* =============================================
   9. HOME — NOTICIA CARD (index.php)
   Corrección del position:relative faltante
   ============================================= */

.home-noticia-card {
    position: relative !important; /* FIX crítico para ::before */
    border-radius: 18px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07) !important;
    border: 2px solid transparent !important;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
}

.home-noticia-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.13) !important;
    border-color: rgba(255,102,0,0.18) !important;
}

.home-noticia-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6600, #6bccf1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 5;
}

.home-noticia-card:hover::before {
    transform: scaleX(1);
}

/* Enlace "Leer más" dentro de home noticia */
.home-noticia-link {
    color: #ff6600;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.home-noticia-link:hover {
    gap: 8px;
    color: #cc5200;
}

/* Meta (fecha + leer más) alineados */
.home-noticia-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.82rem !important;
    color: #999 !important;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.07);
}

/* =============================================
   10. RESPONSIVE MÓVIL — ≤767px
   ============================================= */

@media (max-width: 767px) {
    /* Hero */
    .hero-news {
        padding: 5.5rem 1rem 3rem;
        min-height: auto;
    }

    .hero-news .hero-title-3d {
        font-size: clamp(1.7rem, 7vw, 2.4rem) !important;
        text-align: center;
    }

    .hero-news .lead {
        font-size: 0.95rem;
    }

    .hero-news .search-box {
        margin: 0 1rem;
    }

    .hero-news .search-box .form-control {
        font-size: 0.9rem;
        padding: 0.75rem 3rem 0.75rem 1.1rem;
    }

    /* Filtros — scroll horizontal en móvil */
    .filters-section {
        position: static; /* No sticky en móvil */
        padding: 0.85rem 0;
    }

    .category-filter {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.4rem !important;
    }

    .category-filter::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex-shrink: 0;
    }

    /* Cards listado */
    .article-image {
        height: 180px;
    }

    .article-content {
        padding: 1.1rem;
    }

    .article-title {
        font-size: 1rem;
    }

    .article-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    /* Vista detalle */
    .article-header .ratio.ratio-16x9 {
        max-height: 240px;
    }

    .article-header-content {
        padding: 1.25rem 1rem 1rem;
    }

    .article-header-content h1 {
        font-size: 1.35rem !important;
    }

    .article-body {
        padding: 1.25rem;
    }

    .content-text {
        font-size: 0.97rem;
    }

    .content-text h2 {
        font-size: 1.35rem;
    }

    .content-text h3 {
        font-size: 1.15rem;
    }

    /* Grid 1 columna en móvil */
    .articles-section .row.g-4 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =============================================
   11. RESPONSIVE TABLET — 768px–991px
   ============================================= */

@media (min-width: 768px) and (max-width: 991px) {
    .hero-news {
        padding: 6.5rem 1.5rem 3.5rem;
    }

    .hero-news .hero-title-3d {
        font-size: clamp(2rem, 5vw, 2.8rem) !important;
    }

    .article-image {
        height: 195px;
    }

    .article-header .ratio.ratio-16x9 {
        max-height: 340px;
    }

    .article-header-content h1 {
        font-size: 1.65rem !important;
    }

    .article-body {
        padding: 2rem;
    }

    /* 2 columnas en tablet */
    .articles-section .row.g-4 > .col-md-6.col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* =============================================
   12. LANDSCAPE MÓVIL — Orientación horizontal
   ============================================= */

@media (max-width: 767px) and (orientation: landscape) {
    .hero-news {
        padding: 4.5rem 1rem 2.5rem;
        min-height: auto;
    }

    .article-header .ratio.ratio-16x9 {
        max-height: 220px;
    }

    .article-image {
        height: 160px;
    }
}

/* =============================================
   13. PANTALLAS GRANDES — ≥1440px
   ============================================= */

@media (min-width: 1440px) {
    .hero-news {
        padding: 9rem 0 5rem;
        min-height: 50vh;
    }

    .article-image {
        height: 235px;
    }

    .article-header .ratio.ratio-16x9 {
        max-height: 560px;
    }
}

/* =============================================
   14. MODO OSCURO — Ajustes
   ============================================= */

[data-theme="dark"] .article-card {
    background: #1e2a3a;
    border-color: rgba(107,204,241,0.1) !important;
}

[data-theme="dark"] .article-card:hover {
    border-color: rgba(255,102,0,0.3) !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .article-title a {
    color: #e8f4fd;
}

[data-theme="dark"] .article-card:hover .article-title a {
    color: #ff8533;
}

[data-theme="dark"] .article-excerpt {
    color: #a0aec0;
}

[data-theme="dark"] .article-meta {
    border-color: rgba(255,255,255,0.08);
    color: #718096;
}

[data-theme="dark"] .article-detail {
    background: #1a2332;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

[data-theme="dark"] .article-body {
    background: #1a2332;
}

[data-theme="dark"] .content-text {
    color: #cbd5e0;
}

[data-theme="dark"] .content-text h2,
[data-theme="dark"] .content-text h3 {
    color: #e8f4fd;
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .articles-section {
    background: #111827;
}

[data-theme="dark"] .filters-section {
    background: #1e2a3a !important;
    border-color: rgba(255,255,255,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

[data-theme="dark"] .breadcrumb-section {
    background: rgba(30,42,58,0.95) !important;
    border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .home-noticia-card {
    background: #1e2a3a !important;
}

/* =============================================
   15. ACCESIBILIDAD — Focus visible en cards
   ============================================= */

.article-card:focus-within,
.home-noticia-card:focus-within {
    outline: 3px solid #ff6600;
    outline-offset: 3px;
}

.article-title a:focus-visible,
.home-noticia-titulo a:focus-visible {
    outline: 3px solid #ff6600;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   RESPONSIVA PARA CONTENIDO DINÁMICO
   ============================================================ */

/* 1. ANULAR FLEXBOX RÍGIDO:
   Muchos editores insertan display:flex que amontona el texto en móvil.
   Esto obliga a que en pantallas pequeñas se comporten como bloques normales. */
@media (max-width: 991px) {
    .content-text div[style*="display: flex"],
    .content-text div[style*="display:flex"] {
        display: block !important;
        width: 100% !important;
    }

    /* Anula anchos fijos en cualquier elemento interno */
    .content-text [style*="width"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }
}

/* 2. TABLAS RESPONSIVAS REFORZADAS:
   Evita que la tabla se colapse o se salga de la pantalla. */
.content-text table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse !important;
    margin-bottom: 2rem;
}

/* Forzar que las celdas tengan un mínimo de lectura y no se amontonen */
.content-text table td,
.content-text table th {
    min-width: 140px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px !important;
    border: 1px solid #dee2e6 !important;
    vertical-align: top;
}

/* 3. LISTAS Y CARDS INTERNAS:
   Asegura que las listas no pierdan el margen por el padding del contenedor */
.content-text ul, .content-text ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.content-text li {
    width: 100% !important;
    display: list-item !important; /* Fuerza a que no sean flex-items */
    margin-bottom: 0.8rem;
    word-break: break-word; /* Rompe palabras largas si es necesario */
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* 4. IMÁGENES DENTRO DEL CONTENIDO */
.content-text img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

/* Fuerza la tabla a no colapsar el texto */
.content-text table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    border-collapse: collapse !important;
}

.content-text table td,
.content-text table th {
    /* Esto evita que el texto se vea como una línea flaca vertical */
    min-width: 160px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px !important;
    border: 1px solid #dee2e6 !important;
}

/* Si el editor metió divs de colores o columnas, los volvemos una sola columna en móvil */
@media (max-width: 768px) {
    .content-text div {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 10px !important;
    }.content-text .col-md-6,
    .content-text .col-6,
    .content-text .col-lg-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 15px;
    }

    .content-text .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important; /* Desactiva el flex del row en móvil */
    }

    /* Ajuste para que las imágenes en las cards no se deformen */
    .content-text .card-img-top,
    .content-text img {
        width: 100% !important;
        height: auto !important;
    }
}