:root {
  --ink: #111111;
  --ink-soft: #24221f;
  --paper: #edf1ed;
  --paper-bright: #ffffff;
  --line: rgba(17, 17, 17, 0.14);
  --gold: #c8902e;
  --gold-soft: #e3bb73;
  --copper: #b95c35;
  --teal: #1b7b74;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  --shell: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(27, 123, 116, 0.12), transparent 25rem),
    linear-gradient(180deg, #f3f6f3 0%, #edf1ee 32%, #ffffff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.04;
}

h1,
h2 {
  font-family: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 500;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
}

p {
  color: rgba(17, 17, 17, 0.78);
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section-band {
  position: relative;
  padding: 112px 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--copper);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100vw - 40px));
  min-height: 92px;
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.74), rgba(9, 9, 9, 0.28));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  width: min(260px, 45vw);
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold-soft);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 22px;
  font-weight: 700;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-cta,
.button-primary {
  background: var(--gold);
  color: #181108;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.2);
  color: var(--white);
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  align-items: end;
  overflow: hidden;
  background: #151515 url("./assets/images/hero-poster.webp") center / cover;
  color: var(--white);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  object-position: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)),
    url("./assets/images/hero-poster.webp") center / cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.84) 0%, rgba(9, 8, 7, 0.48) 48%, rgba(9, 8, 7, 0.58) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 150px 0 72px;
}

.hero h1 {
  max-width: 830px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(2.7rem, 7vw, 7.2rem);
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-proof {
  background: #151413;
  color: var(--white);
}

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

.hero-proof p {
  min-height: 118px;
  margin: 0;
  padding: 28px 28px 28px 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-proof p + p {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 28px;
}

.hero-proof strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.3rem;
}

.intro {
  padding-top: 98px;
}

.intro-grid,
.process-grid,
.editorial-grid,
.contact-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
}

.intro-grid h2 {
  max-width: 690px;
}

.intro-copy {
  padding-top: 44px;
  font-size: 1.1rem;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 324px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px;
  background: rgba(255, 255, 255, 0.38);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.service-item:hover,
.service-item:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-2px);
}

.service-item span {
  display: inline-flex;
  margin-bottom: 58px;
  color: var(--teal);
  font-weight: 800;
}

.service-item h3 {
  margin-bottom: 16px;
}

.service-item p {
  margin-bottom: 0;
}

.work {
  background: #181615;
  color: var(--white);
}

.work h2,
.work h3 {
  color: var(--white);
}

.work .eyebrow.dark {
  color: var(--gold-soft);
}

.work-heading p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

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

.project-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #2b2927;
  box-shadow: var(--shadow);
}

.project-card-wide {
  grid-column: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 400ms ease;
}

.project-card:hover img,
.project-card:focus-within img {
  transform: scale(1.03);
}

.project-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 92px 26px 24px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.project-copy p,
.project-copy span {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.project-copy p {
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-copy h3 {
  margin-bottom: 10px;
}

.project-card-bright .project-copy {
  background: linear-gradient(180deg, transparent, rgba(31, 20, 9, 0.92));
}

.process-copy p:last-child,
.editorial article p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.process-list strong {
  font-size: 1.15rem;
}

.process-list span {
  color: rgba(17, 17, 17, 0.72);
}

.editorial {
  background: var(--paper-bright);
}

.editorial-grid {
  align-items: center;
}

.editorial img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.editorial article {
  max-width: 560px;
}

.faq-heading {
  margin-bottom: 34px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 72px 26px 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  float: right;
  color: var(--copper);
  content: "+";
  font-size: 1.5rem;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 760px;
  padding: 0 0 26px;
  margin-bottom: 0;
}

.contact {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 15, 14, 0.98), rgba(45, 35, 24, 0.96)),
    url("./assets/images/hero-poster.webp") center / cover;
  color: var(--white);
}

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

.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  align-items: end;
}

.contact-actions {
  display: grid;
  gap: 16px;
}

