
    .content-body .container-fluid,
    .content-body .container-sm,
    .content-body .container-md,
    .content-body .container-lg,
    .content-body .container-xl,
    .content-body .container-xxl {
        padding-top: 40px !important;
        padding-right: 40px !important;
        padding-left: 40px !important;
        max-width: 1800px;
    }

    @media (max-width: 576px) {
        .content-body .container-fluid,
        .content-body .container-sm,
        .content-body .container-md,
        .content-body .container-lg,
        .content-body .container-xl,
        .content-body .container-xxl {
            padding-top: 60px !important;
            padding-right: 18px !important;
            padding-left: 18px !important;
        }
    }

    /* ═══════════════════════════════
       SECTION CARD (contenedor principal)
    ═══════════════════════════════ */
    .pub-section {
        background: #ffffff;
        border-radius: 10px;
        border-top: 4px solid var(--bs-secondary);
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
        overflow: visible;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* ── headers de sección ── */
    .pub-section-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 18px 22px;
        color: #000;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .pub-header-icon {
        width: 42px;
        height: 42px;
        background: #8e5ea238;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .pub-header-icon .material-icons { font-size: 22px; }

    .pub-header-info   { flex: 1; }
    .pub-header-info h5 {
        margin: 0 0 2px;
        font-size: 13.5px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #000000 !important;
    }
    .pub-header-info span {
        font-size: 11px;
        opacity: 0.78;
        letter-spacing: 0.2px;
        color: #000000 !important;
    }

    .pub-header-badge {
        background: rgba(255,255,255,0.16);
        color: #000000;
        font-size: 10.5px;
        font-weight: 700;
        padding: 4px 12px;
        border-radius: 20px;
        letter-spacing: 0.6px;
        white-space: nowrap;
    }

    .pub-section-body { padding: 20px; }

    /* body del panel de documentos: altura automática */
    .pub-section-body.docs-body {
        overflow: visible;
        padding: 0;
    }

    /* área scrollable de documentos: crece con el contenido, scroll al superar el límite */
    .doc-scroll-area {
        overflow-y: auto;
        max-height: 700px;
        padding: 20px;
    }

    .doc-scroll-area::-webkit-scrollbar { width: 4px; }
    .doc-scroll-area::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
    .doc-scroll-area::-webkit-scrollbar-thumb { background: #7B1C1C; border-radius: 10px; }
    .doc-scroll-area::-webkit-scrollbar-thumb:hover { background: #5C1010; }

    /* ═══════════════════════════════
       DOCUMENTOS — lista horizontal
    ═══════════════════════════════ */
    .doc-card {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 15px 16px;
        background: #fff;
        border: 1px solid #dde3ec;
        border-left: 3px solid var(--card-color, #7B1C1C);
        border-radius: 8px;
        text-decoration: none;
        color: #2d3748;
        margin-bottom: 9px;
        transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

    .doc-card:last-child { margin-bottom: 0; }

    .doc-card:hover {
        background: color-mix(in srgb, var(--card-color, #7B1C1C) 8%, white);
        box-shadow: 0 4px 16px color-mix(in srgb, var(--card-color, #7B1C1C) 20%, transparent);
        transform: translateX(5px);
        text-decoration: none;
        color: var(--card-color, #7B1C1C);
    }

    .doc-card-icon {
        width: 42px;
        height: 42px;
        background: color-mix(in srgb, var(--card-color, #7B1C1C) 10%, white);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        overflow: hidden;
        transition: background 0.2s ease;
    }

    .doc-card-icon .material-icons {
        font-size: 22px;
        color: var(--card-color, #7B1C1C);
    }

    .doc-card-icon img {
        width: 30px;
        height: 30px;
        object-fit: cover;
        border-radius: 8px;
    }

    .doc-card-icon .doc-icono-tint {
        width: 28px;
        height: 28px;
        background-color: color-mix(in srgb, var(--card-color, --primary) 80%, black);
        -webkit-mask-image: var(--icono-src);
        mask-image: var(--icono-src);
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: center;
        mask-position: center;
    }

    .doc-card:hover .doc-card-icon {
        background: color-mix(in srgb, var(--card-color, --primary) 20%, white);
    }

    .doc-card-text { flex: 1; min-width: 0; }

    .doc-card-text h6 {
        font-size: 13px;
        font-weight: 700;
        margin: 0 0 3px;
        color: #1a202c;
        /* white-space: nowrap; */
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.2s;
    }

    .doc-card:hover .doc-card-text h6 { color: var(--card-color, --primary); }

    .doc-card-text p {
        font-size: 10.5px;
        color: #a0aec0;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.35px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .doc-card-badge {
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: 0.7px;
        padding: 3px 8px;
        border-radius: 6px;
        background: color-mix(in srgb, var(--card-color, --primary) 9%, white);
        color: var(--card-color, --primary);
        flex-shrink: 0;
        text-transform: uppercase;
    }

    .doc-card-chevron {
        color: #cbd5e0;
        font-size: 20px;
        flex-shrink: 0;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .doc-card:hover .doc-card-chevron {
        color: var(--card-color, --primary);
        transform: translateX(3px);
    }
    .col-xl-6 {
        height: 505px !important;
    }
/* Estilos para el header */
    .ipt-header {
        /* Eliminamos el 'background: #ffffff;' anterior */
        background-size: cover;       /* Hace que la imagen cubra todo el header sin deformarse */
        background-position: center;  /* Centra la foto vertical y horizontalmente */
        background-repeat: no-repeat;
        
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
        padding: 0 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        margin-bottom: 24px;
        height: 95px; 
    }

    /* El resto del CSS se mantiene exactamente igual */
    .ipt-header::after {
        content: '';
        position: absolute;
        right: 0; top: 0; bottom: 0;
        width: 280px;
        background-color: #701a1a;
        /* Tamaño del "tile" que se repite verticalmente: el ancho cubre todo el bloque
           y el alto debe coincidir con el valor usado en @keyframes ipt-header-scroll
           para que el scroll sea infinito y sin saltos. */
        background-size: 100% 200px;
        background-repeat: repeat-y;
        clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
        z-index: 1;
        animation: ipt-header-scroll 12s linear infinite;
    }

    @keyframes ipt-header-scroll {
        from { background-position-y: 0; }
        to   { background-position-y: 200px; }
    }

    .ipt-brand-group {
        display: flex;
        align-items: center;
        gap: 20px;
        z-index: 2;
    }

    .ipt-logo-box {
        height: 60px; 
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .ipt-logo-box img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .ipt-hdr-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

    .ipt-title {
        font-family: 'Poppins', sans-serif;
        font-size: 16px; 
        font-weight: 700;
        color: #0f172a; 
        margin: 0;
        line-height: 1.2;
        white-space: nowrap;
        letter-spacing: -0.01em;
    }

    .ipt-subtitle {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #475569; /* Un gris ligeramente más oscuro para contrastar mejor sobre imágenes */
        margin: 0;
        line-height: 1.2;
    }

    .ipt-hdr-aside {
        display: flex;
        align-items: center;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    /* ═══ Liquid Glass (botón del header) ═══ */
    .liquidGlass-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2),
                    box-shadow 0.3s ease;
    }

    .liquidGlass-wrapper,
    .liquidGlass-wrapper > div {
        border-radius: 10px;
    }

    .liquidGlass-effect {
        position: absolute;
        z-index: 0;
        inset: 0;
        backdrop-filter: blur(3px);
        filter: url(#glass-distortion);
        overflow: hidden;
    }

    .liquidGlass-tint {
        z-index: 1;
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0);
    }

    .liquidGlass-shine {
        position: absolute;
        inset: 0;
        z-index: 2;
        overflow: hidden;
        box-shadow: inset 1px 1px 0px 0 rgba(255, 255, 255, 0.7),
            inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
    }

    .liquidGlass-text {
        position: relative;
        z-index: 3;
        display: flex;
        align-items: center;
    }

    .liquidGlass-wrapper:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .liquidGlass-wrapper:hover .liquidGlass-tint {
        background: rgba(255, 255, 255, 0.3);
    }

    .liquidGlass-wrapper:active {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }

    #ipt-login-glass:hover {
        transform: translateY(-3px);
    }

    .ipt-login-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 30px;
        text-decoration: none !important;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #ffffff !important;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

    .ipt-login-btn:hover {
        background: rgba(var(--bs-primary-rgb), 0.5) !important;
    }

    .liquidGlass-wrapper:hover .ipt-login-btn {
        color: #fff !important;
    }

    .ipt-btn-icon {
        font-size: 20px !important;
        font-weight: bold;
        display: inline-block;
    }

    /* Responsive header */
    @media (max-width: 768px) {
        .ipt-header {
            padding: 12px 20px;
            height: auto;
            min-height: 70px;
        }
        .ipt-title { font-size: 14px; }
        .ipt-subtitle { font-size: 11px; }
        .ipt-logo-box { height: 46px; }
        .ipt-brand-group { gap: 12px; }
        .ipt-header::after { width: 150px; clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%); }
        .ipt-login-btn { padding: 10px 18px; font-size: 13px; }
        .ipt-btn-icon { font-size: 18px !important; }
    }

    @media (max-width: 576px) {
        .ipt-header { padding: 10px 16px; }
        .ipt-subtitle { font-size: 11px; }
        .ipt-title { white-space: normal; max-width: 52vw; font-size: 13px; }
        .ipt-logo-box { height: 40px; }
        .ipt-brand-group { gap: 10px; }
        .ipt-header::after { width: 90px; clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%); }
        .ipt-btn-text { display: none; }
        .liquidGlass-wrapper,
        .liquidGlass-wrapper > div { border-radius: 50%; }
        .ipt-login-btn { padding: 10px; gap: 0; }
    }

    @media (max-width: 400px) {
        .ipt-logo-box { height: 34px; }          /* logo más pequeño pero siempre visible */
        .ipt-title { max-width: 58vw; font-size: 12px; }
        .ipt-header::after { width: 70px; }
        .ipt-brand-group { gap: 8px; }
    }

/* Estilos para el card1 principal */
    .ipt-main-card1 {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-top: 4px solid #54af9b;
        border-radius: 16px;
        padding: 13px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
        overflow: hidden;
    }

    /* Encabezado */
    .ipt-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 6px;
        border-bottom: 1px solid #f1f5f9;
    }

    .ipt-card-icon-wrapper {
        color: #54af9b; /* Tono institucional */
        background: #f6fff5;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ipt-card-header-title {
        font-family: 'Poppins', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
    }

    /* Cuerpo */
    .ipt-card-body {
        background: transparent;
    }

    /* --- Sub-Tarjetas de Navegación (Enlaces) --- */
    .ipt-sub-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 20px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        text-decoration: none !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    /* Icono individual */
    .ipt-sub-card-icon {
        color: #64748b;
        margin-bottom: 14px;
        transition: color 0.2s ease;
    }

    .ipt-sub-card-icon .material-icons {
        font-size: 24px;
    }

    /* Títulos y Descripciones Internas */
    .ipt-sub-card-title {
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        margin: 0 0 6px 0;
        transition: color 0.2s ease;
    }

    .ipt-sub-card-desc {
        font-family: 'Poppins', sans-serif;
        font-size: 12.5px;
        font-weight: 400;
        color: #64748b;
        line-height: 1.5;
        margin: 0 0 20px 0;
        flex-grow: 1; /* Empuja el botón de acción al fondo uniformemente */
    }

    /* Área de Acción (Acceder ->) */
    .ipt-sub-card-action {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: #64748b;
        transition: color 0.2s ease;
    }

    .ipt-sub-card-action .action-arrow {
        font-size: 14px !important;
        transition: transform 0.25s ease;
    }

    /* --- Estados HOVER (Efecto Minimalista Premium) --- */
    .ipt-sub-card:hover {
        background: #ffffff;
        border-color: #701a1a; /* El borde cambia al color institucional */
        box-shadow: 0 10px 25px -5px rgba(112, 26, 26, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
        transform: translateY(-2px);
    }

    .ipt-sub-card:hover .ipt-sub-card-title {
        color: #701a1a;
    }

    .ipt-sub-card:hover .ipt-sub-card-icon {
        color: #701a1a;
    }

    .ipt-sub-card:hover .ipt-sub-card-action {
        color: #701a1a;
    }

    /* Animación de la flecha al hacer hover */
    .ipt-sub-card:hover .action-arrow {
        transform: translateX(4px);
    }

    /* Ajustes Responsivos */
    @media(max-width: 576px) {
        .ipt-main-card1 { padding: 20px; }
        .ipt-sub-card { padding: 16px; }
    }
/* Estilos para los cards dentro del card1 principal*/
    .ipt-premium-card {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 350px;
        border-radius: 15px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        text-decoration: none !important;
        position: relative;
        overflow: hidden;
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                    background-size 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }

    /* Capa de degradado oscuro inferior (Garantiza legibilidad perfecta del texto) */
    .ipt-premium-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.6) 40%,
            rgba(15, 23, 42, 0) 70%
        );
        z-index: 1;
        transition: opacity 0.45s ease;
    }

    /* Contenedor de Información */
    .ipt-premium-card-content {
        position: relative;
        z-index: 2; /* Por encima del degradado */
        padding: 24px;
        display: flex;
        flex-direction: column;
        width: 100%;
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Título Principal */
    .ipt-premium-title {
        font-family: 'Poppins', sans-serif;
        font-size: 20px;
        font-weight: 700;
        color: #ffffff;
        margin: 0 0 6px 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    /* Descripción de la tarjeta — scroll si el texto es largo */
    .ipt-premium-desc {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 450;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.45;
        margin: 0 0 12px 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        max-height: 76px;      /* ~4 líneas visibles */
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.35) transparent;
    }
    .ipt-premium-desc::-webkit-scrollbar { width: 3px; }
    .ipt-premium-desc::-webkit-scrollbar-track { background: transparent; }
    .ipt-premium-desc::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.35);
        border-radius: 3px;
    }

    /* Fila de Acciones Inferior */
    .ipt-premium-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Badge del Icono Izquierdo (Efecto Cristal Espejo igual al precio de tu imagen) */
    .ipt-premium-badge-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 20px;
        color: #ffffff;
        flex-shrink: 0;
    }

    .ipt-premium-badge-icon .material-icons {
        font-size: 22px;
    }

    /* Botón Derecho Estilo "Reserve Now" */
    .ipt-premium-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 28px;
        background: #ffffff;
        color: #0f172a; /* Texto oscuro minimalista */
        border-radius: 30px; /* Píldora perfecta */
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        font-weight: 700;
        flex-grow: 1; /* Hace que use el espacio disponible de forma elegante */
        text-align: center;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .ipt-premium-btn .material-icons {
        font-size: 16px;
        transition: transform 0.2s ease;
    }

    /* --- Comportamiento Hover Premium --- */
    .ipt-premium-card:hover {
        transform: translateY(-5px);
    }

    /* Al pasar el mouse por la tarjeta, el botón blanco reacciona de forma sutil */
    .ipt-premium-card:hover .ipt-premium-btn {
        background-color: #f8fafc;
    }

    .ipt-premium-card:hover .ipt-premium-btn .material-icons {
        transform: translateX(3px); /* Movimiento dinámico de la flecha */
    }

    /* Ajustes Responsive */
    @media (max-width: 576px) {
        .ipt-premium-card { height: 380px; border-radius: 22px; }
        .ipt-premium-card-content { padding: 18px; }
        .ipt-premium-title { font-size: 18px; }
        .ipt-premium-desc { font-size: 12.5px; margin-bottom: 14px; }
        .ipt-premium-btn { padding: 10px 20px; }
    }

    /* ─── Columnas del layout principal (igual altura) ─── */
    .gestion-docs-row { align-items: stretch; }

    @media (min-width: 992px) {
        .gestion-docs-row > .col-xl-7,
        .gestion-docs-row > .col-xl-5,
        .gestion-docs-row > .col-lg-7,
        .gestion-docs-row > .col-lg-5 {
            display: flex;
            flex-direction: column;
        }
        .gestion-docs-row .ipt-card-body {
            display: flex;
            flex-direction: column;
        }
    }

    /* ─── Scroll wrapper planes ───
       Altura fija = ancla: ambas columnas quedan al mismo alto.
       Muestra 4 tarjetas (2×340 + gap 16), scroll si hay más.
    ─── */
    .planes-scroll-wrapper {
        /* 2 × 420px + 16px gap */
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 2px;
    }
    .planes-scroll-wrapper::-webkit-scrollbar { width: 4px; }
    .planes-scroll-wrapper::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
    .planes-scroll-wrapper::-webkit-scrollbar-thumb { background: #7B1C1C; border-radius: 10px; }
    .planes-scroll-wrapper::-webkit-scrollbar-thumb:hover { background: #5C1010; }

    /* ─── Paginación de planes ─── */
    .planes-paginacion {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 16px;
    }
    .planes-paginacion .pag-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 1px solid #dde3ec;
        background: #fff;
        color: #334155;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        text-decoration: none;
        transition: background .2s ease, color .2s ease, border-color .2s ease;
    }
    .planes-paginacion .pag-btn .material-icons { font-size: 20px; }
    .planes-paginacion a.pag-btn:hover {
        border-color: #3cb0bd;
        color: #3cb0bd;
    }
    .planes-paginacion .pag-btn.active {
        background: #3cb0bd;
        border-color: #3cb0bd;
        color: #fff;
    }
    .planes-paginacion .pag-btn.disabled {
        opacity: .4;
        cursor: default;
    }

    /* ─── Filas de badges informativos ─── */
    .ipt-badge-row {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }
    .ipt-badge-row:last-of-type { margin-bottom: 14px; }

    .ipt-info-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 10px 3px 8px;
        border-radius: 20px;
        font-family: 'Poppins', sans-serif;
        font-size: 10px;
        font-weight: 600;
        white-space: nowrap;
        background: rgba(255,255,255,0.18);
        border: 1px solid rgba(255,255,255,0.32);
        color: rgba(255,255,255,0.92);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        text-shadow: 0 1px 2px rgba(0,0,0,0.15);
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ipt-info-badge .material-icons { font-size: 11px; flex-shrink: 0; }

    /* Badge tipo plan: acento azul */
    .ipt-badge-tipo {
        background: rgba(255,255,255,0.18);
        color: rgba(255,255,255,0.92);
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    /* ─── Botón Acceder animado ─── */
    .ipt-premium-card .ipt-premium-footer {
        justify-content: center;
    }
    .ipt-premium-card .ipt-premium-btn {
        position: relative;
        width: 140px;
        height: 36px;
        border-radius: 30px;
        background-color: white;
        border: 1px solid #058a7152;
        overflow: hidden;
        display: flex;
        align-items: center;
        flex-grow: 0;
        flex-shrink: 0;
        padding: 0;
        cursor: pointer;
        text-decoration: none !important;
        transition: transform 0.15s ease;
    }
    .ipt-premium-card:active .ipt-premium-btn { transform: scale(1.03); }

    .ipt-premium-btn .btn-icon {
        position: absolute;
        top: 0; left: 0;
        transition: transform 0.5s ease;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ipt-premium-btn .btn-icon::before {
        content: '';
        position: absolute;
        left: -105px; top: 0;
        z-index: -1;
        width: 140px;
        height: 34px;
        border-radius: 30px;
        background-color: #3cb0bd;
    }
    /* "Acceder" centrado, oscuro en reposo */
    .ipt-premium-btn .btn-text1 {
        position: absolute;
        left: 3px;
        right: 0;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: #1a202c;
        z-index: 3;
        transition: color 0.2s ease 0.1s;
        white-space: nowrap;
    }
    /* "Ver plan" oculto a la izquierda, no se usa activamente */
    .ipt-premium-btn .btn-text2 {
        display: none;
    }
    /* Hover: fondo azul entra, "Acceder" pasa a blanco al mismo tiempo */
    .ipt-premium-btn:hover .btn-icon {
        transform: translateX(104px);
    }
    .ipt-premium-btn:hover .btn-text1 {
        color: white;
        transition: color 0.2s ease 0.2s;
    }

    /* ─── Tarjeta de plan horizontal (plan-row-card) ───
       Izquierda: portada del plan. Derecha: información completa.
       Alto 350px en escritorio (lo usa --inicio-panel-h). Cuando la columna es angosta
       (container query sobre .prc-col) la tarjeta se apila: portada arriba, info abajo. */
    .prc-col { container-type: inline-size; }

    .plan-row-card {
        --prc-accent: #3cb0bd;
        --prc-brand: #7B1C1C;
        --prc-ease: cubic-bezier(0.22, 1, 0.36, 1);
        display: flex;
        height: 343px;
        background: #ffffff;
        border: 1px solid #e6ebf2;
        border-radius: 18px;
        overflow: hidden;
        text-decoration: none !important;
        color: inherit;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 10px 28px -14px rgba(15, 23, 42, 0.25);
        transition: transform 0.45s var(--prc-ease), box-shadow 0.45s var(--prc-ease), border-color 0.3s ease;
        will-change: transform;
    }
    .plan-row-card:hover,
    .plan-row-card:focus-visible {
        transform: translateY(-4px);
        border-color: rgba(60, 176, 189, 0.45);
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06), 0 22px 44px -18px rgba(15, 23, 42, 0.38);
    }
    .plan-row-card:focus-visible { outline: 2px solid var(--prc-accent); outline-offset: 3px; }

    /* ── Portada ── */
    .prc-media {
        position: relative;
        flex: 0 0 42%;
        max-width: 42%;
        overflow: hidden;
        background: #e2e8f0;
    }
    .prc-media img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.001);
        transition: transform 0.9s var(--prc-ease);
    }
    .plan-row-card:hover .prc-media img,
    .plan-row-card:focus-visible .prc-media img { transform: scale(1.07); }
    /* velo inferior para que el badge sea legible sobre cualquier imagen */
    .prc-media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0) 45%);
        pointer-events: none;
    }
    .prc-tipo {
        position: absolute;
        left: 14px;
        bottom: 14px;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        max-width: calc(100% - 28px);
        padding: 5px 12px 5px 9px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #0f172a;
        font-family: 'Poppins', sans-serif;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    .prc-tipo .material-icons { font-size: 13px; color: var(--prc-accent); }

    /* ── Información ── */
    .prc-body {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 22px 24px 20px 26px;
    }
    
    .plan-row-card:hover .prc-body::before,
    .plan-row-card:focus-visible .prc-body::before { height: calc(100% - 44px); }

    .prc-head { display: flex; flex-direction: column; gap: 4px; }
    .prc-kicker {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-family: 'Poppins', sans-serif;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        color: #1f8f9b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .prc-kicker .material-icons { font-size: 14px; }
    .prc-title {
        margin: 0;
        font-family: 'Poppins', sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
        color: #0f172a;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.3s ease;
    }
    .plan-row-card:hover .prc-title,
    .plan-row-card:focus-visible .prc-title { color: var(--prc-brand); }
    .prc-abrev {
        align-self: flex-start;
        padding: 2px 9px;
        border-radius: 6px;
        background: #f1f5f9;
        color: #475569;
        font-family: 'Poppins', sans-serif;
        font-size: 10.5px;
        font-weight: 600;
    }

    /* descripción completa: ocupa el espacio libre y hace scroll si es larga */
    .prc-desc {
        flex: 1 1 auto;
        min-height: 72px;
        margin: 0;
        padding-right: 6px;
        overflow-y: auto;
        font-family: 'Poppins', sans-serif;
        font-size: 14.5px;
        line-height: 1.6;
        color: #334155;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }
    .prc-desc::-webkit-scrollbar { width: 4px; }
    .prc-desc::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

    .prc-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .prc-meta-item {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        padding: 8px 10px;
        border-radius: 12px;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        transition: background 0.3s ease, border-color 0.3s ease;
    }
    .plan-row-card:hover .prc-meta-item { background: #f2fbfc; border-color: rgba(60, 176, 189, 0.25); }
    .prc-meta-icon {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: rgba(60, 176, 189, 0.14);
        color: #1f8f9b;
        font-size: 17px !important;
    }
    .prc-meta-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
    .prc-meta-text small {
        font-family: 'Poppins', sans-serif;
        font-size: 10.5px;
        color: #94a3b8;
    }
    .prc-meta-text strong {
        font-family: 'Poppins', sans-serif;
        font-size: 12.5px;
        font-weight: 600;
        color: #1e293b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .prc-footer { display: flex; justify-content: flex-end; }
    .prc-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 6px 6px 6px 18px;
        border-radius: 30px;
        background: rgba(60, 176, 189, 0.12);
        color: #1f8f9b;
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none !important;
        cursor: pointer;
        transition: background 0.35s var(--prc-ease), color 0.35s var(--prc-ease), box-shadow 0.35s var(--prc-ease), transform 0.15s ease;
    }
    .prc-btn:focus-visible { outline: 2px solid var(--prc-accent); outline-offset: 3px; }
    .prc-btn:active { transform: scale(0.97); }
    .prc-btn-arrow {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--prc-accent);
        color: #ffffff;
        font-size: 16px !important;
        transition: transform 0.35s var(--prc-ease), background 0.35s ease, color 0.35s ease;
    }
    /* Solo el botón es clicable: reacciona al pasar sobre él */
    .prc-btn:hover,
    .prc-btn:focus-visible {
        background: var(--prc-accent);
        color: #ffffff;
        box-shadow: 0 8px 18px -8px rgba(60, 176, 189, 0.8);
    }
    .prc-btn:hover .prc-btn-arrow,
    .prc-btn:focus-visible .prc-btn-arrow {
        background: #ffffff;
        color: var(--prc-accent);
        transform: translateX(3px);
    }

    /* ── Columna angosta (tablet, celular o escritorio pequeño): se apila ── */
    @container (max-width: 560px) {
        .plan-row-card { flex-direction: column; height: auto; }
        .prc-media { flex: 0 0 auto; max-width: none; height: 190px; }
        .prc-body { padding: 18px 18px 18px 20px; }
        .prc-body::before { top: 18px; }
        .plan-row-card:hover .prc-body::before { height: calc(100% - 36px); }
        .prc-desc { flex: 0 0 auto; max-height: 116px; }   /* ~5 líneas, scroll si hay más */
        .prc-footer { justify-content: stretch; }
        .prc-btn { width: 100%; justify-content: space-between; }
    }
    @container (max-width: 360px) {
        .prc-media { height: 160px; }
        .prc-title { font-size: 16px; }
        .prc-meta { grid-template-columns: 1fr; gap: 8px; }
        .prc-body { gap: 10px; padding: 16px 14px 16px 16px; }
    }
    /* respaldo para navegadores sin container queries */
    @supports not (container-type: inline-size) {
        @media (max-width: 767.98px) {
            .plan-row-card { flex-direction: column; height: auto; }
            .prc-media { flex: 0 0 auto; max-width: none; height: 190px; }
            .prc-desc { flex: 0 0 auto; max-height: 116px; }
            .prc-btn { width: 100%; justify-content: space-between; }
        }
    }

    /* Táctil: sin efectos de hover "pegados"; respuesta al tocar */
    @media (hover: none) {
        .plan-row-card:hover { transform: none; }
        .plan-row-card:hover .prc-media img { transform: scale(1.001); }
    }

    @media (prefers-reduced-motion: reduce) {
        .plan-row-card,
        .prc-media img,
        .prc-body::before,
        .prc-btn,
        .prc-btn-arrow { transition: none; }
    }

    /* ─── Paneles del inicio: planes y documentos ───
       Cada panel tiene su propia clase y su propio alto; ninguno depende del otro.
       --inicio-panel-h = 2 filas de tarjetas de plan (2 × 350 + 36 de márgenes) + paginación (50).
       Si cambias el alto de .ipt-premium-card o los planes por página, ajusta este valor. */
    .gestion-docs-row {
        --inicio-panel-h: 786px;
        /* espacio entre la tarjeta de documentos y los planes (cámbialo aquí; mínimo 16px) */
        --inicio-separacion: 40px;
    }

    .inicio-docs-card {
        width: 600px;
        max-width: 100%;
    }
    /* en móvil/tablet los filtros y documentos se apilan con el mismo espacio */
    /* Móvil/tablet: la columna izquierda "se disuelve" para ordenar sus tarjetas por separado:
       filtros → planes → documentos. */
    @media (max-width: 991.98px) {
        .gestion-docs-row > .inicio-docs-col {
            display: contents;
        }
        .gestion-docs-row .card.inicio-filtros-card,
        .gestion-docs-row .inicio-docs-wrap {
            flex: 0 0 auto;
            width: 600px;
            max-width: calc(100% - var(--bs-gutter-x));
            margin: var(--bs-gutter-y) calc(var(--bs-gutter-x) * .5) 0;
        }
        .gestion-docs-row .card.inicio-filtros-card { order: -1; }
        .gestion-docs-row .inicio-docs-wrap { order: 1; }
    }

    @media (min-width: 992px) {
        .card.inicio-filtros-card {
            margin-bottom: 0; /* el espacio lo da el gap de la columna */
        }
        /* La columna de documentos mide su tarjeta (600px, máx. 5/12) + la separación,
           y la de planes toma el resto: el espacio entre ambas es siempre --inicio-separacion. */
        .gestion-docs-row > .inicio-docs-col {
            flex: 0 0 auto;
            width: calc(600px + var(--inicio-separacion));
            max-width: 41.666667%;
            padding-right: calc(var(--inicio-separacion) - var(--bs-gutter-x) * .5);
        }
        .gestion-docs-row > .inicio-planes-col {
            flex: 1 1 0;
            width: auto;
            max-width: none;
        }
        .inicio-docs-card {
            width: 100%;
        }
        .inicio-planes-panel {
            min-height: var(--inicio-panel-h);
        }
        /* Columna izquierda: filtros arriba y, debajo, el espacio para documentos.
           .inicio-docs-wrap ocupa el resto sin aportar alto propio (flex-basis 0): el alto
           de la fila lo marcan los planes. Dentro, la tarjeta mide lo que su contenido
           (sin espacio vacío abajo) y, si no cabe, hace scroll interno. */
        .gestion-docs-row > .inicio-docs-col {
            gap: 1rem;
        }
        .inicio-docs-wrap {
            flex: 1 1 0;
            min-height: 260px;
            display: flex;
            flex-direction: column;
        }
        .inicio-docs-card {
            flex: 0 1 auto;
            min-height: 0;
        }
        /* scroll interno si hay más documentos de los que caben */
        .inicio-docs-card .docs-body {
            flex: 0 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
        .inicio-docs-card .doc-scroll-area {
            flex: 0 1 auto;
            min-height: 0;
            max-height: none;
        }
    }

    /* ─── Estado del plan (anillo de avance sobre la portada, estilo anterior) ─── */
    .prc-media::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0) 55%);
        pointer-events: none;
        z-index: 1;
    }
    .ipt-plan-progress {
        align-items: center;
        display: flex;
        gap: 20px;
        position: absolute;
        right: 18px;
        top: 18px;
        z-index: 3;
    }
    .ipt-plan-progress-title {
        color: #ffffff;
        font-family: 'Poppins', sans-serif;
        font-size: 25px;
        font-weight: 700;
        letter-spacing: 0.35px;
        line-height: 1.25;
        padding: 6px 10px;
        text-align: right;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    }
    .ipt-plan-progress-ring {
        align-items: center;
        background: conic-gradient(
            #48d3df calc(var(--plan-progress, 0) * 1%),
            rgba(255, 255, 255, 0.24) 0
        );
        border-radius: 50%;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        height: 100px;
        justify-content: center;
        position: relative;
        width: 100px;
    }
    .ipt-plan-progress-ring::before {
        background: rgba(15, 23, 42, 0.82);
        border: 1px solid rgba(255, 255, 255, 0.24);
        border-radius: 50%;
        content: '';
        inset: 7px;
        position: absolute;
    }
    .ipt-plan-progress-value,
    .ipt-plan-progress-label {
        color: #ffffff;
        font-family: 'Poppins', sans-serif;
        position: relative;
        z-index: 1;
    }
    .ipt-plan-progress-value {
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -0.5px;
        line-height: 1.1;
    }
    .ipt-plan-progress-label {
        font-size: 12px;
        font-weight: 600;
        margin-top: 2px;
        opacity: 0.8;
        text-transform: uppercase;
    }
    /* portada angosta: el título se reduce y pasa a dos líneas */
    @container (max-width: 820px) {
        .ipt-plan-progress { gap: 10px; right: 14px; top: 14px; }
        .ipt-plan-progress-title { font-size: 15px; max-width: 90px; padding: 4px 6px; }
        .ipt-plan-progress-ring { height: 84px; width: 84px; }
        .ipt-plan-progress-value { font-size: 16px; }
        .ipt-plan-progress-label { font-size: 10.5px; }
    }
    @container (max-width: 360px) {
        .ipt-plan-progress { gap: 7px; }
        .ipt-plan-progress-title { font-size: 9.5px; max-width: 68px; padding: 5px 8px; }
        .ipt-plan-progress-ring { height: 72px; width: 72px; }
        .ipt-plan-progress-value { font-size: 14px; }
    }
    @supports not (container-type: inline-size) {
        @media (max-width: 576px) {
            .ipt-plan-progress { gap: 7px; right: 14px; top: 14px; }
            .ipt-plan-progress-title { font-size: 9.5px; max-width: 68px; padding: 5px 8px; }
            .ipt-plan-progress-ring { height: 72px; width: 72px; }
            .ipt-plan-progress-value { font-size: 14px; }
        }
    }

    /* ─── Fichas completadas (pie de la tarjeta, junto al botón) ─── */
    .plan-row-card .prc-footer {
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    .prc-fichas {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 20px;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        color: #1e293b;
        font-family: 'Poppins', sans-serif;
        font-size: 12.5px;
        font-weight: 600;
        white-space: nowrap;
    }
    .prc-fichas .material-icons { font-size: 16px; color: #1f8f9b; }

    /* ═══════════════════════════════
       AJUSTES RESPONSIVE / CELULAR
    ═══════════════════════════════ */
    @container (max-width: 560px) {
        .prc-footer .prc-fichas { align-self: flex-start; }
    }

    /* Tablet y celular: filtros, planes y documentos con el mismo ancho */
    @media (max-width: 991.98px) {
        .gestion-docs-row .card.inicio-filtros-card,
        .gestion-docs-row .inicio-docs-wrap {
            width: calc(100% - var(--bs-gutter-x));
            max-width: none;
        }
        .gestion-docs-row .card.inicio-filtros-card { margin-bottom: 0; }
        .inicio-docs-card { width: 100%; }
        .inicio-planes-panel { min-height: 0; }
    }

    /* Celular */
    @media (max-width: 576px) {
        .gestion-docs-row { --bs-gutter-x: 0; --bs-gutter-y: 1rem; }
        .ipt-header { margin-bottom: 16px; border-radius: 14px; }

        .inicio-filtros-card .card-body { padding: 16px; }
        .planes-filtros .form-label { font-size: 12px; margin-bottom: 4px; }

        .plan-row-card { border-radius: 16px; }
        .prc-title { font-size: 16px; }
        .prc-desc { font-size: 13.5px; max-height: 108px; }

        /* encabezado de documentos: el contador baja bajo el título */
        .pub-section-header { flex-wrap: wrap; padding: 14px 16px; gap: 10px 12px; }
        .pub-header-info { min-width: 0; flex: 1 1 calc(100% - 60px); }
        .pub-header-badge { margin-left: 54px; padding: 0; }
        .doc-scroll-area { padding: 14px; max-height: 480px; }
        .doc-card { padding: 12px; gap: 10px; }
        .doc-card-badge { display: none; }
        .doc-card:hover { transform: none; }

        .planes-paginacion { gap: 4px; }
        .planes-paginacion .pag-btn { min-width: 32px; height: 32px; padding: 0 8px; }
    }
