I need to define a tcolorbox with a title for the upper part and another for the lower part as in the image. But I can't find a solution to properly insert the fancy "POR QUE?" on the lower part of tcolorbox.
I used 'underlay boxed title' as in the code below, but I don't know how to refer to an upper corner of the lower part of the box to use in the second part of the underlay boxed title. As it is in the code below, the second title has an absolute position in the box. So, if the upper part gets bigger, then its text would be over the "POR QUE".
\newtcolorbox{openningbox}{enhanced, jigsaw, colback=white, colframe=white, lower separated=false,
\titlefont, title={O QU\^E?},
boxed title style={empty,arc=0pt,outer arc=0pt,boxrule=0pt},
attach boxed title to top left={ yshift=-10 mm},
underlay boxed title={
\fill[green] ($(title.north west) + (0,-7mm)$) coordinate (x1) -- ++ (23 mm,0mm) arc [start angle=-90, end angle=90, x radius=3mm, y radius=3mm] coordinate (x2) -- ++ (-23 mm,0mm) -- cycle;
\fill[green] ($(frame.north west) + (0,-53mm)$) coordinate (c1) -- ++ (23 mm,0mm) arc [start angle=-90, end angle=90, x radius=3mm, y radius=3mm] coordinate (c2) -- ++ (-23 mm,0mm) -- cycle;
\node[right] at ($(c1)!0.5!(c2)+ (-8mm,0)$) {POR QU\^E?};}
}
Any idea about how to get it done?