:root {
  --bg: #17100f;
  --bg-soft: #211816;
  --panel: #fff8ee;
  --panel-muted: #f4eadb;
  --text: #241b18;
  --text-inverse: #fff8ee;
  --muted: #6b5d56;
  --accent: #b33328;
  --accent-strong: #8d2119;
  --gold: #c58d23;
  --line: rgba(255, 248, 238, 0.18);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #f6c453;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--panel);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 16, 15, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: grid;
  text-decoration: none;
  color: var(--text-inverse);
  font-weight: 800;
  line-height: 1.1;
}

.brand small {
  color: #d4c2a9;
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  border-radius: 999px;
  color: var(--text-inverse);
  font-size: 0.93rem;
  font-weight: 700;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 248, 238, 0.12);
}

.hero {
  position: relative;
  min-height: clamp(560px, 84vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--text-inverse);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 16, 15, 0.92) 0%, rgba(23, 16, 15, 0.68) 44%, rgba(23, 16, 15, 0.18) 100%),
    linear-gradient(0deg, rgba(23, 16, 15, 0.92) 0%, rgba(23, 16, 15, 0.1) 44%),
    url("../images/cabecera2.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7.5rem 0 5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.footer h2 {
  font-family: "Libre Baskerville", Georgia, serif;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.3rem, 9vw, 7.8rem);
  line-height: 0.96;
}

.hero-copy {
  max-width: 620px;
  margin: 1.3rem 0 0;
  color: #eadcc9;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  padding: 0.78rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(255, 248, 238, 0.5);
  color: var(--text-inverse);
}

.button-secondary:hover {
  background: rgba(255, 248, 238, 0.12);
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section h2 {
  margin: 0;
  color: var(--text-inverse);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--panel);
  border-radius: 0.5rem;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
}

.feature-wide {
  grid-column: 1 / -1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.feature h3,
.news-card h3 {
  margin: 0 0 0.65rem;
  color: var(--accent-strong);
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.2;
}

.feature p,
.news-content p {
  margin: 0 0 0.85rem;
}

.feature p:last-child,
.news-content p:last-child {
  margin-bottom: 0;
}

.feature a {
  color: var(--accent-strong);
  font-weight: 800;
}

.news-section {
  border-top: 1px solid var(--line);
}

.news-list {
  display: grid;
  gap: 1.2rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) 1fr;
  overflow: hidden;
  background: var(--panel);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.news-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.news-content {
  padding: clamp(1.15rem, 3vw, 2rem);
}

.date {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-weight: 800;
}

dl {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  border-top: 1px solid #e2d2bf;
  padding-top: 0.55rem;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--text-inverse);
}

.split-section p:not(.eyebrow) {
  max-width: 680px;
  color: #eadcc9;
  font-size: 1.1rem;
}

.link-panel {
  display: grid;
  gap: 0.7rem;
}

.link-panel a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 248, 238, 0.26);
  border-radius: 0.4rem;
  padding: 0.8rem 1rem;
  color: var(--text-inverse);
  font-weight: 800;
  text-decoration: none;
}

.link-panel a::after {
  content: "->";
}

.contact-section {
  padding-top: 0;
}

.contact-card {
  background: var(--panel-muted);
  border-radius: 0.5rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.contact-card h2 {
  color: var(--text);
}

.contact-card .button-secondary {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--text-inverse);
  padding: 2.2rem 1rem;
}

.footer > div,
.footer > p {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer h2 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer a {
  border: 1px solid rgba(255, 248, 238, 0.26);
  border-radius: 0.35rem;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
}

.footer p {
  margin-top: 1.8rem;
  color: #c9b9a6;
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    min-height: 680px;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(23, 16, 15, 0.96) 0%, rgba(23, 16, 15, 0.42) 62%, rgba(23, 16, 15, 0.2) 100%),
      url("../images/cabecera2.png") 62% center / cover no-repeat;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .feature-grid,
  .news-card,
  .split-section {
    grid-template-columns: 1fr;
  }

.news-card {
  display: flex;
  flex-direction: column;
  }

.news-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  flex: none;
  }
}

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

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
