:root {
  --ink: #171421;
  --text: #343041;
  --muted: #726d80;
  --bg: #f7f3ff;
  --soft: #f0eafd;
  --paper: #ffffff;
  --violet: #7657e8;
  --violet-2: #a78bfa;
  --dark: #231344;
  --dark-2: #120a27;
  --line: rgba(52, 48, 65, .11);
  --white-line: rgba(255,255,255,.16);
  --shadow: 0 24px 70px rgba(60, 38, 120, .13);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

body.modal-open { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
}

button { font: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(247, 243, 255, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand span { color: var(--violet); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  color: var(--muted);
}

.nav a:hover { color: var(--ink); }

.nav-button {
  padding: 11px 16px;
  color: white !important;
  background: var(--violet);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(118, 87, 232, .22);
}

/* Base */

.eyebrow {
  margin: 0 0 15px;
  color: var(--violet);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow.light { color: #d8ccff; }

h1, h2, h3 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: .98;
}

h1, h2 { font-weight: 900; }

.section { padding: 100px 0; }

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-head.centered {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 18px auto 0;
  max-width: 660px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 900;
}

.btn.primary {
  background: var(--violet);
  color: white;
  box-shadow: 0 18px 38px rgba(118, 87, 232, .26);
}

.btn.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Hero */

.soft-section {
  background:
    radial-gradient(circle at 82% 10%, rgba(167,139,250,.25), transparent 32%),
    linear-gradient(180deg, #fbf9ff 0%, #f3edff 100%);
}

.hero,
.hero .lead,
.hero h1,
.hero .eyebrow {
  color: white;
}

.hero .lead {
  color: rgba(255,255,255,.82);
}

.hero-tags span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 112px;
  background:
    linear-gradient(
      90deg,
      rgba(18,10,39,.72) 0%,
      rgba(18,10,39,.58) 35%,
      rgba(18,10,39,.42) 65%,
      rgba(18,10,39,.28) 100%
    ),
    url('./img/hero-mockup.webp') center center / cover no-repeat;
}

@media (max-width: 768px) {

  .hero {
    background-position: 72% center;
  }

}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(18,10,39,.90) 0%,
      rgba(18,10,39,.68) 34%,
      rgba(18,10,39,.34) 72%,
      rgba(18,10,39,.18) 100%
    );
  z-index: 0;
}

.hero {
  filter: saturate(.92);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px; 
}




.hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  line-height: .96;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

/* Dark blocks */

.dark-break {
  padding: 96px 0;
  color: white;
  background:
    radial-gradient(circle at 10% 0%, rgba(118,87,232,.42), transparent 36%),
    linear-gradient(135deg, var(--dark-2), var(--dark));
}

.break-grid {
  max-width: 960px;
  text-align: center;
}

.dark-break h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
}

.dark-break p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px auto 0;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
}

.dark-break .btn {
  min-height: 56px;
  padding: 0 30px;
  font-size: .96rem;
}

.light-btn {
  margin-top: 28px;
  background: white !important;
  color: var(--dark) !important;
  box-shadow: none !important;
}

/* Services */

.services-section { background: #fbf9ff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 26px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(60,38,120,.07);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.service-card.featured {
  background: linear-gradient(135deg, var(--dark), #3b2174);
  color: white;
}

.service-card span {
  color: var(--violet);
  font-weight: 900;
}

.service-card.featured span { color: #d8ccff; }

.service-card h3 {
  margin-top: 52px;
  font-size: 1.32rem;
}

.service-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.service-card.featured p { color: rgba(255,255,255,.72); }

/* Violet section */

.violet-section {
  padding: 104px 0;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(167,139,250,.36), transparent 30%),
    linear-gradient(145deg, #2a1457, #160b2f 72%);
}

.violet-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.violet-grid h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
}

.violet-list {
  display: grid;
  gap: 14px;
}

.violet-list article {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--white-line);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}

