#page-tudeils {
    margin: 0 auto;
    font-family: 'avenir', sans-serif;

    #section1 {
        display: flex;
        justify-content: space-evenly;
        align-items: flex-start;
        margin-bottom: 14rem;

        .image-tudeils {

            img {
                width: 100%;
                height: auto;
            }
        }

        .text-container {
            width: 400px;
            text-align: justify;
            border-left: 4px solid #8f8888;
            padding-left: 25px;
        
            transition: height 0.5s ease; /* Transición suave de la altura */

            h1 {
                font-weight: bold;
                font-size: 28px;
                margin-bottom: 15px;
            }

            p {
                color: #444;
                font-size: 14px;
                margin-right: 35px;
                line-height: 21px;

                .label {
                    font-weight: bold;
                }
            }

            p:last-of-type {
                font-size: 16px;
                margin-top: 20px;
            }

            
        }
    }

    #section2 {
        margin-bottom: 14rem;

        .plans {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4rem;
            cursor: pointer;

            .svg-tudeils {
                display: flex;
                flex-direction: column;
                align-items: center;

                img {
                    width: 667px;

                }

                p {
                    margin: 0 4rem;
                    font-style: italic;
                    color: #8f8888;
                    margin-top: 1rem;
                    width: 667px;
                }
            }


        }


    }

    #section3 {
        padding-bottom: 6rem;
        .pictures {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 5rem;
            justify-content: center;
            justify-items: center;
            padding: 2rem;

            img {
                width: 100%;
                cursor: pointer;
            }
        }

        .bw {
            margin-top: 15rem;
        }
    }
}


@media screen and (max-width: 1667px) {
    #page-tudeils {
        margin: 0 2rem;

        #section1 {
            flex-direction: column;
            align-items: center;
            margin-bottom: 4rem;


            .image-tudeils {
                margin-bottom: 7rem;
            }

            .text-container {
                width: 1024px;
                border-left: none;
                height: auto;
                margin-bottom: 10rem;
                padding-left: 0;

                h1 {
                    font-size: 24px;
                }

                p {
                    font-size: 14px;
                    margin-right: 0;
                    margin-left: 0;
                }

                p:last-of-type {
                    font-size: 16px;
                    margin-top: 3rem;
                }

                .text {
                    -webkit-line-clamp: 30;
                    line-clamp: 30;
                }
                .toggle-btn {
                    display: none;
                }
            }
        }

        #section2 {
            .plans {
                grid-template-columns: 1fr;
                gap: 10rem;
                .svg-tudeils {
                    
                    img {
                        width: 70%;
                    }
                    p {
                        width: 80%;
                    }
                }
            }
            
        }

        #section3 {
            
            .pictures {
                grid-template-columns: repeat(2, 1fr);
                gap: 10rem;
                padding: 3rem;
                

                img {
                    max-width: 500px;
                    max-height: 666px;
                }

                
            }
            
        }
    }
}

@media screen and (max-width: 1164px) {
    #page-tudeils {
        margin: 0 2rem;
        #section1 {
            flex-direction: column;
            align-items: center;
            margin-bottom: 4rem;


            .image-tudeils {
                display: flex;
                justify-content: center;
            }

            .text-container {
                width: 98%;
            }
        }

        #section2 {
            .plans {
                .svg-tudeils {
                    img {
                        width: 100%;
                    }
                    p {
                        width: 100%;
                    }
                }
            }
        }

        #section3 {
            .pictures {
                grid-template-columns: repeat(1, 1fr);

            }
        }
    }
}

@media screen and (max-width: 851px) {
    #page-tudeils {
        #section1 {
            .text-container {
                .text {
                    -webkit-line-clamp: 14;
                    line-clamp: 14;

                    &.expanded {
                        -webkit-line-clamp: unset;
                        line-clamp: unset;
                        overflow: visible;
                    }
                }
                .toggle-btn {
                    display: inline-block;
                    bottom: 0;
                }
            }
        }
    }
}

@media screen and (max-width: 650px) {
    #page-tudeils {
        #section2 {
            margin-bottom: 6rem;
        }
    }
}

@media screen and (max-width: 561px) {
    #page-tudeils {
        margin: 0 1rem;
        #section3 {
            padding-bottom: 0;
            .pictures {
                row-gap: 3rem;
                padding: 0;
                padding-bottom: 5rem;
                img {
                    width: 100%;
                }
            }
        }
    }
}

