/*Reset y variables*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html { scroll-behavior: smooth; }

:root {
  --bg-dark: #15326c; /* fondo general */
  --bg-dark-2: #01155C; /* azul oscuro de banda de título */
  --panel: #ffffff;
  --text: #0E2A59;
  --text-inv: #ffffff;

  --stroke: #15326c; /* borde de cards */
  --card: #EAF3FF; /* fondo de cards */
  --accent: #ffb204; /* botón amarillo */

  --radius-xl: 22px;
  --radius-lg: 20px;

  --shadow-strong: 0 16px 36px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*Header logo*/
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 24px 0;
  margin-top: 32px;
}

.brand {
  height: 56px;
  width: auto;
}

/*Titulo del panel*/
.panel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-dark-2);
  color: var(--text-inv);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
}

.panel-head-icon {
  width: 30px;
  height: 30px;
}

.panel-head-title {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/*Cards*/
.cards {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 6px solid var(--stroke);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card-body {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card-body img {
  max-width: 110px;
  height: auto;
}

.card-footer {
  background: linear-gradient(#2f77c5, #2a6fb9);
  color: #fff;
  text-align: center;
  padding: 14px 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border-top: 6px solid var(--stroke);
  height: 100%;
}

/*Estado seleccionado*/
.itemSelected {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6) inset;
}

/*Boton y redes sociales*/
.cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.btn-primary {
  background: var(--accent);
  width: 100%;
  color: #222;
  font-weight: 800;
  border: 0;
  border-radius: 14px;
  padding: 12px 26px;
  min-width: 520px;
  text-transform: capitalize;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

#resultado.btn-primary {
  min-width: 0;
  width: 100%;
}

.btn-primary:active { transform: translateY(1px); }

/* Redes sociales */
.social {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 0;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.social a img {
  width: 25px;
  height: auto;
  object-fit: contain;
}

.social a:hover {
  transform: translateY(-2px);
}

/*Responsive*/
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 740px) {
  .panel { padding: 18px 14px; }
  .panel-head { padding: 14px 16px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card-body { min-height: 140px; }
  .btn-primary { min-width: 100%; }
  .social { gap: 6px; }
}