@font-face {
  font-family: "Xunta Sans";
  src: url("../fonts/XuntaSans-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --azul-xunta: #007bc4;
  --blanco: #ffffff;
  --gris-suave: #f4f4f4;
}

body {
  font-family: "Xunta Sans", Arial, sans-serif;
  margin: 0;
  background-color: #ffffff;
}

.title-blue {
  font-weight: bold;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-xunta {
  background-color: var(--azul-xunta);
  color: white;
  padding: 40px 0;
  width: 100%;
}

.title-blue {
  color: var(--azul-xunta);
  border-bottom: 2px solid var(--azul-xunta);
  padding-bottom: 10px;
  margin-top: 40px;
}

.logo-central {
  display: block;
  margin: 0 auto 20px auto;
  max-height: 100px;
  width: auto;
}

.titulo-principal {
  font-family: "Xunta Sans", Arial, sans-serif;
  color: #ffffff;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  letter-spacing: 1px;
}

.nav-accesos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
}

.enlace-acceso {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.enlace-acceso:hover {
  background-color: #ffffff;
  color: var(--azul-xunta);
  border-color: #ffffff;
}

.memorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.memoria-card {
  text-align: center;
  transition: transform 0.2s;
}

.memoria-card:hover {
  transform: translateY(-5px);
}

.memoria-card img {
  width: 100%;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.memoria-card .ano {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #444;
}

.destacados {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.destacados.destacable-principal {
  grid-template-columns: 1fr;
}

.card-especial {
  flex: 1;
  background: var(--gris-suave);
  padding: 20px;
  border-left: 5px solid var(--azul-xunta);
}

.btn-xunta {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--azul-xunta);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
}

.flex-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
  padding: 30px;
}

.card-imagen img {
  max-width: 220px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-imagen img:hover {
  transform: scale(1.03);
}

.card-imagen a {
  display: block;
  transition: transform 0.2s ease-in-out;
}
.card-imagen a:hover {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .flex-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .card-contenido {
    flex: 1;
  }

  .card-contenido h2 {
    margin-top: 0;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.video-item {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border: 2px solid var(--azul-xunta);
  border-radius: 6px;
}

.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-xunta {
  background-color: #007bc4;
  color: #ffffff;
  font-family: "Xunta Sans", Arial, sans-serif;
  font-size: 12px;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  width: 100%;
}

.footer-xunta p {
  margin: 0;
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url("../img/entrada/cinmar-edificio.png") no-repeat center center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

#splash-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.splash-logo {
  max-width: 350px;
  height: auto;
  animation: emerger 1.5s ease-out;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes emerger {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .destacados {
    grid-template-columns: 1fr;
  }

  .card-especial {
    width: 100%;
    box-sizing: border-box;
  }

  .btn-xunta {
    width: 100%;
    box-sizing: border-box;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}
