:root {
  --ink: #151326;
  --muted: #68637b;
  --line: rgba(46, 18, 112, .14);
  --purple: #3a1682;
  --purple-dark: #180048;
  --purple-soft: #f1edf8;
  --gold: #d8b65c;
  --surface: #ffffff;
  --surface-soft: #f7f8fc;
  --shadow: 0 18px 48px rgba(21, 19, 38, .11);
  --shadow-soft: 0 10px 28px rgba(21, 19, 38, .07);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
}

body,
button,
input,
textarea {
  font: 400 16px/1.7 Poppins, "Segoe UI", Arial, sans-serif;
}

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

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

.wrap {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.topline {
  display: block;
  background: linear-gradient(90deg, var(--purple-dark), #3a1682);
  color: rgba(255, 255, 255, .92);
  font-size: .72rem;
  letter-spacing: .03em;
}

.topline .wrap {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topline a {
  color: inherit;
}

.topline-inner {
  padding: 6px 0 6px 16px;
}

.topline-address {
  white-space: nowrap;
}

.topline-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topline-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  transition: opacity .2s ease, transform .2s ease;
}

.topline-social a:hover {
  opacity: .82;
  transform: translateY(-1px);
}

.topline-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .topline .wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .topline-inner,
  .nav {
    padding-left: 0;
  }

  .topline-address {
    white-space: normal;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(21, 19, 38, .08);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(21, 19, 38, .04);
}

.nav {
  min-height: 72px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-left: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.topbar .brand {
  gap: 0;
  min-width: 0;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--purple-dark);
  font-size: .86rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand span {
  color: var(--muted);
  font-size: .76rem;
}

.topbar .brand span {
  display: none;
}

.topbar .brand img {
  width: 160px;
  height: 100px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
}

.menu a {
  border-radius: 7px;
  padding: 6px 11px;
  color: #26223a;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.menu a:hover {
  background: var(--purple-soft);
  color: var(--purple);
}

.menu a.active {
  background: var(--purple);
  color: #fff;
}

.quote-btn,
.theme-btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(46, 18, 112, .2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.quote-btn:hover,
.theme-btn:hover,
.button:hover {
  transform: translateY(-1px);
  background: var(--purple-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(24, 0, 72, .22);
}

.quote-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(24, 0, 72, .24);
  background: transparent;
  color: var(--purple);
  text-transform: uppercase;
  box-shadow: none;
}

.quote-btn:hover {
  background: var(--purple-soft);
  color: var(--purple-dark);
  box-shadow: none;
}

.theme-btn.secondary {
  background: #fff;
  color: var(--purple-dark);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .52);
}

.theme-btn.secondary:hover {
  background: var(--purple-soft);
  color: var(--purple-dark);
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.hero {
  min-height: 620px;
  display: grid;
  align-items: start;
  background-image:
    linear-gradient(90deg, rgba(14, 11, 31, .88), rgba(24, 0, 72, .68) 46%, rgba(24, 0, 72, .2)),
    url("fotos web/site/hero-fallback.jpg");
}

.hero .wrap {
  width: min(100% - 2px, calc(var(--container) + 320px));
  margin-left: max(0px, calc((100vw - var(--container)) / 2 - 205px));
  margin-right: auto;
  padding: 112px 0 118px;
}

.hero-carousel {
  display: block;
  min-height: 620px;
  background: #121020;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: start;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}

.hero-slide.hero-slide-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 11, 31, .9), rgba(24, 0, 72, .72) 46%, rgba(24, 0, 72, .26));
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide.is-active .hero-content > * {
  animation: heroFadeUp .85s ease both;
}

.hero-slide.is-active .hero-content .badge {
  animation-delay: .1s;
}

.hero-slide.is-active .hero-content h1 {
  animation-delay: .22s;
}

.hero-slide.is-active .hero-content p {
  animation-delay: .34s;
}

.hero-slide.is-active .hero-content .actions {
  animation-delay: .46s;
}

.hero-slide.hero-slide-overlay .wrap {
  position: relative;
  z-index: 1;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 7px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.hero-arrow:hover {
  border-color: rgba(255, 255, 255, .58);
  background: var(--purple);
  transform: translateY(-50%) scale(1.03);
}

.hero-arrow-prev {
  left: max(6px, calc((100vw - var(--container)) / 2 - 230px));
}

.hero-arrow-next {
  right: max(6px, calc((100vw - var(--container)) / 2 - 230px));
}

.hero-dots {
  position: absolute;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.hero-dots button.is-active {
  width: 42px;
  background: #fff;
}

.hero-content {
  max-width: 520px;
  padding-left: 56px;
  color: #fff;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-content > * {
    animation: none;
  }
}

.badge,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.badge::before,
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

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

h1 {
  max-width: 11.5ch;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 4.8vw, 4.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.hero p,
.page-hero p {
  max-width: 44ch;
  color: rgba(255, 255, 255, .86);
  font-size: 1rem;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero .theme-btn,
.hero .theme-btn.secondary {
  min-height: 42px;
  padding: 0 16px;
  font-size: .95rem;
}

.hero-stats {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.hero-stat,
.metric {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  padding: 18px;
}

.hero-stat strong,
.metric strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.15;
}

.hero-stat span,
.metric span {
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
}

.page-hero {
  min-height: 260px;
  display: grid;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(14, 11, 31, .88), rgba(24, 0, 72, .68), rgba(24, 0, 72, .2)),
    url("fotos web/site/services-banner.jpg");
}

.page-hero.projects {
  background-image:
    linear-gradient(90deg, rgba(14, 11, 31, .88), rgba(24, 0, 72, .68), rgba(24, 0, 72, .2)),
    url("fotos web/site/projects-banner.jpg");
}

.page-hero.contact {
  background-image:
    linear-gradient(90deg, rgba(14, 11, 31, .88), rgba(24, 0, 72, .68), rgba(24, 0, 72, .2)),
    url("fotos web/site/contact-banner.jpg");
}

.page-hero.somos {
  background-image:
    linear-gradient(90deg, rgba(14, 11, 31, .88), rgba(24, 0, 72, .68), rgba(24, 0, 72, .18)),
    url("fotos web/site/about-banner.jpg");
}

.page-hero .wrap {
  padding: 46px 0;
}

.page-hero h1 {
  max-width: 680px;
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.12;
}

.page-hero p {
  max-width: 620px;
  font-size: .95rem;
}

.page-hero .badge {
  position: relative;
  gap: 10px;
  color: #fff;
}

.page-hero .badge::before {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
}

.page-hero .badge::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.section {
  padding: 74px 0;
}

.section.soft {
  background: var(--surface-soft);
}

.experience-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(216, 182, 92, .16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(101, 54, 188, .22), transparent 26%),
    linear-gradient(135deg, #120b29, #1c0d3f 52%, #11091f);
  color: #fff;
}

.experience-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .18;
  pointer-events: none;
}

.experience-shell {
  position: relative;
  z-index: 1;
}

.experience-head {
  max-width: 880px;
  margin-bottom: 36px;
}

.experience-band .section-head h2,
.experience-band .section-head p {
  color: #fff;
}

.experience-band .section-head p {
  color: rgba(255, 255, 255, .78);
}

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

.experience-bar {
  padding: 20px 20px 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
}

.experience-bar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.experience-bar strong {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.experience-bar span {
  color: rgba(255, 255, 255, .84);
  font-size: .92rem;
}

.experience-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.experience-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 70%);
  pointer-events: none;
}

.experience-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8b65c, #9a70ff);
  box-shadow: 0 0 18px rgba(216, 182, 92, .22);
  transition: width .95s cubic-bezier(.2, .8, .2, 1);
}

.experience-band.is-visible .experience-track span {
  width: var(--fill);
}

.section.dark {
  background:
    linear-gradient(135deg, rgba(24, 0, 72, .96), rgba(58, 22, 130, .86)),
    url("fotos web/site/cta-bg.jpg") center/cover;
  color: #fff;
}

.section-head {
  max-width: 830px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head.center .kicker {
  justify-content: center;
}

.section-head h2 {
  margin-bottom: 14px;
  color: var(--purple-dark);
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.section.dark h2,
.section.dark p {
  color: #fff;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

.card,
.service-card,
.project-card,
.contact-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-card,
.project-card {
  overflow: hidden;
}

.service-card img,
.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.solutions-section .project-card img {
  background: var(--surface-soft);
  object-fit: contain;
}

.service-card .content,
.project-card .content,
.card {
  padding: 24px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card h3,
.service-card h3,
.project-card h3,
.contact-card h3,
.form-card h2 {
  margin-bottom: 10px;
  color: var(--purple-dark);
  font-size: 1.08rem;
  line-height: 1.25;
}

.card p,
.service-card p,
.project-card p,
.contact-card p,
.form-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 24px;
}

.project-filter {
  border: 1px solid rgba(24, 0, 72, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--purple-dark);
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.project-filter:hover,
.project-filter.active {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  transform: translateY(-1px);
}

.project-grid {
  margin-top: 10px;
}

.project-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 0, 72, .2);
  box-shadow: 0 18px 38px rgba(21, 19, 38, .08);
}

.project-year-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 32px;
}

.project-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

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

.project-photo-card {
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.project-photo-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.project-year-card {
  overflow: hidden;
  border: 1px solid rgba(180, 201, 205, .95);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.project-year-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 22, 130, .28);
  box-shadow: 0 20px 44px rgba(21, 19, 38, .12);
}

.project-year-cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-year-cover img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  transition: transform .35s ease;
}

.project-year-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(58, 22, 130, 0);
  transition: background .25s ease;
  z-index: 1;
}

.project-year-cover::after {
  content: "Ver galería";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) translateY(8px);
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.project-year-card:hover .project-year-cover img {
  transform: scale(1.04);
}

.project-year-card:hover .project-year-cover::before {
  background: rgba(5, 2, 15, .5);
}

.project-year-card:hover .project-year-cover::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.project-year-body {
  padding: 20px 20px 22px;
}

.project-year-body h3 {
  margin: 0 0 8px;
  color: var(--purple-dark);
  font-size: 1.2rem;
  line-height: 1.15;
}

.project-year-body p {
  margin: 0;
  color: var(--muted);
}

.project-year-body .tag {
  margin-bottom: 12px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(180, 201, 205, .9);
  color: var(--purple);
}

.project-year-cover:focus-visible,
.project-photo-card:focus-visible,
.project-filter:focus-visible,
.gallery-close:focus-visible,
.gallery-nav:focus-visible,
.gallery-thumb:focus-visible {
  outline: 3px solid rgba(58, 22, 130, .26);
  outline-offset: 2px;
}

body.modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: none;
}

