.wp-block-gutenberg-test-text-sections {
    padding: clamp(2rem, 5vw, 4rem) var(--container-padding);
}

.wp-block-gutenberg-test-text-sections .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.wp-block-gutenberg-test-text-sections .header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    animation: fadeInDown 0.6s ease-out;
}

.wp-block-gutenberg-test-text-sections h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--color-primary);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.wp-block-gutenberg-test-text-sections .description {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(0rem, 3vw, 1rem);
}

.wp-block-gutenberg-test-text-sections .expandable-section {
    background: var(--color-white);
    border-radius: 8px;
    padding: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-gutenberg-test-text-sections .expandable-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: scale(1.01);
}

.wp-block-gutenberg-test-text-sections .expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.wp-block-gutenberg-test-text-sections .expandable-title {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    color: var(--color-primary);
    margin: 0;
}

.wp-block-gutenberg-test-text-sections .expand-icon {
    display: inline-block;
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    color: var(--color-primary);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.wp-block-gutenberg-test-text-sections .expandable-section.is-expanded .expand-icon {
    transform: rotate(180deg);
}

.wp-block-gutenberg-test-text-sections .expandable-content {
    margin-top: clamp(1rem, 3vw, 1.5rem);
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.3s ease, opacity 0.3s ease;
    display: block;
}

.wp-block-gutenberg-test-text-sections .expandable-section.is-expanded .expandable-content {
    /* height se manejará mediante JavaScript */
    /* opacity se manejará mediante JavaScript */
}

.wp-block-gutenberg-test-text-sections .text {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

/* Clases de alineación de texto */
.wp-block-gutenberg-test-text-sections .text-left {
    text-align: left;
}

.wp-block-gutenberg-test-text-sections .text-center {
    text-align: center;
}

.wp-block-gutenberg-test-text-sections .text-right {
    text-align: right;
}

.wp-block-gutenberg-test-text-sections .text-justify {
    text-align: justify;
}

.wp-block-gutenberg-test-text-sections .list {
    list-style: none;
    padding: 0;
    margin: clamp(1.5rem, 4vw, 2rem) auto;
    max-width: 900px;
}

.wp-block-gutenberg-test-text-sections .list-item {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    padding-left: clamp(1.5rem, 4vw, 2rem);
    position: relative;
}

.wp-block-gutenberg-test-text-sections .list-item:before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0.5rem;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .wp-block-gutenberg-test-text-sections .expandable-section {
        margin-left: clamp(0rem, 3vw, 1rem);
        margin-right: clamp(0rem, 3vw, 1rem);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}