@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f2f0e9;
  --ink: #202725;
  --muted: #69706a;
  --copper: #ae623d;
  --line: #d4d7cd;
  --white: #fff;
  --font: 'DM Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--font);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 5px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Manrope, sans-serif;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -.055em;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
}

h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
}

h3 {
  font-weight: 500;
}

em {
  font-style: normal;
  color: var(--copper);
}

.wrap {
  width: min(1280px, 88%);
  margin-inline: auto;
}

.header {
  height: 96px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.wordmark {
  font: 600 20px/1.2 Manrope, sans-serif;
  letter-spacing: .08em;
}

.wordmark b {
  font-weight: 800;
}

.wordmark span {
  display: block;
  font: 12px var(--font);
  letter-spacing: .18em;
  margin-top: 5px;
  text-transform: uppercase;
}

.header nav {
  display: flex;
  gap: 44px;
  align-items: center;
}

.header nav a {
  font-size: 15px;
}

.header nav a.active {
  color: var(--copper);
}

.header nav a:last-child {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}

.menu {
  display: none;
}

.hero {
  height: calc(100svh - 96px);
  min-height: 620px;
  max-height: 1000px;
  position: relative;
  overflow: hidden;
  background: #5a6664;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #132b3266,
    #14242144 50%,
    #121c22c9
  );
}

.hero-label {
  position: absolute;
  top: 36px;
  left: 6%;
  right: 6%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .14em;
}

.hero-brand {
  position: absolute;
  inset: 12% 10% 19%;
  display: grid;
  place-items: center;
}

.hero-brand img {
  width: min(420px, 50vw);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px #ffffffb0);
  animation: materialize 2.8s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes materialize {
  0% {
    opacity: 0;
    filter: blur(24px) drop-shadow(0 0 45px white);
    transform: scale(.88);
    clip-path: inset(45% 0);
  }

  50% {
    opacity: .65;
    filter: blur(6px) drop-shadow(0 0 25px white);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0);
    filter: drop-shadow(0 4px 18px #ffffffb0);
  }
}

.hero-bottom {
  position: absolute;
  bottom: 38px;
  left: 6%;
  right: 6%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-bottom p {
  font: 500 clamp(25px, 3.2vw, 44px)/1.2 Manrope;
  margin: 0;
  letter-spacing: -.04em;
}

.hero-bottom > span {
  font-size: 12px;
  letter-spacing: .12em;
}

.intro {
  padding: 110px 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  display: block;
  margin-bottom: 25px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 9%;
  margin-top: 48px;
}

.intro-grid h1 {
  font-size: clamp(3rem, 4.4vw, 4.7rem);
}

.lead {
  font-size: 23px;
  line-height: 1.5;
}

.intro-grid p:not(.lead) {
  color: var(--muted);
}

.text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
  width: fit-content;
  max-width: 100%;
  font-size: 15px;
}

.text-link:hover {
  color: var(--copper);
  border-color: var(--copper);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  border-top: 1px solid var(--line);
  margin-top: 70px;
  padding-top: 36px;
}

.benefits span {
  font-size: 13px;
  color: var(--copper);
}

.benefits h3 {
  font-size: 20px;
  margin: 20px 0 10px;
}

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

.works {
  padding: 40px 0 100px;
  overflow: hidden;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.section-title h2 {
  margin: 0;
}

.section-title p {
  color: var(--muted);
}

.carousel-toggle {
  border: 1px solid var(--line);
  border-radius: 40px;
  background: none;
  padding: 12px 22px;
  font-size: 14px;
}

.marquee {
  overflow: hidden;
}

.track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 120s linear infinite;
}

.marquee.paused .track,
.marquee:hover .track,
.marquee:focus-within .track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 10px));
  }
}

.photo {
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  width: 300px;
  flex: none;
}

.photo img {
  width: 300px;
  height: 380px;
  object-fit: cover;
}

.photo span {
  display: block;
  font-size: 12px;
  padding: 14px 0;
  color: var(--muted);
}

.parallax {
  height: 650px;
  position: relative;
  overflow: hidden;
  background: #202725;
  color: white;
}

.parallax > img {
  position: absolute;
  top: -12%;
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .48;
  will-change: transform;
}

.parallax-copy {
  position: relative;
  z-index: 1;
  width: 88%;
  max-width: 1280px;
  margin: auto;
  padding-top: 170px;
}

.parallax-copy h2 {
  max-width: 850px;
}

.parallax-copy p {
  max-width: 480px;
  font-size: 19px;
}

