﻿.page-header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 20px;
}



    .page-header-top .back-btn {
        display: inline-block !important;
        margin-bottom: 10px !important;
        color: #004d44 !important;
        text-decoration: none !important;
        font-size: 18px !important;
    }

        .page-header-top .back-btn:hover {
            text-decoration: none !important;
            color: #003d35 !important;
        }

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.page-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.page-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.page-badge {
    background-color: #f3f4f6;
    color: #374151;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

    .page-badge:hover {
        background-color: #e5e7eb;
    }

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: #6b7280;
}

.page-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-meta-label {
    font-weight: 500;
    color: #374151;
}

.page-meta-value {
    color: #6b7280;
}

.comentarios-badge {
    background: linear-gradient(135deg, #004d44 0%, #006b5e 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 13px;
    margin-left: 4px;
    box-shadow: 0 2px 6px rgba(0, 77, 68, 0.2);
}

.page-detail-layout {
    display: flex;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    align-items: flex-start;
}

.sidebar-stepper {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.stepper-navigation {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: relative;
}

    .stepper-navigation::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 12px;
        bottom: 12px;
        width: 3px;
        background-color: #e5e7eb;
        border-radius: 2px;
    }

.stepper-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.stepper-step {
    padding: 14px 18px 14px 40px;
    margin: 6px 0;
    cursor: pointer;
    transition: color 0.3s ease;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    background: transparent;
    border-radius: 0;
}

    .stepper-step:hover {
        background-color: transparent;
        color: #6b7280;
        transform: none;
    }

    .stepper-step.active {
        background-color: transparent;
        color: #004d44;
        font-weight: 600;
        border-left: none;
        transform: none;
    }

        .stepper-step.active::before {
            content: '';
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 24px;
            background-color: #004d44;
            border-radius: 2px;
        }

.main-content-area {
    flex: 1;
    min-width: 0;
}

.tab-content-expost {
    display: none;
}

    .tab-content-expost.active {
        display: block;
        animation: fadeIn 0.3s ease-in;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title-exc {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 28px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.accordion-container {
    margin-bottom: 24px;
}

.accordion-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .accordion-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    background: #f9fafb;
    transition: all 0.3s ease;
    user-select: none;
}

    .accordion-header:hover {
        background: #f3f4f6;
    }

    .accordion-header.active {
        background: #f3f4f6;
        border-bottom: 1px solid #e5e7eb;
    }

.accordion-title {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

    .accordion-icon svg {
        width: 16px;
        height: 16px;
        fill: #6b7280;
        transition: transform 0.3s ease;
    }

.accordion-header.active .accordion-icon {
    background: #e5e7eb;
}

    .accordion-header.active .accordion-icon svg {
        fill: #374151;
        transform: rotate(180deg);
    }

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

    .accordion-content.active {
        max-height: 2000px;
        padding: 20px 24px;
    }

.accordion-text {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.documento-anexo-section {
    margin: 24px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.documento-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    font-size: 15px;
}

.acciones-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    overflow: hidden;
}

.acciones-header {
    padding: 20px 24px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.acciones-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.acciones-counter {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.acciones-counter-number {
    font-weight: 700;
    color: #004d44;
}

.acciones-table-wrapper {
    overflow-x: auto;
}

.acciones-table {
    width: 100%;
    border-collapse: collapse;
}

.acciones-table-head {
    background: #f9fafb;
}

.acciones-table-header-cell {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.acciones-table-body {
    background: #ffffff;
}

.acciones-table-row {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

    .acciones-table-row:hover {
        background-color: #f9fafb;
    }

    .acciones-table-row:last-child {
        border-bottom: none;
    }

.acciones-table-cell {
    padding: 16px 20px;
    font-size: 14px;
    color: #374151;
}

.acciones-table-cell-tipo {
    font-weight: 500;
}

.acciones-table-cell-articulo {
    color: #6b7280;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.content-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.titulo-homologacion {
    padding: 16px 20px;
    background: #f0fdf4;
    border-left: 4px solid #004d44;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert {
    padding: 16px 20px;
    border-radius: 10px;    
    text-align:justify;
    gap: 12px;
}

.alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

    .alert-info i {
        font-size: 18px;
    }

.pb-3 {
    padding-bottom: 1rem;
}

.pb-4 {
    padding-bottom: 1.5rem;
}

.pt-4 {
    padding-top: 1.5rem;
}


.bg-line-tranparente {
    padding: 10px 20px !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 8px !important;
    border: 1px solid #DDDDDD !important;
}

@media (max-width: 1024px) {
    .page-detail-layout {
        flex-direction: column;
        gap: 24px;
    }    
}






/* Tablets en vertical (portrait) - incluye 820x1180 */
@media (max-width: 834px) { /* iPad Pro 11" */
    .sidebar-stepper {
        width: 100%;
        padding: 12px; 
        margin-bottom: 15px;
        border-radius: 6px; 
        position: relative;
    }

        
        .sidebar-stepper ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: block; 
            width: 100%;
        }

        .sidebar-stepper li {
            display: block; 
            width: 100%; 
            padding: 12px 0; 
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            font-size: 15px; 
            line-height: 1.4; 
            white-space: normal;
            word-wrap: break-word; 
        }

            .sidebar-stepper li:last-child {
                border-bottom: none; 
            }

        
        .sidebar-stepper h3,
        .sidebar-stepper h4,
        .sidebar-stepper .titulo {
            font-size: 16px;
            font-weight: 600;
            margin: 10px 0 5px 0;
            padding: 0;
        }

        
        .sidebar-stepper .info-item {
            display: block;
            margin: 8px 0;
            font-size: 14px;
        }

        .sidebar-stepper .info-label {
            font-weight: 600;
            display: inline-block;
            min-width: 100px; 
        }

        .sidebar-stepper .info-value {
            display: inline-block;
        }
}

/* Rango típico para tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .sidebar-stepper {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 6px;
        position: relative;
    }


        .sidebar-stepper ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: block;
            width: 100%;
        }

        .sidebar-stepper li {
            display: block;
            width: 100%;
            padding: 12px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            font-size: 15px;
            line-height: 1.4;
            white-space: normal;
            word-wrap: break-word;
        }

            .sidebar-stepper li:last-child {
                border-bottom: none;
            }


        .sidebar-stepper h3,
        .sidebar-stepper h4,
        .sidebar-stepper .titulo {
            font-size: 16px;
            font-weight: 600;
            margin: 10px 0 5px 0;
            padding: 0;
        }


        .sidebar-stepper .info-item {
            display: block;
            margin: 8px 0;
            font-size: 14px;
        }

        .sidebar-stepper .info-label {
            font-weight: 600;
            display: inline-block;
            min-width: 100px;
        }

        .sidebar-stepper .info-value {
            display: inline-block;
        }
}

/* Para tu resolución específica 820x1180 */
@media (max-width: 820px) and (min-width: 800px) {
    .sidebar-stepper {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 6px;
        position: relative;
    }


        .sidebar-stepper ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: block;
            width: 100%;
        }

        .sidebar-stepper li {
            display: block;
            width: 100%;
            padding: 12px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            font-size: 15px;
            line-height: 1.4;
            white-space: normal;
            word-wrap: break-word;
        }

            .sidebar-stepper li:last-child {
                border-bottom: none;
            }


        .sidebar-stepper h3,
        .sidebar-stepper h4,
        .sidebar-stepper .titulo {
            font-size: 16px;
            font-weight: 600;
            margin: 10px 0 5px 0;
            padding: 0;
        }


        .sidebar-stepper .info-item {
            display: block;
            margin: 8px 0;
            font-size: 14px;
        }

        .sidebar-stepper .info-label {
            font-weight: 600;
            display: inline-block;
            min-width: 100px;
        }

        .sidebar-stepper .info-value {
            display: inline-block;
        }
}

@media (max-width: 768px) {
    .page-header-top {
        padding: 24px 16px;
    }

    .page-title {
        font-size: 26px;
    }

    .section-title-exc {
        font-size: 20px;
    }

    .stepper-step {
        padding: 12px 16px 12px 40px;
        font-size: 14px;
    }

    .acciones-header {
        padding: 16px 20px;
    }

    .acciones-header-title {
        font-size: 15px;
    }

    .acciones-table-header-cell,
    .acciones-table-cell {
        padding: 12px 16px;
        font-size: 13px;
    }

    .accordion-header {
        padding: 16px 20px;
    }

    .accordion-title {
        font-size: 14px;
    }

    .accordion-content.active {
        padding: 16px 20px;
    }

    .sidebar-stepper {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 6px;
        position: relative;
    }


        .sidebar-stepper ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: block;
            width: 100%;
        }

        .sidebar-stepper li {
            display: block;
            width: 100%;
            padding: 12px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            font-size: 15px;
            line-height: 1.4;
            white-space: normal;
            word-wrap: break-word;
        }

            .sidebar-stepper li:last-child {
                border-bottom: none;
            }


        .sidebar-stepper h3,
        .sidebar-stepper h4,
        .sidebar-stepper .titulo {
            font-size: 16px;
            font-weight: 600;
            margin: 10px 0 5px 0;
            padding: 0;
        }


        .sidebar-stepper .info-item {
            display: block;
            margin: 8px 0;
            font-size: 14px;
        }

        .sidebar-stepper .info-label {
            font-weight: 600;
            display: inline-block;
            min-width: 100px;
        }

        .sidebar-stepper .info-value {
            display: inline-block;
        }
}

@media (max-width: 480px) {
    .page-detail-layout {
        padding: 0 12px 24px 12px;
    }

    .page-header-top {
        padding: 20px 12px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-badges {
        gap: 8px;
    }

    .page-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .page-meta {
        flex-direction: column;
        gap: 12px;
    }

  /*  .back-btn {
        font-size: 18px;
    }*/

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-content.active {
        padding: 14px 16px;
    }

    .accordion-title {
        font-size: 13px;
    }

    .accordion-text {
        font-size: 13px;
    }

    .stepper-step {
        padding: 12px 16px 12px 40px;
        font-size: 13px;
    }

    .sidebar-stepper {
        padding: 10px;
        position: relative;
    }

        .sidebar-stepper li {
            padding: 10px 0;
            font-size: 14px;
        }

        .sidebar-stepper .info-label {
            min-width: 90px; /* Un poco más pequeño */
            font-size: 13px;
        }

        .sidebar-stepper .info-value {
            font-size: 13px;
        }

    .main-content-area {
        width: 100% !important;
        max-width: 100vw !important;        
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

     
}

/* ===== MÓVILES MUY PEQUEÑOS (hasta 375px) ===== */
@media (max-width: 375px) {
    .page-detail-layout {
        padding: 0 12px 24px 12px;
    }

    .page-header-top {
        padding: 20px 12px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-badges {
        gap: 8px;
    }

    .page-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .page-meta {
        flex-direction: column;
        gap: 12px;
    }

 /*   .back-btn {
        font-size: 18px;
    }*/

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-content.active {
        padding: 14px 16px;
    }

    .accordion-title {
        font-size: 13px;
    }

    .accordion-text {
        font-size: 13px;
    }

    .stepper-step {
        padding: 12px 16px 12px 40px;
        font-size: 13px;
    }

    .main-content-area {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

        .main-content-area * {
            max-width: 100%;
            box-sizing: border-box;
        }

    .sidebar-stepper {
        width: 100%;
        position: relative;
    }
    
    
}

/* ===== MÓVILES EXTREMADAMENTE PEQUEÑOS (hasta 320px) ===== */
@media (max-width: 320px) {
    .page-detail-layout {
        padding: 0 12px 24px 12px;
    }

    .page-header-top {
        padding: 20px 12px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-badges {
        gap: 8px;
    }

    .page-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .page-meta {
        flex-direction: column;
        gap: 12px;
    }

    /*.back-btn {
        font-size: 18px;
    }*/

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-content.active {
        padding: 14px 16px;
    }

    .accordion-title {
        font-size: 13px;
    }

    .accordion-text {
        font-size: 13px;
    }

    .stepper-step {
        padding: 12px 16px 12px 40px;
        font-size: 13px;
    }

    .main-content-area {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

        .main-content-area * {
            max-width: 100%;
            box-sizing: border-box;
        }

    .sidebar-stepper {
        width: 100%;
        position: static;
    }

}
