/* =========================
   ESTILOS GENERALES
   ========================= */

body {
    background-color: #ecf0f1;
    font-family: Arial, sans-serif;
    color: #222;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.imagen-centro {
    text-align: center;
}

main {
    background-color: white;
    padding: 20px;
    border-radius: 60px;
}




/* =========================
   TÍTULOS
   ========================= */

h1 {
    color: #2c3e50;
    text-align: center;
}

.portada {
    color: #27ae60;
    text-align: center;
}

h2,
h3 {
    color: #34495e;
    text-align: center;
}


/* =========================
   ENLACES
   ========================= */

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =========================
   MENÚ DE NAVEGACIÓN
   ========================= */

nav {
    text-align: center;
    margin: 30px 0;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav li {
    display: inline-block;
    margin: 18px;
}

nav a {
    background-color: #2c3e50;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.5s;
}

nav a:hover {
    background-color: #3498db;
    text-decoration: none;
}


/* =========================
   TABLAS
   ========================= */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #2c3e50;
    color: white;
}

tr:hover {
    background-color: #d6eaf8;
}


/* =========================
   FORMULARIOS
   ========================= */

form {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
}

fieldset {
    border: 1px solid #ccc;
    padding: 20px;
}

legend {
    font-weight: bold;
    color: #2c3e50;
}

button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background-color: #3498db;
}

input,
select,
textarea {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
}


/* =========================
   PIE DE PÁGINA
   ========================= */

footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 0.9em;
}

/* =========================
   MODO OSCURO
   ========================= */

body.oscuro {
    background-color: #1b1b1b;
    color: white;
}

body.oscuro main {
    background-color: #2b2b2b;
}

body.oscuro h1,
body.oscuro h2,
body.oscuro h3 {
    color: white;
}

body.oscuro footer {
    color: #cccccc;
}

body.oscuro a {
    color: #7ec8ff;
}

/* =========================
   RELOJ
   ========================= */

.reloj-contenedor {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
}

#reloj {
    font-size: 2em;
    font-weight: bold;
    margin: 5px;
    color: #27ae60;
}

#fecha {
    margin: 12px;
}

body.oscuro #reloj {
    color: #5ee38d;
}

/* =========================
   TIEMPO EN MANZANARES
   ========================= */

.tiempo-contenedor {
    text-align: center;
    margin: 25px auto;
    padding: 18px;
    background-color: #f4f6f7;
    border-radius: 20px;
    max-width: 650px;
}

#saludoTiempo {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
}

#datosTiempo {
    margin-top: 8px;
}

body.oscuro .tiempo-contenedor {
    background-color: #3a3a3a;
}