:root {
  --gold: #cda35e;
  --gold-dark: #9f7738;
  --ink: #2f2a24;
  --muted: #71685d;
  --paper: #fffdf8;
  --soft: #f7f2e8;
  --line: rgba(205, 163, 94, 0.38);
  --shadow: 0 22px 70px rgba(85, 65, 31, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

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

.top-contact-bar {
  background: var(--gold-dark);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-contact-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.top-contact-inner a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.top-contact-inner svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.navbar {
  width: min(1120px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
}

.brand img {
  width: 170px;
  max-height: 66px;
  object-fit: contain;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--gold-dark);
  border-color: var(--gold);
}

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.75;
}

.hero::before {
  top: 32px;
}

.hero::after {
  bottom: 32px;
}

.hero-slider {
  position: relative;
  inset: 0;
  z-index: 1;
  min-height: calc(100vh - 92px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 56px 20px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: heroSlide 18s infinite;
}

.hero-slide.slide-one {
  background-image: url("../assets/galeria/montaje-blanco-negro-c.jpg");
}

.hero-slide.slide-two {
  background-image: url("../assets/galeria/montaje-carpa-c.jpg");
  animation-delay: 6s;
}

.hero-slide.slide-three {
  background-image: url("../assets/galeria/montaje-ejecutivo-b.jpg");
  animation-delay: 12s;
}

.slide-text {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding-right: min(48vw, 620px);
  color: white;
}

.slide-text::before {
  content: "";
  position: absolute;
  inset: -24px auto -26px -24px;
  width: min(680px, calc(100% + 48px));
  z-index: -1;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: rgba(47, 42, 36, 0.46);
  backdrop-filter: blur(2px);
}

.slide-text span {
  display: block;
  color: #ffd98c;
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slide-text h1 {
  max-width: 620px;
  margin: 10px 0 0;
  color: white;
  font-size: clamp(2rem, 4.4vw, 4.15rem);
  line-height: 1.06;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.66);
}

.slide-text p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  line-height: 1.5;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.62);
}

.slide-text .hero-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.slide-text .button.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.72);
}

.slide-text strong {
  margin-top: 8px;
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 3.15rem);
  line-height: 1.08;
}

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  7%,
  31% {
    opacity: 1;
    transform: scale(1);
  }

  38%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(920px, 100%);
  text-align: center;
}

.hero-logo {
  width: min(540px, 86vw);
  margin: 0 auto 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  color: var(--ink);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  color: var(--ink);
}

h3 {
  font-size: 1.35rem;
  color: var(--ink);
}

.hero-copy,
.page-hero p,
.feature-copy p,
.text-block p,
.section-heading p,
.contact-info p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-copy {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  color: white;
  background: var(--gold);
}

.button.secondary {
  color: var(--gold-dark);
  background: rgba(255, 253, 248, 0.82);
}

.text-link {
  width: fit-content;
  min-height: 48px;
  margin-top: 22px;
  padding-bottom: 5px;
  display: inline-flex;
  align-items: center;
  color: var(--gold-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.section {
  padding: 92px 20px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.quick-contact {
  padding: 22px 20px;
  background: var(--ink);
  color: white;
}

.quick-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-contact-link {
  min-height: 76px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(205, 163, 94, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.quick-contact-link small {
  display: block;
  color: #f0cf94;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
}

.quick-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.page-hero {
  padding: 86px 20px;
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.76), rgba(255, 253, 248, 0.98)),
    url("../assets/hoja-membretada.png") center / min(720px, 88vw) auto no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  text-align: center;
}

.page-hero.compact p {
  max-width: 720px;
  margin-inline: auto;
}

.page-hero-grid,
.feature-grid,
.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.page-hero-grid img,
.photo-main,
.photo-small,
.preview-card img,
.gallery-grid img,
.service-card img,
.strip-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.page-hero-grid img {
  min-height: 430px;
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.photo-feature,
.gallery-section {
  background: white;
}

.feature-copy p,
.text-block p,
.section-heading p,
.contact-info p {
  margin: 0;
}

.feature-copy h2,
.section-heading h2,
.contact-info h2 {
  margin-bottom: 18px;
}

.text-block p + p {
  margin-top: 18px;
}

.photo-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
  align-items: end;
}

.photo-main {
  min-height: 520px;
  box-shadow: var(--shadow);
}

.photo-small {
  min-height: 330px;
  margin-bottom: 44px;
  border: 8px solid var(--paper);
  box-shadow: 0 18px 46px rgba(85, 65, 31, 0.16);
}

.services-preview,
.contact-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

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

.preview-grid,
.gallery-grid,
.strip-grid {
  display: grid;
  gap: 18px;
}

.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(85, 65, 31, 0.08);
}

.preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(47, 42, 36, 0.74));
}

.preview-card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  color: white;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.16;
}

.about-section {
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.7), rgba(255, 253, 248, 0.96)),
    url("../assets/hoja-membretada.png") center / min(720px, 88vw) auto no-repeat;
}

.gallery-grid {
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 230px;
}

