.how-section {
    padding: 60px 0;
}

.how-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.how-section .section-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.how-section .section-content > p {
    text-align: left;
    margin: 0 0 30px;
}

.how-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.how-content p {
    color: #4A332F;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-left: 10px;
    text-align: left;
}

.how-content h3 {
    color: #4B2C24;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: left;
}

.process-with-image {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.process-section {
    margin-bottom: 0;
    margin-left: 20px;
}

#proceso-pedagogico .section-heading {
    font-weight: 700;
    display: block;
    color: #4B2C24;
    text-align: center;
}

.process-section ol {
    list-style: none;
    counter-reset: process-counter;
    padding: 0;
    margin: 0;
}

.process-section ol li {
    counter-increment: process-counter;
    background: linear-gradient(135deg, #FFE8E0 0%, #FFF4F0 100%);
    padding: 20px 20px 20px 70px;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(75, 44, 36, 0.08);
    transition: all 0.3s ease;
    position: relative;
    line-height: 1.7;
}

.process-section ol li::before {
    content: counter(process-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4B2C24;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.process-section ol li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(75, 44, 36, 0.12);
}

.process-section ol li:nth-child(even) {
    background: linear-gradient(135deg, #F4E4CC 0%, #FDF7F7 100%);
}

#faq-heading,
#modalidades-apoyo-pedagogico .section-heading {
    font-weight: 700;
    display: block;
    color: #4B2C24;
    text-align: center;
}

.modalities-section {
    margin-top: 50px;
    padding: 40px;
}

.modalities-section h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.modalities-section p {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.8;
}

.modalities-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modalities-section ul li {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(75, 44, 36, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #E8A798;
    font-size: 16px;
    line-height: 1.7;
    color: #4A332F;
}

.modalities-section ul li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(75, 44, 36, 0.12);
}

.why-section,
.testimonials-section {
    margin-bottom: 30px;
    margin-left: 20px;
}

.how-content ol {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-content ol li {
    color: #4A332F;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 2px;
    position: relative;
    padding-left: 20px;
}

.how-content ol li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #D4B196;
}

.why-section .section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.why-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.why-image {
    width: 100%;
}

.office-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.why-text {
    width: 100%;
}

.testimonials-section {
    padding: 0 60px;
}

.testimonials-section .section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial {
    background-color: white;
    border-radius: 10px;
    padding: 30px 70px;
    box-shadow: 0 3px 10px rgba(75, 44, 36, 0.08);
    width: 100%;
    min-height: 250px;
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    color: #4A332F;
    margin-bottom: 15px;
    line-height: 1.8;
}

.testimonial-author {
    text-align: right;
    font-weight: 600;
    color: #4B2C24;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4B2C24;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: #E8A798;
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D4B196;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: #4B2C24;
}

.how-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.colors-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* FAQ section */
.faq-section {
    padding: 80px 20px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(135deg, #fff4e5 0%, #fdf7f7 100%);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
}

.faq-section h2 {
    font-weight: 700;
    margin-bottom: 40px;
}

.faq-section details {
    background-color: white;
    border-radius: 14px;
    border-left: 4px solid #E8A798;
    box-shadow: 0 2px 8px rgba(75, 44, 36, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-section details:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 44, 36, 0.12);
}

.faq-section summary {
    padding: 25px 60px 25px 30px;
    font-weight: 600;
    color: #4B2C24;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    outline: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 700;
    color: #E8A798;
    transition: transform 0.3s ease;
}

.faq-section details[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.faq-section details[open] summary {
    background-color: rgba(232, 167, 152, 0.08);
    border-bottom: 3px solid #E8A798;
}

.faq-section p {
    color: #4A332F;
    font-size: 16px;
    line-height: 1.8;
    padding: 25px 30px;
    margin: 0;
}

@media (min-width: 768px) {
    .process-with-image {
        flex-direction: row;
        gap: 60px;
        align-items: center;
    }

    .process-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .how-image {
        flex: 1;
        justify-content: center;
        align-items: center;
    }

    .colors-image {
        max-width: 540px;
    }

    .modalities-section ul {
        flex-direction: row;
        gap: 20px;
    }

    .modalities-section ul li {
        flex: 1;
    }

    .why-content-wrapper {
        flex-direction: row;
        gap: 60px;
        align-items: flex-start;
    }

    .why-image {
        flex: 1;
        max-width: 45%;
    }

    .why-text {
        flex: 1;
    }

    .testimonials-section {
        padding: 0 80px;
    }

    .carousel-container {
        max-width: 1000px;
    }

    .carousel-btn-prev {
        left: 20px;
    }

    .carousel-btn-next {
        right: 20px;
    }

    .testimonial {
        padding: 40px 90px;
        min-height: 280px;
    }
}
