@import url(global.css);
@import url(index.css);

:root {
    --blue-dark: #0f4c93;
    --blue-light: #2563eb;
    --blue-text: #0c4384;
    --green: #2e7d32;
    --green-light: #e8f5e9;
    --bg-gray: #f4f7f9;
    --text-color: #1e293b;
    --text-muted: #57606a;
    --border-color: #cbd5e1;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-gray);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    margin: 0;
    color: var(--text-color);
}

.header {
    background-color: #114694;
    padding: 14px 40px;
    border-radius: 12px;
    margin: 20px auto;
    width: calc(100% - 40px);
    max-width: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 60px;
}

.logo img {
    height: 45px;
    width: auto;
}

.menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
    margin-right: auto;
}

.menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.menu li a:hover {
    color: #cecece;
}

.menu .icon {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.profile {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile .perfil {
    background-color: #ea580c;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 4px;
    object-fit: contain;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.profile .perfil:hover {
    transform: scale(1.05);
}

.container {
    max-width: 1400px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 30px;
    padding: 0 30px;
    box-sizing: border-box;
}

.project-header {
    display: flex;
    gap: 25px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.banner-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 15px;
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-info h1 {
    color: #0c4384;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
}


.badge {
    background-color: var(--green);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
}

.project-info p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 12px 0;
}

.meta-data {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.meta-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.meta-item svg {
    color: #0c4384;
    flex-shrink: 0;
}

.meta-item div strong {
    color: #1a202c;
    font-size: 14px;
}

.gallery {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.gallery h3 {
    font-size: 16px;
    color: #0c4384;
    margin: 0 0 15px 0;
}

.gallery-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gallery-grid img {
    border-radius: 10px;
    width: 31%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-line {
    flex-grow: 1;
    height: 2px;
    background-color: #cbd5e1;
    margin: 0 10px;
}

.downloads {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.downloads h3 {
    font-size: 15px;
    color: #0c4384;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item img {
    width: 32px;
    height: auto;
    margin-right: 15px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.file-text {
    display: flex;
    flex-direction: column;
}


.file-text strong {
    font-size: 15px;
    color: #1a202c;
}


.file-text span {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.dl-btn {
    color: #0c4384;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.dl-btn:hover {
    transform: translateY(3px);
    color: var(--blue-light);
}

.dl-btn:active {
    transform: scale(0.9);
}

.card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.card h3 {
    font-size: 14px;
    color: #0c4384;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.progress-bar-container {
    margin-bottom: 20px;
}


.progress-bar-container .progress-text-wrapper {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 6px;
}

.bar {
    background: #e2e8f0;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.fill {
    background: var(--green);
    height: 100%;
    border-radius: 10px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.checklist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 14px;
    color: #4a5568;
}

.checklist li span:last-child {
    font-weight: 700;
    color: #0c4384;
}

.checklist svg {
    color: var(--green);
    margin-right: 10px;
    vertical-align: middle;
}

.checklist-text {
    display: flex;
    align-items: center;
}

.success-box {
    background: #f0fdf4;
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #bbf7d0;
}

.success-box svg {
    color: var(--green);
    flex-shrink: 0;
}

.success-box p {
    margin: 0;
    font-size: 13.5px;
    color: #166534;
    line-height: 1.5;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.comment-header h3 {
    margin: 0;
    text-align: left;
}

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

.stars {
    color: #ea580c;
    font-size: 16px;
}

.rating-summary strong {
    font-size: 16px;
    color: #1a202c;
    margin-left: 5px;
}


.rating-summary small {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.comment-input {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.comment-input input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.comment-input input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0c4384;
    box-shadow: 0 0 0 3px rgba(12, 67, 132, 0.15);
}

.comment-input input::placeholder {
    color: #64748b;
}

.comment-input button {
    background: #0c4384;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(12, 67, 132, 0.2);
}

.comment-input button:hover {
    background: #093366;
    box-shadow: 0 4px 8px rgba(12, 67, 132, 0.3);
}

.comment-input button:active {
    transform: scale(0.95);
}

.comment {
    padding-top: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.user-avatar {
    color: var(--green);
}

.user-name-date strong {
    font-size: 15px;
    color: #0c4384;
}


.user-name-date small {
    display: block;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
}

.user-stars {
    margin-left: auto;
    color: #ea580c;
}

.comment p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.comment-footer {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #0c4384;
    font-weight: 600;
    align-items: center;
}

.comment-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-footer span:hover {
    color: var(--blue-light);
    transform: translateY(-1px);
}

.comment-footer span:active {
    transform: scale(0.95);
}

.comment-footer span:last-child {
    color: #4a5568;
    cursor: default;
}

.comment-footer span:last-child:hover {
    color: #4a5568;
    transform: none;
}

.view-more {
    text-align: center;
    color: #0c4384;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    transition: color 0.2s ease;
}

.view-more:hover {
    color: var(--blue-light);
    text-decoration: underline;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 76, 147, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 24px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.custom-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0 !important;
    font-size: 17px !important;
    color: #0c4384 !important;
    text-align: left !important;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #57606a;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: #ff6b35;
}

.modal-body #modalUserText {
    font-size: 14.5px;
    color: var(--text-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.modal-body textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.modal-body textarea:focus {
    outline: none;
    border-color: #0c4384;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(12, 67, 132, 0.15);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.modal-footer button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-cancel:hover {
    background: #e2e8f0;
}

.btn-confirm {
    background: #0c4384;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(12, 67, 132, 0.2);
}

.btn-confirm:hover {
    background: #093366;
    box-shadow: 0 4px 8px rgba(12, 67, 132, 0.3);
}

.btn-confirm:active {
    transform: scale(0.97);
}

/* para tablet*/
@media screen and (min-width: 768px) and (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 768px !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        background-color: var(--bg-gray);
    }

    * {
        box-sizing: border-box !important;
    }

    .header {
        width: 93% !important;
        max-width: 715px !important;
        margin: 15px auto !important;
        padding: 12px 15px !important;
        gap: 10px !important;
    }

    .logo {
        margin-right: 15px !important;
    }

    .logo img {
        height: 32px !important;
    }

    .menu {
        gap: 12px !important;
    }

    .menu li a {
        font-size: 14px !important;
        gap: 4px !important;
    }

    .menu .icon {
        height: 15px !important;
    }

    .profile .perfil {
        width: 34px !important;
        height: 34px !important;
        padding: 2px !important;
    }

    .container {
        width: 100% !important;
        max-width: 768px !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 24px !important;
        margin: 20px auto !important;
    }

    .project-header {
        flex-direction: row !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .banner-img {
        width: 150px !important;
        height: 150px !important;
        border-radius: 10px !important;
    }

    .project-info h1 {
        font-size: 22px !important;
        margin-bottom: 5px !important;
    }

    .badge {
        padding: 4px 12px !important;
        margin-bottom: 8px !important;
    }

    .project-info p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .meta-data {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .meta-item {
        padding: 12px !important;
        font-size: 13px !important;
        min-width: 0 !important;
    }

    .meta-item div strong {
        font-size: 13.5px !important;
    }

    .gallery {
        padding: 15px !important;
        width: 100% !important;
    }

    .gallery h3 {
        font-size: 15px !important;
    }

    .gallery-grid {
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    .gallery-grid img {
        width: 31% !important;
    }

    .gallery-line {
        display: none !important;
    }

    .card,
    .downloads {
        padding: 18px !important;
        width: 100% !important;
    }
}

/* para celular */

@media screen and (max-width: 480px) {

    html,
    body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    * {
        box-sizing: border-box !important;
    }


    .header {
        width: 95% !important;
        margin: 10px auto !important;
        padding: 10px !important;
        flex-direction: column !important;
        gap: 12px !important;
        border-radius: 8px !important;
    }

    .logo {
        margin-right: 0 !important;
        justify-content: center !important;
    }

    .logo img {
        height: 28px !important;
    }

    .menu {
        gap: 15px !important;
        margin-right: 0 !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .menu li a {
        font-size: 14px !important;
        gap: 4px !important;
    }

    .menu .icon {
        height: 14px !important;
    }

    .profile {
        width: 100% !important;
        justify-content: center !important;
    }


    .container {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        padding: 0 10px !important;
        margin: 15px auto !important;
    }

    .project-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .banner-img {
        width: 100% !important;
        max-width: 220px !important;
        height: 220px !important;
    }

    .project-info {
        align-items: center !important;
    }

    .project-info h1 {
        font-size: 20px !important;
    }


    .meta-data {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .meta-item {
        padding: 12px !important;
    }


    .gallery {
        padding: 15px !important;
    }

    .gallery-grid {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .gallery-grid img {
        width: 70% !important;
        height: auto !important;
    }


    .download-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 15px 0 !important;
    }

    .file-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .dl-btn {
        padding: 8px 0 !important;
        width: 100% !important;
        text-align: left !important;
    }


    .card,
    .downloads {
        padding: 15px !important;
        border-radius: 16px !important;
    }

    .checklist li {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        padding-bottom: 8px !important;
    }

    .checklist li:last-child {
        border-bottom: none !important;
    }


    .comment-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .rating-summary {
        text-align: left !important;
    }

    .comment-input {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .comment-input button {
        padding: 12px !important;
        width: 100% !important;
    }

    .user-info {
        flex-wrap: wrap !important;
    }

    .user-stars {
        margin-left: 0 !important;
        width: 100% !important;
        margin-top: 5px !important;
    }

    .comment-footer {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }


    .modal-content {
        width: 95% !important;
        padding: 16px !important;
    }

    .modal-footer {
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }

    .modal-footer button {
        width: 100% !important;
    }
}