:root {
            --color-background: #fff;
            --color-text: #222;
            --color-accent: #000;
            --color-pill: #fff;
            --color-pill-border: #222;
            --font-sans: 'Poppins', sans-serif;
            --font-serif: 'Playfair Display', serif;
            --spacing-xs: 0.5rem;
            --spacing-sm: 1rem;
            --spacing-md: 2rem;
            --spacing-lg: 4rem;
            --spacing-xl: 8rem;
        }

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

        body {
            font-family: var(--font-sans);
            color: var(--color-text);
            background: var(--color-background);
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 var(--spacing-md);
        }

        /* Content Section */
        .content-section {
            padding: var(--spacing-lg) 0;
            margin-top: 80px;
        }

        .etileno-main-grid {
            display: grid;
            grid-template-columns: 1.1fr 1.3fr;
            gap: 3.5rem;
            align-items: start;
            margin-bottom: 2.5rem;
        }

        .etileno-main-grid > * {
            min-width: 0;
        }

        .etileno-main-left {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            min-width: 0;
            width: 100%;
            max-width: 340px;
        }

        .etileno-portada {
            width: 100%;
            max-width: 340px;
            height: auto;
            display: block;
            margin-bottom: 1.2rem;
            border-radius: 0 !important;
            box-shadow: none !important;
            cursor: pointer;
        }

        .etileno-pill-row {
            display: flex;
            align-items: center;
            margin-bottom: 0.7rem;
            margin-top: 0.2rem;
            width: 100%;
        }

        .etileno-pill {
            font-family: var(--font-sans);
            font-size: 1.1rem;
            font-weight: 700;
            border: 2px solid var(--color-pill-border);
            border-radius: 2em;
            padding: 0.18em 1.1em;
            background: var(--color-pill);
            color: var(--color-text);
            letter-spacing: 0.04em;
            margin-right: 1.2rem;
            text-transform: uppercase;
        }

        .etileno-pill-line {
            flex: 1;
            height: 1px;
            background: var(--color-text);
            margin-right: 1.2rem;
            opacity: 0.18;
        }

        .etileno-pill-year {
            font-size: 1.1rem;
            font-weight: 500;
            text-align: right;
            min-width: 3.5em;
        }

        .etileno-book-details {
            font-size: 0.93rem;
            margin-bottom: 1.2rem;
            color: #888;
            letter-spacing: 0.01em;
            font-weight: 400;
            text-transform: uppercase;
            text-align: justify;
            width: 100%;
            margin-top: 0.7rem;
            line-height: 1.4;
            background: none !important;
            border: none !important;
            box-shadow: none !important;
        }

        .etileno-bottom-images {
            display: flex !important;
            flex-direction: row !important;
            gap: 0.5rem !important;
            width: 100% !important;
            margin-top: 1.2rem !important;
            margin-bottom: 0 !important;
            padding: 0 !important;
            background: none !important;
            border: none !important;
            box-shadow: none !important;
        }

        .etileno-bottom-image-item {
            width: 50% !important; /* Each item takes half the width */
            /* flex: 1 0 50%; Alternative using flex shorthand */
            height: auto; /* Let content determine height, or set fixed if needed */
            overflow: hidden; /* Good practice if image might somehow overflow */
            min-width: 0;
        }

        .etileno-bottom-image-item img { /* Targets images inside the new wrappers */
            width: 100% !important; /* Image fills its wrapper div */
            height: auto !important; /* Maintains aspect ratio */
            aspect-ratio: auto !important;
            object-fit: contain;    /* Shows entire image, letterboxes if necessary */
            display: block !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            margin: 0 !important;
            padding: 0 !important;
            border: none !important;
            cursor: pointer;
        }

        .etileno-main-right {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            height: 100%;
        }

        .etileno-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 0.5rem;
        }

        .etileno-title {
            font-family: var(--font-serif);
            font-size: 2.7rem;
            font-weight: 700;
            font-style: italic;
            margin: 0;
            text-align: left;
        }

        .etileno-buy-btn {
            border: 2px solid var(--color-text);
            background: transparent;
            color: var(--color-text);
            font-weight: 600;
            font-size: 1.1rem;
            border-radius: 2em;
            padding: 0.3em 1.5em;
            text-decoration: none;
            margin-left: auto;
            transition: background 0.2s, color 0.2s;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .etileno-buy-btn:hover {
            background: var(--color-text);
            color: var(--color-pill);
        }

        .etileno-section-title {
            font-family: var(--font-sans);
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            margin: 1.2rem 0 0.7rem 0;
            text-transform: uppercase;
            color: #222;
        }

        .etileno-synopsis {
            font-size: 1.01rem;
            line-height: 1.7;
            color: #222;
            font-weight: 400;
            text-align: justify;
        }

        .etileno-synopsis b,
        .etileno-synopsis strong {
            font-weight: 700;
            font-style: normal;
        }

        .etileno-synopsis .italic {
            font-style: italic;
        }

        .etileno-synopsis .etileno-injuve b {
            font-style: normal !important;
        }

        .etileno-synopsis .etileno-injuve {
            margin-top: 1.2rem;
            font-weight: 700;
            font-style: normal;
        }

        /* Gallery section */
        #preview-gallery {
            margin: 2.5rem 0 2.5rem 0;
            overflow-x: auto; /* Enable horizontal scrolling */
            white-space: nowrap; /* Prevent items from wrapping to the next line */
            padding-bottom: 1rem; /* Space for scrollbar if it appears */
            padding-left: var(--spacing-md); /* Added padding */
            padding-right: var(--spacing-md); /* Added padding */
            box-sizing: border-box; /* Ensure padding is included in width calculation */
        }
        .preview-gallery-row {
            display: flex; /* Align items in a row */
            flex-wrap: nowrap; /* Ensure items stay in a single line */
            gap: 1.5rem;
        }
        .preview-gallery-row img {
            max-height: 320px; /* Control max height of images */
            width: auto;     /* Allow width to adjust based on height and aspect ratio */
            border-radius: 0.5rem;
            box-shadow: 0 4px 16px rgba(0,0,0,0.09);
            display: inline-block; /* Necessary for white-space: nowrap to work well */
            cursor: pointer;
        }

        @media (max-width: 900px) {
            .etileno-main-grid {
                /* grid-template-columns: 1fr; */ /* Keep 2 columns for tablet, adjust gap */
                gap: 2rem; /* Adjusted gap for tablet */
            }

            .etileno-main-left {
                max-width: 300px;
            }

            .etileno-portada {
                max-width: 300px; /* Max width for tablet */
            }

            .etileno-title {
                font-size: 2.5rem; /* Title size for tablet */
            }

            .etileno-header-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.7rem;
            }

            .etileno-bottom-images {
                flex-direction: column !important; /* Stack images vertically */
                gap: 1rem; /* Add space between stacked images */
            }

            .etileno-bottom-images img { /* This was .etileno-bottom-image-item img before, direct img is fine if structure changed */
                width: 100% !important; /* Full width when stacked */
            }

            .preview-gallery-row img {
                max-height: 280px; /* Gallery images on tablet */
            }

            #preview-gallery {
                padding-left: var(--spacing-sm); /* Padding for tablet */
                padding-right: var(--spacing-sm);
            }

        }

        /* Banner Section */
        .banner {
            width: 100%;
            padding-top: 80px; /* Clear the fixed header */
            /* height: 300px; */ /* Removed fixed height */
            position: relative;
            overflow: hidden;
            display: flex; /* Use flex to center image naturally if needed */
            justify-content: center; /* Center image horizontally */
            align-items: center; /* Center image vertically */
        }

        .banner img {
            width: 100%; /* Make image responsive within banner */
            height: auto; /* Maintain aspect ratio */
            max-width: 100%; /* Ensure image doesn't overflow */
            display: block; /* Remove extra space below image */
            /* position: absolute; */ /* Removed absolute positioning */
            /* top: 50%; */
            /* left: 0; */
            /* transform: translateY(-50%); */
            /* object-fit: cover; */ /* Not needed if height is auto */
        }

        /* Preview Image Gallery */
        .preview-gallery {
            margin-top: var(--spacing-xl);
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: var(--spacing-md);
        }

        .gallery-item {
            border-radius: 0;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .gallery-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }

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

        .gallery-caption {
            text-align: center;
            margin-top: var(--spacing-md);
            margin-bottom: var(--spacing-lg);
            font-style: italic;
            color: var(--color-text-light);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .site-header {
                padding: 0;
            }

            .etileno-main-grid {
                grid-template-columns: 1fr; /* Single column for mobile */
                gap: 1.5rem; /* Mobile gap */
                margin-bottom: var(--spacing-md);
            }

            .etileno-main-left {
                max-width: none;
            }

            .etileno-portada {
                margin-bottom: var(--spacing-md);
                max-width: 90%; /* Relative width for portada on mobile */
                margin-left: auto;
                margin-right: auto;
            }

            .etileno-title {
                font-size: 2rem; /* Mobile title size */
            }

            .etileno-section-title {
                font-size: 0.9rem;
                margin-top: 1rem;
                margin-bottom: 0.5rem;
            }

            .etileno-pill {
                font-size: 1rem;
                padding: 0.15em 0.8em;
            }

            .etileno-pill-year {
                font-size: 1rem;
            }

            .etileno-pill-line {
                margin-right: 0.8rem;
            }

            .etileno-book-details {
                font-size: 0.85rem;
                line-height: 1.5;
            }

            .etileno-synopsis {
                font-size: 0.9rem;
                line-height: 1.6;
            }

            .etileno-buy-btn {
                font-size: 0.9rem;
                padding: 0.3em 1em;
                width: 100%; /* Make button full width */
                text-align: center; /* Center text in button */
                margin-top: 0.5rem; /* Add some space above if header-row stacks */
            }

            .etileno-header-row {
                 /* Ensure buy button is below title when stacked */
                align-items: stretch; /* Make items full width */
            }

            .etileno-bottom-images { /* Add align-items for centering children */
                align-items: center;
            }

            .etileno-bottom-image-item {
                width: 85% !important;
                max-width: 300px;
            }

            .etileno-bottom-image-item img {
                object-fit: cover; /* Fill container, may crop */
                border-radius: 4px; /* Optional: slight rounding */
                box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Optional: subtle shadow */
            }

            .preview-gallery-row img {
                max-height: 220px; /* Gallery images on mobile */
            }

            #preview-gallery {
                padding-left: var(--spacing-xs); /* Padding for mobile */
                padding-right: var(--spacing-xs);
            }

            .content-section { /* Adjusted this rule */
                padding-top: var(--spacing-md); /* Space between banner and content */
                padding-left: 0;
                padding-right: 0;
                padding-bottom: var(--spacing-md); /* Bottom padding for the section */
                margin-top: 0px;
            }

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

        /* Popup Styles */
        .image-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.9);
            display: none; /* Hidden by default */
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .image-popup.active {
            display: flex;
            opacity: 1;
        }
        .popup-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            overflow: hidden; /* To contain the image if it's larger */
        }
        .popup-image {
            display: block;
            max-width: 100%;
            max-height: 90vh; /* Ensure image fits viewport height */
            object-fit: contain; /* Maintain aspect ratio */
            border-radius: 8px; /* Match popup content radius */
        }
        .popup-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 30px;
            height: 30px;
            background-color: rgba(0,0,0,0.2);
            color: #000;
            font-size: 20px;
            font-weight: bold;
            text-align: center;
            line-height: 30px;
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.2s ease;
            z-index: 1001;
        }
        .popup-close:hover {
            background-color: rgba(0,0,0,0.4);
        }