.videos {
  padding: 115px 0 70px;
}

/* Cada fila queda centrada, independientemente de la cantidad. */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.video-card {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--ink);
}

.video-grid > .video-card {
  flex: 0 0 calc((100% - 75px) / 4);
  min-width: 0;
}

.video-card > div {
  position: relative;
  overflow: hidden;
}

.video-card img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  transition: transform .5s;
  background: var(--line);
}

.video-card:hover img {
  transform: scale(1.04);
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border: 1px solid #fff8;
  border-radius: 50%;
  background: #20272588;
  color: white;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 12px;
  background: #202725aa;
  color: white;
  padding: 2px 9px;
  border-radius: 20px;
}

.video-card h3 {
  font-size: 16px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}

.closing {
  position: relative;
  margin-block: 40px 100px;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.closing h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
}

.round-link {
  position: absolute;
  right: 0;
  top: 130px;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  background: var(--copper);
  color: white;
  border-radius: 50%;
  font-size: 45px;
}

.round-link:hover {
  transform: rotate(45deg);
}

footer {
  background: var(--ink);
  color: var(--paper);
  padding: 65px 6% 25px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
}

.footer-main p {
  font-size: 14px;
  margin-top: 23px;
  color: #b6bcb4;
}

.footer-main h3 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b6bcb4;
}

.footer-main > div > a:not(.wordmark) {
  display: block;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #ffffff30;
  margin-top: 60px;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.credit {
  font-size: 15px;
  color: #e9b696;
}

.credit strong {
  color: white;
}

.page-heading {
  padding: 90px 0 65px;
}

.page-heading p {
  max-width: 570px;
  font-size: 20px;
  color: var(--muted);
}

.service-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 65px;
  border-bottom: 1px solid var(--line);
}

.service-index a {
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 0;
}

.service-index a:hover {
  color: var(--copper);
}

.services {
  overflow: hidden;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
  padding-block: 85px;
  border-bottom: 1px solid var(--line);
}

.service > * {
  min-width: 0;
}

.service:nth-child(even) .service-copy {
  grid-column: 2;
  grid-row: 1;
}

.service:nth-child(even) figure {
  grid-column: 1;
  grid-row: 1;
}

.service h2 {
  font-size: clamp(2.5rem, 3.6vw, 4rem);
  overflow-wrap: anywhere;
}

.service p {
  font-size: 18px;
  color: var(--muted);
}

figure {
  margin: 0;
}

.service img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.service figcaption {
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
}

.service-assurance {
  padding: 90px 0;
}

.service-assurance h2 {
  font-size: 40px;
}

.contact-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10%;
  padding-bottom: 100px;
}

.phone {
  font-size: clamp(22px, 2.4vw, 35px);
  letter-spacing: -.03em;
  display: block;
  margin-bottom: 25px;
}

.contact-layout aside p {
  color: var(--muted);
}

.contact-layout aside > .text-link {
  margin-top: 18px;
}

.contact-note {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.contact-note h3 {
  font-size: 19px;
}

form {
  background: #e7e7de;
  padding: 40px;
}

form h2 {
  font-size: 30px;
  letter-spacing: -.04em;
}

form > p {
  color: var(--muted);
  font-size: 14px;
}

label {
  font-size: 14px;
  display: block;
  margin-bottom: 22px;
}

label > span {
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  display: block;
  margin-top: 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9ca198;
  border-radius: 0;
  padding: 12px 0;
  color: var(--ink);
  min-height: 48px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 4px;
  flex: none;
  accent-color: var(--copper);
}

.submit {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--ink);
  color: white;
  border: 0;
}

.submit:hover {
  background: var(--copper);
}

form small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin: 18px 0 0;
}

.map-section {
  padding-bottom: 100px;
}

.map-section iframe {
  width: 100%;
  height: 470px;
  border: 0;
  display: block;
  background: var(--line);
}

.map-section .text-link {
  margin-top: 18px;
}

.lightbox {
  padding: 0;
  border: 0;
  background: #17211ef5;
  color: white;
  max-width: 95vw;
  width: 1000px;
  max-height: 94svh;
  overflow: auto;
}

.lightbox::backdrop {
  background: #000b;
  backdrop-filter: blur(8px);
}

.close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px;
  z-index: 3;
  background: #ffffff22;
  color: white;
  border: 1px solid #fff6;
  border-radius: 50%;
  width: 45px;
  height: 45px;
}

.lightbox-content {
  padding: 25px 30px 30px;
  clear: both;
}