.gallery-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: none;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px 0;
}

.gallery-close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 56px;
  margin-bottom: 14px;
  color: #fff;
}

.gallery-header h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.1;
}

.gallery-counter {
  min-width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.gallery-main {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.gallery-main img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #0f0c1c;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .4);
}

.gallery-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.gallery-nav:hover {
  background: rgba(69, 67, 208, .95);
  color: #fff;
  border-color: rgba(69, 67, 208, .95);
}

.gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) rgba(255, 255, 255, .06);
}

.gallery-thumbs::-webkit-scrollbar {
  height: 8px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
}

.gallery-thumb {
  flex: 0 0 88px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.home-page .home-story,
.home-page .home-testimonials,
.services-testimonials,
.projects-page .project-year-filters,
.projects-page .project-year-grid,
.projects-page .section.soft,
.home-page .media-panel.about {
  display: none;
}

.video-panel {
  height: 600px;
  min-height: 600px;
  align-self: start;
  overflow: hidden;
  border-radius: 18px;
  background: #0f0c1c;
  box-shadow: var(--shadow);
}

.video-panel-media,
.somos-about-visual video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: var(--purple);
}

.project-year-filters .project-filter {
  min-width: 100px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(180, 201, 205, .95);
  color: #767c8c;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: none;
}

