#cuento-app {
    max-width: 600px;
    margin: 0px auto;
    padding: 20px;
    color: #000000;
}

#intro-form input {
    padding: 10px;
    width: 80%;
    margin-bottom: 10px;
}

#intro-form {
    text-align: center;
}

#intro-form button {
    display: block;
    margin: 0px auto 0;
    width: 100%;
    max-width: 300px;
    padding: 5px 0px;
    color: #ffdabb;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background-image: url(https://cdn.alhambra.com.ai/General/Cuentos/Fondos/boton.jpg);
}

#cuento-interactivo button,
#boton-volumen {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    text-align: center;
    background-color: var(--color-grey-500);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#boton-volumen {
    position: relative;
}

#control-volumen {
    position: absolute;
    bottom: -35px;
    left: 0;
    width: 100%;
    display: none;
    z-index: 10;
}


#cuento-app {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

#intro-form {
    text-align: center;
}


.input[type='checkbox'], input[type='radio'] {
    border-color: var(--color-primary) !important;
}



.dark .input, .dark input:not([type='range']):not([type='button']):not([type='submit']):not([type='reset']):not([type='checkbox']):not([type='radio']), .dark select, .dark textarea, .dark .button-primary, .dark input[type="checkbox"], .dark input[type="radio"] {
    border-color: var(--color-primary) !important;
}


.button, .input, button, input, select, textarea {
    border-color: var(--color-primary) !important;
}



#opciones button,
#boton-volumen {
    font-family: 'Poppins', sans-serif !important;
    text-align: center;
    width: 100%;
}



.boton-accion {
    background-color: var(--color-grey-500);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.archive-header, .archive-content, .archive-footer, .site-main > .comments-area, .site-main > .entry > .entry-header-container, .site-main > .entry > .entry-header, .site-main > .entry > .entry-summary, .site-main > .entry > .entry-footer, .site-main > .entry > .post-thumbnail, .site-main > .entry > .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    margin-bottom: -1em !important;
}


.container, .container-wrap .wp-block-cover__inner-container, .container-wrap .wp-block-group__inner-container, .navigation, .page-header, .page-content, .archive-header, .archive-content, .archive-footer, .site-main > .comments-area, .site-main > .entry > .entry-header-container, .site-main > .entry > .entry-header, .site-main > .entry > .entry-summary, .site-main > .entry > .entry-footer, .site-main > .entry > .post-thumbnail, .site-main > .entry > .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    width: calc(100% - var(--x-gap)* 0) !important;
    max-width: var(--content-width);
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

#cuento-fondo {
    position: relative;
    width: 100%;
    min-height: 90vh;
    z-index: 1;
}

#cuento-fondo::before {
    content: "";
    position: fixed; /* Esto hace que la imagen quede estática */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('https://cdn.alhambra.com.ai/General/Cuentos/Fondos/bg03-f4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}


#intro-form input {
    color: #000000;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}


.dark .input, .dark input:not([type='range']):not([type='button']):not([type='submit']):not([type='reset']):not([type='checkbox']):not([type='radio']), .dark select, .dark textarea, .dark .button-primary, .dark input[type="checkbox"], .dark input[type="radio"] {
    border-color: #8d4000 !important;
    color: #8d4000 !important;
}



#opciones button, #boton-volumen {
    background-image: url(https://cdn.alhambra.com.ai/General/Cuentos/Botones/bg-boton2.jpg);
    color: #ffdabb !important;
}

#intro-form input::placeholder {
    color: #5c2b03;
    opacity: 1; /* importante para que el color se aplique completamente en algunos navegadores */
}


.button, .input, button, input, select, textarea {
    border: 1px solid var(--color-border);
    background-color: #ffffff00 !important;
}



.input, button.btn-toggle-pwd, input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="date"], select, textarea {
    border-color: #8d4000 !important;
    color: #8d4000 !important;
}



#cuento-app h3 {
    margin: 0px 0em 0 auto;
}



#cuento-app h2 {
    font-size: 26px !important;
}


.loader-contenido {
    font-size: 18px;
    color: #fff;
    background-color: #642e01;
    padding: 30px 50px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    animation: parpadeo 1s infinite alternate;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes parpadeo {
    from { opacity: 1; }
    to { opacity: 0.6; }
}


#loader-cuento {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10000;
}


.loader-imagen img {
    max-width: 350px;
    max-height: 350px;
    animation: ondaDesvanecer 4s infinite ease-in-out;
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 25%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.8) 75%,
        rgba(0, 0, 0, 1) 100%
    );
    -webkit-mask-size: 100% 300%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 0% 0%;
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 25%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.8) 75%,
        rgba(0, 0, 0, 1) 100%
    );
    mask-size: 100% 300%;
    mask-repeat: no-repeat;
    mask-position: 0% 0%;
}

