:root {
  --ink: #1f2623;
  --muted: #6d756f;
  --paper: #f7f5ef;
  --clay: #b8744f;
  --moss: #53685b;
  --gold: #d3a84f;
  --line: rgba(31, 38, 35, 0.14);
  --shadow: 0 18px 50px rgba(31, 38, 35, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 500;
}

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

.navbar {
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar-brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-link {
  color: var(--ink);
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--clay);
}

.btn-presupuesto {
  color: #fff;
  background: var(--moss);
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  padding: 0.65rem 1rem;
}

.btn-presupuesto:hover,
.btn-presupuesto:focus {
  color: #fff;
  background: var(--clay);
}

section {
  scroll-margin-top: 74px;
}

.work-section {
  min-height: 100vh;
  padding-top: 74px;
  background: #ece7dc;
}

.section-heading {
  max-width: 1080px;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

.section-heading p,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  line-height: 1;
  font-weight: 900;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.02;
  font-weight: 900;
}

.about-section h2,
.reviews-section h2,
.faq-section h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.work-grid {
  display: flex;
  width: 100%;
  height: 440px;
  overflow: hidden;
}

.work-card {
  position: relative;
  flex: 1 1 16.66%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #222;
  isolation: isolate;
  cursor: pointer;
  transition: flex-basis 420ms ease, flex-grow 420ms ease, opacity 260ms ease, filter 260ms ease;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #1f2623;
  transition: filter 300ms ease;
}

.work-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  pointer-events: none;
}

.more-btn {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #fff;
  background: rgba(31, 38, 35, 0.74);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 240ms ease, background 240ms ease, transform 240ms ease;
}

.more-btn:hover,
.more-btn:focus {
  background: var(--clay);
  transform: scale(1.04);
}

.work-grid:hover .work-card {
  flex: 0 1 0;
  opacity: 0;
}

.work-grid:hover .work-card:hover {
  flex: 1 1 100%;
  opacity: 1;
}

.work-card:hover img {
  filter: saturate(1.1) contrast(1.05);
}

.work-grid:hover .work-card:hover img {
  object-fit: contain;
}

.work-card:hover .more-btn,
.work-card:focus-within .more-btn {
  opacity: 1;
}

.about-section,
.reviews-section,
.faq-section {
  padding: 6rem 0;
}

.about-section {
  background: var(--paper);
}

.worker-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.worker {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.worker img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 50%;
  object-fit: cover;
}

.worker h3 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.worker p {
  margin: 0;
  color: var(--muted);
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(31, 38, 35, 0.18);
  pointer-events: none;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 29px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 21px solid var(--clay);
}

.presentation-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.reviews-section {
  background: #dde3dc;
}

.review-card {
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid rgba(83, 104, 91, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 38, 35, 0.08);
}

.review-card p {
  min-height: 96px;
  color: var(--muted);
  line-height: 1.6;
}

.stars {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.faq-section {
  background: var(--paper);
}

.accordion-item {
  border-color: var(--line);
  background: #fff;
}

.accordion-button {
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.accordion-button:not(.collapsed) {
  color: var(--ink);
  background: #eef0ea;
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 0.2rem rgba(83, 104, 91, 0.18);
}

.site-footer {
  padding: 3rem 0;
  color: #fff;
  background: var(--ink);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 34px rgba(31, 38, 35, 0.25);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.whatsapp-float svg {
  width: 33px;
  height: 33px;
  fill: currentColor;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  background: #1fb85a;
  box-shadow: 0 18px 42px rgba(31, 38, 35, 0.3);
  transform: translateY(-3px);
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.site-footer a {
  color: #fff;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--clay);
}

.modal-content {
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-modal {
  color: #fff;
  background: #111713;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.gallery-modal .modal-body {
  padding: 0;
}

.gallery-modal-header {
  border: 0;
  padding: 0.9rem 1rem;
  background: #111713;
}

.gallery-modal-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-content {
  background: #111713;
}

.project-carousel {
  position: relative;
}

.gallery-slide {
  display: grid;
  height: min(62vh, 620px);
  min-height: 420px;
  place-items: center;
  padding: 2rem;
  background: #111713;
}

.gallery-slide img {
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 760px);
  max-height: min(52vh, 520px);
  object-fit: contain;
  object-position: center;
}

.project-carousel .carousel-control-prev,
.project-carousel .carousel-control-next {
  width: 9%;
}

.project-carousel .carousel-control-prev-icon,
.project-carousel .carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(31, 38, 35, 0.72);
  background-size: 48%;
}

.gallery-thumbs {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 1rem;
  background: #1b241f;
  scrollbar-width: thin;
}

.gallery-thumb {
  width: 104px;
  height: 76px;
  flex: 0 0 104px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #111713;
  opacity: 0.58;
  padding: 0;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gallery-thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #111713;
}

.gallery-thumb:hover,
.gallery-thumb:focus,
.gallery-thumb.active {
  border-color: var(--clay);
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-empty {
  margin: 0;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}

.video-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--moss), var(--clay));
  text-align: center;
}

.video-placeholder div {
  padding: 2rem;
}

.video-placeholder p {
  max-width: 520px;
  margin: 0.5rem auto 0;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1200px) {
  .work-grid {
    flex-wrap: wrap;
  }

  .work-card {
    flex: 1 1 33.33%;
  }

  .work-grid:hover .work-card:hover {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .section-heading {
    padding-top: 0.5rem;
  }

  .work-grid {
    height: auto;
  }

  .work-card,
  .work-card img {
    height: 290px;
  }

  .work-card {
    flex: 1 1 50%;
  }

  .about-section,
  .reviews-section,
  .faq-section {
    padding: 4rem 0;
  }

  .work-grid:hover .work-card {
    flex: 1 1 50%;
    opacity: 1;
  }

  .work-grid:hover .work-card:hover {
    flex: 1 1 50%;
  }

  .more-btn {
    opacity: 1;
  }

  .gallery-slide {
    height: 54vh;
    min-height: 320px;
    padding: 1rem;
  }

  .gallery-slide img {
    max-width: 100%;
    max-height: 46vh;
  }

  .gallery-thumb {
    width: 86px;
    height: 64px;
    flex-basis: 86px;
  }
}

@media (max-width: 520px) {
  .work-card,
  .work-grid:hover .work-card {
    flex-basis: 100%;
  }

  .work-grid:hover .work-card:hover {
    flex: 1 1 100%;
  }

  .worker {
    align-items: flex-start;
  }
}
