/* =====================================================
   PROJECT SINGLE – VERSIÓN MEJORADA
   Mobile First - Responsive Design
===================================================== */

/* ===============================
   HERO SECTION
================================ */
.hero {
    background: linear-gradient(135deg, #0b4393 0%, #1565c0 100%);
    padding: 4rem 1rem;
    color: #ffffff;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-meta {
    font-size: 0.95rem;
    opacity: 0.95;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.hero-meta i {
    color: #f7941d;
    margin-right: 0.3rem;
}

/* ===============================
   MAIN CONTENT SECTION
================================ */
.project-content-section {
    padding: 3rem 0;
    background: #ffffff;
}

.project-layout {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ===============================
   PROJECT MAIN CONTENT
================================ */
.project-main {
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

.project-main p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.project-main h2,
.project-main h3 {
    color: #0b4393;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
}

.project-description {
    margin-bottom: 2rem;
}

/* ===============================
   GALLERY / IMAGES
================================ */
.project-gallery,
.project-featured-image {
    margin-bottom: 2.5rem;
    width: 100%;
}

.project-gallery img,
.project-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.project-gallery img:hover,
.project-featured-image img:hover {
    transform: scale(1.02);
}

.carousel-item img {
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

/* ===============================
   EXCERPT / HIGHLIGHT BOX
================================ */
.project-excerpt {
    background: linear-gradient(135deg, #f0f6ff 0%, #e8f2ff 100%);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.project-excerpt p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #0b4393;
    margin: 0;
    line-height: 1.6;
}

/* ===============================
   META INFO - MEJORADO
================================ */
.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.meta-value {
    font-weight: 700;
    color: #0b4393;
    font-size: clamp(1rem, 3vw, 1.2rem);
}

/* ===============================
   TAGS
================================ */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.project-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #0b4393;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: #0b4393;
    color: #ffffff;
}

/* ===============================
   SIDEBAR
================================ */
.project-sidebar {
    position: relative;
}

.sidebar-box {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sidebar-box:hover {
    border-color: #0b4393;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.sidebar-box h6 {
    font-weight: 700;
    color: #0b4393;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-box h6 i {
    color: #f7941d;
    font-size: 1.1rem;
}

.sidebar-box p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===============================
   RELATED PROJECTS
================================ */
.related-card {
    display: block;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.related-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.related-content {
    padding: 1.25rem;
}

.related-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b4393;
    line-height: 1.4;
    margin: 0;
}

/* ===============================
   BUTTONS
================================ */
.cta-btn {
    background: #f7941d;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
}

.cta-btn:hover {
    background: #e67e0d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #ffffff;
}

.cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(247, 148, 29, 0.25);
}

.cta-btn-full {
    width: 100%;
    display: block;
}

/* ===============================
   RESPONSIVE - TABLET (992px)
================================ */
@media (max-width: 992px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.75rem;
    }

    .hero-meta {
        font-size: 0.9rem;
    }

    .project-main {
        max-width: 100%;
    }

    .carousel-item img {
        max-height: 400px;
    }

    .project-meta {
        gap: 1.5rem;
    }

    .sidebar-box {
        margin-top: 3rem;
    }
}

/* ===============================
   RESPONSIVE - MOBILE (768px)
================================ */
@media (max-width: 768px) {
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-meta {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .project-content-section {
        padding: 2rem 0;
    }

    .project-main {
        padding: 0 1rem;
    }

    .project-main p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .project-main h2,
    .project-main h3 {
        margin: 2rem 0 1rem;
        font-size: 1.4rem;
    }

    .project-gallery,
    .project-featured-image {
        margin-bottom: 2rem;
        padding: 0 0;
    }

    .carousel-item img {
        max-height: 350px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .project-excerpt {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-radius: 8px;
    }

    .project-excerpt p {
        font-size: 1.05rem;
    }

    /* Meta items en 2 columnas en móvil */
    .project-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .meta-label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .meta-value {
        font-size: 1.05rem;
    }

    .project-tags {
        gap: 0.5rem;
    }

    .project-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Sidebar en mobile - full width */
    .project-sidebar {
        padding: 0 1rem;
    }

    .sidebar-box {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .sidebar-box h6 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }

    .sidebar-box p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .related-image {
        height: 140px;
    }

    .related-content {
        padding: 1rem;
    }

    .cta-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* ===============================
   RESPONSIVE - SMALL MOBILE (480px)
================================ */
@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.35rem;
    }

    .hero-meta {
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .project-content-section {
        padding: 1.5rem 0;
    }

    .project-main {
        padding: 0 0.75rem;
    }

    .project-main p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .project-main h2,
    .project-main h3 {
        margin: 1.5rem 0 0.75rem;
        font-size: 1.25rem;
    }

    .project-gallery,
    .project-featured-image {
        margin-bottom: 1.5rem;
    }

    .carousel-item img {
        max-height: 280px;
    }

    .project-excerpt {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .project-excerpt p {
        font-size: 1rem;
    }

    .project-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }

    .meta-label {
        font-size: 0.65rem;
    }

    .meta-value {
        font-size: 1rem;
    }

    .project-tags {
        gap: 0.4rem;
        margin-bottom: 2rem;
    }

    .project-tag {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }

    .project-sidebar {
        padding: 0 0.75rem;
    }

    .sidebar-box {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .sidebar-box h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .sidebar-box p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .related-image {
        height: 120px;
    }

    .related-content {
        padding: 0.75rem;
    }

    .related-title {
        font-size: 0.9rem;
    }

    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ===============================
   BREADCRUMB / BACK NAVIGATION
================================ */
.breadcrumb-section {
    padding: 1.5rem 0;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-back {
    color: #0b4393;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.breadcrumb-back:hover {
    color: #f7941d;
    gap: 0.75rem;
}

.breadcrumb-separator {
    color: #ddd;
}

.breadcrumb-current {
    color: #666;
    font-size: 0.95rem;
}

/* ===============================
   PROJECT NAVIGATION (NEXT/PREV)
================================ */
.project-navigation-section {
    padding: 3rem 0;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.project-navigation-title {
    color: #0b4393;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
}

.project-nav-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-nav-card:hover {
    border-color: #0b4393;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.project-nav-label {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.project-nav-title-text {
    color: #0b4393;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    font-size: 1rem;
}

/* ===============================
   RESPONSIVE - NAVIGATION
================================ */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 1rem 0;
    }

    .breadcrumb-back {
        font-size: 0.9rem;
    }

    .breadcrumb-current {
        font-size: 0.85rem;
    }

    .project-navigation-section {
        padding: 2rem 0;
    }

    .project-navigation-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .project-nav-card {
        padding: 1.25rem;
    }

    .project-nav-label {
        font-size: 0.8rem;
    }

    .project-nav-title-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-section {
        padding: 0.75rem 0;
    }

    .breadcrumb-back {
        font-size: 0.8rem;
    }

    .breadcrumb-separator {
        display: none;
    }

    .breadcrumb-current {
        display: none;
    }

    .project-navigation-section {
        padding: 1.5rem 0;
    }

    .project-navigation-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .project-nav-card {
        padding: 1rem;
    }

    .project-nav-label {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }

    .project-nav-title-text {
        font-size: 0.9rem;
    }
}

/* ===============================
   FAQ ACCORDION (NEW)
================================ */
.accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    color: #0b4393 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: #f7941d !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border: none !important;
}

.accordion-body {
    padding: 0.75rem 0 !important;
    border: none !important;
    background: transparent !important;
    color: #666;
    font-size: 0.9rem;
}

.accordion-item {
    background: transparent !important;
    border: none !important;
}

/* ===============================
   SIDEBAR BOX IMPROVEMENTS (NEW)
================================ */
.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.sidebar-box li:last-child {
    border-bottom: none;
}

.sidebar-box li i {
    color: #f7941d;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ===============================
   RESPONSIVE - SIDEBAR IMPROVEMENTS
================================ */
@media (max-width: 768px) {
    .accordion-button {
        font-size: 0.85rem !important;
        padding: 0.5rem 0 !important;
    }

    .accordion-body {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .sidebar-box li {
        font-size: 0.85rem;
    }

    .accordion-button {
        font-size: 0.8rem !important;
    }
}