/*
 Theme Name:   Learnify Child Theme
 Theme URI:    http://learnify.axiomthemes.com
 Description:  Learnify Child Theme
 Author:       AncoraThemes
 Author URI:   http://axiomthemes.com
 Template:     learnify
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  learnify
*/


/* =Theme customization starts here
------------------------------------------------------------ */


.wpcf7-form-control-wrap textarea{ 
    width: 100% !important;
    height:50px;
}


.cursometabox {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 10px;
}



:root {

    --orangecorp: #EC733B;
    --orangecorph: rgb(184, 89, 45);
    --griscorp: #3B3B3B;
    --griscorph: rgb(26, 26, 26);
    --bggris: #F2F6F7;
    --bggrish: #ced3d4;

}



.curso-layout {

    margin-bottom: 7.1rem;

    .curso-info-principal {
        display: flex;
        flex-direction: row;
        gap: 40px;
        margin-bottom: 40px;

        @media screen and (max-width: 769px) {
            flex-direction: column;
        }

        .curso-imagen {
            flex: 0.5;
        }

        .curso-datos {
            flex: 0.5;
            display: flex;
            flex-direction: column;
            gap: 10px;

            .objetivo-curso {
                h2 {
                    margin-top: 0px;
                }
            }

            .dato-curso {
                background: var(--bggris);
                padding: 20px;
            }

            /*
            .dato-meta {
                display: flex;
                flex-direction: row;
                gap: 10px;

                .dato-meta-box {
                    flex: 1;
                    background-color: var(--bggris);
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-content: center;
                    padding: 20px;
                    text-align: center;

                    .dato-meta-box-title {

                        font-size: 0.8rem;
                        font-weight: bold;

                        .dato-meta-box-icon {
                            svg {
                                width: 24px;
                                height: 24px;
                                color: var(--orangecorp);
                            }
                        }
                    }

                    .dato-meta-box-value {
                        color: var(--griscorp);
                        font-weight: bold;
                        & span.amount {
                            color: var(--griscorp);
                        }
                    }
                }
            }
            */

            
        }

    }



    .dato-meta {
        display: grid;
        grid-template-columns: repeat(4, 1fr); 
        gap: 40px;

        .dato-meta-box {
            background-color: var(--bggris);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-content: center;
            padding: 20px;
            text-align: center;

            .dato-meta-box-title {
                font-size: 0.8rem;
                font-weight: bold;

                .dato-meta-box-icon {
                    svg {
                        width: 24px;
                        height: 24px;
                        color: var(--orangecorp);
                    }
                }
            }

            .dato-meta-box-value {
                color: var(--griscorp);
                font-weight: bold;

                & span.amount {
                    color: var(--griscorp);
                }
            }
        }

        @media screen and (max-width: 769px) {
            grid-template-columns: repeat(2, 1fr);
        }
    }


    .btn-reservar {
        
        background: var(--orangecorp);
        color: #fff;
        padding: 13px 34px;
        text-decoration: none;
        border-radius: 4px;
        font-weight: bold;
        width: fit-content;
        display: flex;
        flex-direction: row;
        justify-content: center;
        line-height: initial;
        border-radius: 30px;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 11px;
        line-height: 20px;

        &::after {
            content: '\e9a4';
            font-family: "fontello";
            font-size: 10px;
            font-weight: 400;
            margin-left: 24px;
        }


    }

    .btn-reservar:hover {
        background: var(--orangecorph);
    }



    .curso-acordeon {

        .acordeon-contenidos {

            .modulo {

                .modulo-code {
                    color: var(--griscorp);
                    font-weight: bold;
                    margin-right: 10px;
                }

                .acordeon-btn {
                    background: var(--bggris);
                    padding: 20px;
                    width: 100%;
                    cursor: pointer;
                    margin-top: 20px;
                    color: var(--griscorp);
                    text-align: left;
                    border: 1px solid var(--bggrish);
                    border-left: 5px solid var(--griscorp);
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;

                    &:hover {
                        background: var(--bggrish);
                    }

                    &.active {
                        background: var(--bggrish);
                    }

                    @media screen and (max-width: 769px) {
                        flex-direction: column;
                    }
                }

                .acordeon-panel {
                    max-height: 0;
                    overflow: hidden;
                    padding: 0 20px;
                    background: var(--bggris);
                    border-left: 5px solid var(--griscorp);
                    border-right: 1px solid var(--bggrish);
                    border-bottom: 1px solid var(--bggrish);
                    transition: max-height 0.3s ease, padding 0.3s ease;

                    &.active {
                        max-height: 1000px;
                        /* alto máximo suficiente */
                        padding: 20px;
                    }

                    .modulo-title {
                        font-weight: bold;
                        font-size: 1.5rem;
                        margin-bottom: 20px;
                        color: var(--griscorp);
                    }

                    .acordeon-panel ul {
                        margin: 0;
                        padding-left: 20px;
                    }

                    .acordeon-btn.active+.acordeon-panel {
                        display: block;
                    }
                }

            }

        }

    }












}






/* Contenedor general del formulario */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #fdfdfd;
    border: 1px solid #ddd;
    font-family: sans-serif;
    text-align: left;
}

/* Estilo para cada bloque de campo */
.wpcf7-form p {
    margin-bottom: 1.5rem;
}

/* Etiquetas (como "Nombre:") */
.wpcf7-form p>label,
.wpcf7-form p>strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

/* Inputs y textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Botón de envío */
.wpcf7-form input[type="submit"] {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #005e8c;
}

/* Contenedor del botón con spinner */
.wpcf7-submit-style {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

/* Spinner de envío */
.wpcf7-spinner {
    display: inline-block;
    margin-left: 10px;
}

/* Select container si lo usas */
.select_container {
    position: relative;
}

.select_container select {
    appearance: none;
    background: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 1rem center;
    background-color: #fff;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.select_container::after {
    content: '\e828';
    font-family: "fontello";
    display: block;
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 10px;
    width: 1em;
    height: 1em;
    line-height: 1em;
    text-align: center;
    margin-top: -0.5em;
    pointer-events: none;
    cursor: pointer;

    /* Responsive */
    @media (max-width: 480px) {
        .wpcf7-form {
            padding: 1rem;
        }

        .wpcf7-form input[type="submit"] {
            width: 100%;
        }
    }