
/*NUMERACIÓN DE TITULOS Y PARRAFOS*/

body{counter-reset: capitulo 11 seccion;}  /*inicia la numeracion del tema*/
/* version: 20260329a */
/* Elementos solo visibles al imprimir — ocultos en pantalla */
.print_cabecera { display: none; }

/********************* CONFIGURACIÓN DE LA IMPRESION DEL TEMA ******************************/

@media print {

    @page {
        size: 8.27in 11.69in;
        margin: 0.6cm 2cm 2cm 2cm;

        @top-left   { content: ""; }
        @top-center { content: ""; }
        @top-right  { content: ""; }

        @bottom-center {
            content: "webadministrativa.es";
            font-size: 11pt;
            color: #444;
        }
        @bottom-right {
            content: "Página " counter(page) " de " counter(pages);
            font-size: 8pt;
            color: #666;
        }
    }

    .print_cabecera { display: block; margin-top: 0; margin-bottom: 10px; }
    .print_seccion { font-size: 13pt; font-weight: normal; color: #555; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
    .print_titulo_tema { font-size: 18pt; font-weight: bold; color: black; margin-top: 4px; text-align: center; }

    #botonsubiralmenu  { display: none; }
    header             { display: none; }
    footer             { display: none; }
    #modal_overlay     { display: none; }
    .contenedor        { display: none; }
    #boton_ts          { padding-top: 0; }
    .ts_1_wrapper      { display: none; }
    .ts_1              { display: none !important; }

    .boton_ts h2 { visibility: hidden; height: 0; margin: 0; padding: 0; overflow: hidden; }

    h3 { page-break-before: auto; }
    p, li, h3, h4, h5 { page-break-inside: avoid; }
    h3, h4 { page-break-after: avoid; }

    .p { widows: 3; orphans: 3; }
    .lih3, .lih3cp, .lih3cpcl, .lih3cpclcp, .lih3cpclcpcl { widows: 3; orphans: 3; }
    .lih4, .lih4cp, .lih4cpcl, .lih4cpclcp                { widows: 3; orphans: 3; }
    .lih5, .lih5cp                                         { widows: 3; orphans: 3; }
    .img, .container, .ph3ej { break-inside: avoid-page; }
}

/********************* FIN IMPRESION DEL TEMA ******************************/

/*************** INICIO TRANSPARENCIAS — MODAL *********************/

#modal_overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
#modal_overlay.overlay_visible { opacity: 1; pointer-events: all; }

.contenedor { position: fixed; z-index: 1000; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.85); width: 96%; max-width: 1500px; height: 54vw; max-height: 90vh; opacity: 0; pointer-events: none; border-radius: 15px; overflow: hidden; box-shadow: 0px 16px 48px 0px rgba(0,0,0,0.8); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease; }
.contenedor_visible { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: all; }

.carruseles { height: 100%; width: 700%; display: flex; }
.transparencias { width: calc(100% / 7); height: 100%; }
.transparencias img { width: 100%; height: 100%; object-fit: contain; border-radius: 15px; padding: 2px; }

.btn-left { display: flex; position: absolute; top: 50%; left: 1%; background-color: transparent; border-radius: 50%; padding: 18px; cursor: pointer; transform: translate(0,-50%); transition: .5s ease; user-select: none; z-index: 1; background-repeat: no-repeat; background-position: center; background-size: 100%; -webkit-user-drag: none; background-image: url(../Imagenes/btn_left_azul.png); }
.btn-right { display: flex; position: absolute; top: 50%; right: 1%; background-color: transparent; border-radius: 50%; padding: 18px; cursor: pointer; transform: translate(0,-50%); transition: .5s ease; user-select: none; z-index: 1; background-repeat: no-repeat; background-position: center; background-size: 100%; -webkit-user-drag: none; background-image: url(../Imagenes/btn_right_azul.png); }
.btn-right:hover { background-image: url(../Imagenes/btn_right_seleccionado.png); }
.btn-left:hover  { background-image: url(../Imagenes/btn_left_seleccionado.png); }

.boton_ts { display: flex; align-items: center; }
.boton_ts_visible { padding-top: 50%; transition: .2s all linear; }

.ts_1_wrapper { display: none; } /* SIN DIAPOSITIVAS — cambiar a inline-block cuando estén listas */
.ts_1 { cursor: pointer; margin-left: 16px; -webkit-user-drag: none; height: 31px; width: 69px; margin-top: 10px; transition: transform 0.2s ease, filter 0.2s ease; }
.ts_1:hover { background-repeat: no-repeat; background-position: center; background-size: 69px; -webkit-user-drag: none; background-image: url(../Imagenes/botonproyectorwing2.png); transform: scale(1.07) translateY(-3px); filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }

/****************** FIN TRANSPARENCIAS ********************/



.lih3cpejtit {
    
    /*left: 50%;*/
    /*transform: translate(-50%);*/
    text-align: center;
    font-style: italic;
    font-size: small;
    margin-bottom: 10px;
    
}

