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

:root {
  --primary-color: 128, 0, 128;
  --secondary-color: 192, 192, 192;
}

body {
  margin: 0;
  font-family: 'Open Sans', Verdana, sans-serif;
  font-size: 19px;
  color: #111;
  background: #f5f5f5;
  line-height: 1.5;
  /* background-image: url('cross.jpg'); */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ocupa al menos todo el alto de la pantalla */
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(rgba(var(--primary-color), 0.7), rgba(var(--primary-color), 0.7)), url('pqia.webp');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 1.5rem;
  padding-top: 3rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
}

.grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 1rem;
  padding: 1rem;
  flex: 1;
  align-content: start;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 160px;

  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 600;

  text-align: center;

  background: rgba(var(--primary-color), 0.3);
  border-radius: 12px;

  border: 2px solid rgb(var(--secondary-color));

  text-decoration: none;
  color: #111;

  padding: 1rem;

  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.card:hover {
  background: #eee;
}

.footer {

  text-align: center;

  padding: 1rem;

  font-size: 0.85rem;

  color: #4a4a4a;

  border-top: 1px solid #ddd;

  margin-top: 2rem;

}

.overlay {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  position: fixed;
  inset: 0; 
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.overlay[open] {
  display: flex;
}

.overlay::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* tablet / pc */

@media (min-width: 750px) {

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

}

.subcontent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: clamp(24px, 5vh, 60px) 16px;
}

.subcontext{
  font-size: 1.4rem;
}

.subcontext ul {
  padding-left: 40px;
}

.back-button {
  text-decoration: none;
  color: white; /* Cambia al color que prefieras */
  /* background-color: white; */
  font-weight: 500;
  font-size: 1.5rem;
  display: flex;
  height: 4rem;
  padding: 0 1rem;
  border-radius: 8px;
  align-items: center;
  gap: 5px; /* Espacio entre la flecha y el texto */
  
  /* Esto asegura que se quede a la izquierda */
  margin-right: auto;
}

.auto-content {
  margin-bottom: 2rem;
  font-family: sans-serif;
}

.data-field {
  margin: 10px 0;
}

.label {
  color: #555;
  text-transform: capitalize;
  margin-right: 5px;
}

.auto-content ul {
  list-style-type: none;
  padding-left: 15px;
  border-left: 2px solid #ddd;
}

.auto-content li {
  margin: 5px 0;
}

.card-double {
  grid-column: span 2;
}
