/* ==========================================================================
   PLANTILLA FRONT-PAGE / HERO BANNER
   ========================================================================== */

.hero-custom-banner {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.hero-banner-container {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px 0 80px;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.banner {
    background-color: #f2f2f2;
    border-radius: 20px;
    margin: 0 20px;
    background-size: cover;
    background-position: center center;
    padding: 150px 0;
}

/* Columna Izquierda - Contenido */
.hero-banner-content {
    flex: 1;
    max-width: 630px;
    z-index: 2;
    padding-bottom: 60px;
}

.hero-banner-title {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 52px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
    margin: 0 0 25px 0;
    letter-spacing: -0.5px;
}

/* Badges / Minis circulares inline */
.inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    vertical-align: middle;
    margin: 0 4px;
    position: relative;
    top: -3px;
}

.inline-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-1 { background-color: #2b56f5; }
.badge-2 { background-color: #ff9900; }
.badge-3 { background-color: #e23b3b; }

.asterisk-icon {
    display: inline-block;
    font-size: 38px;
    line-height: 1;
    vertical-align: middle;
    margin-left: 5px;
    font-weight: 300;
}

.hero-banner-divider {
    border: none;
    border-top: 4px solid #111111;
    margin: 25px 0;
    width: 100%;
}

.hero-banner-description {
    font-size: 18px;
    color: #313131;
    line-height: 1.3;
    margin-bottom: 30px;
    max-width: 590px;
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
}

.hero-btn-primary {
    display: inline-block;
    background-color: #111111;
    color: #ffffff;
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 16px 32px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn-primary:hover {
    background-color: var(--gn-accent-color, #f8cb3a);
    color: #111111;
}

/* Columna Derecha - Imagen & Glow */
.hero-banner-image-wrapper {
    flex: 1;
    position: relative;
    justify-content: center;
    align-items: flex-end;
    align-self: flex-end;
    height: 100%;
    min-height: 480px;
    display: none;
}

.hero-glow-bg {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: conic-gradient(from 180deg at 50% 50%, #ffdb00 0deg, #fff700 110deg, #ffe600 180deg, #efe632 270deg, #edff00 360deg);
    filter: blur(22px);
    opacity: 0.85;
    bottom: -20px;
    z-index: 1;
}

.hero-model-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

/* Responsive Hero */
@media (max-width: 991px) {
    .hero-banner-container {
        flex-direction: column;
        padding: 40px 20px 0 20px;
        text-align: center;
    }

    .hero-banner-content {
        max-width: 100%;
        padding-bottom: 30px;
    }

    .hero-banner-title {
        font-size: 32px;
    }

    .inline-badge {
        width: 34px;
        height: 34px;
    }

    .hero-banner-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-banner-image-wrapper {
        min-height: 350px;
        width: 100%;
        display: flex;
    }

    .hero-glow-bg {
        width: 300px;
        height: 300px;
    }

    .banner {
        background-image: initial !important;
        padding: 0;
    }
}


/* ==========================================================================
   SECCIÓN: NUESTRAS OFERTAS / CATEGORÍAS (GRID CARDS)
   ========================================================================== */

.offers-categories-section {
    width: 100%;
    padding: 60px 20px;
    box-sizing: border-box;
}

.offers-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Título de la sección */
.offers-section-title {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 36px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 30px 0;
    letter-spacing: -0.5px;
}

/* Grid de 4 columnas */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Tarjeta individual */
.offer-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 505px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Imagen dentro de la tarjeta */
.offer-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Sombra/Oscurecido suave sobre la imagen para legibilidad del texto */
.offer-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.3s ease;
}

/* Texto centrado sobre la imagen */
.offer-card-title {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 0 15px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* EFECTOS HOVER */
.offer-card:hover .offer-card-img {
    transform: scale(1.06);
}

.offer-card:hover .offer-card-overlay {
    background: rgba(0, 0, 0, 0.32);
}

/* Responsive Ofertas */
@media (max-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .offer-card {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .offers-section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .offer-card {
        height: 240px;
        border-radius: 12px;
    }

    .offer-card-title {
        font-size: 18px;
    }
}


/* ==========================================================================
   SECCIÓN: PRODUCTOS POPULARES (ESTRUCTURA Y GRID)
   ========================================================================== */

.popular-products-section {
    width: 100%;
    padding: 40px 20px 80px 20px;
    box-sizing: border-box;
}

.popular-container {
    max-width: 1400px;
    margin: 0 auto;
}

.popular-section-title {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 36px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 35px 0;
    letter-spacing: -0.5px;
}

/* Grid de productos */
.popular-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Responsive Grid Productos Populares */
@media (max-width: 1024px) {
    .popular-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .popular-section-title {
        font-size: 26px;
    }

    .popular-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Estado para categorías sin productos */
.offer-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

.offer-card.is-disabled:hover .offer-card-img {
    transform: none !important; /* Desactiva el efecto zoom al pasar el mouse */
}

.offer-card.is-disabled:hover .offer-card-overlay {
    background: rgba(0, 0, 0, 0.25) !important;
}


/* ==========================================================================
   SECCIÓN: DISEÑO PERSONALIZADO & BANNER DE PREGUNTAS
   ========================================================================== */

.custom-design-section {
    width: 100%;
    padding: 40px 20px 80px 20px;
    box-sizing: border-box;
}

.custom-design-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --------------------------------------------------------------------------
   1. BLOQUE PRINCIPAL (CREAR DISEÑO)
   -------------------------------------------------------------------------- */
.custom-design-banner {
    background-color: #f2f2f2;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px;
    gap: 40px;
    overflow: hidden;
}

/* Columna Izquierda: Texto */
.custom-design-content {
    flex: 1;
    max-width: 580px;
}

.custom-design-title {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 700;
    color: #111111;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

/* Íconos SVG */
.custom-design-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.svg-badge {
    width: 60px;
    height: 60px;
}

.svg-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



.custom-design-description {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 18px;
    color: #555555;
    line-height: 1.3;
    margin-bottom: 30px;
}

.btn-custom-design {
    display: block;
    background-color: #111111;
    color: #ffffff;
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 17px 36px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-custom-design:hover {
    background-color: var(--gn-accent-color, #f8cb3a);
    color: #111111;
}

/* Columna Derecha: Gráficos Abstractos */
.custom-design-graphics {
    flex: 1;
    position: relative;
    height: 320px;
    max-width: 520px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
}

.graphic-shape {
    position: relative;
    box-sizing: border-box;
}

/* Píldora vacía con borde negro */
.shape-pill {
    width: 200px;
    height: 90px;
    border: 3px solid #111111;
    border-radius: 50px;
}

/* Semicírculo Verde Superior */
.shape-semicircle-top {
    width: 180px;
    height: 90px;
    background-color: #9cb3a8;
    border-radius: 100px 100px 0 0;
}

/* Semicírculo Naranja Izquierda */
.shape-semicircle-left {
    width: 100px;
    height: 180px;
    background-color: #ff5500;
    border-radius: 180px 0 0 180px;
    justify-self: start;
}

/* Foto circular del modelo */
.graphic-photo-circle {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 42%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.graphic-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Círculo con Línea Cruzada */
.shape-circle-cross {
    width: 170px;
    height: 170px;
    border: 3px solid #111111;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-circle-cross .cross-line {
    width: 220px;
    height: 3px;
    background-color: #111111;
    transform: rotate(-45deg);
    position: absolute;
}


/* --------------------------------------------------------------------------
   2. BLOQUE INFERIOR (PREGUNTAS CON DEGRADADO SUAVE)
   -------------------------------------------------------------------------- */
.questions-banner {
    background: linear-gradient(90deg, #d8b0e8 0%, #f7d1ba 50%, #fbd89d 100%);
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.questions-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.questions-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.questions-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.questions-title {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 26px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.questions-subtitle {
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 13px;
    color: #444444;
    margin: 0;
}

.btn-questions {
    display: inline-block;
    background-color: #111111;
    color: #ffffff;
    font-family: var(--gn-font-headings, 'Syne', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 18px 28px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-questions:hover {
    background-color: var(--gn-accent-color, #f8cb3a);
    color: #111111;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
    .custom-design-banner {
        flex-direction: column;
        padding: 40px 25px;
        text-align: center;
    }

    .custom-design-icons {
        justify-content: center;
    }

    .custom-design-graphics {
        display: none; /* Ocultar composiciones abstractas en pantallas pequeñas */
    }

    .questions-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .questions-left {
        flex-direction: column;
    }
}