/* Nota: la tipografía "Coves" del sitio original nunca llegó a cargar en producción
   (el archivo .otf estaba vacío / roto), por eso el título se muestra en sans-serif.
   Si conseguís el .otf real de Coves, agregalo en assets/fonts/ y descomentá el @font-face. */
/*
@font-face {
  font-family: 'Coves';
  src: url('/assets/fonts/Coves-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
*/

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #ffffff;
  font-family: 'Open Sans', sans-serif;
}

img {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.page {
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: rgba(157, 212, 224, 0.15);
}

.topbar {
  width: 100%;
  flex-shrink: 0;
}

.topbar-navy {
  background-color: #1b213a;
  height: 50px;
}

.topbar-red {
  background-color: #a21724;
  height: 25px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 32px 12px;
  overflow: hidden;
  min-height: 0;
}

.title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.logo-header {
  height: 40px;
  object-fit: contain;
}

.title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.015em;
  color: #1b213a;
  font-family: 'Coves', sans-serif;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.grid-row {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid #eef0f1;
  background-color: #1b213a;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.card:hover::after {
  background-color: rgba(255, 255, 255, 0.04);
}

.card:active::after {
  background-color: rgba(255, 255, 255, 0.09);
}

.card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.card-static {
  cursor: default;
}

.card-static::after {
  display: none;
}

.footer {
  flex-shrink: 0;
  padding: 12px 0;
  border-top: 1px solid #1b213a;
}

.footer-inner {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.footer-col-start {
  display: flex;
  justify-content: flex-start;
}

.footer-col-center {
  display: flex;
  justify-content: center;
}

.footer-col-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-logo-nerilan {
  height: 40px;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footer-logo-nerilan:hover {
  opacity: 0.8;
}

.copyright {
  margin: 0;
  font-size: 0.75rem;
  text-align: center;
  color: #1b213a;
}

.footer-logo-pn {
  height: 28px;
  object-fit: contain;
}

.icon-box {
  height: 28px;
  width: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1b213a;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.icon-box:hover {
  opacity: 0.8;
}

.icon-box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.blend-multiply {
  mix-blend-mode: multiply;
}

.footer-icon {
  height: 28px;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

a:hover .footer-icon {
  opacity: 0.8;
}

.footer-icon-disabled {
  opacity: 0.6;
  cursor: default;
}

/* Pantallas chicas: permitir scroll y evitar que los logos queden ilegibles */
@media (max-width: 720px), (max-height: 620px) {
  .page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .main {
    overflow: visible;
    padding: 16px 16px 12px;
  }

  .grid {
    gap: 12px;
  }

  .grid-row {
    flex-wrap: wrap;
  }

  .card {
    min-width: 42%;
    min-height: 120px;
    flex: 1 1 42%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px;
    text-align: center;
  }

  .footer-col-start,
  .footer-col-end {
    justify-content: center;
  }
}
