/* ================================================
   Sainz de la Maza — Estilos principales
   Diseño clásico con tecnología moderna y responsive
   ================================================ */

:root {
  --bg:           #f6f6f6;
  --bg-card:      #ffffff;
  --bg-dark:      #000000;
  --text:         #232323;
  --text-dark:    #212121;
  --text-mid:     #4f4f4f;
  --text-light:   #6c6c6c;
  --text-xlight:  #838383;
  --text-date:    #c2c2c2;
  --border:       #cecece;
  --border-input: #dbdbdb;
  --btn-gray:     #c7c7c7;
  --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-dates:   'Glegoo', Georgia, serif;
  --max-width:    1200px;
  --transition:   all 0.3s ease;
}

/* ---- Skip to content ---- */
.skip-to-content {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--text-dark); color: #fff;
  padding: 0.5rem 1rem; font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 0.5rem; }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 300;
}
img { display: block; max-width: 100%; }
a { color: var(--text-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--text-light); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ---- Language bar ---- */
.lang-bar { background: var(--bg-dark); padding: 0.35rem 0; }
.lang-bar .container { display: flex; justify-content: flex-end; }
.lang-bar ul { list-style: none; display: flex; gap: 0; }
.lang-bar ul li a {
  color: #868585; font-size: 0.72rem; letter-spacing: 0.12em;
  font-family: var(--font-body); text-transform: uppercase;
  padding: 0 0.75rem; border-right: 1px solid #222;
}
.lang-bar ul li:last-child a { border-right: none; }
.lang-bar ul li.active a,
.lang-bar ul li a:hover { color: #fff; }

/* ---- Header ---- */
header {
  background: var(--bg-card);
  padding: 0.6rem 0;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem;
  position: relative;
}

/* Logo: firma del pintor */
.logo a {
  display: block;
  line-height: 0;
}
.logo-img {
  height: 66px;
  width: auto;
  display: block;
}

/* ---- Navigation ---- */
nav ul { list-style: none; display: flex; align-items: center; }
nav ul li { position: relative; }
nav ul li.sep { width: 1px; height: 14px; background: #b0b0b0; margin: 0 1.1rem; flex-shrink: 0; }
nav ul li a {
  color: #595959; font-size: 0.75rem; letter-spacing: 0.13em; /* #595959 = 4.6:1 on #f6f6f6, passes WCAG AA */
  text-transform: uppercase; padding: 0.25rem 0;
  position: relative; display: block;
}
nav ul li a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--text-dark);
  transition: width 0.3s ease;
}
nav ul li a:hover,
nav ul li a.active { color: var(--text-dark); }
nav ul li a:hover::after,
nav ul li a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px; z-index: 10;
}
.hamburger span { width: 22px; height: 2px; background: var(--text-light); transition: var(--transition); display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.8rem; color: var(--text-light);
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--text-dark); }

/* ---- Hero Slider ---- */
.hero { display: grid; grid-template-columns: 1fr 360px; min-height: 440px; }

.slider-wrap {
  position: relative; overflow: hidden; background: #000;
}
.slider-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
}
.slider-wrap img.active { opacity: 1; }

.slider-info {
  background: var(--bg-card); color: var(--text-dark);
  padding: 3.5rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--border);
}
.slider-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.75rem;
}
.slider-title {
  font-family: var(--font-heading); font-style: italic;
  font-size: 1.9rem; margin-bottom: 0.4rem; line-height: 1.15;
  color: var(--text-dark);
}
.slider-date { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1.25rem; }
.slider-sep { width: 40px; height: 1px; background: var(--border); margin-bottom: 1.5rem; }
.slider-text { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 2rem; font-weight: 300; }
.slider-link a {
  display: inline-block; border: 1px solid var(--text-dark);
  color: var(--text-dark); padding: 0.6rem 1.6rem;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: var(--transition);
}
.slider-link a:hover { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }

