:root {
  --accent: #ff6600; /* Naranja coder */
  --bg-dark: #0a0a0a;
  --text: #fff;
  --muted: #bbb;
}

/* Reinicio */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: url('Assets/img/fondo.png') center center/cover no-repeat;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Capa de oscurecimiento */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}

/* Encabezado */
.topbar {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
}

.topbar h1 {
  margin: 0;
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(90deg, #ff6600, #ff3300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,102,0,0.5);
  animation: fadeDown 1.5s ease-in-out;
}

/* Contenedor principal */
.grid-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
  animation: fadeUp 1.5s ease-in-out;
}

/* Tarjetas */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.4);
  border-radius: 18px;
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.2);
}

/* Títulos dentro de las tarjetas */
.card h2 {
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(255,102,0,0.6);
}

.card p {
  color: var(--muted);
  font-size: 1rem;
}

/* Hover elegante */
.card:hover {
  background: var(--accent);
  color: #000;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.6);
}

.card:hover h2,
.card:hover p {
  color: #000;
}

/* Animaciones */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .topbar h1 {
    font-size: 1.8rem;
  }
  .grid-container {
    gap: 1rem;
    padding: 1.5rem;
  }
}