.gallery-grid img {
  box-shadow: 0 12px 34px rgba(85, 65, 31, 0.09);
}

.gallery-grid img:first-child {
  grid-row: span 2;
}

.gallery-grid img:nth-child(3) {
  grid-row: span 2;
}

.services-section {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.services-grid.detailed {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  min-height: 286px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(85, 65, 31, 0.08);
}

.service-card img {
  height: 280px;
  margin-bottom: 24px;
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--gold);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.services-gallery-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.services-gallery {
  column-count: 3;
  column-gap: 18px;
}

.gallery-item {
  margin: 0 0 18px;
  break-inside: avoid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 12px 36px rgba(85, 65, 31, 0.08);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 260ms ease, filter 260ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.photo-banner {
  min-height: 430px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(47, 42, 36, 0.82), rgba(47, 42, 36, 0.28)),
    url("../assets/galeria/montaje-dorado.jpg") center / cover;
}

.top-photo-banner {
  min-height: 360px;
  padding-block: 74px;
  border-bottom: 1px solid var(--line);
}

.home-banner {
  background:
    linear-gradient(90deg, rgba(47, 42, 36, 0.68), rgba(47, 42, 36, 0.16)),
    url("../assets/galeria/montaje-carpa.jpg") center / cover;
}

.about-banner {
  background:
    linear-gradient(90deg, rgba(47, 42, 36, 0.68), rgba(47, 42, 36, 0.16)),
    url("../assets/galeria/montaje-novios-flores.jpg") center / cover;
}

.services-banner {
  background:
    linear-gradient(90deg, rgba(47, 42, 36, 0.68), rgba(47, 42, 36, 0.16)),
    url("../assets/galeria/montaje-carpa-c.jpg") center / cover;
}

.contact-banner {
  background:
    linear-gradient(90deg, rgba(47, 42, 36, 0.68), rgba(47, 42, 36, 0.16)),
    url("../assets/galeria/terraza-lounge.jpg") center / cover;
}

.banner-content {
  color: white;
}

.banner-content h2 {
  max-width: 780px;
  margin-bottom: 26px;
  color: white;
}

.banner-content .eyebrow {
  color: #f0cf94;
}

.contact-info h2 {
  margin-bottom: 18px;
}

.contact-actions {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.contact-link {
  min-height: 76px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(85, 65, 31, 0.07);
  color: var(--ink);
  font-weight: 700;
  font-style: normal;
}

.contact-link span {
  margin-bottom: 2px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.map-panel {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  border: 0;
}

.contact-photo-strip {
  background: white;
}

.strip-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strip-grid img {
  height: 310px;
  box-shadow: 0 12px 34px rgba(85, 65, 31, 0.09);
}

.site-footer {
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 130px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-dark);
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-2px);
  background: var(--gold);
  color: white;
  box-shadow: 0 10px 26px rgba(85, 65, 31, 0.14);
}

.social-links svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .services-grid,
  .preview-grid,
  .quick-contact-grid,
  .strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-gallery {
    column-count: 2;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .navbar {
    min-height: auto;
    padding: 10px 0 12px;
    flex-direction: column;
  }

  .top-contact-inner {
    justify-content: center;
    gap: 10px 16px;
    padding: 4px 0;
  }

  .brand img {
    width: 158px;
    max-height: 58px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-slider {
    min-height: 640px;
  }

  .slide-text {
    width: min(680px, 100%);
    padding-right: 0;
  }

  .slide-text::before {
    width: calc(100% + 40px);
    inset: -20px -20px -22px -20px;
  }

  .slide-text h1 {
    max-width: 620px;
    font-size: clamp(2rem, 7vw, 3.7rem);
  }

  .page-hero-grid,
  .feature-grid,
  .two-column,
  .contact-layout,
  .services-grid.detailed {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .photo-stack {
    grid-template-columns: 1fr;
  }

  .photo-small {
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 0.74rem;
  }

  .top-contact-inner a {
    font-size: 0.74rem;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero-slide {
    align-items: flex-end;
    padding: 42px 16px 50px;
  }

  .slide-text {
    padding-right: 0;
  }

  .slide-text h1 {
    max-width: 100%;
    font-size: clamp(1.82rem, 9vw, 2.55rem);
    line-height: 1.08;
  }

  .slide-text p {
    max-width: 100%;
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .slide-text .hero-actions {
    margin-top: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section,
  .page-hero {
    padding: 70px 16px;
  }

  .services-grid,
  .preview-grid,
  .gallery-grid,
  .quick-contact-grid,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .services-gallery {
    column-count: 1;
  }

  .service-card {
    min-height: auto;
  }

  .page-hero-grid img,
  .photo-main,
  .photo-small,
  .preview-card,
  .gallery-grid img,
  .strip-grid img {
    min-height: 0;
    height: 300px;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-grid img:first-child,
  .gallery-grid img:nth-child(3) {
    grid-row: auto;
  }

  .map-panel,
  .map-panel iframe {
    min-height: 360px;
  }
}
