/* Landing Ecotroido - 100vh × 100vw, todo con imágenes */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

/* Ocultar visualmente mantendo no lector de pantalla (accesibilidade) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enlace "saltar al contenido" para teclado y lectores de pantalla */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: #1a221e;
  color: #e8ebe9;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid #7dae8a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

body {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("../img/bg-ecotroido-mobile.jpg");
}

@media (min-width: 992px) {
  body {
    background-image: url("../img/bg-ecotroido-desktop.jpg");
  }
}

/* Header: logo circular centrado */
.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 24px clamp(1rem, 3vw, 2rem);
  min-height: 30vh;
}

.header__logo {
  display: block;
  width: 100%;
  max-width: min(380px, calc(100vw - 48px));
  height: auto;
  object-fit: contain;
}

@media (max-width: 991px) {
  .header__logo {
    width: 80%;
  }
}

/* Contenedor de botones: centrado, abajo del logo */
.buttons {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: clamp(2rem, 6vw, 4rem);
  margin-left: 16px;
  margin-right: 16px;
  padding: 0 0 clamp(2rem, 8vw, 4rem);
}

@media (min-width: 992px) {
  .buttons {
    flex-direction: row;
    gap: 80px;
    margin-left: 16px;
    margin-right: 16px;
    padding: 0 0 clamp(2rem, 6vw, 4rem);
  }
}

.buttons__link {
  display: block;
  width: 100%;
  max-width: 414px;
}

.buttons__link:focus {
  outline: none;
}

.buttons__link:focus-visible {
  outline: 2px solid #7dae8a;
  outline-offset: 4px;
  border-radius: 4px;
}

.buttons__link img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 992px) {
  .buttons__link {
    width: 100%;
    max-width: 414px;
  }
}

/* Aviso de cookies – Klaro / ipecos5 portal Xunta (estilo e estrutura) */
.cookie-banner,
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  max-width: 100%;
  width: 100%;
  background: #007bc4;
  color: #fff;
  border-radius: 0;
  font-size: 1em;
  line-height: 1.5;
}

.cookie-banner[hidden],
.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__wrap {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.cookie-notice .cn-body {
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-notice .cn-body > .cookie-banner__text {
  color: #fff;
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* Enlace "Máis información" (equiv. cn-learn-more) */
.cookie-banner__actions.cn-ok {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5em;
  width: auto;
}

.cookie-banner__link-learn {
  font-weight: 400;
  border-radius: 0;
  border: 1px solid #fff;
  padding: 10px 15px;
  color: #007bc4;
  background-color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 1em;
}

.cookie-banner__link-learn:hover {
  border-color: #002f50;
}

.cookie-banner__link-learn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Botón Aceptar (equiv. cm-btn-success) */
.cookie-banner__btn {
  padding: 10px 15px;
  font-size: 1em;
  cursor: pointer;
  border: 1px solid #002f50;
  width: fit-content;
  flex-grow: unset;
  font-weight: 100;
  background-color: #002f50;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  border-radius: 0;
}

.cookie-banner__btn:hover {
  border-color: #fff;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Botón Rexeitar (secundario) */
.cookie-banner__btn--reject {
  background-color: transparent;
  border-color: #fff;
}

.cookie-banner__btn--reject:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

@media (min-width: 1100px) {
  .cookie-notice .cn-body > .cookie-banner__text {
    padding-right: 20px;
  }
}

@media (max-width: 1099px) {
  .cookie-notice .cn-body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cookie-banner__btn {
    width: auto;
  }
}

@media (max-width: 600px) {
  .cookie-notice .cn-ok {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
  }
  .cookie-banner__link-learn {
    margin-right: 0;
  }
  .cookie-banner__btn {
    margin-right: 0;
  }
}

@media (max-width: 1024px) {
  .cookie-notice:not(.cookie-modal-notice) {
    box-shadow: 0 4px 6px 9px rgba(0, 0, 0, 0.2), 5px 5px 10px 0 rgba(0, 0, 0, 0.19);
  }
}
