/**
 * Historias con Corazón Block Styles
 * Sección de historia destacada con imagen de fondo, overlay y card
 * Figma: node-id=477-13991
 */

/* ==========================================================================
   Section Container - Figma: height 688px, column layout
   ========================================================================== */

.historias-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 688px;
    overflow: hidden;
}

/* ==========================================================================
   Background - Figma: image + red overlay (#D65864)
   ========================================================================== */

.historias-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
}

.historias-bg-overlay {
    position: relative;
    width: 367px;
    min-width: 367px;
    height: 100%;
    background-color: var(--wp--preset--color--variant-red-60);
    z-index: 1;
}

.historias-bg-image {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay on image for contrast */
.historias-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Card - Figma: absolute, 671px wide, padding 40px, gap 24px, white bg,
   shadow-lg, border-radius 8px
   ========================================================================== */

.historias-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 671px;
    max-width: calc(100% - 128px);
    margin-left: 64px;
    padding: 40px;
    background-color: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--border-radius--md);
    box-shadow: var(--wp--custom--shadow--lg);
}

/* ==========================================================================
   Card Header - Figma: column, gap 8px, width 591px
   ========================================================================== */

.historias-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Hashtag - Figma: Delicious Handrawn 400, 32px, #D50032, bottom border 4px red */
.historias-hashtag {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start;
    padding-bottom: 8px;
    border-bottom: 4px solid var(--wp--preset--color--primary);
}

.historias-hashtag-text {
    font-family: var(--wp--preset--font-family--delicious-handrawn);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: var(--wp--preset--color--primary);
}

/* Title - Figma: Desktop/H3 Bold - Inter 700, 36px, line-height 1.21, #333333 */
.historias-card-title {
    margin: 0;
    font-family: var(--wp--preset--font-family--inter);
    font-weight: 700;
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.21;
    color: var(--wp--preset--color--text-dark);
}

/* ==========================================================================
   Description - Figma: Desktop/lg body regular - Inter 400, 18px, #787878
   ========================================================================== */

.historias-card-description {
    margin: 0;
    font-family: var(--wp--preset--font-family--inter);
    font-weight: 400;
    font-size: var(--wp--preset--font-size--body-large);
    line-height: 1.21;
    color: var(--wp--preset--color--text-light);
}

/* ==========================================================================
   CTA Buttons - Figma: row, gap 24px, stretch
   ========================================================================== */

.historias-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

/* Button base - Figma: Size=Medium, padding 8px 16px, height 40px, border-radius 24px */
.historias-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    height: 40px;
    border-radius: 24px;
    font-family: var(--wp--preset--font-family--inter);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.21;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Primary Button - Figma: bg #D50032, color #FFFFFF */
.historias-btn-primary {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

.historias-btn-primary:hover {
    background-color: var(--wp--preset--color--primary-hover);
    color: var(--wp--preset--color--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(213, 0, 50, 0.4);
}

/* Tertiary Button - Figma: transparent bg, color #333333 */
.historias-btn-tertiary {
    background-color: transparent;
    color: var(--wp--preset--color--text-dark);
}

.historias-btn-tertiary:hover {
    background-color: var(--wp--preset--color--light-gray);
    color: var(--wp--preset--color--text-dark);
}

.historias-btn-tertiary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive - Tablet (1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .historias-section {
        min-height: 580px;
    }

    .historias-bg-overlay {
        width: 280px;
        min-width: 280px;
    }

    .historias-card {
        width: 560px;
        margin-left: 48px;
        padding: 32px;
    }

    .historias-hashtag-text {
        font-size: 28px;
    }
}

/* ==========================================================================
   Responsive - Mobile (768px)
   ========================================================================== */

@media (max-width: 768px) {
    .historias-section {
        min-height: auto;
        padding: 0;
    }

    .historias-bg {
        flex-direction: column;
    }

    /* Imagen arriba, panel rojo debajo (no solapados) */
    .historias-bg-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 200px;
        z-index: 0;
    }

    .historias-bg-overlay {
        position: absolute;
        top: 200px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-width: 100%;
        height: auto;
        z-index: 0;
    }

    .historias-card {
        width: auto;
        max-width: calc(100% - 32px);
        margin: 160px 16px 32px;
        padding: 16px;
        gap: 24px;
    }

    .historias-card-title {
        font-size: 28px;
    }

    .historias-card-description {
        font-size: 16px;
    }

    .historias-hashtag-text {
        font-size: 24px;
    }

    .historias-cta {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
}

/* ==========================================================================
   Responsive - Small Mobile (480px)
   ========================================================================== */

@media (max-width: 480px) {
    .historias-card {
        max-width: calc(100% - 32px);
        margin: 160px 16px 24px;
        padding: 16px;
    }
}
