/* ==========================================
   Project Detail Page - Estilos Específicos
   ========================================== */

/* ==========================================
   Project Hero
   ========================================== */
.project-hero {
    position: relative;
    height: 550px;
    margin-top: 80px;
    overflow: hidden;
}

.project-hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.project-hero-slide.active {
    opacity: 1;
}

.project-hero-content {
    position: absolute;
    z-index: 10;
    left: 80px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #0D6E6E;
    border-radius: 20px;
    width: fit-content;
}

.project-badge svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.project-badge span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.project-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.project-hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.project-hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.project-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-dot.active {
    background-color: #fff;
}

/* ==========================================
   Project Details (2-column)
   ========================================== */
.project-details {
    display: flex;
    gap: 60px;
    padding: 80px;
    background-color: #FFFFFF;
    max-width: 1440px;
}

.details-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.details-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-title {
    font-size: 32px;
    font-weight: 700;
    color: #1A1A1A;
}

.details-desc {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
}

.stats-row {
    display: flex;
    gap: 24px;
    width: 100%;
}

.stat-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background-color: #FAFAFA;
    border-radius: 12px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0D6E6E;
}

.stat-label {
    font-size: 13px;
    font-weight: 400;
    color: #666666;
}

.details-right {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background-color: #FAFAFA;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 14px;
    font-weight: 400;
    color: #888888;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

.sidebar-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-gallery-title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
}

.sidebar-gallery-grid {
    display: flex;
    gap: 12px;
}

.sidebar-gallery-img {
    flex: 1;
    height: 100px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sidebar-gallery-img:hover {
    opacity: 0.8;
}

/* ==========================================
   Products Used Section
   ========================================== */
.products-used {
    background-color: #FAFAFA;
    padding: 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.products-used-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.products-used-title {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A1A;
}

.products-used-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.used-product-card {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.used-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.used-product-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    border-radius: 8px;
}

.used-product-icon svg {
    width: 32px;
    height: 32px;
    color: #0D6E6E;
}

.used-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    text-align: center;
}

.used-product-qty {
    font-size: 12px;
    font-weight: 400;
    color: #888888;
}

/* ==========================================
   Results Section
   ========================================== */
.results-section {
    background-color: #FFFFFF;
    padding: 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.results-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.results-title {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A1A;
}

.results-desc {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
}

.results-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.result-card {
    width: 380px;
    padding: 32px;
    background-color: #FAFAFA;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
}

.result-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0D6E6E;
    border-radius: 50%;
}

.result-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
}

.result-desc {
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
}

/* ==========================================
   Installation Gallery Carousel
   ========================================== */
.install-gallery {
    background-color: #FAFAFA;
    padding: 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.install-gallery-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.install-gallery-title {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A1A;
}

.install-gallery-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
}

.install-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background-color: #F5F5F5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    color: #1A1A1A;
}

.install-carousel-track {
    display: flex;
    gap: 24px;
    overflow: hidden;
    max-width: 1100px;
    scroll-behavior: smooth;
}

.install-slide {
    width: 350px;
    height: 240px;
    flex-shrink: 0;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.install-slide:hover {
    transform: scale(1.02);
}

.install-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.67) 0%, rgba(0,0,0,0) 100%);
}

.install-slide-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    z-index: 2;
}

.install-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.install-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #CCCCCC;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.install-dot.active {
    background-color: #0D6E6E;
}

/* ==========================================
   Responsive - Tablet (max 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .project-details {
        padding: 60px 40px;
        gap: 40px;
    }

    .details-right {
        width: 340px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-card {
        min-width: calc(50% - 8px);
    }

    .products-used,
    .results-section,
    .install-gallery {
        padding: 60px 40px;
    }

    .products-used-title,
    .results-title,
    .install-gallery-title {
        font-size: 30px;
    }

    .result-card {
        width: 340px;
    }

    .install-slide {
        width: 300px;
        height: 200px;
    }

    .project-hero-content {
        left: 40px;
    }

    .project-hero-title {
        font-size: 36px;
    }
}

/* ==========================================
   Responsive - Mobile (max 768px)
   ========================================== */
@media (max-width: 768px) {
    .project-hero {
        margin-top: 70px;
        height: 450px;
    }

    .project-hero-content {
        left: 24px;
        right: 24px;
        bottom: 60px;
    }

    .project-hero-title {
        font-size: 28px;
    }

    .project-hero-subtitle {
        font-size: 16px;
    }

    .project-details {
        flex-direction: column;
        padding: 48px 24px;
        gap: 32px;
    }

    .details-right {
        width: 100%;
    }

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

    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        min-width: auto;
    }

    .stat-value {
        font-size: 24px;
    }

    .sidebar-gallery-grid {
        flex-wrap: wrap;
    }

    .sidebar-gallery-img {
        min-width: calc(50% - 6px);
    }

    .products-used,
    .results-section,
    .install-gallery {
        padding: 48px 24px;
    }

    .products-used-title,
    .results-title,
    .install-gallery-title {
        font-size: 26px;
    }

    .products-used-grid {
        flex-wrap: wrap;
        gap: 12px;
    }

    .used-product-card {
        width: calc(50% - 6px);
    }

    .results-grid {
        flex-direction: column;
        align-items: center;
    }

    .result-card {
        width: 100%;
        max-width: 400px;
        padding: 24px;
    }

    .install-carousel-wrapper {
        gap: 12px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .install-slide {
        width: 260px;
        height: 180px;
    }
}

/* ==========================================
   Responsive - Small Mobile (max 480px)
   ========================================== */
@media (max-width: 480px) {
    .project-hero {
        height: 380px;
    }

    .project-hero-title {
        font-size: 24px;
    }

    .project-badge span {
        font-size: 12px;
    }

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

    .stat-value {
        font-size: 20px;
    }

    .products-used-title,
    .results-title,
    .install-gallery-title {
        font-size: 22px;
    }

    .used-product-card {
        width: 100%;
    }

    .install-slide {
        width: 220px;
        height: 160px;
    }

    .carousel-arrow {
        display: none;
    }

    .install-carousel-track {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0 24px;
    }

    .install-slide {
        scroll-snap-align: start;
    }
}
