/* ============================================================================
   LUPONCIO - PRODUCT DETAIL STYLES
   ============================================================================ */

/* ============================================================================
   ANTI-BOT PROTECTION - HONEYPOT FIELD
   ============================================================================ */
.lpn-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Reusing variables from products.css/home.css where possible, 
   but defining specific ones here if needed for the detail view */

:root {
    --lpn-pd-spacing: 80px;
    --lpn-pd-gap: 40px;
}

/* ============================================================================
   HERO / PRESENTATION SECTION
   ============================================================================ */
.lpn-pd-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Adjusted for better 2:3 image balance */
    min-height: 100vh;
    width: 100%;
    margin-bottom: var(--lpn-pd-spacing);
    align-items: start;
    /* Changed to start to allow sticky to slide along the height */
}

.lpn-pd-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--lpn-gray-light, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lpn-pd-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Enforce center anchoring */
    display: block;
    aspect-ratio: 2 / 3;
    /* Enforce 2:3 aspect ratio */
}

.lpn-pd-info {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: sticky;
    top: 50%;
    /* Center in viewport */
    transform: translateY(-50%);
    /* Offset for true center */
    z-index: 10;
}

.lpn-pd-breadcrumb {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--lpn-gray, #666);
    margin-bottom: 24px;
}

.lpn-pd-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
}

.lpn-pd-breadcrumb a:hover {
    opacity: 0.7;
}

.lpn-pd-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 24px;
    color: var(--lpn-black, #111);
}

.lpn-pd-desc {
    font-family: 'Lora', serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--lpn-gray, #555);
    margin-bottom: 40px;
    max-width: 500px;
}

.lpn-pd-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: var(--lpn-black, #111);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid var(--lpn-black, #111);
    align-self: flex-start;
}

.lpn-pd-cta:hover {
    background: #fff;
    color: var(--lpn-black, #111);
}

/* ============================================================================
   CONFIGURATIONS & DRAINS SECTIONS
   ============================================================================ */
.lpn-pd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.lpn-pd-section {
    padding: 0 0 100px;
    margin: 0 auto;
}

.lpn-pd-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 60px;
    text-align: center;
    color: var(--lpn-black, #111);
}

/* Grid Layouts */
.lpn-pd-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.lpn-pd-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    /* Reduced width for a more compact appearance */
    margin: 0 auto;
}

/* Section Specifics */
.lpn-pd-section-configs {
    background-color: #fcfcfc;
    padding-top: 80px;
    padding-bottom: 80px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 60px;
    max-width: none;
    /* Full width */
}

/* Generic Image Card */
.lpn-img-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    group: card;
    /* For future hover effects if needed */
}

.lpn-img-card-figure {
    margin: 0;
    /* Reset default browser margins */
    position: relative;
    width: 100%;
    background: var(--lpn-gray-light, #f5f5f5);
    overflow: hidden;
}

.lpn-img-card-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Enforce center anchoring */
    transition: transform 0.5s ease;
    display: block;
}

.lpn-img-card:hover .lpn-img-card-figure img {
    transform: scale(1.05);
}

/* Aspect Ratios */
.lpn-ratio-3-2 {
    aspect-ratio: 3 / 2;
}

.lpn-ratio-2-3 {
    aspect-ratio: 2 / 3;
}

.lpn-img-card-content {
    text-align: center;
}

.lpn-img-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--lpn-black, #111);
    letter-spacing: 0.02em;
}

