/* EsCSS Demo - CSS con sintaxis en Español */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background-color: whitesmoke;
  color: dimgray;
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.titulo {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: royalblue;
}

.descripcion {
  font-size: 1.25rem;
  color: gray;
  margin-bottom: 2rem;
}

/* Tarjeta con Flexbox */
.tarjeta {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.tarjeta-titulo {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tarjeta-contenido {
  color: gray;
  margin-bottom: 1rem;
}

.boton {
  display: flex;
  alinear-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: royalblue;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  transition: fondo-color 0.2s ease;
  text-decoration: none;
}

.boton:hover {
  background-color: midnightblue;
}

/* Cuadrícula (Grid) */
.cuadricula {
  display: grid;
  grid-template-columns: repetir(auto-ajuste, minimo-maximo(200px, 1fr));
  espacio: 1rem;
}

.cuadricula-elemento {
  background-color: white;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transformar 0.2s ease;
}
.cuadricula-elemento:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}
.cuadricula-elemento:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
}

.cuadricula-elemento:hover {
  background-color: whitesmoke;
}

/* Media queries */
@media (max-width: 768px) {
  .titulo {
    font-size: 2rem;
  }

  .contenedor {
    padding: 1rem;
  }
}
