.wp-block-gutenberg-test-simple-hero-left {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: calc(var(--spacing-xl) * 2) 0;
    text-align: left;
    overflow: visible;
}

.wp-block-gutenberg-test-simple-hero-left.has-background {
    background-color: var(--wp-preset-color-background);
}

.wp-block-gutenberg-test-simple-hero-left.has-text-color {
    color: var(--wp-preset-color-text);
}

.wp-block-gutenberg-test-simple-hero-left .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.wp-block-gutenberg-test-simple-hero-left .content-wrapper {
    max-width: 100%;
    position: relative;
    padding-left: 2rem;
}

.wp-block-gutenberg-test-simple-hero-left .decorative-line {
    position: absolute;
    left: 0;
    width: 4px;
    background-color: currentColor;
    opacity: 0.6;
    transition: height 0.3s ease, top 0.3s ease;
}

.wp-block-gutenberg-test-simple-hero-left h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    text-align: left;
    max-width: 100%;
    word-wrap: break-word;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

.wp-block-gutenberg-test-simple-hero-left .subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    max-width: 100%;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
    word-wrap: break-word;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    margin-bottom: 1.5rem;
}

/* Estilos para la cinta diagonal */
.wp-block-gutenberg-test-simple-hero-left .corner-ribbon {
    position: absolute;
    width: 200px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1rem;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.ribbon-right {
    top: 35px;
    right: -40px;
    transform: rotate(45deg);
    transform-origin: top right;
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.ribbon-left {
    top: 35px;
    left: -40px;
    transform: rotate(-45deg);
    transform-origin: top left;
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.has-primary-background-color {
    background-color: var(--color-primary);
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.has-gray-background-color {
    background-color: var(--color-gray);
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.has-white-background-color {
    background-color: var(--color-white);
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.has-black-background-color {
    background-color: var(--color-black);
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.has-white-color {
    color: var(--color-white);
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.has-black-color {
    color: var(--color-black);
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.has-primary-color {
    color: var(--color-primary);
}

.wp-block-gutenberg-test-simple-hero-left .corner-ribbon.has-gray-color {
    color: var(--color-gray);
}

/* Alineaciones de texto */
.wp-block-gutenberg-test-simple-hero-left .text-left {
    text-align: left;
}

.wp-block-gutenberg-test-simple-hero-left .text-center {
    text-align: center;
}

.wp-block-gutenberg-test-simple-hero-left .text-right {
    text-align: right;
}

.wp-block-gutenberg-test-simple-hero-left .text-justify {
    text-align: justify;
}

/* Estilos específicos para el editor */
.block-editor-block-list__block .wp-block-gutenberg-test-simple-hero-left .subtitle {
    min-height: 3em;
    width: 100%;
    padding: 0.5em 0;
    outline: none;
    transition: box-shadow 0.1s ease-in-out;
    cursor: text;
}

.block-editor-block-list__block .wp-block-gutenberg-test-simple-hero-left .subtitle:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Breakpoints para responsive */
@media (max-width: 1200px) {
    .wp-block-gutenberg-test-simple-hero-left .corner-ribbon {
        width: calc(180px + (200 - 180) * ((100vw - 768px) / (1200 - 768)));
        font-size: clamp(0.9rem, 1vw, 1rem);
    }
}

@media (max-width: 768px) {
    .wp-block-gutenberg-test-simple-hero-left {
        padding: calc(var(--spacing-xl) * 1.5) 0;
    }
    
    .wp-block-gutenberg-test-simple-hero-left h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    
    .wp-block-gutenberg-test-simple-hero-left .subtitle {
        font-size: clamp(1rem, 1.5vw, 1.25rem);
    }
    
    .wp-block-gutenberg-test-simple-hero-left .corner-ribbon {
        font-size: clamp(0.8rem, 0.8vw, 0.9rem);
        height: 35px;
        line-height: 35px;
        width: min(180px, 60vw);
    }
    
    .wp-block-gutenberg-test-simple-hero-left .corner-ribbon.ribbon-right {
        right: -45px;
        top: 15px;
    }
    
    .wp-block-gutenberg-test-simple-hero-left .corner-ribbon.ribbon-left {
        left: -45px;
        top: 15px;
    }
}

@media (max-width: 480px) {
    .wp-block-gutenberg-test-simple-hero-left .corner-ribbon {
        font-size: 0.7rem;
        height: 30px;
        line-height: 30px;
        width: min(160px, 50vw);
    }
    
    .wp-block-gutenberg-test-simple-hero-left .corner-ribbon.ribbon-right {
        right: -40px;
        top: 10px;
    }
    
    .wp-block-gutenberg-test-simple-hero-left .corner-ribbon.ribbon-left {
        left: -40px;
        top: 10px;
    }
} 