:root {
  --bg: #f6f0ed;
  --surface: #ffffff;
  --surface-strong: #f0dfd8;
  --text: #2f2230;
  --muted: #705665;
  --accent: #c4576c;
  --accent-dark: #9b334d;
  --line: rgba(47, 34, 48, 0.12);
  --shadow: 0 18px 50px rgba(58, 28, 45, 0.12);
  --radius: 22px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(196, 87, 108, 0.18), transparent 28%),
    linear-gradient(180deg, #fff8f4 0%, var(--bg) 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.topbar {
  background: #f1d9dd;
  border-bottom: 1px solid rgba(155, 51, 77, 0.08);
}

.topbar__inner,
.site-header__inner,
.projects-banner__inner,
.site-footer__inner,
.site-footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.topbar__inner {
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.social-list,
.site-nav ul,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list,
.topbar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.social-list a,
.topbar__contact a {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 244, 0.9);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 76px;
  height: auto;
}

.brand span {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.3rem;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus-visible,
.social-list a:hover,
.topbar__contact a:hover {
  color: var(--accent-dark);
}

.hero {
  padding: 2rem 0 1rem;
}

.hero__slider {
  position: relative;
}

.hero__slider input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hero__slides {
  position: relative;
  min-height: 620px;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero__slide img,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slide img {
  object-fit: cover;
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(36, 15, 24, 0.72) 0%, rgba(36, 15, 24, 0.24) 58%, rgba(36, 15, 24, 0.12) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 1rem;
  max-width: 520px;
  min-height: 620px;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
}

.eyebrow {
  margin: 0;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__content h1,
.hero__content h2,
.section-heading h2,
.projects-banner h2,
.site-footer h2 {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.05;
}

.hero__content h1,
.hero__content h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  text-transform: uppercase;
}

.hero__content p:last-of-type {
  margin: 0;
  max-width: 34ch;
  font-size: 1.1rem;
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(196, 87, 108, 0.34);
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

.button--light {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: none;
}

#slide-1:checked ~ .hero__slides .hero__slide--1,
#slide-2:checked ~ .hero__slides .hero__slide--2,
#slide-3:checked ~ .hero__slides .hero__slide--3,
#slide-4:checked ~ .hero__slides .hero__slide--4 {
  opacity: 1;
}

.hero__controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1rem;
}

.hero__controls label {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(196, 87, 108, 0.14);
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
}

#slide-1:checked ~ .hero__controls label[for="slide-1"],
#slide-2:checked ~ .hero__controls label[for="slide-2"],
#slide-3:checked ~ .hero__controls label[for="slide-3"],
#slide-4:checked ~ .hero__controls label[for="slide-4"] {
  background: var(--accent-dark);
  color: #fff;
}

.highlights {
  padding: 2.5rem 0 4.5rem;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-heading .eyebrow,
.projects-banner .eyebrow {
  color: var(--accent-dark);
}

.section-heading h2,
.projects-banner h2,
.site-footer h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

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

.card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(47, 34, 48, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem;
}

.card__body h3 {
  margin: 0 0 0.6rem;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
  line-height: 1.15;
}

.card__body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.card__body a {
  font-weight: 700;
  color: var(--accent-dark);
}

.projects-banner {
  padding-bottom: 4.5rem;
}

.projects-banner__inner {
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, #c4576c 0%, #7c2843 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.projects-banner__inner p:last-child {
  margin-bottom: 0;
  max-width: 62ch;
}

.site-footer {
  color: #fbeef0;
  background:
    linear-gradient(rgba(47, 18, 31, 0.9), rgba(47, 18, 31, 0.92)),
    url("../images/slide-proyectos.jpg") center / cover no-repeat;
}

.site-footer__inner {
  align-items: flex-start;
  padding: 4rem 0 3rem;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
}

.contact-list a {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__bottom .container {
  padding: 1.2rem 0 1.5rem;
  justify-content: center;
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
}

.page-main {
  padding: 2rem 0 4.5rem;
}

.breadcrumb {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero {
  padding: 0 0 2rem;
}

.page-hero__inner,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.page-hero__content h1,
.page-hero__content h2 {
  margin: 0 0 1rem;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.05;
}

.page-hero__content p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero__media img,
.media-frame img {
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.content-section {
  padding: 1.25rem 0;
}

.content-card,
.notice,
.form-card,
.tile {
  background: var(--surface);
  border: 1px solid rgba(47, 34, 48, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-card,
.form-card,
.notice {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.prose {
  max-width: 78ch;
}

.prose h2,
.prose h3 {
  margin: 0 0 1rem;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.12;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose > *:last-child {
  margin-bottom: 0;
}

.tile-grid,
.gallery-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.tile {
  overflow: hidden;
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tile__body {
  padding: 1.3rem;
}

.tile__body h3,
.tile__body h4 {
  margin: 0 0 0.7rem;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.15;
}

.tile__body p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.subnav {
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subnav a {
  display: inline-flex;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(196, 87, 108, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
}

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

.media-frame figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid rgba(47, 34, 48, 0.14);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
  background: #fff;
}

.textarea {
  min-height: 160px;
  resize: vertical;
}

.notice {
  background: linear-gradient(135deg, rgba(196, 87, 108, 0.08), rgba(124, 40, 67, 0.08));
}

.doc-grid .tile__body p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .site-header__inner,
  .projects-banner__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

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

  .page-hero__inner,
  .split-layout,
  .tile-grid,
  .gallery-grid,
  .doc-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .hero__slides,
  .hero__content {
    min-height: 520px;
  }

  .hero__content {
    justify-content: end;
  }

  .brand img {
    width: 64px;
  }

  .brand span {
    font-size: 1rem;
  }

  .site-nav a {
    font-size: 0.92rem;
  }
}
