@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* ================================================================
   tau.css
   Estilos globales del módulo TAU (usados en múltiples páginas).
   Los estilos específicos de VisorUnTau están en tau-visor.css.
   ================================================================ */


/* ── ELEMENTO img global ─────────────────────────────────────── */

img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* ── BARRA DE NAVEGACIÓN SUPERIOR ───────────────────────────── */

.MiTop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 3em;
    background-color: #98c1d9;
    border-radius: 0 0 15px 15px;
}

.MiTopApp {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 3em;
    background-color: #50007d;
    border-radius: 0 0 15px 15px;
    color: white;
}


/* ── BOTONES GLOBALES ────────────────────────────────────────── */

.MiBoton {
    padding: 0 5px 5px;
    border: none;
    color: white;
    background-color: transparent;
    width: 110px;
}

    .MiBoton:hover {
        color: white;
        background-color: #98c1d9;
        border-radius: 2px;
    }

.MiBoton1 {
    padding: 0 5px 5px;
    border: none;
    color: white;
    background-color: transparent;
    width: 50px;
}

    .MiBoton1:hover {
        color: white;
        background-color: #98c1d9;
        border-radius: 2px;
    }

/* Botón Syncfusion personalizado */
.e-custom {
    border: none;
    border-radius: 5px;
    height: 30px;
    width: 100%;
    font-weight: bold;
}

    .e-custom:enabled  { background-color: #98c1d9; color: #fff; }
    .e-custom:hover    { background-color: #3d5a80; }
    .e-custom:disabled { background-color: #ccc; cursor: wait; color: #fff; }


/* ── TARJETAS DE LISTA DE TAUS ───────────────────────────────── */

.TituloMisTaus {
    font-size: 1.7em;
    font-weight: bold;
    border-radius: 15px 15px 0 0;
    height: 1.8em;
    background-color: #ee6c4d;
    margin: 5px 5px 0;
    color: white;
    text-align: center;
    padding-top: .2em;
}

.CodigoTAU {
    font-weight: bold;
    text-align: center;
    width: 70px;
    display: grid;
    justify-items: start;
    align-items: end;
}

.NuevoTituloTau {
    font-size: 1em;
    text-align: center;
    font-weight: bold;
    padding-left: 1em;
}

.SubtituloOpcional {
    font-size: 24px;
    text-align: center;
    padding-bottom: 10px;
}

.CodigoTauTarjeta {
    color: gray;
    font-size: 1.1em;
    margin: 10px 5px 0 0;
    font-weight: bold;
}

.TituloTauTarjeta {
    color: #ee6c4d;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 5px 5px;
    text-overflow: ellipsis;
}

.Materia {
    background-color: lightgray;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    border-radius: 5px;
}


/* ── FIN DEL TAU ─────────────────────────────────────────────── */

.PreguntaFinalDelTau {
    font-size: 1.1em;
    margin-right: 52px;
    font-weight: 400;
    padding: 5px;
}

.FilaPreguntaFinalDelTau {
    border-radius: 5px;
    background-color: lightgrey;
    margin-right: 52px;
    padding: 8px;
    align-content: center;
}


/* ── ESTILOS DE TEXTO DEL TAU (formatos editoriales) ────────── */

.Dialogo {
    font-style: normal;
    font-size: 18px;
    font-weight: normal;
    padding-left: 30px;
    padding-right: 100px;
}

.Recuadro {
    font-style: italic;
    border: 1px solid lightgray;
    font-size: 16px;
    margin: 0 100px 0 50px;
    padding: 10px;
}

.Referencias {
    text-align: center;
    font-size: 12px;
}

.Figura {
    text-align: center;
    font-size: 14px;
}

.Barra {
    padding: 15px;
    background-color: lightgray;
    text-align: center;
    font-size: 28px;
}

.Pregunta {
    font-size: 14px;
}

.Respuesta {
    font-size: 18px;
    background-color: #f2f2f2;
}

.Comentario {
    font-size: 18px;
    color: black;
    font-weight: normal;
    font-style: italic;
    padding-left: 125px;
    padding-right: 100px;
    margin-top: -20px;
}


/* ── ESTILOS DEL VISOR DE UNA PREGUNTA ──────────────────────── */

#MarcoPregunta { margin: 0 20px 80px 0; }

#pregunta {
    min-height: 90px;
    display: grid;
    width: 91%;
    grid-template-areas:
        "textoPregunta barraDerecha"
        "filaRespuesta filaRespuesta";
    grid-template-rows: auto 10px;
    grid-template-columns: auto 100px;
    border-radius: 5px;
    background-color: white;
    font-size: 18px;
    margin: 0 0 40px 80px;
}

    #pregunta > #textoPregunta {
        background-color: white;
        border-radius: 5px;
        margin: 10px 10px 5px 20px;
        grid-area: textoPregunta;
    }

    #pregunta > #barraDerecha {
        border-left: 1px solid lightgray;
        grid-area: barraDerecha;
    }

