/* ===============================
   Reset básico
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f4f6f9;
  color: #333;
  padding-bottom: 60px; /* espacio para visitas */
}

/* ===============================
   Header y navegación
================================= */
header {
  background: #2c3e50;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

#reloj {
  font-size: 1rem;
  margin-bottom: 10px;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #ecf0f1;
  text-decoration: none;
  margin: 0 15px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
}

nav a:hover {
  background: #34495e;
}

nav a.activo {
  background: #3498db;
  color: #fff;
  font-weight: bold;
}

/* ===============================
   Main
================================= */
main {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

main h2, main h3 {
  margin-bottom: 15px;
  color: #2c3e50;
}

#salida {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: #27ae60;
}

/* ===============================
   Footer
================================= */
footer {
  background-color: #000;    /* fondo negro */
  color: #fff;               /* texto blanco */
  text-align: center;        /* centrado */
  padding: 15px 0;           /* espacio arriba y abajo */
  margin-top: 30px;          /* separación del contenido */
  font-size: 0.9rem;
}

/* ===============================
   Botones
================================= */
button {
  background: #3498db;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  margin: 5px 0;
}

button:hover {
  background: #2980b9;
}

/* botones de colores */
#btnRojo { background: #e74c3c; }
#btnRojo:hover { background: #c0392b; }

#btnVerde { background: #2ecc71; }
#btnVerde:hover { background: #27ae60; }

#btnAzul { background: #3498db; }
#btnAzul:hover { background: #2980b9; }

#btnBlanco {
  background: #ffffff;
  color: #333;
  border: 1px solid #ccc;
}
#btnBlanco:hover {
  background: #f0f0f0;
}


/* ===============================
   Formularios
================================= */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

#errores p {
  margin: 5px 0;
  color: #e74c3c;
  font-weight: bold;
}

#exito {
  margin-top: 10px;
  color: #27ae60;
  font-weight: bold;
}

/* ===============================
   Listas
================================= */
ul {
  list-style: none;
  margin-top: 10px;
}

ul li {
  padding: 10px;
  background: #ecf0f1;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul li button {
  background: #e74c3c;
  padding: 5px 10px;
  font-size: 0.9rem;
}

ul li button:hover {
  background: #c0392b;
}

/* ===============================
   Contador de visitas
================================= */
#contador-visitas {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.9rem;
  background: #dff9fb;
  color: #130f40;
  border: 1px solid #00cec9;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0px 3px 8px rgba(0,0,0,0.1);

}