.lpn-pd-grid-2 .lpn-img-card-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.lpn-img-card-desc {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: var(--lpn-gray, #666);
    line-height: 1.7;
    margin: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.lpn-pd-grid-2 .lpn-img-card-desc {
    font-size: 15px;
}


/* ============================================================================
   TECHNICAL FEATURES SECTION
   ============================================================================ */
.lpn-pd-tech-section {
    padding-top: 100px;
    background: #fff;
}

.lpn-pd-tech-header {
    margin-bottom: 60px;
    text-align: left;
}

/* Configuration Selector within Tech Section */
.lpn-tech-selector {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #111 #f0f0f0;
    padding-bottom: 5px;
    /* Espacio para el scrollbar */
}

.lpn-tech-selector::-webkit-scrollbar {
    height: 4px;
}

.lpn-tech-selector::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.lpn-tech-selector::-webkit-scrollbar-thumb {
    background-color: #111;
    border-radius: 4px;
}

.lpn-tech-tab {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    cursor: pointer;
    padding: 20px 0;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
}

.lpn-tech-tab.active {
    color: #111;
    font-weight: 700;
}

.lpn-tech-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #111;
}

.lpn-pd-tech-drawing-container {
    width: 250px;
    /* Much smaller fixed width */
    height: 180px;
    background: #fff;
    border: 1px solid #eee;
    margin-bottom: 40px;
    padding: 20px;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s;
}

.lpn-pd-tech-drawing-container:hover {
    border-color: #111;
}

.lpn-pd-tech-drawing-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lpn-pd-tech-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.lpn-pd-tech-main {
    flex: 1;
}

.lpn-pd-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 50px;
    padding-top: 60px;
}

.lpn-spec-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 20px;
    border-left: 1px solid #eee;
    transition: border-color 0.4s ease;
}

.lpn-spec-item:hover {
    border-left-color: #111;
}

.lpn-spec-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--lpn-gray, #999);
    font-weight: 700;
}

.lpn-spec-value {
    font-family: 'Lora', serif;
    font-size: 15px;
    line-height: 1.8;
    color: var(--lpn-black, #333);
    font-weight: 400;
    max-width: 280px;
}


/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
    .lpn-pd-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .lpn-pd-info {
        position: relative;
        top: 0;
        transform: none;
        padding: 60px 40px;
        height: auto;
    }

    .lpn-pd-gallery {
        height: 70vh;
    }

    .lpn-pd-gallery img {
        height: 100%;
        aspect-ratio: auto;
    }

    .lpn-pd-grid-4,
    .lpn-pd-grid-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }

    .lpn-pd-tech-content {
        flex-direction: column;
        gap: 40px;
    }

    .lpn-pd-tech-drawing-container {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .lpn-pd-info {
        padding: 40px 24px;
        text-align: center;
    }

    .lpn-pd-title {
        font-size: 38px;
    }

    .lpn-pd-cta {
        align-self: center;
    }

    .lpn-pd-grid-4,
    .lpn-pd-grid-2 {
        grid-template-columns: 1fr;
    }

    .lpn-pd-tech-header {
        text-align: center;
    }

    .lpn-tech-selector {
        justify-content: flex-start;
        padding-bottom: 0;
    }

    .lpn-tech-tab {
        /* inherited flex-shrink: 0 */
    }

    .lpn-pd-specs {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Scroll Indicator */
.lpn-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #111;
    z-index: 5;
    animation: lpn-bounce 2s infinite;
}

@media (max-width: 1024px) {
    .lpn-scroll-indicator {
        display: flex;
    }
}

.lpn-scroll-line {
    width: 1px;
    height: 40px;
    background: currentColor;
    transform-origin: top;
}

@keyframes lpn-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================================================
   CONFIG LIGHTBOX (REDESIGN)
   ============================================================================ */
.lpn-config-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lpn-config-lightbox.active {
    display: flex;
    opacity: 1;
}

.lpn-config-lightbox-content {
    display: flex;
    max-width: 1600px;
    width: 95%;
    height: 85vh;
    align-items: center;
    gap: 100px;
}

.lpn-config-lightbox-image {
    flex: 2.5;
    /* Larger ratio for image */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpn-config-lightbox-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Clean shadow for the product */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.05));
}

.lpn-config-lightbox-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lpn-config-lightbox-title {
    font-size: 48px;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #111;
}

.lpn-config-lightbox-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    max-width: 400px;
}

.lpn-config-lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 40px;
    font-weight: 100;
    line-height: 1;
    cursor: pointer;
    color: #111;
    z-index: 2010;
    transition: transform 0.3s;
}

.lpn-config-lightbox-close:hover {
    transform: scale(1.1);
}

.lpn-config-lightbox-prev,
.lpn-config-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    font-weight: 100;
    color: #111;
    cursor: pointer;
    padding: 30px;
    user-select: none;
    z-index: 2010;
    transition: opacity 0.3s, transform 0.3s;
}

.lpn-config-lightbox-prev {
    left: 40px;
}