#numeroPregunta {
    display: grid;
    background-color: #98c1d9;
    border-radius: 0 5px 0 0;
    height: 30px;
    justify-content: center;
    align-content: center;
    grid-area: barraDerecha;
    color: white;
}

#filaRespuesta {
    grid-column: 1 / 3;
}

    #filaRespuesta > #zonaRespuesta {
        grid-area: filaRespuesta;
        display: grid;
        align-content: center;
        background-color: #6E98AF;
        min-height: 30px;
        padding: 0 100px 0 20px;
        border-radius: 0 0 5px 5px;
        font-style: italic;
        font-weight: 600;
        color: white;
    }

#iconosPregunta {
    padding: 5px;
    display: grid;
    justify-content: center;
}


/* ── OPCIONES DE SELECCIÓN MÚLTIPLE ─────────────────────────── */

.EstiloOpcionOK {
    background-color: #f2f2f2;
    border-radius: 5px;
    padding: 0 5px 3px;
}

.e-label { line-height: 1.2; }


/* ── IMÁGENES ────────────────────────────────────────────────── */

.imagenPequena {
    width: 3%;
    height: auto;
}

.imagenT {
    display: flex;
    justify-content: center;
    margin-right: 52px;
}

.imagenVariasImagenes {
    display: flex;
    justify-content: center;
    max-width: 70%;
}

img.imagen2 { width: 40em; height: auto; }

img.imagen3 { margin: 2px; width: 3vw; height: auto; }

.grow {
    transition: all .2s ease-in-out;
    z-index: 10000;
}
    .grow:hover { transform: scale(1.5); }

.marcoImagenIzquierda {
    margin: 0 0 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    visibility: hidden;
}

.marcoImagenDerecha {
    margin: 0 0 10px;
    position: fixed;
    bottom: 0;
    right: 10px;
    padding-right: 3px;
    text-align: right;
}
    .marcoImagenDerecha:hover { cursor: pointer; }

.imagenIzq {
    padding: 10px;
    width: 12em;
    height: auto;
    background-color: white;
    border-radius: 10px;
}

.imagenDer {
    padding: 13px;
    width: 12em;
    height: auto;
    background-color: white;
    border-radius: 10px;
}

/* Imágenes formato horizontal */
.wrapperHorizontal {
    display: grid;
    grid-template-columns: 2px 2fr 2px;
    grid-template-rows: 0 3fr 3fr 0;
    gap: 5px;
    height: 600px;
}

.ImagenUnoHorizontal {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    max-height: 300px;
    width: 95%;
    place-items: center;
}
    .ImagenUnoHorizontal > img { object-fit: contain; width: 95%; max-width: 790px; max-height: 300px; }

.ImagenDosHorizontal {
    display: grid;
    grid-column: 2;
    grid-row: 3;
    max-height: 300px;
    max-width: 790px;
    place-items: center;
}
    .ImagenDosHorizontal > img { object-fit: contain; width: 95%; max-height: 300px; max-width: 790px; height: auto; }

