/* Custom styles for product sections */

.product-section {
    padding: 6em 0 !important;
    overflow: hidden;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 4em;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item.right {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000; /* Un solo fondo negro */
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.product-image img {
    max-width: 100%;
    max-height: 350px; /* REASONABLE SIZE */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none; /* Quitamos la sombra interior que causaba el doble recuadro */
}

.product-content {
    flex: 1.2;
}

.product-content h2 {
    font-size: 2.25em;
    margin-bottom: 0.5em;
    color: #5dade2; /* Softer blue instead of bright cyan */
}

/* Animations for scroll reveal */
.product-image, .product-content {
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s ease-out;
    opacity: 1;
    transform: translateX(0);
}

/* Base state when inactive (scrollex) */
.product-section.inactive .product-image {
    opacity: 0;
    transform: translateX(-150px);
}

.product-section.inactive .product-content {
    opacity: 0;
    transform: translateX(150px);
}

/* Adjust for 'right' layout (alternated) */
.product-item.right .product-image {
    transition-delay: 0.1s;
}

.product-item.right .product-content {
    transition-delay: 0.2s;
}

.product-section.inactive .product-item.right .product-image {
    transform: translateX(150px);
}

.product-section.inactive .product-item.right .product-content {
    transform: translateX(-150px);
}

.product-content p {
    font-size: 1.1em;
    line-height: 1.75;
    margin-bottom: 2em;
}

/* Responsive adjustments for Mobile */
@media screen and (max-width: 980px) {
    .product-section {
        padding: 3em 0 !important; /* Reduce vertical space on mobile */
    }

    .product-item {
        flex-direction: column !important;
        gap: 2.5em;
        padding: 0 1.5em;
    }
    
    .product-image {
        width: 100%;
        padding: 1em;
    }
    
    .product-content {
        text-align: center;
        width: 100% !important;
        padding: 0 !important;
    }

    .product-content h2 {
        font-size: 1.75em;
    }

    .product-content p {
        font-size: 1em;
        text-align: justify;
        margin-bottom: 1.5em;
        hyphens: auto;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Centering the button list */
    .product-content ul.actions {
        justify-content: center !important;
        margin-left: 0 !important;
        display: flex;
    }
    
    .product-content ul.actions li {
        padding: 0 !important;
    }
}

/* Custom Wrapper Styles for consistent dark backgrounds */
.wrapper.style1, .spotlight.style1 {
    background-color: #050505 !important;
}

.wrapper.style2 {
    background-color: #12131a !important;
}

.wrapper.style3 {
    background-color: #0b0c10 !important;
}

/* Banner adjustment */
#banner {
    min-height: 70vh !important;
}
#banner:before {
    height: 70vh !important;
}

/* Replace bright cyan globally in our custom styles */
a {
    color: #5dade2 !important;
    transition: color 0.3s ease;
}
a:hover {
    color: #00ffff !important; /* Color mucho más intenso y brillante al hacer hover */
}

/* Specific intense hover for the navigation menu */
#header nav ul li a:hover,
#navPanel nav a:hover {
    color: #00ffff !important;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.button.primary {
    background-color: #5dade2 !important;
}

/* Fix header for landing page */
body.landing #header {
    position: fixed !important;
    background: rgba(0, 0, 0, 0.98) !important; /* Negro en lugar de gris oscuro */
    box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.5) !important;
    top: 0 !important;
}

body.landing #page-wrapper {
    padding-top: 3.5em !important; /* Adjust page wrapper to account for fixed header */
}
/* Responsive adjustment for Logo and TitleBar on very small screens */
@media screen and (max-width: 480px) {
    #logo a {
        font-size: 0.8em;
        white-space: nowrap;
    }
    
    #titleBar .title {
        font-size: 0.9em;
        padding: 0 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100% - 60px); /* Leave space for the toggle button */
        margin: 0 auto;
    }
}

@media screen and (max-width: 360px) {
    #logo a {
        font-size: 0.7em;
    }
    #titleBar .title {
        font-size: 0.8em;
    }
}

/* Reduce footer height globally */
#footer {
    padding: 3em 0 !important;
}

/* Make header, footer and mobile menu completely black globally */
#header, #footer, #titleBar, #navPanel {
    background-color: #000000 !important;
}