@keyframes ondaDesvanecer {
    0% {
        -webkit-mask-position: 0% 0%;
        mask-position: 0% 0%;
    }
    50% {
        -webkit-mask-position: 0% 100%;
        mask-position: 0% 100%;
    }
    100% {
        -webkit-mask-position: 0% 0%;
        mask-position: 0% 0%;
    }
}





#cuento-app {
    position: relative;
}


#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Oscurece todo */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


/* Ocultar el checkbox original */
input.checkbox-imagen {
    display: none !important;
}

/* Estilo visual del label con imagen */
.label-checkbox-imagen {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #3d1c01;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Imagen del checkbox personalizado */
.label-checkbox-imagen img {
    width: 30px;
    height: auto;
    transition: transform 0.2s ease;
}

/* Cuando el checkbox está seleccionado, resalta la imagen */
input.checkbox-imagen:checked + .label-checkbox-imagen img {
    filter: none;
    transform: scale(1.1);
}


.opcion-interactiva {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    padding: 15px;
    border: 2px solid #8B4513;
    border-radius: 10px;
    background: #8c66474a;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: #3d1c01 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.opcion-interactiva:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4);
    background: #fdfdfd54;
}


.drop-cap::first-letter {
    float: left;
    font-size: 3em;
    line-height: 1;
    padding-right: 8px;
    font-weight: bold;
    color: #5a2d0c;
    font-family: 'Cinzel', serif;
}



p {
    margin-bottom: 0.8rem !important;
}



#historia p {
    text-align: justify;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}



#mensaje-creando-cuento {
    color: #3d1c01 !important; /* Marrón oscuro */
    font-weight: 600;
}



.maquina-escribir-activa {
    background-color: rgba(230, 211, 193, 0.4); /* Marrón claro con transparencia */
    transition: background-color 0.3s ease;
    border-radius: 12px;
}


#contenido-post-cuento {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}



#opciones.fade-in {
    animation: fadeInOpciones 1s ease-in forwards;
}

@keyframes fadeInOpciones {
    from { opacity: 0; }
    to { opacity: 1; }
}



.maquina-escribir-activa {
    background-color: rgba(230, 211, 193, 0.4); /* Marrón claro con transparencia */
    transition: background-color 0.3s ease;
    border-radius: 12px;
}



.maquina-escribir {
    min-height: 5em; /* reserva espacio suficiente para al menos 3-4 líneas */
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1.6;
    position: relative;
}



.letra-activa {
    animation: iluminarLetra 0.2s ease-in-out;
    background-color: rgba(255, 235, 200, 0.8);
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

@keyframes iluminarLetra {
    0% {
        background-color: rgba(255, 235, 200, 1);
        transform: scale(1.05);
    }
    100% {
        background-color: rgba(255, 235, 200, 0);
        transform: scale(1);
    }
}








select#categoria-selector {
  background-color: #F9C59D !important;
  font-family: 'Crimson Pro', serif;
    font-size: 18px;
    color: #4a2b15;
    max-width: 400px;
    line-height: 1.5;
}

select#categoria-selector option {
  background-color: #f9c59d5e; /* Fondo del desplegable */
  font-family: 'Crimson Pro', serif;
    font-size: 18px;
    color: #4a2b15;
    margin: 0 auto 30px;
    max-width: 400px;
    line-height: 1.5;

}




#control-volumen {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #deb887, #f5deb3); /* tono madera clara */
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease-in-out;
    cursor: pointer;
}

/* Track para WebKit (Chrome, Safari) */
#control-volumen::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(to right, #deb887, #f5deb3);
    border-radius: 5px;
}

/* Pulgar (thumb) para WebKit */
#control-volumen::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #5a2e0c; /* marrón oscuro */
    border-radius: 50%;
    border: 2px solid #d2b48c;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
    margin-top: -4px; /* centra el pulgar */
}

/* Track para Firefox */
#control-volumen::-moz-range-track {
    height: 8px;
    background: linear-gradient(to right, #deb887, #f5deb3);
    border-radius: 5px;
}

/* Pulgar para Firefox */
#control-volumen::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #5a2e0c;
    border: 2px solid #d2b48c;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
    cursor: pointer;
}










@font-face {
    font-family: 'ManchesterSignature';
    src: url('" . plugin_dir_url(__FILE__) . "firma/Manchester Signature.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}





#fadein-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000; /* o blanco: #fff */
    z-index: 99999;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

#fadein-overlay.oculto {
    opacity: 0;
}