/* Imágenes formato vertical */
.wrapperVertical {
    display: grid;
    grid-template-columns: 20px 2fr 2fr 20px;
    grid-template-rows: 20px 10fr 40px;
    gap: 10px;
}

.ImagenUnoVertical {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    max-height: 300px;
}
    .ImagenUnoVertical > img { object-fit: contain; }

.ImagenDosVertical {
    display: grid;
    grid-column: 3;
    grid-row: 2;
    max-height: 300px;
}
    .ImagenDosVertical > img { object-fit: contain; }

/* Contenedor de imágenes en preguntas */
.contenedor-imagenes {
    height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
}

    .contenedor-imagenes img {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,.08);
        margin: 1px;
        display: block;
        box-sizing: border-box;
    }

    .contenedor-imagenes.horizontal { justify-content: center; }
    .contenedor-imagenes.horizontal img { width: 99%; height: auto; max-height: 100%; max-width: 100%; }

    .contenedor-imagenes.vertical-imagen img { height: 99%; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

.ImagenCamara { width: 320px; height: auto; }

.rectanguloFoto {
    display: flex;
    align-self: center;
    justify-content: center;
}
    .rectanguloFoto > img { width: 90%; max-width: 100vw; object-fit: contain; height: auto; }


/* ── CARGADOR DE IMÁGENES ────────────────────────────────────── */

.contenedorCargaImagenes {
    display: grid;
    grid-template-rows: 47px 1fr 47px;
    gap: 5px;
    border: 1px solid gray;
    width: auto;
    height: 66vh;
}

.filaEncabezadoBotones {
    display: flex;
    gap: 6px;
    background-color: lightgray;
    align-items: center;
    justify-content: end;
    min-height: 47px;
    max-height: 47px;
    padding: 2px 10px 2px 0;
}

.filaBotonesOKCancel {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 6px;
    background-color: lightgray;
    padding: 4px 10px;
    min-height: 47px;
    max-height: 47px;
}

.filaBotonesOKCancelDibujo {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 6px;
    padding: 4px 0;
    min-height: 47px;
    max-height: 47px;
}

.franajsSuperiorBotones {
    display: grid;
    grid-column: 2;
    grid-row: 2;
    border: 1px solid gray;
    padding: 10px;
    max-height: 300px;
}


/* ── SENTIMIENTO / CALIFICACIÓN ──────────────────────────────── */

.emo {
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
}
    .emo:hover  { background-color: lightgray; }
    .emo:active { background-color: gray; transform: translateY(2px); }

.emoSelected {
    background-color: #f8f9fa;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}


/* ── MISC ────────────────────────────────────────────────────── */

.LinkMapa { text-decoration: underline; color: blue; cursor: pointer; }

.watermarked { background-image: url('/images/SistemaFontan.jpg'); position: relative; }

.BotonLlave {
    height: 80px;
    border-radius: 10px;
    border-bottom: 1px solid lightgray;
    margin: 2px;
}
    .BotonLlave:hover { background-color: lightgray; cursor: pointer; }

.BotonLlaveCandado {
    width: 80%;
    height: auto;
    border-radius: 5px;
    border-color: lightgray;
    margin: 10px 2px 2px;
    padding: 3px;
}
    .BotonLlaveCandado:hover { cursor: pointer; background-color: #f5f5f5; }

.imgMano { width: 25%; height: auto; border-radius: 5px; }
    .imgMano:hover { background-color: lightgray; }

.centrarVerticalyHorizontal { display: grid; place-items: center; }

.botonesDialogo { display: flex; justify-content: flex-end; }

.botonDialogo { margin: 3px; }

.doscolumnas { display: grid; grid-template-columns: 2fr 2fr; justify-items: center; align-items: center; }

.LetrasSymbol { font-family: Symbol; }

.multiline { margin: 5px; width: 540px; height: auto; }

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

svg { vertical-align: top; }

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow-y: scroll; }

meter { width: 100%; height: 2em; }

a {
    font-family: 'Segoe UI','Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    padding: 3px;
    border-radius: 2px;
    font-size: 14px;
}
    a:hover { background-color: lightgray; }

#right {
    float: left;
    overflow-y: scroll;
    width: 25%;
    text-align: center;
}

.custom-dialog .e-dlg-content { margin: 0; }


/* ── OVERRIDES SYNCFUSION GLOBALES ───────────────────────────── */

.e-dialog {
    font-family: 'Segoe UI';
    border-radius: 10px;
    min-height: 300px !important;
}

    .e-dialog .e-dlg-header { font-size: 20px; font-weight: bold; }

    .e-dialog .e-dlg-header-content {
        padding: 10px;
        border-radius: 0;
        line-height: 1.25;
        width: inherit;
    }

    .e-dialog .e-dlg-content {
        padding: 20px;
        font-weight: normal;
        line-height: normal;
    }

    .e-dialog .e-dlg-header-content + .e-dlg-content { color: black; background-color: white; }

.e-dlg-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.e-dlg-container > .e-dialog { max-height: 100% !important; }

.e-btn.e-link, .e-css.e-btn.e-link { color: white; }

.e-btn .e-btn-icon.e-icon-left, .e-css.e-btn .e-btn-icon.e-icon-left { color: white; }

.e-btn.e-flat, .e-css.e-btn.e-flat {
    background-color: transparent;
    border-color: transparent;
    color: black;
    width: 85px;
}
    .e-btn.e-flat:disabled, .e-css.e-btn.e-flat:disabled {
        background-color: transparent;
        border-color: transparent;
        color: black;
    }

.e-btn.e-outline.e-primary, .e-css.e-btn.e-outline.e-primary { color: white; }

.e-outline, .e-outline2, .e-outline-1 { border: none; }

.e-checkbox-wrapper .e-label { font-size: 16px; }

.e-checkicon.e-checkbox-wrapper .e-frame.e-check::before { content: '\e7a5'; }

.e-checkicon.e-checkbox-wrapper .e-check { font-size: 12px; }

.e-checkicon.e-checkbox-wrapper .e-frame.e-check,
.e-checkicon.e-checkbox-wrapper:hover .e-frame.e-check {
    background-color: white;
    border-color: grey;
    color: grey;
}

.e-checkbox-wrapper .e-check::before,
.e-css.e-checkbox-wrapper .e-check::before { content: '\e7a5'; }

.e-card {
    position: relative;
    margin-top: 10px;
    overflow: visible;
    border-radius: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23);
    transition: 0.2s;
    border-width: 1px;
    padding: 1px;
}

    .e-card .e-card-content { padding-top: 5px; height: auto; }

    .e-card .e-card-header .e-card-header-caption .e-card-header-title {
        font-size: 20px;
        font-family: Helvetica, 'Segoe UI';
        font-weight: bold;
        color: gray;
    }

    .e-card .e-card-header .e-card-header-caption .e-card-sub-title { padding-top: 5px; }

/* Icones Syncfusion */
.e-icons.e-play:before  { content: '\e728'; }
.e-play-icon::before    { content: '\e728'; }
.e-pause-icon::before   { content: '\e7c1'; }
.e-play::before         { content: '\e7c1'; }
.e-pause::before        { content: '\e757'; }
.e-menu::before         { content: '\e7cd'; }

/* Toast */
.e-toast-container .e-toast .e-toast-message .e-toast-title { color: white; font-size: 18px; font-weight: bold; }
.e-toast-container .e-toast .e-toast-message .e-toast-content { color: white; font-size: 13px; }
.e-toast-container .e-toast { background-color: lightgray; }

/* Control file uploader */
.control-wrapper { margin: 0 auto; }

/* Spinner */
.spinner-border {
    background-image: url('images/fondo-inicio.png');
    background-size: cover;
    color: white;
}