.violet-list span {
  color: #d8ccff;
  font-weight: 900;
}

.violet-list p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

/* Portfolio categories */

.portfolio-categories-section {
  color: white;
  background: linear-gradient(180deg, #160b2f 0%, #0f071e 100%);
}

.portfolio-categories-head {
  max-width: 920px;
  margin-bottom: 56px;
}

.portfolio-categories-head h2 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5.6vw, 5.8rem);
  line-height: .96;
}

.portfolio-categories-head p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255,255,255,.68);
  font-size: 1.04rem;
  line-height: 1.6;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  grid-auto-rows: minmax(300px, auto);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-width: 0;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.22);
  background: #211044;
  color: white;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transform: scale(1.02);
  filter: saturate(.9) contrast(1.04);
  transition: transform .55s ease, opacity .55s ease, filter .55s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(18,10,39,.92), rgba(18,10,39,.15) 68%);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: 1;
  background: radial-gradient(circle at top right, rgba(167,139,250,.26), transparent 38%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.category-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,255,255,.52);
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
}

.category-card:hover::after { opacity: 1; }

.category-card:hover img {
  transform: scale(1.08);
  opacity: .9;
  filter: brightness(1.06) saturate(1.08) contrast(1.08);
}

.category-large { grid-row: span 2; }

.category-wide { grid-column: span 2; }

.category-card span,
.project-card span {
  position: relative;
  z-index: 2;
  color: #d8ccff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.category-card h3 {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  max-width: 560px;

  font-size: clamp(1.5rem, 2.6vw, 2.6rem);

  line-height: 1.05; /* antes .96 */
  
  padding: 12px 16px; /* un poco más aire */

  display: inline-block;

  word-break: normal;
  overflow-wrap: break-word;
}

.category-card p {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

/* Method */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.method-grid article {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 26px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(60,38,120,.07);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.method-grid span {
  color: var(--violet);
  font-weight: 900;
}

.method-grid h3 {
  margin-top: 46px;
  font-size: 1.32rem;
}

.method-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

/* Shared hover */

.service-card::after,
.method-grid article::after,
.violet-list article::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  top: -70px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,.32), transparent 68%);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}

.service-card:hover,
.method-grid article:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 80px rgba(60, 38, 120, .18);
  border-color: rgba(118,87,232,.32);
}

.violet-list article:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.28);
}

.service-card:hover::after,
.method-grid article:hover::after,
.violet-list article:hover::after {
  opacity: 1;
  transform: scale(1.25);
}

/* Category modal */

.category-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .25s ease;
}

.category-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18,10,39,.76);
  backdrop-filter: blur(16px);
}

.category-panel {
  position: relative;
  width: min(1180px, 100%);
  overflow: visible;
  max-height: none;
  border-radius: 34px;
  background: #fbf9ff;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: 0 34px 110px rgba(0,0,0,.36);
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}

.category-modal.is-open .category-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  top: 18px;
  float: right;
  z-index: 5;
  margin: 18px 18px 0 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(60,38,120,.14);
}

.category-modal-head {
  padding: 58px 48px 28px;
  max-width: 850px;
}

.category-modal-head h2 {
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: .96;
}

.category-modal-head p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 680px;
}

.category-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 0 48px 48px;
}

.project-card {
  overflow: hidden;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(60,38,120,.08);
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(60, 38, 120, .18);
  border-color: rgba(118,87,232,.35);
}

.project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,10,39,.34), transparent 55%);
  pointer-events: none;
}

.project-card-copy { padding: 22px; }

.project-card h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.project-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.project-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--violet);
  font-weight: 900;
  font-size: .85rem;
}

/* Fullscreen project */