.lpn-config-lightbox-next {
    right: 40px;
}

.lpn-config-lightbox-prev:hover,
.lpn-config-lightbox-next:hover {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 1024px) {

    /* Disable the specific config lightbox for mobile */
    .lpn-config-lightbox {
        display: none !important;
    }
}

/* ============================================================================
   GALLERY MURAL
   ============================================================================ */
.lpn-gallery-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.lpn-gallery-mural {
    column-count: 3;
    column-gap: 20px;
    margin-top: 60px;
}

.lpn-gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lpn-gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.lpn-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lpn-gallery-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .lpn-gallery-mural {
        column-count: 2;
        column-gap: 15px;
    }
}

@media (max-width: 768px) {
    .lpn-gallery-mural {
        column-count: 1;
        column-gap: 0;
    }

    .lpn-gallery-section {
        padding: 60px 0;
    }

    .lpn-gallery-item {
        margin-bottom: 15px;
    }
}

.lpn-gallery-more {
    margin-top: 60px;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid #111;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.lpn-gallery-more:hover {
    background: #111;
    color: #fff;
}

.lpn-gallery-more.hidden {
    display: none;
}

.lpn-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lpn-lightbox.active {
    display: flex;
    opacity: 1;
}

.lpn-lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lpn-lightbox.active .lpn-lightbox-content {
    transform: scale(1);
}

.lpn-lightbox-prev,
.lpn-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #111;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: opacity 0.3s;
    z-index: 1010;
}

.lpn-lightbox-prev:hover,
.lpn-lightbox-next:hover {
    opacity: 0.6;
}

.lpn-lightbox-prev {
    left: 20px;
}

.lpn-lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {

    .lpn-lightbox-prev,
    .lpn-lightbox-next {
        font-size: 30px;
        padding: 15px;
    }

    .lpn-lightbox-prev {
        left: 5px;
    }

    .lpn-lightbox-next {
        right: 5px;
    }

    .lpn-lightbox-close {
        top: 20px;
        right: 20px;
    }

    .lpn-lightbox-counter {
        bottom: 20px;
    }
}

.lpn-lightbox-counter {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #888;
}

.lpn-lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 24px;
    cursor: pointer;
    color: var(--lpn-black);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpn-img-card-figure {
    cursor: zoom-in;
}

/* ============================================================================
   QUOTE CTA SECTION
   ============================================================================ */
.lpn-pd-quote-section {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 100px;
}

.lpn-quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.lpn-quote-subtitle {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

.lpn-quote-form-wrapper {
    background: #fff;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.03);
}

/* Form Styles */
.lpn-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.lpn-form-group {
    display: flex;
    flex-direction: column;
}

.lpn-form-group--full {
    grid-column: span 2;
}

.lpn-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #999;
    margin-bottom: 12px;
}

.lpn-input {
    width: 100%;
    background: #fff;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #111;
    transition: all 0.3s;
    outline: none;
    border-radius: 0;
}

.lpn-input:focus {
    border-bottom-color: #111;
}

.lpn-textarea {
    min-height: 120px;
    resize: vertical;
}

.lpn-form-footer {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lpn-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

.lpn-checkbox-label input {
    margin-top: 2px;
}

.lpn-checkbox-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lpn-form-status {
    margin-top: 30px;
    padding: 20px;
    border-radius: 2px;
    display: none;
    text-align: center;
    font-size: 14px;
}

.lpn-form-status.is-success {
    display: block;
    background: #f8fdfa;
    color: #2d5a43;
    border: 1px solid #e2f3eb;
}

.lpn-form-status.is-error {
    display: block;
    background: #fdf2f2;
    color: #c53030;
    border: 1px solid #fbd5d5;
}

@media (max-width: 1024px) {
    .lpn-pd-quote-section {
        padding: 80px 0;
        margin-bottom: 80px;
    }

    .lpn-quote-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .lpn-quote-info {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .lpn-quote-info .lpn-pd-section-title {
        text-align: center !important;
    }

    .lpn-quote-subtitle {
        font-size: 17px;
    }

    .lpn-quote-form-wrapper {
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .lpn-quote-form-wrapper {
        padding: 40px 20px;
    }

    .lpn-form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .lpn-form-group--full {
        grid-column: span 1;
    }
}