/* 
.esquemasegundasentregasedificaciones {

    background-image: url(../Imagenes/segundasentregasedificaciones.png);
    background-position: 0px 0px;
    background-size: contain;
    background-repeat: no-repeat;
    height: 2500px;
    width: auto;
    
    border-radius: 20px;
    display: none;
}

.esquemasegundasentregasedificaciones_visible {
    
    border:1px solid black; 
    display: block;
    
} */

.ph3imgbalance{
    /*margin-left: 4%; /*movemos el parrafo izquierda*/
    margin-top: 2%;
    max-width: 1000px; /*crea un contenedor donde estará la imagen*/
    /*max-height: 500px; /*crea un contenedor donde estará la imagen*/
    border: #34495e 1px solid;
    background-color: aliceblue;
    padding: 10px;
    border-radius:  15px;
    
    width: 95%;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    z-index: -1;
    

}

.ph3imgformulas{

    /*margin-left: 4%; /*movemos el parrafo izquierda*/
    margin-top: 2%;
    margin-bottom: 2%;
    max-width: 360px; /*crea un contenedor donde estará la imagen*/
    /*max-height: 500px; /*crea un contenedor donde estará la imagen*/
    border: #34495e 1px solid;
    background-color: white;
    padding: 20px;
    border-radius:  15px;
    
    width: 75%;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    z-index: 1;
    

}


/* 
.ph3imgsegundas:hover 
    {
    transform: scale(1.5, 1.5);
    translate: -50%;
    z-index: 0;
    position: relative;
    }  */


.ph3imgmodelosiva{
    /*margin-left: 4%; /*movemos el parrafo izquierda*/
    margin-top: 2%;
    border: solid black 1px;
    /*background-color: aliceblue;*/
    /*padding: 10px;*/
    border-radius:  15px;
    width: 70%;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    

}

.ulh3{padding-left: 19px;}
.lih4{padding-left: 19px;}

/* ================= TABLAS DE BALANCE ================= */

.balance-table {
    border-collapse: collapse;
    margin: 20px auto;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 0.95rem;
    min-width: 320px;
    max-width: 700px;
    width: 80%;
    border: 2px solid #222;
    table-layout: fixed;
}

/* Fila principal: ACTIVO / PASIVO */
.balance-table thead tr:first-child th {
    background-color: #d4e6f1;
    color: #1a252f;
    padding: 10px 14px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid #222;
}

/* Subfila: Titulo / Importe */
.balance-table thead tr:nth-child(2) th {
    background-color: #eaf2f8;
    color: #2c3e50;
    padding: 4px 14px;
    text-align: center;
    font-weight: normal;
    font-size: 0.82rem;
    font-style: italic;
    border: 1px solid #999;
    border-bottom: 2px solid #222;
}

/* Borde grueso vertical entre bloque ACTIVO y PASIVO */
.balance-table thead tr:first-child th:first-child {
    border-right: 2px solid #222;
}
.balance-table thead tr:nth-child(2) th:nth-child(2) {
    border-right: 2px solid #222;
}
.balance-table tbody td:nth-child(2) {
    border-right: 2px solid #222;
}

.balance-table tbody td {
    padding: 5px 14px;
    border: 1px solid #999;
    background-color: #fff;
    vertical-align: middle;
}

.balance-table--small tbody td {
    text-align: center;
}