.fullscreen-project {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  background: linear-gradient(135deg, #120a27, #1d0d3d);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  isolation: isolate;
}

.fullscreen-project.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-media {
  display: grid;
  place-items: center;
  padding: 42px;
}

.fullscreen-media img,
.fullscreen-media video {
  max-width: 100%;
  max-height: calc(100vh - 84px);
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 34px 110px rgba(0,0,0,.42);
}

.fullscreen-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  background: linear-gradient(145deg, rgba(118,87,232,.18), rgba(255,255,255,.04));
  border-left: 1px solid rgba(255,255,255,.12);
}

.fullscreen-info span {
  color: #d8ccff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fullscreen-info h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.fullscreen-info p {
  margin-top: 22px;
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 520px;
}

.fullscreen-info a {
  width: fit-content;
  margin-top: 28px;
  padding: 13px 18px;
  border-radius: 999px;
  background: white;
  color: var(--dark);
  font-weight: 900;
}

.fullscreen-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 320;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

.footer {
  padding: 30px 0;
  background: var(--dark-2);
  color: white;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,.62);
  font-size: .9rem;
}

.footer p { margin: 0; }

.footer a {
  color: white;
  font-weight: 800;
}

/* Responsive */

@media (max-width: 980px) {
  .nav { display: none; }

  .site-header { padding: 0 22px; }

  .violet-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid,
  .category-projects {
    grid-template-columns: 1fr 1fr;
  }

  .category-large,
  .category-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 860px) {
  .fullscreen-project {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .fullscreen-media {
    padding: 72px 20px 20px;
  }

  .fullscreen-info {
    padding: 32px 24px 44px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 68px 0 78px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .section,
  .dark-break,
  .violet-section {
    padding: 68px 0;
  }

  .services-grid,
  .method-grid,
  .category-grid,
  .category-projects {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-auto-rows: 270px;
  }

  .category-modal {
    padding: 12px;
  }

  .category-panel {
    border-radius: 24px;
  }

  .category-modal-head {
    padding: 44px 24px 22px;
  }

  .category-modal-head h2 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .category-projects {
    padding: 0 24px 28px;
  }
}

.category-card span,
.category-card h3,
.category-card p {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(18, 10, 39, .38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.category-card h3 {
  padding: 8px 12px;
}

.category-card p {
  padding: 7px 11px;
}

.service-card,
.service-card.featured {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.service-card.featured p {
  color: var(--muted);
}

.service-card.featured span {
  color: var(--violet);
}

.service-card,
.service-card.featured {
  background: white;
  color: var(--ink);
  border: 1px solid rgba(118,87,232,.08);
  transition:
    transform .45s cubic-bezier(.16,1,.3,1),
    box-shadow .45s cubic-bezier(.16,1,.3,1),
    border-color .45s ease,
    background .45s ease;
}

.service-card p,
.service-card span,
.service-card h3 {
  transition: color .35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(118,87,232,.24);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,1) 0%,
      rgba(247,243,255,.96) 100%
    );
  box-shadow:
    0 28px 80px rgba(60,38,120,.10),
    0 0 0 1px rgba(167,139,250,.08),
    inset 0 1px 0 rgba(255,255,255,.8);
}

.service-card:hover h3 {
  color: var(--dark);
}

.service-card:hover p {
  color: var(--text);
}

.service-card:hover span {
  color: var(--violet);
}
.light-btn {
  position: relative;
  overflow: hidden;
  min-height: 60px;
  padding: 0 34px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 55px rgba(255,255,255,.12);
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}

.light-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(118,87,232,.22),
    transparent
  );
  transform: skewX(-18deg);
  transition: left .65s ease;
}

.light-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(255,255,255,.22);
  background: #f7f3ff !important;
}

.light-btn:hover::after {
  left: 130%;
}

.hero .container {
  width: min(1280px, calc(100% - 80px));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero .container {
  width: min(1280px, calc(100% - 80px));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin-left: clamp(0px, 8vw, 120px);
}

/* Mobile */
@media (max-width: 680px) {
  .hero .container {
    width: min(100% - 28px, 1120px);
  }

  .hero-inner {
    margin-left: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }
}