.contact-link {
  display: grid;
  gap: 6px;
  min-height: 104px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(227, 187, 115, 0.72);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.contact-link span {
  color: var(--gold-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-link strong {
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.contact-actions > p {
  margin: 4px 0 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f0f0f;
  color: var(--white);
}

.footer-grid {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.catalog-page {
  background: #f3f6f3;
}

.page-header {
  background: rgba(15, 15, 15, 0.92);
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 680px;
  align-items: end;
  overflow: hidden;
  background: #171615;
  color: var(--white);
}

.page-hero-media,
.page-hero-media::after {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.88), rgba(8, 8, 8, 0.46) 62%, rgba(8, 8, 8, 0.72)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76));
  content: "";
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  padding: 182px 0 92px;
}

.page-hero-copy h1 {
  max-width: 920px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 6rem);
}

.page-hero-copy > p:last-of-type {
  max-width: 720px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 1.7vw, 1.3rem);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--gold-soft);
}

.catalog-intro,
.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
}

.catalog-grid,
.benefit-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card,
.benefit-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.catalog-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.catalog-card:hover,
.catalog-card:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
}

.catalog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.catalog-copy,
.benefit-card {
  padding: 26px;
}

.catalog-copy span,
.example-card span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-copy h2,
.benefit-card h2,
.benefit-card h3 {
  margin: 12px 0;
  font-family: inherit;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.18;
}

.catalog-copy p,
.benefit-card p {
  margin-bottom: 0;
}

.product-intro > div:last-child {
  padding-top: 44px;
  font-size: 1.08rem;
}

.example-band {
  background: #171615;
  color: var(--white);
}

.example-band h2,
.example-band h3 {
  color: var(--white);
}

.example-band p {
  color: rgba(255, 255, 255, 0.74);
}

.example-band .eyebrow.dark,
.example-card span {
  color: var(--gold-soft);
}

.example-card {
  overflow: hidden;
  background: #23201d;
}

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

.example-card div {
  padding: 22px;
}

.example-card h3 {
  margin: 8px 0 10px;
}

.example-card p {
  margin-bottom: 0;
}

.product-faq {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 44px;
}

@media (max-width: 980px) {
  :root {
    --shell: min(100vw - 32px, 1180px);
  }

  .site-header {
    width: calc(100vw - 24px);
    min-height: 78px;
    padding: 0 16px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(320px, calc(100vw - 24px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 15, 15, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 56px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    border-bottom: 0;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    padding: 126px 0 64px;
  }

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

  .hero-proof p {
    min-height: auto;
    padding: 18px 0;
  }

  .hero-proof p + p {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
    padding-left: 0;
  }

  .intro-grid,
  .process-grid,
  .editorial-grid,
  .contact-grid,
  .catalog-intro,
  .product-intro,
  .product-faq {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro-copy {
    padding-top: 0;
  }

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

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

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

  .product-intro > div:last-child {
    padding-top: 0;
  }

  .project-card,
  .project-card img {
    min-height: 380px;
  }
}

@media (max-width: 680px) {
  .section-band {
    padding: 82px 0;
  }

  .brand {
    width: min(210px, 55vw);
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding: 118px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 4.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid,
  .work-grid,
  .catalog-grid,
  .benefit-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 620px;
  }

  .page-hero-copy {
    padding: 126px 0 68px;
  }

  .service-item {
    min-height: auto;
    padding: 28px 24px;
  }

  .service-item span {
    margin-bottom: 32px;
  }

  .project-card-wide {
    grid-column: auto;
  }

  .project-card,
  .project-card img {
    min-height: 340px;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .faq-list summary {
    padding-right: 42px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

/* ==========================================================================
   Boton flotante de WhatsApp
   ========================================================================== */

.wa-float-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.whatsapp-float {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1) rotate(5deg);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
  outline: none;
}

.whatsapp-pulse {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: 1;
  pointer-events: none;
  animation: wa-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.whatsapp-tooltip {
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  margin-right: 14px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  font-family: Inter, sans-serif;
  letter-spacing: 0.5px;
}

.wa-float-container:hover .whatsapp-tooltip,
.whatsapp-tooltip.auto-show {
  opacity: 1;
  transform: translateX(0);
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.84;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .whatsapp-tooltip {
    display: none;
  }
  .whatsapp-float {
    width: 52px;
    height: 52px;
  }
  .whatsapp-pulse {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  .wa-float-container {
    bottom: 16px;
    right: 16px;
  }
}
