html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}


body {
    font-family: Arial, sans-serif;
    background-color: #F5F7F8;
    background-image: url('../img/fondo.jpg');
    margin: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #45474B;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dark-mode {
    background-color: #121212;
    background-image: url('../img/fondo2.png');
    color: #EAEAEA;
}

body.dark-mode .contenedor {
    background-color: rgba(20, 20, 20, 0.92);
    border: 1px solid #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #F1F1F1;
}

.titulo-incidencia {
    color: #405c53;
    font-weight: bold;
}

body.dark-mode .titulo-incidencia {
    color: #F1F1F1;
}

.titol-principal {
  color: #6c757d;
}

body.dark-mode .titol-principal {
  color: #f1f1f1;
}

html a {
    text-decoration: none;
}

html a:hover {
    text-decoration: none;
}

a {
    color: #495E57;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: none;
}

body.dark-mode a {
    color: #F4CE14;
}

.menu_header a {
    color: #495E57;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    margin-left: 15px;
}

.menu_header a:hover {
    color: #F4CE14;
}

body.dark-mode .menu_header a {
    color: #EAEAEA;
}

body.dark-mode .menu_header a:hover {
    color: #F4CE14;
}

.menu_principal a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu_principal a:hover {
    transform: scale(1.05);
}

h1 {
    color: black;
    text-align: center;
    font-weight: bold;
    font-size: 3.5em;
}

h2, h3 {
    color: black;
    text-align: center;
    font-size: 1.7em;
}

h4 {
    color: black;
    text-align: center;
    font-size: 1.4em;
}

.contenedor {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 600px;
    width: 100%;
}

button {
    background-color: #F4CE14;
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin: 10px 0;
}

button:hover {
    background-color: #e0bb12;
}

.botones-panel {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.btn-panel {
    background-color: #678a99;
    color: white !important;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.btn-panel:hover{
    background-color: #c9d6db;
    color: black !important;
    text-decoration: none;
    transform: translateY(-2px);
}


.tornar {
    display: inline-block;
    width: fit-content;
    top: 10px;
    left: 10px;
    background-color: #F4CE14;
    color: black;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.tornar:hover {
    background-color: #e0bb12;
}

footer {
  margin-top: auto;
  width: 100%;
  background-color: #000;
  padding: 10px 0;
}


body.dark-mode footer {
  background-color: #f5f5f5;
}

#switch input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}