.lightbox-content img,
.lightbox-content video {
  max-height: 72svh;
  width: 100%;
  object-fit: contain;
}

.lightbox-content h2 {
  font-size: 25px;
  margin: 20px 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s, transform .85s;
}

.from-left {
  transform: translateX(-50px);
}

.from-right {
  transform: translateX(50px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

[hidden] {
  display: none !important;
}

@media (min-width: 1600px) {
  .hero-brand img {
    width: 470px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 600px;
  }

  .hero-brand img {
    width: 350px;
  }

  .intro-grid {
    gap: 5%;
  }

  .video-grid > .video-card {
    flex-basis: calc((100% - 25px) / 2);
  }

  .service-index {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    gap: 6%;
    grid-template-columns: 1fr 1.3fr;
  }

  form {
    padding: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .header {
    height: 78px;
  }

  .wordmark {
    font-size: 17px;
  }

  .menu {
    display: flex;
    gap: 12px;
    background: none;
    border: 0;
    padding: 12px 0;
    font-size: 14px;
  }

  .header nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 30px 6%;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    border-bottom: 1px solid var(--line);
  }

  .header nav.open {
    display: flex;
  }

  .hero {
    height: calc(100svh - 78px);
    min-height: 560px;
  }

  .hero-label {
    top: 24px;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
  }

  .hero-brand {
    inset: 18% 10% 25%;
  }

  .hero-brand img {
    width: min(300px, 76vw);
  }

  .hero-bottom {
    bottom: 25px;
    gap: 25px;
  }

  .hero-bottom > span {
    font-size: 10px;
    max-width: 100px;
    text-align: right;
  }

  .intro {
    padding: 70px 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 20px;
  }

  .intro-grid h1 {
    font-size: 42px;
    margin-bottom: 15px;
  }

  .lead {
    font-size: 20px;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
    padding-top: 25px;
  }

  .benefits > div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }

  .benefits h3 {
    margin: 8px 0;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .section-title h2 {
    font-size: 38px;
  }

  .works {
    padding-bottom: 65px;
  }

  .photo,
  .photo img {
    width: 240px;
  }

  .photo img {
    height: 310px;
  }

  .parallax {
    height: 500px;
  }

  .parallax-copy {
    padding-top: 110px;
  }

  .parallax h2 {
    font-size: 40px;
  }

  .parallax p {
    font-size: 16px;
  }

  .videos {
    padding: 70px 0 40px;
  }

  .video-grid {
    gap: 16px;
  }

  .video-grid > .video-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .video-card img {
    height: 250px;
  }

  .video-card h3 {
    font-size: 14px;
    line-height: 1.5;
  }

  .play {
    width: 50px;
    height: 50px;
  }

  .closing {
    padding: 45px 0;
    margin-bottom: 60px;
  }

  .closing h2 {
    font-size: 48px;
  }

  .round-link {
    width: 64px;
    height: 64px;
    font-size: 30px;
    top: 100px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-main > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 18px;
    margin-top: 35px;
  }

  .page-heading {
    padding: 60px 0 40px;
  }

  .page-heading h1 {
    font-size: 47px;
  }

  .page-heading p {
    font-size: 18px;
  }

  .service-index {
    gap: 15px;
    padding-bottom: 35px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px 0;
  }

  .service:nth-child(even) .service-copy,
  .service:nth-child(even) figure {
    grid-column: auto;
    grid-row: auto;
  }

  .service h2 {
    font-size: 36px;
  }

  .service p {
    font-size: 16px;
  }

  .service-assurance {
    padding: 60px 0;
  }

  .service-assurance h2 {
    font-size: 34px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-bottom: 60px;
  }

  .contact-note {
    margin-top: 30px;
  }

  form {
    padding: 25px 20px;
  }

  .map-section {
    padding-bottom: 60px;
  }

  .map-section iframe {
    height: 360px;
  }

  .lightbox-content {
    padding: 15px;
  }

  .from-left,
  .from-right {
    transform: translateY(25px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .track {
    width: 100%;
    overflow-x: auto;
  }

  .track .clone {
    display: none;
  }

  .hero-brand img {
    opacity: 1;
  }

  .parallax > img {
    transform: none !important;
  }
}

input[type=hidden] {
  display: none !important;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit:disabled {
  opacity: .65;
  cursor: wait;
}

.contact-confirmation {
  padding: 20px;
  border: 1px solid #ae623d;
  margin-bottom: 25px;
}