.centro-lalin .portada {
  display:grid;
  align-items:center;
  min-height:100vh;
  min-height:100svh;
  height:auto;
  overflow:visible;
  padding:100px var(--marxe) 100px;
}
.centro-lalin .presentacion {
  width:min(1050px, 100%);
  max-width:none;
  min-height:0;
  margin:0 auto;
  padding:0;
  gap:28px;
  justify-items:stretch;
}
.lalin-cabeceira { text-align:center; }
.centro-lalin h1 { margin:0 auto; }
.centro-lalin .lalin-cabeceira img {
  width:150px;
  height:auto;
  margin:0 auto -17px;
}
.centro-lalin .descricion { max-width:none; margin:0; font-size:.85rem; }
.volver-inicio {
  position:absolute;
  z-index:3;
  top:clamp(22px, 3vw, 36px);
  left:var(--marxe);
  min-height:34px;
  padding:5px 12px;
  font-size:.74rem;
  font-weight:400;
  text-decoration:none;
}
.transition-out .volver-inicio { opacity:0; transition:opacity .4s ease; }
.accesos {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  width:100%;
}
.tarxeta-cela { min-width:0; }
.tarxeta {
  position:relative;
  display:block;
  width:100%;
  min-height:146px;
  border:1px solid #ffffffdb;
  border-left-color:var(--cor-tarxeta);
  border-radius:19px;
  background:#ffffff5c;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  box-shadow:0 8px 24px #00000017;
  color:#4b5755;
  font-family:Nunito, sans-serif;
  font-size:.94rem;
  text-align:left;
  cursor:pointer;
}
.tarxeta-cabeceira {
  position:absolute;
  top:50%;
  left:20px;
  right:20px;
  display:flex;
  align-items:center;
  gap:12px;
  transform:translateY(-50%);
}
.tarxeta-cabeceira h2 { flex:1; min-width:0; margin:0; font-size:inherit; font-weight:700; line-height:1.35; overflow-wrap:anywhere; }
.tarxeta-mais {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid #78847c22;
  border-radius:50%;
  background:#ffffff4d;
  color:#77867d;
  font:400 1.35rem Nunito, sans-serif;
  cursor:pointer;
  margin-left:auto;
}
.tarxeta:not(.voa):hover, .tarxeta:not(.voa):focus-visible {
  background:#ffffff8c;
  box-shadow:0 14px 34px #00000021;
}
.detalle-aberto .tarxeta { animation-play-state:paused; }
.tarxeta-corpo {
  position:absolute;
  top:76px;
  bottom:22px;
  left:20px;
  overflow:hidden;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}
.tarxeta-corpo p { margin:0; font-size:.95rem; line-height:1.8; }
.tarxeta.voa {
  position:fixed;
  z-index:1;
  min-height:0;
  margin:0;
  overflow:hidden;
  animation:none;
  cursor:default;
}
.tarxeta.aberta .tarxeta-cabeceira { top:20px; transform:translateY(0); }
.tarxeta.aberta .tarxeta-mais { transform:rotate(45deg); background:#fff9; }
.tarxeta.aberta .tarxeta-corpo { visibility:visible; opacity:1; pointer-events:auto; }
.tarxeta.pousada .tarxeta-corpo { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.detalle-tarxeta {
  position:fixed;
  inset:0;
  width:100%;
  max-width:none;
  height:100%;
  max-height:none;
  margin:0;
  padding:0;
  overflow:hidden;
  border:0;
  background:transparent;
  color:inherit;
}
.detalle-tarxeta::backdrop {
  background:#f5f1e580;
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  opacity:1;
  transition:opacity .5s ease;
}
.detalle-tarxeta.abrindo::backdrop, .detalle-tarxeta.pechando::backdrop { opacity:0; }
html:has(.centro-lalin) { scrollbar-gutter:stable; }
body.detalle-aberto { overflow:hidden; }
@media (prefers-reduced-motion:no-preference) {
  .lalin-cabeceira { animation:entrada-marca 1s ease-out both; }
  .tarxeta-cela { animation:entrada-tarxeta .6s ease-out var(--entrada, .35s) both; }
  .tarxeta {
    animation:tarxeta-flota var(--duracion) ease-in-out var(--atraso) infinite;
    transition:box-shadow .35s ease, background-color .35s ease;
  }
  .tarxeta:hover, .tarxeta:focus-visible { animation-play-state:paused; }
  .tarxeta-cabeceira { transition:top .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1); }
  .tarxeta-mais { transition:transform .5s ease, background-color .4s ease; }
  .tarxeta-corpo { transition:opacity .16s ease, visibility 0s .16s; }
  .tarxeta.aberta .tarxeta-corpo { transition:opacity .3s ease .15s; }
}
@keyframes tarxeta-flota {
  0%, 100% { transform:translate3d(0, 0, 0) rotate(0); }
  30% { transform:translate3d(1.5px, -6px, 0) rotate(.12deg); }
  65% { transform:translate3d(-1.5px, -2.5px, 0) rotate(-.1deg); }
}
@keyframes entrada-tarxeta {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}
@media (max-width:850px) {
  .accesos { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
  .tarxeta { min-height:132px; }
}
@media (max-width:700px) {
  .centro-lalin .portada { padding:82px var(--marxe) calc(125px + env(safe-area-inset-bottom)); }
  .centro-lalin .presentacion { gap:22px; }
  .volver-inicio { top:16px; left:16px; font-size:.7rem; }
  .accesos { gap:12px; }
  .tarxeta { min-height:122px; font-size:.85rem; }
  .tarxeta-cabeceira { left:15px; right:15px; gap:8px; }
  .tarxeta-corpo { left:15px; }
}
@media (max-width:350px) {
  .tarxeta { font-size:.8rem; }
  .accesos { gap:10px; }
}

@media (prefers-reduced-motion:reduce) {
  .tarxeta-cabeceira, .tarxeta-corpo, .tarxeta-mais, .detalle-tarxeta::backdrop { transition:none; }
}
