/* =========================================
   1. RESET BÁSICO (Para la nueva cabecera)
   ========================================= */
body {
    margin: 0; /* Quita los márgenes por defecto para que la cabecera sea de extremo a extremo */
    padding: 0;
}

#logo {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 5em;
  background: #498b2a;
}
#img-logo {
  margin-left: 3em;
  height: 4.5em;
}

/* =========================================
   2. ESTILOS DE LA LISTA DE CONVOCATORIAS
   ========================================= */
.bt {
    color: black !important;
    background-color: lightgrey;
    cursor: pointer;
    padding: 15px 8px;
    border: solid 1px white;
    margin-bottom: 1em;
    list-style-type: none;

    position: relative;
    overflow: hidden;   
    z-index: 1;         
}

.bt:hover {
    color: white !important;
    background-color: grey;
}

.bt::after {
    position: absolute;
    right: 5%; 
    top: 50%;
    transform: translateY(-50%) rotate(-5deg);
    font-size: 3.5em;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1; 
    white-space: nowrap;
}

/* =========================================
   3. ESTADOS DE LAS CONVOCATORIAS (Borrador/Activa/Finalizada)
   ========================================= */
.bt.pub-finalizada {
    border-left: 8px solid #F44336 !important;
    background-color: #ffebee !important; 
    color: #b71c1c !important; 
}
.bt.pub-activa {
    border-left: 8px solid #4CAF50 !important;
    background-color: #e8f5e9 !important;
    color: #111 !important;
}
.bt.pub-borrador {
    border-left: 8px solid #FF9800 !important;
    background-color: #fff3e0 !important;
    color: #555 !important;
}
.bt.pub-finalizada:hover { background-color: #ffcdd2 !important; }
.bt.pub-borrador:hover { background-color: #ffe0b2 !important; }
.bt.pub-activa:hover { background-color: #c8e6c9 !important; }

.bt.pub-borrador::after { content: "BORRADOR"; color: #FF9800; }
.bt.pub-finalizada::after { content: "FINALIZADA"; color: #F44336; }
.bt.pub-activa::after { content: "ACTIVA"; color: #4CAF50; }

/* =========================================
   4. ESTILOS INTERNOS DE TEXTO / DOCUMENTOS
   ========================================= */
.ch {
    border: solid 1px black;
    border-radius: 8px;
    margin-right: 1em;
    text-align: justify;
}
/* Cambiamos las clases .h1, .h2 a clases normales para no pisar las etiquetas de cabecera html */
.estilo-h1 {
    color: red;
    font-size: large;
    border: solid 1px black;
    border-radius: 16px;
    width: 100%;
    padding: 8px;
    background-color: whitesmoke;
}
.estilo-h2 { color: green; }
.estilo-h3, .pt { color: blueviolet; }

.ng { font-weight: bold; }
.ct { text-align: center; }
.iz { text-align: left; }
.dr { text-align: right; }
.tp {
    color: blue; 
    border: solid 2px blue;
    text-align: justify;
}
.tm {
    color: green; 
    text-align: justify;
    font-size: 80%;
    font-style: italic;
}
.ch, .pf { text-align: justify; }
.pt {
    color: blue;
    border: dotted 1px blue;
}