/* ==========================================================================
   Aviso de cookies — componente independiente, compartido por index.html,
   politicas.html y 404.html.

   Se mantiene deliberadamente separado de styles-v2.css: es autónomo, con
   sus propios colores y tipografía, para que el aviso se vea igual en las
   tres páginas aunque la hoja de estilos principal no cargue.
   ========================================================================== */

.aviso-cookies-broca {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #163625;
  color: #f4f4f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.92rem;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.aviso-cookies-broca.visible {
  transform: translateY(0);
}

.aviso-cookies-interior {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aviso-cookies-interior p {
  margin: 0;
  flex: 1 1 320px;
  line-height: 1.5;
}

.aviso-cookies-interior a {
  color: #bfe3c9;
  text-decoration: underline;
}

.aviso-cookies-botones {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.aviso-cookies-btn {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
}

.aviso-cookies-btn-primario {
  background: #f4f4f0;
  color: #163625;
}

.aviso-cookies-btn-primario:hover {
  background: #ffffff;
}

.aviso-cookies-btn-secundario {
  background: transparent;
  color: #f4f4f0;
  border-color: rgba(244, 244, 240, 0.5);
}

.aviso-cookies-btn-secundario:hover {
  border-color: #f4f4f0;
}

.aviso-cookies-btn:focus-visible {
  outline: 2px solid #bfe3c9;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .aviso-cookies-interior {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
    max-height: 80vh;
    overflow-y: auto;
  }

  .aviso-cookies-interior p {
    flex: 1 1 auto;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .aviso-cookies-botones {
    gap: 8px;
  }

  .aviso-cookies-btn {
    flex: 1 1 0;
    padding: 9px 12px;
  }
}
