/* 
 * GD Premium Showcase Widget
 * Implementa la Regla del 80/20 y los 3 Modos Semánticos
 */

.gd-showcase-wrapper {
    /* Base: 80% Rule - Margins to remove noise */
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto; /* Large negative space around it */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 60vh;
    border-radius: var(--gd-radius-xl, 24px);
    box-shadow: var(--gd-shadow-lg);
    background-color: var(--gd-white, #fff);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Image Container */
.gd-showcase-image-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gd-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 6s ease-out; /* Slow Ken Burns setup */
}

/* Content Overlay */
.gd-showcase-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gd-showcase-value-prop {
    font-family: var(--font-outfit, 'Outfit', sans-serif);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--gd-white, #fff); /* BASE: Blanco para contrastar con imágenes/degradados oscuros */
}

.gd-showcase-cta {
    font-family: var(--font-inter, 'Inter', sans-serif);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 9999px; /* Pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
    width: max-content;
    background-color: var(--gd-white, #fff); /* BASE: Botón blanco */
    color: var(--gd-primary, #121663); /* Texto oscuro para el botón blanco */
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ── MODO 1: RESTAURANT / HOTEL ── */
.mode-restaurant {
    /* The mode class is applied to the wrapper itself */
}
.mode-restaurant.gd-showcase-wrapper {
    border-radius: 16px;
}
.mode-restaurant .gd-showcase-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Dark gradient overlay to emphasize intimacy/warmth */
    background: linear-gradient(to right, rgba(18, 22, 99, 0.85), rgba(18, 22, 99, 0.2));
}
.mode-restaurant:hover .gd-showcase-image {
    transform: scale(1.05); /* Ken Burns effect on hover */
}
.mode-restaurant .gd-showcase-value-prop {
    color: var(--gd-white, #fff);
}
.mode-restaurant .gd-showcase-cta {
    background-color: var(--gd-accent, #AF3BB3);
    color: var(--gd-white, #fff);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--gd-accent) 40%, transparent);
}
.mode-restaurant .gd-showcase-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--gd-accent) 60%, transparent);
}

/* ── MODO 2: REAL ESTATE ── */
.mode-real_estate.gd-showcase-wrapper {
    border-radius: 0; /* Sharp edges for architectural feel */
    min-height: 70vh; /* Taller for grandeur */
}
.mode-real_estate .gd-showcase-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Very subtle overlay, letting light breathe */
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 40%);
}
.mode-real_estate .gd-showcase-content {
    justify-content: flex-end; /* Align bottom */
    padding-bottom: 5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.mode-real_estate .gd-showcase-value-prop {
    color: var(--gd-white, #fff);
    font-weight: 400; /* More elegant, less bold */
    letter-spacing: -0.02em;
}
.mode-real_estate .gd-showcase-cta {
    background-color: transparent;
    color: var(--gd-white, #fff);
    border: 2px solid var(--gd-white, #fff);
    border-radius: 0; /* Sharp edges */
}
.mode-real_estate .gd-showcase-cta:hover {
    background-color: var(--gd-white, #fff);
    color: var(--gd-primary, #121663);
}

/* Real Estate Pagination Dots */
.gd-showcase-pagination {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    display: none; /* Only show in real estate */
    gap: 8px;
    z-index: 10;
}
.mode-real_estate .gd-showcase-pagination {
    display: flex;
}
.gd-showcase-pagination span {
    width: 24px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    transition: background 0.3s;
}
.gd-showcase-pagination span.active {
    background: var(--gd-white, #fff);
}


/* ── MODO 3: RETAIL ── */
.mode-retail.gd-showcase-wrapper {
    background: var(--gd-gray-50, #f8fafc);
    border-radius: 32px;
    overflow: visible; /* To allow Parallax breakout */
}
.mode-retail .gd-showcase-image-container {
    position: absolute;
    right: -10%;
    top: -10%;
    width: 60%;
    height: 120%;
    z-index: 10; /* Break out of bounds */
    overflow: visible;
}
.mode-retail .gd-showcase-image {
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: transform 0.4s ease-out;
}
.mode-retail:hover .gd-showcase-image {
    transform: translateY(-10px) scale(1.02); /* Pop out effect */
}
.mode-retail .gd-showcase-content {
    width: 50%; /* Only take up left half */
    padding-left: 5rem;
    z-index: 5;
}
.mode-retail .gd-showcase-value-prop {
    color: var(--gd-primary, #121663);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    text-shadow: none;
}
.mode-retail .gd-showcase-cta {
    background-color: var(--gd-primary, #121663);
    color: var(--gd-white, #fff);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.mode-retail .gd-showcase-cta:hover {
    background-color: var(--gd-secondary, #3668CE);
    transform: translateY(-2px);
}

/* Responsiveness */
@media (max-width: 768px) {
    .gd-showcase-wrapper {
        margin: 2rem 1rem; /* Smaller margins on mobile */
        min-height: 50vh;
    }
    .gd-showcase-content {
        padding: 2rem;
    }
    .gd-showcase-value-prop {
        font-size: 2rem;
    }
    .gd-showcase-pagination {
        left: 2rem;
    }
    
    /* Retail mobile fixes */
    .mode-retail.gd-showcase-wrapper {
        flex-direction: column;
        justify-content: flex-end;
        padding-top: 50%;
    }
    .mode-retail .gd-showcase-content {
        width: 100%;
        padding: 2rem;
        align-items: center;
        text-align: center;
    }
    .mode-retail .gd-showcase-image-container {
        top: -20%;
        left: 10%;
        width: 80%;
        height: 60%;
    }
}