.project-year-filters .project-filter:hover,
.project-year-filters .project-filter.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
}

.feature i {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.feature strong {
  display: block;
  color: var(--purple-dark);
  line-height: 1.35;
}

.feature span {
  color: var(--muted);
}

.media-panel {
  min-height: 460px;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.media-panel.about {
  background-image:
    linear-gradient(180deg, rgba(24, 0, 72, .08), rgba(24, 0, 72, .3)),
    url("fotos web/site/about-panel.jpg");
}

.media-panel.services {
  background-image:
    linear-gradient(180deg, rgba(24, 0, 72, .08), rgba(24, 0, 72, .3)),
    url("fotos web/site/service-panel.jpg");
}

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

.section.soft .metric {
  border: 1px solid rgba(24, 0, 72, .12);
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 19, 38, .06);
}

.section.soft .metric strong {
  color: var(--purple-dark);
}

.section.soft .metric span {
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta h2 {
  max-width: 680px;
  margin-bottom: 10px;
}

.cta p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .82);
}

.contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 24px;
}

.contact-card,
.form-card {
  padding: 28px;
  min-width: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-map {
  margin-top: 22px;
  border: 1px solid rgba(24, 0, 72, .12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px;
  border-radius: 8px;
  background: var(--purple-soft);
}

.contact-item i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-style: normal;
  font-weight: 900;
}

.contact-item strong {
  display: block;
  color: var(--purple-dark);
}

.contact-item span,
.contact-item a {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

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

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--purple-dark);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(21, 19, 38, .14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(24, 0, 72, .12);
}

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

.notice {
  display: none;
  margin-top: 18px;
  border: 1px solid rgba(24, 0, 72, .18);
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  padding: 14px 16px;
  font-weight: 700;
}

.notice.is-visible {
  display: block;
}

.somos-approach .section-head,
.team-section .section-head {
  margin-bottom: 42px;
}

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

.approach-card {
  min-height: 230px;
  padding: 28px 22px;
  border: 1px solid rgba(24, 0, 72, .08);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.approach-number {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.approach-card h3,
.team-card h3 {
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
}

.approach-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: .035em;
}

.approach-card p {
  margin: 0 auto;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}

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

.team-card {
  min-height: 210px;
  padding: 28px 18px 24px;
  border: 1px solid rgba(24, 0, 72, .08);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.team-card h3 {
  margin-bottom: 0;
  font-size: .84rem;
  letter-spacing: .07em;
}

.team-avatar {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
}

.team-avatar::before,
.team-avatar::after,
.team-avatar span::before,
.team-avatar span::after {
  content: "";
  position: absolute;
  display: block;
}

.team-avatar::before {
  left: 38px;
  top: 16px;
  width: 36px;
  height: 40px;
  border-radius: 45% 45% 48% 48%;
  background: #050505;
}

.team-avatar::after {
  left: 20px;
  bottom: 16px;
  width: 72px;
  height: 42px;
  border-radius: 48px 48px 18px 18px;
  background: #050505;
}

.team-avatar span::before {
  left: 42px;
  top: 29px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}

.team-avatar.avatar-female::before {
  left: 30px;
  top: 12px;
  width: 52px;
  height: 60px;
  border-radius: 50% 50% 42% 42%;
}

.team-avatar.avatar-female span::before {
  left: 40px;
  top: 28px;
  width: 32px;
  height: 34px;
  border-radius: 48% 48% 52% 52%;
}

.team-avatar.avatar-glasses span::after {
  left: 35px;
  top: 34px;
  width: 42px;
  height: 14px;
  border: 4px solid #050505;
  border-right-width: 0;
  border-left-width: 0;
  box-shadow: -2px 0 0 0 #050505, 25px 0 0 0 #050505;
  z-index: 2;
}

.somos-about {
  padding-top: 88px;
}

.somos-about-layout {
  align-items: center;
  gap: 36px;
}

.somos-about-visual {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.somos-about-visual img {
  display: block;
  width: 100%;
  min-height: 500px;
  object-fit: cover;
}

.somos-about-visual video {
  min-height: 500px;
}

.somos-about-copy .section-head {
  margin-bottom: 18px;
}

.somos-about-lead {
  max-width: 54ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.enfoque-section {
  padding: 48px 0 86px;
  background: #fff;
}

.enfoque-section .section-head {
  margin-bottom: 38px;
}

.enfoque-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  max-width: 1240px;
  margin: 0 auto;
}

.enfoque-card {
  min-height: 320px;
  padding: 40px 28px 32px;
  border: 1px solid rgba(24, 0, 72, .08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 14, 44, .08);
  text-align: center;
}

.enfoque-num {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.enfoque-card h3 {
  margin-bottom: 12px;
  color: #111;
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.enfoque-card p {
  max-width: 230px;
  margin: 0 auto;
  color: #444;
  font-size: .95rem;
  line-height: 1.75;
}

.enfoque-card:hover {
  border-color: rgba(92, 38, 155, .34);
  background: linear-gradient(180deg, #fff, rgba(92, 38, 155, .03));
  box-shadow: 0 16px 30px rgba(92, 38, 155, .16);
  transform: translateY(-4px);
}

.enfoque-card:hover .enfoque-num {
  background: #5c269b;
}

.enfoque-actions {
  display: flex;
  justify-content: center;
  margin-top: 54px;
}

.team-section .section-head {
  margin-bottom: 36px;
}

.team-showcase {
  max-width: 1080px;
  margin: 0 auto;
}

.team-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.team-highlight figure {
  margin: 0;
  min-height: 420px;
}

.team-highlight figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-highlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 34px 30px;
}

.team-highlight-copy h3 {
  margin-bottom: 8px;
  color: var(--purple-dark);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.team-highlight-copy h4 {
  margin-bottom: 18px;
  color: var(--purple);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-highlight-copy p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

.team-signature {
  margin-top: 26px;
}

.team-signature img {
  display: block;
  width: 150px;
  max-width: 100%;
}

.team-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.team-thumbs img {
  display: block;
  width: 100%;
  height: 98px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.team-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 16px;
  max-width: 1360px;
  margin: 0 auto;
}

.team-icon-card {
  text-align: center;
}

.team-role-group {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (min-width: 1041px) {
  .team-icon-grid {
    row-gap: 44px;
  }
}

.team-role-group > h3 {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-bottom: 6px;
}

.team-role-pair {
  display: contents;
}

.team-role-person {
  display: contents;
  text-align: center;
}

.team-role-person:nth-child(1) .team-icon,
.team-role-person:nth-child(1) .team-member-name {
  grid-column: 1;
}

.team-role-person:nth-child(2) .team-icon,
.team-role-person:nth-child(2) .team-member-name {
  grid-column: 2;
}

.team-role-person .team-icon {
  grid-row: 1;
}

.team-role-person .team-member-name {
  grid-row: 3;
}

.team-icon {
  position: relative;
  width: 122px;
  height: 122px;
  margin: 0 auto 18px;
}

.team-icon::before,
.team-icon::after {
  content: "";
  position: absolute;
  display: block;
  border: 3px solid var(--purple);
  background: transparent;
}

.team-icon::before {
  left: 35px;
  top: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.team-icon::after {
  left: 20px;
  bottom: 16px;
  width: 82px;
  height: 42px;
  border-radius: 50% 50% 18px 18px;
}

.team-icon-card h3 {
  margin-bottom: 6px;
  color: var(--purple);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.team-member-name {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.35;
}

.team-icon-card:nth-child(1) .team-icon::before,
.team-icon-card:nth-child(4) .team-icon::before,
.team-icon-card:nth-child(8) .team-icon::before {
  width: 54px;
  height: 54px;
  left: 34px;
  top: 17px;
  border-radius: 50%;
}

.team-icon-card:nth-child(2) .team-icon::before,
.team-icon-card:nth-child(5) .team-icon::before {
  width: 52px;
  height: 58px;
  left: 35px;
  top: 15px;
  border-radius: 48% 48% 44% 44%;
}

.team-icon-card:nth-child(3) .team-icon::before,
.team-icon-card:nth-child(6) .team-icon::before {
  width: 50px;
  height: 56px;
  left: 36px;
  top: 16px;
  border-radius: 56% 56% 46% 46%;
}

.team-icon-card:nth-child(7) .team-icon::before {
  width: 48px;
  height: 54px;
  left: 37px;
  top: 17px;
  border-radius: 52% 52% 44% 44%;
}

.footer {
  background: #121020;
  color: rgba(255, 255, 255, .72);
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr .8fr .95fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer .brand strong,
.footer h3 {
  color: #fff;
}

.footer .brand {
  align-items: flex-end;
}

.footer .brand img {
  width: 128px;
  height: auto;
  filter: none;
}

.footer .brand span,
.footer p,
.footer a {
  color: rgba(255, 255, 255, .72);
}

.footer h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-contact-list {
  display: grid;
  gap: 12px;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: currentColor;
  opacity: .9;
}

.footer-contact-item strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: .88rem;
  line-height: 1.2;
}

.footer-contact-item span,
.footer-contact-item a {
  display: block;
  line-height: 1.45;
}

.footer-location p {
  margin: 0 0 14px;
}

.footer-map {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 156px;
  border: 0;
}

.copyright {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  font-size: .9rem;
}

.home-narrow {
  max-width: 1040px;
}

.home-offer,
.home-testimonials {
  padding: 68px 0;
  background: #fff;
}

.client-logos {
  padding: 20px 0 24px;
  background:
    linear-gradient(180deg, rgba(24, 0, 72, .98), rgba(16, 12, 34, .98)),
    radial-gradient(circle at top center, rgba(216, 182, 92, .16), transparent 42%);
  color: #fff;
}

.client-logos .wrap {
  width: min(100% - 40px, var(--container));
}

.client-logos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.client-logos-head p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .86rem;
  letter-spacing: .02em;
}

.client-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 14px 0;
}

.client-marquee::before,
.client-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 2;
  pointer-events: none;
}

.client-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(24, 0, 72, 1), rgba(24, 0, 72, 0));
}

.client-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(24, 0, 72, 1), rgba(24, 0, 72, 0));
}

.client-marquee-trackset {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: clientMarquee 44s linear infinite;
  will-change: transform;
}

.client-marquee:hover .client-marquee-trackset {
  animation-play-state: paused;
}

.client-marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.client-marquee-track img {
  display: block;
  width: auto;
  height: 40px;
  max-width: 136px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
  flex: 0 0 auto;
}

@keyframes clientMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-marquee-track {
    animation: none;
  }

  .client-marquee-trackset {
    animation: none;
  }
}

.home-copy {
  max-width: 620px;
  margin-bottom: 30px;
}

.home-copy h2 {
  margin-bottom: 9px;
  color: var(--purple-dark);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.home-copy p {
  max-width: 520px;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.55;
}

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

.offer-item {
  min-height: 236px;
  padding: 28px 24px 26px;
  border: 1px solid rgba(24, 0, 72, .08);
  border-radius: 12px;
  background: #f8f7fb;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.offer-item:hover {
  border-color: rgba(24, 0, 72, .16);
  box-shadow: 0 14px 34px rgba(21, 19, 38, .06);
  transform: translateY(-2px);
}

.offer-item h3 {
  margin: 18px 0 9px;
  color: var(--purple);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1.35;
  text-transform: uppercase;
}

.offer-item p {
  max-width: 260px;
  margin: 0 auto;
  color: #625d70;
  font-size: .83rem;
  line-height: 1.5;
}

.offer-icon {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.home-story {
  min-height: 360px;
  display: grid;
  align-items: center;
  padding: 50px 0;
  background:
    linear-gradient(90deg, rgba(58, 22, 130, .86), rgba(24, 0, 72, .58), rgba(24, 0, 72, .18)),
    url("fotos web/home-nuestra-historia.png") center/cover;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, .08), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(216, 182, 92, .1), transparent 28%);
  pointer-events: none;
  z-index: 0;
}

.story-panel {
  position: relative;
  z-index: 1;
  max-width: 590px;
  padding: 38px 42px;
  background: rgba(58, 22, 130, .72);
  color: #fff;
  text-align: center;
  box-shadow: 0 22px 55px rgba(24, 0, 72, .24);
}

.story-panel h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
}

.story-panel p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .94);
  font-size: .86rem;
  font-weight: 500;
  line-height: 1.55;
}

