/**
 * Estilos para el bloque Rich Text (Texto Enriquecido)
 * Simula la sección de texto enriquecido del tema Dawn de Shopify
 */

/* Contenedor principal */
.rich-text {
    margin: 0 auto;
    width: 100%;
}

.rich-text-container {
    width: 100%;
}

.rich-text-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.rich-text-inner {
    width: 100%;
    max-width: 1200px;
}

/* Posicionamiento del contenido */
.rich-text-position-left {
    justify-content: flex-start;
}

.rich-text-position-center {
    justify-content: center;
}

.rich-text-position-right {
    justify-content: flex-end;
}

/* Alineación del texto */
.rich-text-blocks.text-left {
    text-align: left;
}

.rich-text-blocks.text-center {
    text-align: center;
}

.rich-text-blocks.text-right {
    text-align: right;
}

/* Esquemas de color */
.rich-text-color-light {
    background-color: #f5f5f5;
    color: #121212;
}

.rich-text-color-dark {
    background-color: #121212;
    color: #ffffff;
}

.rich-text-color-accent {
    background-color: #ffc107;
    color: #121212;
}

.rich-text-color-white {
    background-color: #ffffff;
    color: #121212;
}

/* Estilos de encabezado */
.rich-text-heading {
    margin-top: 0!important;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}



/* Estilos de etiqueta */
.rich-text-caption {
    margin-top: 0;
    margin-bottom: 15px!important;
    display: block;
}

.rich-text-caption.subtitle {
    font-weight: 500;
    font-style: italic;
}

.rich-text-caption.caption-with-letter-spacing {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.rich-text-caption.caption-with-letter-spacing--small {
    font-size: 0.8rem;
}

.rich-text-caption.caption-with-letter-spacing--medium {
    font-size: 0.9rem;
}

.rich-text-caption.caption-with-letter-spacing--large {
    font-size: 1rem;
}

.rich-text-caption.subtitle--small {
    font-size: 0.9rem;
}

.rich-text-caption.subtitle--medium {
    font-size: 1rem;
}


/* Estilos de texto */
.rich-text-text {
    margin-bottom: 1.5rem;
}

.rich-text-text p {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.rich-text-text p:last-child {
    margin-bottom: 0;
}

/* Estilos de botones */
.rich-text-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.rich-text-blocks.text-left .rich-text-buttons {
    justify-content: flex-start;
}

.rich-text-blocks.text-right .rich-text-buttons {
    justify-content: flex-end;
}

.rich-text-buttons .btn {
    min-width: 120px;
    text-align: center;
}

/* Animaciones */
.animate-slide-in {
    opacity: 0;
    transform: translateY(10px);
    animation: slideIn 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--animation-order, 1));
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos responsivos */
@media screen and (min-width: 750px) {
   
    
    .rich-text-blocks {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .rich-text-blocks.text-left {
        margin-left: 0;
    }
    
    .rich-text-blocks.text-right {
        margin-right: 0;
    }
}

/* Estilos para el editor de Gutenberg */
.block-editor-block-list__block .rich-text {
    margin-bottom: 28px;
}

.block-editor-block-list__block .rich-text-color-dark {
    padding: 20px;
}

.block-editor-block-list__block .rich-text-color-dark .rich-text-caption,
.block-editor-block-list__block .rich-text-color-dark .rich-text-heading,
.block-editor-block-list__block .rich-text-color-dark .rich-text-text {
    color: #ffffff;
}

.block-editor-block-list__block .rich-text-buttons {
    pointer-events: none;
}
