:root{
  --bg: #0b0d12;
  --card: #121622;
  --card-hover: #171c2b;
  --text: #e8ecf1;
  --muted: #b6c0cf;
  --brand: #7cc4ff;
  --brand-ink: #0a2a42;
  --border: #20283a;
  --focus: #9ad1ff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  line-height: 1.55;
}


.content{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Header */
.header{
  position: sticky; 
  top: 0; 
  z-index: 50;
  box-shadow: 0 6px 16px rgba(56,83,104,.35);
  height: 5rem;
  background-color:white ;

}
.header .content{
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
}

.logo{
  width: 100%;
  display: grid;
  justify-items: start;
  align-items: center;
}
.logo img{
  width: 40%;
}

/* Main */

.container{
  min-height: 70vh;
  height: auto;
}
.page-title{
  margin: 2.2rem 0 1.2rem;
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem);
  letter-spacing: .3px;
  line-height: 1.2;
  text-wrap: balance;
}

/* Listado de tarjetas */
.card-list{
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
  grid-auto-rows: minmax(10rem, 1fr);
}

.card{
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .2s ease, border-color .2s ease;
  min-height: 10rem;
}
.card:hover{
  transform: translateY(-2px);
  background: var(--card-hover);
  border-color: #27324a;
}
.card__title{
  margin: .1rem 0 .4rem;
  font-size: 1.05rem;
}
.card__desc{
  margin: 0 0 .9rem;
  color: var(--muted);
  font-size: .975rem;
}
.card__link{
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: .55rem .9rem;
  border-radius: .7rem;
  background: linear-gradient(135deg, rgb(235, 123, 24, 0.9), rgba(212, 93, 23,0.8));
  color: white;
  transition: transform .1s ease, box-shadow .2s ease, border-color .2s ease;
}
.card__link:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(124,196,255,.18);
  border-color: #3a5276;
}
.card__link:focus{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.ma-xx-small.ma-x-small.ma-small.ma-medium.ma-large.ma-x-large{
  width: 100% !important;
  max-width: 1280px !important;
}

/* Footer */
.footer{
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: rgba(56,83,104);
  height: 6.5vh;
  display: grid;
  align-items: center;
  justify-content: center;
  color: white;
}


/* Soporte preferencia de color (opcional) */
@media (prefers-color-scheme: light){
  :root{
    --bg: #f6f7fb;
    --card: #ffffff;
    --card-hover: #f7f9ff;
    --text: #0f172a;
    --muted: #445066;
    --brand: #2b72ff;
    --brand-ink: #fff;
    --border: #e6e9f2;
    --focus: #6aa7ff;
    --shadow: 0 10px 24px rgba(44,62,101,.10);
  }
  body{
    background: radial-gradient(1200px 600px at 20% -10%, #eef3ff 0%, #f6f7fb 60%) fixed, var(--bg);
  }
}

@media (max-width: 600px) {
  .header .content{
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .logo {
    justify-items: center;
  }

  .logo img {
      width: 50%;
  }

  .container{
    margin: 1rem;
  }
}