.story-panel strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-testimonials {
  background: #fff;
}

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

.testimonial-card {
  min-height: 300px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(24, 0, 72, .13);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 19, 38, .08);
}

.testimonial-card > p {
  min-height: 160px;
  margin: 0;
  padding: 30px 30px;
  color: #343044;
  font-size: .9rem;
  line-height: 1.55;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 118px;
  padding: 22px 30px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
}

.testimonial-author img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}

.testimonial-author strong,
.testimonial-author span {
  display: block;
  color: #fff;
}

.testimonial-author strong {
  margin-bottom: 8px;
  font-size: .95rem;
}

.testimonial-author span {
  font-size: 1.15rem;
  letter-spacing: .08em;
}

.services-hero {
  background-image:
    linear-gradient(90deg, rgba(14, 11, 31, .84), rgba(24, 0, 72, .58), rgba(58, 22, 130, .2)),
    url("fotos web/site/services-detail-banner.jpg");
}

.services-hero h1 {
  max-width: 680px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
}

.services-hero p {
  max-width: 640px;
}

.services-intro {
  padding: 68px 0 26px;
  background: #fff;
}

.service-detail-list {
  padding: 0 0 78px;
  background: #fff;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-mini-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(24, 0, 72, .18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(21, 19, 38, .055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-mini-card:hover {
  border-color: rgba(24, 0, 72, .32);
  box-shadow: 0 18px 42px rgba(21, 19, 38, .08);
  transform: translateY(-2px);
}

