/**
 * 420CreaStore Hero – Frontend Styles
 * Suite: 420Crea | Version: 1.0.0
 */

/* ════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Variables)
════════════════════════════════════════════════════════════ */
.crea-hero-wrapper {
    --crea-radius:     16px;
    --crea-gap:        12px;
    --crea-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --crea-shadow:     0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --crea-shadow-hover: 0 8px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.06);

    box-sizing: border-box;
    font-family: inherit;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════════
   GRIDS PRINCIPALES
════════════════════════════════════════════════════════════ */
.crea-hero-grid {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: var(--crea-gap);
    align-items: stretch;
}

.crea-hero-right-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--crea-gap);
}

.crea-hero-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--crea-gap);
    margin-top: var(--crea-gap);
}

/* ════════════════════════════════════════════════════════════
   HERO PRINCIPAL
════════════════════════════════════════════════════════════ */
.crea-hero-main {
    position: relative;
    border-radius: var(--crea-radius);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #b8e8e0 0%, #d4f0ed 100%);
}

.crea-hero-main-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crea-hero-main-image {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 55%;
    z-index: 1;
    pointer-events: none;
}

.crea-hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    display: block;
}

.crea-hero-product-image {
    position: absolute;
    bottom: 20px;
    left: 30px;
    z-index: 2;
    width: 90px;
    pointer-events: none;
}

.crea-hero-product-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(2px 6px 12px rgba(0,0,0,0.18));
}

/* Pretítulo */
.crea-pretitle {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2c6e6a;
    letter-spacing: -0.01em;
}

/* Descuento wrapper */
.crea-discount-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}

.crea-discount-prefix {
    font-size: 1rem;
    font-weight: 600;
    color: #2c6e6a;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.crea-discount {
    font-size: 4.5rem;
    font-weight: 900;
    color: #1a5c58;
    letter-spacing: -0.04em;
    line-height: 1;
    display: block;
}

/* Marca / tienda */
.crea-store-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.crea-store-logo {
    height: 36px;
    width: auto;
    display: block;
}

.crea-store-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c6e6a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════
   BOTONES
════════════════════════════════════════════════════════════ */
.crea-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color var(--crea-transition), color var(--crea-transition), transform var(--crea-transition), box-shadow var(--crea-transition);
    cursor: pointer;
    border: none;
    line-height: 1;
    white-space: nowrap;
}

.crea-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.crea-btn-primary {
    background-color: #b5963d;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(181, 150, 61, 0.35);
    align-self: flex-start;
}

.crea-btn-primary:hover {
    background-color: #9a7c2a;
    box-shadow: 0 6px 20px rgba(181, 150, 61, 0.45);
    color: #ffffff !important;
}

.crea-btn-link {
    display: inline-block;
    padding: 0;
    background: none;
    color: #2c6e6a;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--crea-transition);
}

.crea-btn-link:hover {
    color: #1a4a47;
    text-decoration: underline;
}

.crea-btn-secondary {
    background-color: #b5963d;
    color: #ffffff !important;
    font-size: 0.88rem;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.crea-btn-secondary:hover {
    background-color: #9a7c2a;
    color: #ffffff !important;
}

/* ════════════════════════════════════════════════════════════
   BLOQUES PROMO
════════════════════════════════════════════════════════════ */
.crea-promo-block {
    border-radius: var(--crea-radius);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #f9e8ee;
    transition: transform var(--crea-transition), box-shadow var(--crea-transition);
    min-height: 150px;
}

.crea-has-shadow .crea-promo-block {
    box-shadow: var(--crea-shadow);
}

.crea-promo-block:hover {
    transform: translateY(-2px);
}

.crea-has-shadow .crea-promo-block:hover {
    box-shadow: var(--crea-shadow-hover);
}

.crea-promo-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 24px 20px;
    position: relative;
    z-index: 2;
}

.crea-block-brand {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #555;
    line-height: 1.3;
}

.crea-block-claim {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.crea-promo-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    overflow: hidden;
    z-index: 1;
}

.crea-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ════════════════════════════════════════════════════════════
   BLOQUES INFERIORES
════════════════════════════════════════════════════════════ */
.crea-bottom-block {
    border-radius: var(--crea-radius);
    overflow: hidden;
    position: relative;
    min-height: 90px;
    display: flex;
    align-items: center;
    transition: transform var(--crea-transition), box-shadow var(--crea-transition);
    text-decoration: none;
}

.crea-has-shadow .crea-bottom-block {
    box-shadow: var(--crea-shadow);
}

.crea-bottom-block:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.crea-has-shadow .crea-bottom-block:hover {
    box-shadow: var(--crea-shadow-hover);
}

/* Bloques icono (iconos + texto) */
.crea-bottom-icon-block {
    gap: 14px;
    padding: 20px 28px;
    cursor: pointer;
}

.crea-bottom-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.crea-bottom-label {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #444;
    flex: 1;
    line-height: 1.3;
}

.crea-bottom-arrow {
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Bloques imagen */
.crea-bottom-image-block {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 140px;
}

.crea-bottom-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1;
    border-radius: inherit;
}

.crea-bottom-image-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-align: center;
}

.crea-bottom-image-content .crea-bottom-label {
    color: #fff;
    font-size: 1.05rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ════════════════════════════════════════════════════════════
   SHADOW MODIFIER
════════════════════════════════════════════════════════════ */
.crea-has-shadow .crea-hero-main {
    box-shadow: var(--crea-shadow);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE – TABLET (≤ 1024px)
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .crea-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .crea-discount {
        font-size: 3.5rem;
    }

    .crea-hero-main-content {
        padding: 28px;
        max-width: 100%;
    }

    .crea-hero-main-image {
        width: 45%;
    }

    .crea-bottom-block {
        min-height: 80px;
    }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE – MOBILE (≤ 767px)
════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .crea-hero-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .crea-hero-main {
        min-height: 280px;
    }

    .crea-hero-main-content {
        padding: 24px 20px;
        max-width: 62%;
    }

    .crea-hero-main-image {
        width: 42%;
    }

    .crea-discount {
        font-size: 3rem;
    }

    .crea-pretitle {
        font-size: 0.95rem;
    }

    .crea-hero-right-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .crea-hero-bottom-grid {
        grid-template-columns: 1fr;
    }

    .crea-promo-block {
        min-height: 130px;
    }

    .crea-promo-content {
        padding: 16px 14px;
    }

    .crea-block-claim {
        font-size: 1.2rem;
    }

    .crea-bottom-icon-block {
        padding: 16px 20px;
        gap: 10px;
    }

    .crea-bottom-image-block {
        min-height: 120px;
    }

    .crea-btn-primary {
        font-size: 0.88rem;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .crea-hero-right-grid {
        grid-template-columns: 1fr;
    }

    .crea-discount {
        font-size: 2.4rem;
    }

    .crea-hero-main-image {
        width: 38%;
    }
}
