/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

body.dark {
  background-color: #181c20;
  color: #e0e0e0;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 10px 24px 10px;
  position: relative;
}

.titulo-app {
  font-size: 2.2em;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #2c3e50;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}

.titulo-app::after {
  content: '';
  display: block;
  width: 0;
  height: 4px;
  background: #1976d2;
  transition: width 0.3s;
  border-radius: 2px;
  margin-top: 8px;
}

.titulo-app:hover,
.titulo-app:focus {
  color: #1976d2;
}

.titulo-app:hover::after,
.titulo-app:focus::after {
  width: 100%;
}

.reloj-container {
  margin-bottom: 18px;
  font-size: 1.3em;
  color: #ffd54f;
  font-weight: bold;
}

body.dark .reloj-container {
  color: #ffd54f;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #333;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  z-index: 1000;
  transition: background 0.2s, color 0.2s;
}

body.dark .theme-toggle {
  background: #23272f;
  color: #ffd54f;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 20px 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.box-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.box {
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: 
    box-shadow 0.3s cubic-bezier(.4,2,.6,1), 
    background 0.3s cubic-bezier(.4,2,.6,1), 
    transform 0.2s cubic-bezier(.4,2,.6,1);
  box-shadow: 4px 4px 12px #b0b0b0, -4px -4px 12px #fff;
  cursor: pointer;
}

.box-link:hover .box,
.box:hover {
  background: linear-gradient(120deg, #e0e7ff 0%, #f0f4ff 100%);
  box-shadow: 0 8px 32px rgba(44,62,80,0.18), 0 1.5px 6px #b0b0b0;
  transform: translateY(-4px) scale(1.03);
  border-color: #4fc3f7;
}

body.dark .box {
  background-color: #23272f;
  border-color: #333;
  box-shadow: 4px 4px 16px #11181f, -4px -4px 12px #23272f;
}

body.dark .box-link:hover .box,
body.dark .box:hover {
  background: linear-gradient(120deg, #23272f 0%, #2c3e50 100%);
  box-shadow: 0 8px 32px rgba(79,195,247,0.18), 0 1.5px 6px #11181f;
  border-color: #ffd54f;
}

.box h2 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: 700;
  position: relative;
  display: inline-block;
  transition: color 0.2s;
}

.box-link:hover .box h2,
.box:hover h2 {
  color: #1976d2;
}

.box h2::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: #1976d2;
  transition: width 0.3s;
  border-radius: 2px;
  margin-top: 4px;
}

.box-link:hover .box h2::after,
.box:hover h2::after {
  width: 100%;
}

body.dark .box h2 {
  color: #ffd54f;
}

body.dark .box h2::after {
  background: #ffd54f;
}

.box p {
  margin: 10px 0;
  font-size: 1em;
}

a {
  color: #2980b9;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

body.dark a {
  color: #4fc3f7;
}