.service-mini-media {
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.service-mini-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.service-mini-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 24px;
}

.service-mini-body .tag {
  margin-bottom: 15px;
  padding: 6px 12px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: .78rem;
  letter-spacing: .16em;
}

.service-mini-body h2 {
  min-height: 3.1rem;
  margin-bottom: 14px;
  color: var(--purple-dark);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}

.service-mini-body p {
  color: #6d687f;
  font-size: .86rem;
  line-height: 1.62;
}

.service-preview {
  min-height: 4.2rem;
  margin-bottom: 18px;
}

.service-mini-body p + p {
  margin-top: 12px;
}

.service-more {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(24, 0, 72, .12);
}

.service-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--purple);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  list-style: none;
}

.service-more summary::-webkit-details-marker {
  display: none;
}

.service-more summary::after {
  content: "↓";
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
}

.service-more[open] summary::after {
  content: "↑";
}

.service-more p {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: .86rem;
  line-height: 1.62;
}

.service-summary {
  padding-top: 66px;
}

.services-testimonials {
  background: var(--surface-soft);
}

@media (max-width: 1040px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .quote-btn {
    align-self: flex-start;
  }

  .grid-4,
  .metrics,
  .approach-grid,
  .team-grid,
  .offer-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 300px;
  }

  .project-filters {
    gap: 8px;
  }

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

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

  .somos-about-layout,
  .enfoque-grid,
  .team-highlight {
    grid-template-columns: 1fr;
  }

  .somos-about-visual img,
  .somos-about-visual video,
  .video-panel,
  .video-panel-media,
  .team-highlight figure {
    min-height: 600px;
  }

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

  .team-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }

  .team-role-group {
    grid-column: 1 / -1;
  }
}