/* ---- Home boxes ---- */
.home-boxes { display: grid; grid-template-columns: repeat(3, 1fr); }
.home-box {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3;
}
.home-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.home-box:hover img { transform: scale(1.06); }
.home-box-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem 2rem;
  transition: background 0.4s ease;
}
.home-box:hover .home-box-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 100%);
}
.home-box-name {
  font-family: var(--font-body); font-size: 1rem; font-weight: 400;
  background: var(--bg); color: var(--text-dark);
  display: inline-block; padding: 0.15rem 0.5rem; margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.home-box-sep { width: 28px; height: 1px; background: var(--border); margin-bottom: 0.5rem; }
.home-box-desc { color: #ddd; font-size: 0.82rem; opacity: 0; transform: translateY(8px); transition: var(--transition); }
.home-box:hover .home-box-desc { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .home-box-desc { opacity: 1; transform: translateY(0); } /* siempre visible en táctil */
  .home-box-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  }
}

/* ---- Page inner ---- */
main.inner { padding: 0 0 5rem; }
.page-header { padding: 3rem 0 0; }
.page-title { font-size: 2.6rem; color: var(--text-dark); margin-bottom: 0.3rem; font-style: italic; }
.page-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.5rem; display: block;
}
.page-sep { width: 55px; height: 1px; background: var(--border); margin: 1rem 0 2.5rem; }

/* ---- Two-column layout (bio, academia) ---- */
.two-col { display: grid; grid-template-columns: 270px 1fr; gap: 4.5rem; align-items: start; }
.col-images { display: flex; flex-direction: column; gap: 3px; }
.col-images img { width: 100%; }
.col-text .name { font-size: 2.2rem; margin-bottom: 0.2rem; }
.col-text .dates {
  font-family: var(--font-dates); font-style: italic;
  color: var(--text-date); font-size: 1.1rem;
  display: block; margin-bottom: 1.25rem;
}
.col-text .sep { width: 50px; height: 1px; background: var(--border); margin-bottom: 1.75rem; }
.col-text p { font-size: 0.95rem; color: var(--text-mid); font-weight: 300; line-height: 1.8; }
.col-text blockquote {
  border-left: 3px solid var(--border); padding-left: 1.25rem;
  font-style: italic; color: var(--text-xlight); margin: 1.5rem 0; font-size: 0.92rem;
}

/* ---- Obra index ---- */
.obra-text { max-width: 720px; margin-bottom: 3rem; }
.obra-text p { color: var(--text-mid); font-size: 0.95rem; font-weight: 300; }
.obra-text blockquote {
  border-left: 3px solid var(--border); padding-left: 1.25rem;
  font-style: italic; color: var(--text-xlight); margin: 1.5rem 0; font-size: 0.92rem;
}
.obra-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.obra-cat {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 1/1;
}
.obra-cat img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 0.5s;
}
.obra-cat:hover img { transform: scale(1.04); }
.obra-cat-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem;
}
.obra-cat-name {
  background: var(--bg); color: var(--text-dark);
  display: inline-block; padding: 0.2rem 0.5rem;
  font-family: var(--font-display); font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.obra-cat-count { display: none; }

/* ---- Gallery ---- */
.gallery-nav {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2.5rem;
}
.gallery-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-light); font-size: 0.82rem; text-decoration: none;
}
.gallery-back:hover { color: var(--text-dark); }
.gallery-section-title { font-size: 1.5rem; color: var(--text-dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  background: #e8e8e8;
}
.gallery-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top;
  transition: transform 0.45s ease, opacity 0.3s;
  opacity: 0.92;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); opacity: 1; }