.balance-table tbody td.importe {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.balance-table .fila-total td {
    font-weight: bold;
    border-top: 2px solid #222;
    background-color: #eaf2f8;
}

/* Variante pequena (formato/resumen sin Titulo/Importe, 2 columnas) */
.balance-table--small {
    max-width: 500px;
    width: 60%;
}
.balance-table--small tbody td:nth-child(1) {
    border-right: 2px solid #222;
}
.balance-table--small tbody td:nth-child(2) {
    border-right: 1px solid #999;
}
.balance-table--small thead tr:first-child th:first-child {
    border-right: 2px solid #222;
}

/* Variante resumen (solo 2 columnas: Activo o Pasivo) */
.balance-table--resumen {
    max-width: 350px;
    width: 45%;
}
.balance-table--resumen tbody td:nth-child(2) {
    border-right: 1px solid #999;
}

/* Anotaciones con flechas debajo de cada tabla */
.balance-anotacion {
    margin: 10px auto 25px auto;
    max-width: 700px;
    width: 80%;
    padding: 12px 20px;
    background-color: #eaf2f8;
    border-left: 5px solid #1abc9c;
    border-radius: 0 8px 8px 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 2;
    text-align: center;
}

.balance-anotacion p {
    margin: 2px 0;
}

.balance-anotacion .balance-explicacion {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 6px;
}

.flecha-up { color: #27ae60; font-weight: bold; }
.flecha-down { color: #e74c3c; font-weight: bold; }

/* Colores en celdas de tabla: subida verde, bajada roja */
i.val-up { color: #27ae60; }
i.val-down { color: #e74c3c; }

/* Formulas centradas con recuadro */
.balance-formula {
    text-align: center;
    font-size: 1.1rem;
    padding: 10px 20px;
    margin: 15px auto;
    max-width: 600px;
    border: 2px solid #2c3e50;
    background-color: #fff;
    border-radius: 6px;
}

/* Tabla partida doble */
.balance-table--partida-doble {
    max-width: 900px;
    width: 95%;
    font-size: 0.82rem;
}

.balance-table--partida-doble td,
.balance-table--partida-doble th {
    text-align: center;
    padding: 6px 8px;
}

.balance-table--partida-doble .celda-activa {
    background-color: #fafafa;
}

.balance-table--partida-doble .celda-cruzada {
    background: repeating-linear-gradient(
        45deg,
        #e8e8e8,
        #e8e8e8 4px,
        #d5d5d5 4px,
        #d5d5d5 8px
    );
}

/* ====== BALANCE CARD (Balance Inicial / Final) ====== */

.balance-card {
    margin: 30px auto;
    max-width: 750px;
    width: 85%;
    background: #fff;
    border: 2px solid #2c3e50;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.balance-card-titulo {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    text-align: center;
    padding: 14px 20px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 3px solid #1abc9c;
}

.balance-table--formal {
    border: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
}

.balance-table--formal thead tr:first-child th {
    background-color: #eaf2f8;
    color: #2c3e50;
    border-top: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    letter-spacing: 2px;
    padding: 12px 14px;
}

.balance-table--formal thead tr:nth-child(2) th {
    background-color: #f7fafc;
    color: #5a6c7d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.8rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

.balance-table--formal tbody td {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-color: #dce4ec;
}

.balance-table--formal .fila-total td {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.05rem;
    border-top: 3px double #2c3e50;
    border-bottom: none;
    background-color: #f0f4f8;
    padding: 10px 16px;
}

/* ====== FIN BALANCE CARD ====== */

/* Subtexto debajo de tabla (sin borde, dos columnas, mismo ancho que tabla) */
.balance-subtexto {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: -2px auto 20px auto;
    max-width: 500px;
    width: 60%;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 0.92rem;
    text-align: center;
}
.balance-subtexto div {
    width: 50%;
    padding: 8px 14px;
}

/* Tabla apartados del ejercicio — celdas vacías sin borde */
.balance-table--apartados {
    max-width: 500px;
    width: 60%;
}
.balance-table--apartados tbody td:empty {
    border: none;
    background: transparent;
}
.balance-table--apartados tbody td:first-child {
    background-color: #eaf2f8;
    text-align: center;
}
.balance-table--apartados tbody td:nth-child(2) {
    border-right: 1px solid #999;
}

/* Matrices de clasificacion hechos contables */
.balance-table--hechos {
    max-width: 620px;
    width: 80%;
    font-size: 0.82rem;
    border: none;
}
.balance-table--hechos td,
.balance-table--hechos th {
    text-align: center;
    padding: 8px 10px;
    vertical-align: middle;
    border: 1px solid #333 !important;
}
.balance-table--hechos thead tr:first-child th {
    background-color: #fff;
    font-size: 0.95rem;
}
.balance-table--hechos thead tr:nth-child(2) th {
    background-color: #fff;
    font-size: 0.80rem;
}
.balance-table--hechos tbody td {
    background-color: #fff;
}
.balance-table--hechos tbody td:nth-child(1) {
    background-color: #fff;
    font-size: 0.80rem;
    font-weight: bold;
    width: 12%;
}
.balance-table--hechos tbody td:nth-child(2) {
    background-color: #fff;
    font-size: 0.78rem;
    text-align: left;
    width: 18%;
}
.balance-table--hechos thead th[colspan="2"]:empty {
    background: transparent !important;
    border: none !important;
}
.balance-table--hechos .celda-check {
    font-size: 1.1rem;
    color: #222;
}
.balance-table--hechos tbody td.celda-permutativa {
    background-color: #e8899e;
}
.balance-table--hechos tbody td.celda-modificativa {
    background-color: #e06530;
}

/* ================= FIN TABLAS DE BALANCE ================= */


.ulh3c

{
    padding-left: 22px; /*movemos el parrafo izquierda*/
    list-style: disc; /*les pone una bolita al principio*/
    /*color: red;*/
    font-style:normal;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 1.15rem;
    text-align: justify;
    line-height: 30px; /*espacio interlineado*/
    /*border: 3px solid red;*/
    background-color: aliceblue;
    border: solid 0.5px black;
    border-radius: 25px;
    padding: 11px;
    margin-left: 15px;
    margin-top: 15px;
    

}

/* .lih3cpej {background-color: white;} */
.lih3cpclej {background-color: white;}
.lih3cpclcpej{background-color: white;}
.ph3imgtarifas{background-color:white;border: solid 0.5px black;}
.ph3img{background-color: white;}



.objeto_oculto{display: none;}
.objeto_visible {display: block;}

@media  (max-width: 1024px){

    .ph3imgsegundas:hover 
    {
    transform: initial;
    }

   
}

@media  (max-width: 767px){

    
    
}
@media  (max-width: 500px){
    .ulh3c

    {
    
    
    padding: 11px;
    margin-left: 15px;
    margin-top: 15px;
    
    }
    
}