@media (min-width: 701px) and (max-width: 1040px) {
  .nav {
    min-height: 72px;
    align-items: center;
    flex-direction: row;
    padding: 0;
  }

  .menu {
    width: auto;
    justify-content: flex-end;
  }

  .quote-btn {
    align-self: auto;
  }

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

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 28px, var(--container));
  }

  .topline {
    font-size: .78rem;
    line-height: 1.35;
  }

  .topline .wrap {
    justify-content: flex-start;
    gap: 4px;
    min-height: 0;
    padding: 8px 0;
  }

  .experience-bar-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .experience-bars {
    grid-template-columns: 1fr;
  }

  .experience-bar {
    padding: 18px 16px 16px;
  }

  .nav {
    gap: 10px;
    min-height: 0;
    padding: 8px 0;
  }

  .brand strong {
    font-size: .78rem;
    letter-spacing: .12em;
  }

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

  .brand img {
    width: 72px;
    height: 45px;
  }

  .menu {
    gap: 8px;
  }

  .menu a {
    padding: 6px 8px;
    font-size: .68rem;
    letter-spacing: .035em;
  }

  .quote-btn {
    display: none;
  }

  .home-story {
    background-attachment: scroll;
  }

  .contact-map iframe {
    height: 240px;
  }

  .project-year-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-modal {
    padding: 10px;
  }

  .gallery-modal-panel {
    padding: 16px;
    border-radius: 16px;
  }

  .gallery-header {
    padding-right: 0;
    flex-direction: column;
  }

  .gallery-main {
    grid-template-columns: 1fr;
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
  }

  .gallery-prev {
    left: 12px;
  }

  .gallery-next {
    right: 12px;
  }

  .gallery-main img {
    max-height: 58vh;
  }

  .hero {
    min-height: 480px;
    background-position: 66% center;
  }

  .hero-carousel {
    min-height: 480px;
  }

  .hero .wrap,
  .section,
  .page-hero .wrap {
    padding-top: 48px;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

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

  .page-hero .wrap {
    padding-top: 38px;
    padding-bottom: 42px;
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  .hero-stats,
  .grid-3,
  .grid-4,
  .metrics,
  .enfoque-grid,
  .team-thumbs,
  .team-icon-grid,
  .form-grid,
  .offer-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    right: 14px;
    bottom: 18px;
  }

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

  .theme-btn,
  .button {
    width: 100%;
  }

  .project-year-cover img {
    height: 220px;
  }

  .media-panel {
    min-height: 320px;
  }

  .home-offer,
  .home-testimonials {
    padding: 58px 0;
  }

  .video-panel,
  .video-panel-media,
  .somos-about-visual video {
    min-height: 600px;
  }

  .client-logos {
    padding: 16px 0 18px;
  }

  .client-logos .wrap {
    width: min(100% - 28px, var(--container));
  }

  .client-logos-head {
    margin-bottom: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .client-marquee {
    padding: 12px 0;
  }

  .client-marquee::before,
  .client-marquee::after {
    width: 56px;
  }

  .client-marquee-track {
    gap: 30px;
    padding-right: 30px;
  }

  .client-marquee-trackset {
    animation-duration: 36s;
  }

  .client-marquee-track img {
    height: 34px;
    max-width: 114px;
  }

  .home-copy {
    margin-bottom: 34px;
  }

  .offer-grid {
    gap: 34px;
  }

  .approach-card,
  .team-card {
    min-height: auto;
  }

  .story-panel {
    padding: 32px 22px;
  }

  .testimonial-card > p,
  .testimonial-author {
    padding-right: 24px;
    padding-left: 24px;
  }

  .services-hero {
    min-height: 260px;
    background-position: 58% center;
  }

  .services-intro {
    padding: 48px 0 18px;
  }

  .service-detail-list {
    padding-bottom: 58px;
  }

  .service-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-mini-media {
    height: auto;
  }

  .service-mini-body {
    padding: 24px 22px;
  }

  .service-summary {
    padding-top: 58px;
  }
}