.gallery-item:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 2px;
  z-index: 1;
}
.gallery-item:focus-visible .gallery-caption { transform: translateY(0); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  color: #fff; padding: 1.5rem 0.75rem 0.6rem;
  transform: translateY(100%); transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption .gtitle { font-size: 0.8rem; display: block; margin-bottom: 0.15rem; }
.gallery-caption .gdetails { color: #bbb; font-size: 0.72rem; }
.gallery-item::after {
  content: 'sainzdelamaza.info';
  position: absolute; bottom: 7px; right: 7px;
  font-size: 0.58rem; font-style: italic; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.70);
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
  pointer-events: none; z-index: 2;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 0; } /* se oculta cuando sale el caption */

/* ---- Lightbox ---- */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.96);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; flex-direction: column; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none;
  opacity: 0.5; transition: opacity 0.2s; line-height: 1; z-index: 10;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-img {
  max-width: 92vw; max-height: 78vh; object-fit: contain;
  opacity: 0; transition: opacity 0.3s;
}
.lightbox-img.loaded { opacity: 1; }
.lightbox-spinner {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
  display: none;
}
.lightbox-spinner.visible { display: block; }
@keyframes lb-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.lightbox-counter {
  color: #666; font-size: 0.78rem; font-family: var(--font-body);
  white-space: nowrap;
}
.lightbox-meta {
  display: flex; justify-content: space-between; align-items: flex-start;
  width: 100%; max-width: 90vw; padding: 1rem 0.5rem 0; gap: 2rem;
}
.lightbox-title { font-family: var(--font-heading); color: #fff; font-size: 1.05rem; font-style: italic; }
.lightbox-tech { color: #888; font-size: 0.82rem; text-align: right; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2.5rem; cursor: pointer;
  background: none; border: none; opacity: 0.4;
  transition: opacity 0.2s; padding: 1.5rem 1rem; user-select: none;
}
.lightbox-nav:hover { opacity: 1; }
#lb-prev { left: 0; }
#lb-next { right: 0; }

/* ---- Academia grid ---- */
.academia-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px; margin-bottom: 2.5rem;
}
.academia-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.academia-grid .tall { grid-row: span 2; aspect-ratio: auto; height: 100%; }

/* ---- Libro ---- */
.libro-grid { display: grid; grid-template-columns: 280px 1fr; gap: 4rem; align-items: start; }
.libro-cover-box {
  background: #e8e8e8; padding: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  border: 1px solid var(--border);
}
.libro-cover-box img { width: 100%; }
.libro-cover-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(145deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  border: 1px solid var(--border);
}
.libro-cover-placeholder .cover-title {
  font-family: var(--font-heading); color: var(--text-dark); font-size: 1.1rem;
  font-style: italic; text-align: center; padding: 0 1rem; line-height: 1.4;
}
.libro-cover-placeholder .cover-sub {
  font-family: var(--font-dates); font-style: italic;
  color: var(--text-date); font-size: 0.9rem;
}
.libro-cover-placeholder .cover-line { width: 40px; height: 1px; background: var(--border); }
.libro-info p { color: var(--text-mid); font-size: 0.95rem; font-weight: 300; line-height: 1.8; }
.libro-specs {
  margin-top: 2rem; padding: 1.5rem 1.75rem;
  background: var(--bg-card); border: 1px solid var(--border);
}
.libro-specs h3 { font-family: var(--font-heading); font-style: italic; color: var(--text-dark); font-size: 1rem; margin-bottom: 1rem; }
.libro-specs ul { list-style: none; }
.libro-specs li { padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-mid); font-weight: 300; }
.libro-specs li:last-child { border-bottom: none; }
.libro-specs li strong { color: var(--text-dark); font-weight: 400; }

/* ---- Contactar ---- */
.contact-wrap { max-width: 680px; }
.contact-intro { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 2rem; font-weight: 300; }
.contact-email-link {
  display: inline-block; margin-bottom: 2.5rem;
  font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; color: var(--text-dark);
}
.contact-email-link:hover { color: var(--text-light); }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block; font-size: 0.75rem; color: var(--text-light);
  margin-bottom: 0.4rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 300;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.7rem 1rem;
  border: 1px solid var(--border-input);
  background: #fff; font-family: var(--font-body);
  font-size: 0.92rem; color: var(--text); outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
  font-weight: 300;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--text-dark); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-subject { margin-bottom: 1.4rem; }
