.hub-page__intro {
    background-color: var(--color-primary);
    color: var(--color-neutral-100);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  display: block;
  width: 100%;
  height: 100%;
}

.hero__background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
    opacity: 0.6;
}

.hub-page__intro-content {
    position: relative;
    z-index: 1;
}

.hub-page__tag {
    font-family: var(--font-script);
    font-size: var(--font-size-2xl);
    color: var(--color-secondary);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.hub-page__title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-4xl);
    color: var(--color-neutral-100);
    margin-bottom: var(--spacing-md);
}

.hub-page__description {
    font-size: var(--font-size-lg);
    color: var(--color-neutral-300);
    max-width: 600px;
    line-height: var(--line-height-relaxed);
}

/* Unused hub-page__advantages styles removed since they are replaced by global advantages-cards */

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "featured featured"
            "small1 small2"
            "small3 small4";
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        grid-template-areas:
            "featured featured small1 small2"
            "featured featured small3 small4";
    }
}

/* Bento Grid areas mapping */
.area-featured { grid-area: featured; }
.area-small1 { grid-area: small1; }
.area-small2 { grid-area: small2; }
.area-small3 { grid-area: small3; }
.area-small4 { grid-area: small4; }

/* Premium interactive Product Card BEM Component */
.product-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, #0d1a32 0%, #08101f 100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

/* Radial Glow tracking hover effect */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.25), transparent 45%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: rgba(255, 102, 0, 0.6);
    transform: translateY(-6px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6), 
        0 0 0 1px rgba(255, 102, 0, 0.25),
        0 0 30px rgba(255, 102, 0, 0.4),
        0 0 100px rgba(255, 102, 0, 0.35);
}

/* Featured (Large) layout configuration */
.product-card--featured {
    min-height: 500px;
}

@media (min-width: 768px) {
    .product-card--featured {
        flex-direction: row;
    }
    
    .product-card--featured .product-card__image-wrap {
        width: 50%;
        height: auto;
    }
    
    .product-card--featured .product-card__content {
        width: 50%;
        padding: var(--spacing-xl);
    }
}

/* Small Cards layout configuration */
.product-card--small {
    min-height: auto;
}

.product-card--small .product-card__image-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.product-card--small .product-card__image-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #0d1a32);
    pointer-events: none;
}

.product-card--small .product-card__description,
.product-card--small .product-card__badges {
    display: none;
}

.product-card--small .product-card__title {
    margin-bottom: 0;
}

.product-card--small .product-card__btn {
    margin-top: 10px;
}

/* Card images scaling zoom */
.product-card__image-wrap {
    position: relative;
    overflow: hidden;
}

.product-card__image-wrap picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .product-card__image {
    transform: scale(1.06);
}

/* Core Card Inner Content */
.product-card__content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.product-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.product-card__tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    display: inline-block;
}

.product-card__title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-black);
    font-size: var(--font-size-xl);
    color: var(--color-neutral-100);
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-tight);
    transition: font-size 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card--featured .product-card__title {
    font-size: calc(var(--font-size-2xl) * 1.6);
}

.product-card__description {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-neutral-400);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

/* Specifications Badges */
.product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--spacing-lg);
}

.product-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-secondary-light);
    background-color: rgba(255, 102, 0, 0.08);
    border: 1px solid rgba(255, 102, 0, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.product-card:hover .product-card__badge {
    background-color: rgba(255, 102, 0, 0.14);
}

.badge-icon {
    flex-shrink: 0;
    color: var(--color-secondary);
}

/* Dynamic Buttons */
.product-card__btn {
    width: 100%;
    margin-top: auto;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
    color: var(--color-neutral-100);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
    text-decoration: none;
}

.product-card__btn:hover {
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.35);
    color: var(--color-neutral-100);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.product-card__btn:hover .btn-arrow {
    transform: translateX(4px);
}

.tipos-puertas-section {
    background-color: #030712;
    position: relative;
    overflow: hidden;
}

.tipos-puertas-section .container {
    position: relative;
    z-index: 1;
}

.tipos-puertas-section .section__title {
    color: var(--color-neutral-100);
}

.tipos-puertas-section .section__subtitle {
    color: var(--color-secondary);
}

.ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ambient .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    animation: float 25s ease-in-out infinite;
}

.ambient .orb:nth-child(1) {
    width: 1000px;
    height: 1000px;
    background: #3b82f6;
    top: -400px;
    right: -300px;
    animation-delay: 0s;
}

.ambient .orb:nth-child(2) {
    width: 750px;
    height: 750px;
    background: var(--color-secondary);
    bottom: -250px;
    left: -200px;
    animation-delay: -12s;
}

.ambient .orb:nth-child(3) {
    width: 400px;
    height: 400px;
    background: #1d4ed8;
    top: 30%;
    left: 30%;
    animation-delay: -5s;
    opacity: 0.08;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Smooth fade-in animation for featured card contents */
.product-card--featured .product-card__description,
.product-card--featured .product-card__badges,
.product-card--featured .product-card__btn {
    animation: fadeInDetails 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInDetails {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Touch Swipe Slider Configuration (< 768px) */
@media (max-width: 767px) {
    .bento-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 16px !important;
        padding: 10px 4px 20px 4px !important; /* Bottom padding for card shadow clearance */
        scrollbar-width: none !important; /* Firefox */
    }
    
    .bento-grid::-webkit-scrollbar {
        display: none !important; /* Webkit */
    }
    
    .product-card {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: center !important;
        min-height: auto !important;
        flex-direction: column !important;
    }
    
    /* Ensure image handles are consistent on mobile with 1:1 aspect ratio */
    .product-card .product-card__image-wrap {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden;
        position: relative;
    }
    
    /* Apply gradient bottom fade to all cards on mobile */
    .product-card .product-card__image-wrap::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(transparent, #0d1a32);
        pointer-events: none;
    }
    
    .product-card .product-card__content {
        width: 100% !important;
        padding: var(--spacing-md) !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }
    
    /* Show complete info on mobile cards: descriptions and badges */
    .product-card .product-card__description {
        display: block !important;
        margin-bottom: var(--spacing-sm) !important;
        font-size: var(--font-size-xs) !important;
        line-height: var(--line-height-relaxed);
    }
    
    .product-card .product-card__badges {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .product-card .product-card__badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
    
    .product-card .product-card__title {
        margin-bottom: var(--spacing-xs) !important;
        font-size: var(--font-size-lg) !important;
    }
    
    .product-card .product-card__btn {
        margin-top: auto !important; /* Pushes buttons to align beautifully at the bottom of stretched cards */
    }
}

/* Slider Dots indicators styling */
.bento-slider-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 5;
}

@media (max-width: 767px) {
    .bento-slider-dots {
        display: flex;
    }
}

.bento-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.bento-slider-dot--active {
    background-color: var(--color-secondary);
    transform: scale(1.3);
}
