/* style.css */

:root {
  /* Tonos importados de vuestro dark.css */
  --bg-start:  #181d27;
  --bg-end:    #1e2531;
  --fg:        #9ba5b5;
  --accent:    #FFB400;
}

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

body {
  background: linear-gradient(135deg, var(--bg-start), var(--bg-end));
  color: var(--fg);
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  position: relative;
}

/* Logo más grande y bajado un poco */
.logo-container {
  padding-top: 4rem;    /* baja el logo hacia abajo */
  padding-bottom: 1rem; /* espacio antes de los cuadros */
  text-align: center;
  z-index: 1;
}
.logo-container img {
  width: 400px; /* aumentado a 240px */
  height: auto;
}

/* Centrado absoluto de los cuadrados */
.cards-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 90%;
  max-width: 800px;
}

/* Estilo de cada “cuadrado” */
.card {
  background: var(--bg-end);
  border: 2px solid #313a4b; /* borde más sutil */
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card h2 {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Hover effects */
.card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
  border-color: var(--accent);
}

/* Responsive móvil */
@media (max-width: 600px) {
  .cards-container {
    position: static;
    transform: none;
    margin: 2rem auto;
    max-width: 90%;
  }
  .card {
    padding: 3rem 1.5rem;
  }
  .card h2 {
    font-size: 1.4rem;
  }
}


/* === Layout adjustments for 3 cards in a row on desktop === */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(1100px, 90vw);
  margin: 4rem auto;
  align-items: stretch;
  justify-items: stretch;
}

/* Card style consistency */
.card {
  display: grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 3.5rem 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.15);
}
.card h2 {
  text-align: center;
  color: var(--fg);
  font-weight: 600;
  line-height: 1.2;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .cards-container {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 600px) {
  .cards-container {
    grid-template-columns: 1fr;
    width: min(620px, 92vw);
    margin: 2.5rem auto;
  }
  .card { padding: 3rem 1.5rem; }
  .card h2 { font-size: 1.2rem; }
}

/* Footer */
.site-footer {
  width: 100%;
  text-align: center;
  margin: 2.5rem 0 2.75rem;
  color: var(--fg);
  opacity: 0.8;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color .2s ease, opacity .2s ease;
}
.site-footer a:hover {
  border-color: var(--accent);
  opacity: 0.9;
}


/* === Ajuste para que las cards ocupen más espacio en pantalla === */
.cards-container {
  max-width: 1200px; /* más ancho para filas */
  gap: 2.5rem;
}

.card {
  padding: 5rem 3rem; /* más grandes */
  aspect-ratio: auto; /* dejar que se adapten */
  min-height: 320px;
}
.card h2 {
  font-size: 2rem;
}


/* === Enhancements: larger cards to occupy more screen space === */
@media (min-width: 900px) {
  .cards-container {
    width: min(1400px, 94vw);
    gap: 2rem;
  }
  .card {
    padding: 5rem 2.75rem;
    min-height: 320px;
  }
  .card h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1400px) {
  .cards-container {
    width: min(1560px, 92vw);
  }
  .card {
    min-height: 360px;
  }
}


/* === Sticky footer adjustments === */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem 0;
  background: var(--bg-end);
  text-align: center;
  font-size: 0.95rem;
}


/* === Layout to keep footer at the bottom === */
html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main.cards-container { flex: 1; }
.site-footer {
  margin-top: auto; /* push footer to bottom */
  padding-bottom: 0.5rem;
}