.btn-submit {
  background: var(--btn-gray); color: #fff; border: none;
  padding: 0.6rem 2.5rem; font-family: var(--font-body);
  font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; font-weight: 300;
}
.btn-submit:hover { background: #999; }

/* ---- Form inline errors ---- */
.form-group .field-error {
  display: none; font-size: 0.75rem; color: #c0392b;
  margin-top: 0.35rem; font-weight: 300;
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: #c0392b; }
.form-group.has-error .field-error { display: block; }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  width: 40px; height: 40px;
  background: var(--text-dark); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
}
.back-to-top svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
.back-to-top.visible { opacity: 0.7; pointer-events: auto; }
.back-to-top.visible:hover { opacity: 1; background: #444; }

/* ---- Footer ---- */
footer { background: var(--bg-card); padding: 2rem 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.footer-logo a { display: block; line-height: 0; }
.footer-logo-img { height: 46px; width: auto; display: block; }
.footer-sep { display: none; width: 40px; height: 1px; background: var(--border); margin: 0.5rem auto; }
.footer-copy { color: var(--text-xlight); font-size: 0.78rem; font-weight: 300; }
.footer-privacy { font-size: 0.75rem; color: var(--text-xlight); }
.footer-privacy a { color: inherit; text-decoration: underline; }
.footer-privacy a:hover { color: var(--text-dark); }
.footer-social { display: flex; align-items: center; gap: 0.75rem; }
.footer-social a {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-xlight); font-size: 0.78rem; font-weight: 300;
  text-decoration: none; transition: color 0.2s;
}
.footer-social a:hover { color: var(--text-dark); }
.footer-social svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .slider-wrap { min-height: 320px; position: relative; padding-top: 56%; }
  .slider-wrap img { position: absolute; }
  .slider-info { border-left: none; border-top: 1px solid var(--border); }
  .home-boxes { grid-template-columns: 1fr 1fr; }
  .home-boxes .home-box:last-child { grid-column: span 2; aspect-ratio: 16/5; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .col-images { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .col-images img { width: calc(50% - 2px); }
  .obra-cats { grid-template-columns: repeat(2, 1fr); }
  .libro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .libro-cover-box { flex-direction: row; align-items: flex-start; }
  .libro-cover-box img,
  .libro-cover-placeholder { width: 200px; flex-shrink: 0; }
  .academia-grid { grid-template-columns: repeat(2, 1fr); }
  .academia-grid .tall { grid-row: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-card); padding: 0.5rem 2rem 1.5rem;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li.sep { display: none; }
  nav ul li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .page-title { font-size: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .logo-img { height: 50px; }
}

@media (max-width: 520px) {
  .container { padding: 0 1rem; }
  .home-boxes { grid-template-columns: 1fr; }
  .home-boxes .home-box:last-child { grid-column: span 1; aspect-ratio: 4/3; }
  .col-images img { width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-sep { display: block; }
  .libro-cover-box { flex-direction: column; }
  .libro-cover-box img, .libro-cover-placeholder { width: 100%; }
  .logo-img { height: 44px; }
}

/* ---- Cookie consent banner ---- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 1rem 2rem; display: flex; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.07);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
#cookie-banner.cookie-banner--hidden { transform: translateY(100%); opacity: 0; }
.cookie-text { flex: 1; font-size: 0.82rem; color: var(--text-mid); font-weight: 300; line-height: 1.6; margin: 0; }
.cookie-more-link { color: var(--text-dark); text-decoration: underline; text-underline-offset: 2px; }
.cookie-more-link:hover { color: var(--text-light); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
#cookie-accept, #cookie-reject {
  padding: 0.5rem 1.4rem; font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; border: 1px solid var(--text-dark);
  transition: background 0.2s, color 0.2s; font-weight: 300;
}
#cookie-accept { background: var(--text-dark); color: #fff; }
#cookie-accept:hover { background: #444; }
#cookie-reject { background: transparent; color: var(--text-dark); }
#cookie-reject:hover { background: var(--text-dark); color: #fff; }
@media (max-width: 520px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem; }
  .cookie-actions { width: 100%; }
  #cookie-accept, #cookie-reject { flex: 1; text-align: center; }
}
