/* ==========================================
   LifeSmart - Página de Detalle de Proyecto
   ========================================== */

/* ==========================================
   Project Hero Section
   ========================================== */
.project-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    margin-top: 80px;
    overflow: hidden;
}

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

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.project-hero-content {
    position: absolute;
    bottom: 80px;
    left: 80px;
    z-index: 10;
    color: #fff;
}

.project-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.project-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px 0;
    max-width: 600px;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    opacity: 0.9;
}

.project-location svg {
    width: 18px;
    height: 18px;
}

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

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

.project-indicator.active {
    background-color: #fff;
    transform: scale(1.2);
}

.project-indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   Project Details Section
   ========================================== */
.project-details {
    padding: 80px;
    background-color: var(--color-bg-white);
}

.project-details-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.project-info-main {
    flex: 1;
}

.project-details-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 16px 0 24px 0;
    line-height: 1.2;
}

.project-details-description {
    font-size: 16px;
    color: var(--color-secondary);
    line-height: 1.7;
    margin: 0 0 40px 0;
}

.project-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-secondary);
}

.stat-label {
    font-size: 13px;
    color: var(--color-tertiary);
    font-weight: 500;
}

/* Project Info Card */
.project-info-card {
    width: 320px;
    flex-shrink: 0;
    background-color: var(--color-bg-light);
    border-radius: 16px;
    padding: 32px;
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 24px 0;
}

.info-card-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-card-row:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
}

/* Gallery Section in Sidebar */
.gallery-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.gallery-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 12px 0;
}

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

.gallery-thumb {
    flex: 1;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

.info-label {
    font-size: 14px;
    color: var(--color-tertiary);
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.btn-contact-project {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact-project:hover {
    background-color: #0a5a5a;
    transform: translateY(-2px);
}

.btn-contact-project svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   Products Used Section
   ========================================== */
.products-used {
    padding: 80px;
    background-color: var(--color-bg-light);
}

.products-used-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-header-center .section-title {
    margin-top: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-secondary);
    max-width: 600px;
    margin: 16px auto 0;
    line-height: 1.6;
}

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

.product-used-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background-color: var(--color-bg-white);
    border-radius: 16px;
    min-width: 180px;
    transition: all 0.3s ease;
}

.product-used-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-used-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    border-radius: 12px;
}

.product-used-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.product-used-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    text-align: center;
}

.product-used-qty {
    font-size: 12px;
    color: var(--color-tertiary);
}

/* ==========================================
   Results Section
   ========================================== */
.project-results {
    padding: 80px;
    background-color: var(--color-bg-white);
}

.project-results-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.result-card {
    padding: 40px 32px;
    background-color: var(--color-bg-light);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.result-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    border-radius: 16px;
    margin: 0 auto 24px;
}

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

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 12px 0;
}

.result-description {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   Gallery Section
   ========================================== */
.project-gallery {
    padding: 80px;
    background-color: var(--color-bg-light);
}

.project-gallery-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-label {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================
   CTA Section
   ========================================== */
.project-cta {
    padding: 80px;
    background-color: var(--color-primary);
}

.project-cta-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-cta-primary:hover {
    background-color: #0a5a5a;
    transform: translateY(-2px);
}

.btn-cta-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-cta-primary svg,
.btn-cta-secondary svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   Responsive - Tablet (max 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .project-hero {
        height: 60vh;
        min-height: 450px;
    }

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

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

    .project-details {
        padding: 60px 40px;
    }

    .project-details-content {
        flex-direction: column;
    }

    .project-info-card {
        width: 100%;
    }

    .project-stats {
        flex-wrap: wrap;
    }

    .products-used,
    .project-results,
    .project-gallery,
    .project-cta {
        padding: 60px 40px;
    }

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

    .result-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

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

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

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

    .project-location {
        font-size: 14px;
    }

    .project-details {
        padding: 48px 24px;
    }

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

    .project-stats {
        gap: 24px;
    }

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

    .project-info-card {
        padding: 24px;
    }

    .products-used,
    .project-results,
    .project-gallery,
    .project-cta {
        padding: 48px 24px;
    }

    .products-grid {
        gap: 16px;
    }

    .product-used-item {
        min-width: calc(50% - 8px);
        padding: 24px 16px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .result-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 220px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

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

    .project-hero-content {
        left: 16px;
        right: 16px;
        bottom: 70px;
    }

    .project-label {
        font-size: 10px;
        padding: 6px 12px;
    }

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

    .project-details {
        padding: 40px 16px;
    }

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

    .project-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .products-used,
    .project-results,
    .project-gallery,
    .project-cta {
        padding: 40px 16px;
    }

    .product-used-item {
        min-width: calc(50% - 8px);
    }

    .result-card {
        padding: 32px 24px;
    }

    .gallery-item {
        height: 200px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-subtitle {
        font-size: 16px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 14px 24px;
        font-size: 14px;
    }
}
