
        @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
        :root {
            --primary-green: #28a745;
            --dark-green: #073504;
            --light-bg: #f5f5f5;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
             font-family: "Inter", sans-serif;
            font-optical-sizing: auto;

            font-style: normal;
            background: #fafafa;
        }

        /* Barra secundaria */
        .navbar-secondary {
            background: rgb(241, 241, 241);
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #e0e0e0;
        }

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

        .secondary-nav-center {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
        }

        .accordion-success {
        --bs-accordion-btn-color: #28a745;
        --bs-accordion-active-bg: #d1e7dd;
        --bs-accordion-btn-focus-border-color: #198754;
        --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.35);
        }

        .btn-discover {
            background-color: var(--primary-green);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 5px;
            font-weight: 600;
            margin-right: 1rem;
            transition: background-color 0.3s;
            font-size: 0.9rem;
        }

        .btn-discover:hover {
            background-color: var(--dark-green);
        }

        .btn-favorites {
            background: white;
            border: 1px solid #ddd;
            padding: 0.5rem 1.5rem;
            border-radius: 5px;
            color: #666;
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        .btn-favorites:hover {
            border-color: var(--primary-green);
            color: var(--primary-green);
        }

        .btn-advanced-search {
            background: white;
            border: 1px solid #ddd;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            color: #666;
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        .btn-advanced-search:hover {
            border-color: var(--primary-green);
            color: var(--primary-green);
        }

        @media (max-width: 768px) {
            .navbar-secondary {
                padding: 0.5rem 1rem;
            }

            .btn-discover,
            .btn-favorites,
            .btn-advanced-search {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
                margin-right: 0.5rem;
            }

            .btn-discover i,
            .btn-favorites i,
            .btn-advanced-search i {
                font-size: 0.9rem;
            }

            .secondary-nav-mobile {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 0.5rem;
                width: 100%;
            }
        }

        /* Contenedor principal */
        .main-container {
            padding: 1.5rem;
        }

        /* Header del proyecto */
        .project-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .project-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #333;
            margin: 0;
        }

        .like-counter {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary-green);
            font-weight: 600;
        }

        .btn-share {
            background-color: var(--primary-green);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 25px;
            font-weight: 500;
            margin-bottom: 1rem;
            transition: background-color 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        .document-links {
        }
        .btn-link {
            background-color: var(--primary-green);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 25px;
            font-weight: 500;
           text-decoration: none;
            transition: background-color 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-share:hover {
            background-color: var(--dark-green);
        }

        /* Galería */
        .gallery-container {
            width: 100%;
        }

        .col-lg-8 .gallery-container {
            padding: 0;
        }

        .main-image {
            width: 100%;
            height: 456px;
            display: block;
            border-radius: 10px;
            object-fit: cover;
            object-position: center;
        }

        .thumbnail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, 116px);
            justify-content: space-between;
            width: 100%;
            margin-top: 10px;
            gap: 8px;
        }

        .thumbnail {
            width: 116px;
            height: 65px;
            object-fit: cover;
            display: block;
            border-radius: 8px;
            cursor: pointer;
        }

        .thumbnail:hover {
            transform: scale(1.05);
        }

        .thumbnail:hover,
        .thumbnail.active {
            opacity: 1;
            outline: 2px solid #28a745;
        }

        .main-wrapper {
            position: relative;
        }

        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.6);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 22px;
            z-index: 10;
        }

        .prev { left: 10px; }
        .next { right: 10px; }

        .nav-btn:hover {
            background: black;
        }

        /* ── Comentarios ── */
        .comments-box {
            padding: 1rem;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .comments-scroll {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
        }

        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding: 0.6rem 0.75rem;
            background: #f3f4f6;
            border-radius: 10px;
        }

        .comments-count {
            background-color: var(--primary-green);
            color: white;
            padding: 0.2rem 0.65rem;
            border-radius: 12px;
            font-size: 0.82rem;
            font-weight: 700;
        }

        .no-comments-msg {
            text-align: center;
            opacity: .55;
            font-size: .9rem;
            padding: 1rem 0;
        }

        /* Comment item – layout con avatar */
        .comment-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #f0f0f0;
        }

        .comment-avatar {
            flex-shrink: 0;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            overflow: hidden;
            background: var(--primary-green);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .comment-avatar span {
            color: #fff;
            font-size: 1rem;
            font-weight: 700;
            line-height: 1;
        }

        .comment-body {
            flex: 1;
            min-width: 0;
        }

        .comment-author {
            font-weight: 700;
            color: #222;
            font-size: 0.88rem;
            margin-bottom: 0.2rem;
        }

        .comment-text {
            color: #555;
            font-size: 0.875rem;
            line-height: 1.55;
            word-break: break-word;
        }

        /* "See all" button */
        .comments-see-all {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            width: 100%;
            padding: 0.55rem 1rem;
            background: none;
            border: 1.5px dashed #c8c8c8;
            border-radius: 10px;
            color: var(--primary-green);
            font-size: 0.88rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
            margin-top: 0.5rem;
        }

        .comments-see-all:hover {
            background: #f0fff4;
            border-color: var(--primary-green);
        }

        /* ── Modal custom de comentarios ── */
        .comments-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.52);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            backdrop-filter: blur(2px);
        }

        .comments-modal-overlay.open {
            display: flex;
        }

        .comments-modal {
            background: #fff;
            border-radius: 18px;
            width: 100%;
            max-width: 600px;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 24px 64px rgba(0,0,0,.22);
            animation: commentsModalIn .22s ease;
        }

        @keyframes commentsModalIn {
            from { transform: translateY(28px); opacity: 0; }
            to   { transform: translateY(0);    opacity: 1; }
        }

        .comments-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.1rem 1.4rem;
            border-bottom: 1px solid #efefef;
            flex-shrink: 0;
        }

        .comments-modal-header h2 {
            font-size: 1rem;
            font-weight: 700;
            color: #1a1a1a;
            margin: 0;
            display: flex;
            align-items: center;
        }

        .comments-modal-close {
            background: #f3f4f6;
            border: none;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #444;
            font-size: .95rem;
            flex-shrink: 0;
            transition: background 0.18s;
        }

        .comments-modal-close:hover {
            background: #e2e3e5;
        }

        .comments-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 1.2rem 1.4rem;
        }

        .comments-modal-body .comment-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        /* Responsive: slide-up en móvil */
        @media (max-width: 576px) {
            .comments-modal-overlay {
                align-items: flex-end;
                padding: 0;
            }
            .comments-modal {
                max-height: 90vh;
                border-radius: 18px 18px 0 0;
            }
        }

        /* Formulario de comentario */
        .comment-input-box {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .comment-input {
            flex: 1;
            border: 1px solid #ddd;
            border-radius: 20px;
            padding: 0.6rem 1rem;
            font-size: 0.9rem;
            font-family: inherit;
        }

        .comment-input:focus {
            outline: none;
            border-color: var(--primary-green);
        }

        .btn-post {
            background-color: var(--primary-green);
            color: white;
            border: none;
            padding: 0.6rem 1.2rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: .88rem;
            cursor: pointer;
            transition: background-color 0.25s;
            display: flex;
            align-items: center;
            gap: .3rem;
        }

        .btn-post:hover {
            background-color: var(--dark-green);
        }

        /* Descripción */
        .description-box {
            
            padding: 1rem;
            
            
        }

        .description-text {
            color: #666;
            line-height: 1.6;
            margin-bottom: 0.5rem;
        }

        /* Barra de acciones inferior */
        .action-bar {
            background: #fafafa;
            z-index: 10;
            padding: 1rem 1.5rem;
            margin: 0;
            border-top: 1px solid #e0e0e0;
            border-bottom: 1px solid #e0e0e0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .btn-flag {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            transition: color 0.3s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .btn-flag:hover {
            color: #e74c3c;
        }

        .action-buttons {
            display: flex;
            gap: 1rem;
        }

        .btn-circle {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 2px solid var(--primary-green);
            background-color: var(--primary-green);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            color: white;
            font-size: 20px;
        }

        .btn-circle:hover {
            
            background-color: var(--dark-green);
            color: white;
        }

        .btn-circle.pass {
            background-color: #d42424;
            border-color: #d42424;
            color: white;
        }

        .btn-circle.pass:hover {
            background-color: #a11a1a;
        }

        .update-info {
            font-size: 0.85rem;
            color: #999;
            text-align: right;
        }

        .floating-actions {
            position: fixed;
            bottom: 110px;
            left: 50%;
            transform: translateX(-50%) translateY(200px);
            display: flex;
            gap: 1rem;
            z-index: 9999;
            background: white;
            padding: .7rem 1rem;
            border-radius: 50px;
            box-shadow: 0 10px 30px rgba(0,0,0,.15);
            transition: transform .35s cubic-bezier(.2,.8,.2,1);
        }

        .floating-actions.show {
            transform: translateX(-50%) translateY(0);
        }

        /* Footer */
        .footer {
            background-color: #073504;
            color: white;
            padding: 1.5rem 2rem;
            text-align: center;
            flex-shrink: 0;
            min-height: 80px;
        }

        /* Carrusel móvil */
        .carousel-mobile {
            display: none;
            touch-action: pan-x;
        }

        @media (max-width: 768px) {

            .footer {
                display: block;
                padding: 1rem 1.5rem;
                text-align: center;
            }

            .footer .container .d-flex {
                justify-content: center !important;
                align-items: center !important;
            }

            .main-container {
                padding: 1rem;
            }

            .project-title {
                font-size: 1.1rem;
            }

            .gallery-desktop {
                display: none;
            }

            .carousel-mobile {
                display: block;
            }

            .main-image {
                height: 250px;
            }

            .thumbnail-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .action-bar {
                flex-direction: column;
                gap: 1rem;
                align-items: stretch;
            }

            .action-buttons {
                justify-content: center;
            }

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

            .comments-box {
                margin-top: 1rem;
                height: auto;
            }
        }

        @media (max-width: 576px) {
            .main-image {
                height: 200px;
            }
        }