/* DGLab, version clara: fondo blanco, violeta, celeste y verde clarito, con fondo calido y un toque de amarillo. */
:root {
  --bg: #fdfbf6;
  --surface: #ffffff;
  --surface-2: #f5f1e8;
  --line: rgba(28, 24, 20, 0.08);
  --line-strong: rgba(28, 24, 20, 0.16);
  --text: #1c1814;
  --muted: #645d55;
  --violet: #7c3aed;
  --violet-strong: #6d28d9;
  --sky: #0ea5e9;
  --lime: #c6ef7e;
  --sun: #f4b63f;
  --shadow: rgba(60, 42, 20, 0.13);
  --grad: linear-gradient(100deg, #7c3aed 0%, #0ea5e9 55%, #22a35a 100%);
  --radius: 22px;
  --max: 1180px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.15rem;
}

/* Fondo con manchas de color que se mueven lento */
.blobs {
  position: absolute;
  inset: 0 0 auto;
  height: 1400px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blobs span {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  animation: drift 18s ease-in-out infinite alternate;
}

.blobs span:nth-child(1) {
  top: -160px;
  left: -140px;
  background: #6d28d9;
}

.blobs span:nth-child(2) {
  top: 120px;
  right: -200px;
  background: #38bdf8;
  opacity: 0.16;
  animation-duration: 22s;
}

.blobs span:nth-child(3) {
  top: 620px;
  left: 30%;
  width: 480px;
  height: 480px;
  background: #fbbf24;
  opacity: 0.16;
  animation-duration: 26s;
}

@keyframes drift {
  to {
    transform: translate(80px, 60px) scale(1.12);
  }
}

/* Navegacion */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 251, 246, 0.8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand img {
  width: auto;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.button) {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:not(.button):hover {
  color: var(--text);
}

/* Botones */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  color: #fff;
  background: var(--text);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.28);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-strong);
}

.button-ghost:hover {
  background: #fff;
  box-shadow: none;
}

.button-white {
  color: #120c1f;
  background: #fff;
}

.button-white:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.button-small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.92rem;
}

/* Portada */
.hero {
  position: relative;
  z-index: 1;
  padding: 96px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(244, 182, 63, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(244, 182, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 182, 63, 0);
  }
}

.rotator {
  display: inline-block;
}

.rotator-word {
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.rotator-word.out {
  opacity: 0;
  transform: translateY(0.35em);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.float {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px var(--shadow);
}

.float-main {
  top: 40px;
  left: 0;
  width: 100%;
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}

.float-phone {
  right: -6px;
  bottom: -10px;
  width: 30%;
  border-radius: 22px;
  transform: rotate(6deg);
  animation: float 6s ease-in-out infinite reverse;
}

.float-phone-2 {
  left: -18px;
  bottom: 0;
  width: 26%;
  border-radius: 22px;
  transform: rotate(-8deg);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  50% {
    translate: 0 -14px;
  }
}

.float-badge {
  position: absolute;
  z-index: 2;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 16px 40px var(--shadow);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  animation: float 5s ease-in-out infinite;
}

.float-badge b {
  color: var(--violet);
}

.badge-1 {
  top: 0;
  right: 10%;
}

.badge-2 {
  bottom: 24%;
  left: 18%;
  animation-delay: -2s;
}

/* Marquesina */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px 0;
  background: #fff;
  border-block: 1px solid var(--line);
  transform: rotate(-1.2deg);
  margin: 10px -20px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.marquee-track i {
  color: var(--sun);
  font-style: normal;
}

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

/* Secciones */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 110px 0 10px;
}

.section-head {
  max-width: 780px;
  margin-bottom: 46px;
}

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

.stat {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
}

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

/* Antes / despues */
.compare {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px var(--shadow);
  user-select: none;
}

.compare-before {
  width: 100%;
}

.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.compare-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--lime);
  transform: translateX(-50%);
  pointer-events: none;
}

.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #120c1f;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 10px 30px var(--shadow);
  font-size: 1.4rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.compare-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.compare-label:hover {
  transform: translateY(-1px);
}

.label-before {
  left: 18px;
  color: #fff;
  background: #217346;
}

.label-after {
  right: 18px;
  color: #120c1f;
  background: var(--lime);
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.compare.visible .compare-after,
.compare.visible .compare-handle {
  transition: clip-path 0.55s ease, left 0.55s ease;
}

.compare[data-touched] .compare-after,
.compare[data-touched] .compare-handle {
  transition: none;
}

/* Tarjetas de proyectos */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.card {
  --accent: var(--violet);
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(500px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 24px 60px var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 12px 12px 0;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 14px;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.5s ease;
}

.card:hover .card-cover img {
  transform: scale(1.05);
}

.cover-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.22), transparent 55%),
    var(--surface-2);
}

.cover-icon span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-num {
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
}

.tag {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body > p {
  color: var(--muted);
  font-size: 0.97rem;
}

.card-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.card-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.card:hover .card-link span {
  transform: translateX(5px);
}

.card-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

.card-featured .card-cover {
  aspect-ratio: auto;
  min-height: 100%;
  margin: 12px 0 12px 12px;
}

.card-featured .card-body {
  justify-content: center;
  padding: 44px;
}

.card-featured h3 {
  font-size: 2.2rem;
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 12px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

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

.service {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  background: var(--grad);
  border-radius: 16px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #120c1f;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service p,
.process p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.97rem;
}

.callout {
  margin-top: 22px;
  padding: 34px 36px;
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.07), rgba(14, 165, 233, 0.07));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.callout p {
  max-width: 800px;
  margin-top: 10px;
  color: var(--muted);
}

/* Proceso */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.5;
}

.process li {
  position: relative;
}

.step {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: #120c1f;
  background: var(--lime);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 800;
}

/* Contacto */
.contact {
  position: relative;
  overflow: hidden;
  margin: 120px 0 90px;
  padding: 80px 64px;
  color: #fff;
  background: linear-gradient(120deg, #6d28d9 0%, #2563eb 50%, #0891b2 100%);
  border-radius: 32px;
}

.contact::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 60px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.contact h2 {
  position: relative;
  max-width: 760px;
}

.contact .lead {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
}

.eyebrow-dark {
  color: #120c1f;
  background: var(--lime);
  padding: 4px 12px;
  border-radius: 999px;
}

.contact .actions {
  position: relative;
}

.contact .button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

/* Pagina de proyecto */
.project {
  --accent: var(--violet);
  padding-bottom: 100px;
}

.project-hero {
  padding: 56px 0 56px;
}

.project-hero h1 {
  max-width: 940px;
  margin-top: 18px;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.project-hero .chips {
  margin-top: 26px;
}

.project-hero .card-num {
  font-size: 1.1rem;
}

.back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

.project-icon {
  height: 220px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
}

.panel p + h2 {
  margin-top: 34px;
}

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

.checks {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 36px;
}

.checks li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
}

.checks li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 7px;
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  margin-top: 70px;
}

.shot {
  flex: 1 1 100%;
  margin: 0;
}

.shot.tall {
  flex: 0 1 340px;
}

.shot img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px var(--shadow);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.next {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-top: 76px;
}

.next-cta,
.next-project {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-cta span,
.next-project span {
  color: var(--muted);
  font-weight: 500;
}

.next-project {
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.next-project strong {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.2;
}

.next-project:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* Pie */
.footer {
  background: var(--surface);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 46px 24px;
}

.footer-inner img {
  width: auto;
  height: 28px;
}

.footer-inner p {
  max-width: 640px;
}

.footer-note {
  font-size: 0.86rem;
  opacity: 0.8;
}

/* Aparicion al hacer scroll (solo con JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.js .card.reveal.visible {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

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

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

  .process::before {
    display: none;
  }

  .card-featured {
    grid-template-columns: 1fr;
  }

  .card-featured .card-cover {
    aspect-ratio: 16 / 10;
    margin: 12px 12px 0;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .brand img {
    height: 26px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .float-phone-2,
  .badge-2 {
    display: none;
  }

  .float-phone {
    width: 34%;
  }

  .badge-1 {
    top: -6px;
    right: 0;
    font-size: 0.78rem;
  }

  .stats,
  .grid,
  .services,
  .process {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 80px;
  }

  .stats {
    padding-top: 64px;
  }

  .card-body,
  .card-featured .card-body,
  .panel,
  .callout,
  .service,
  .stat {
    padding: 24px;
  }

  .card-featured h3 {
    font-size: 1.7rem;
  }

  .actions .button {
    flex: 1 1 100%;
  }

  .compare-handle span {
    width: 42px;
    height: 42px;
  }

  .shot.tall {
    flex: 1 1 100%;
    max-width: 360px;
  }

  .contact {
    margin: 90px 0 64px;
    padding: 52px 26px;
    border-radius: 24px;
  }
}

/* Quien esta detras */
.about-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.monogram {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  color: #120c1f;
  background: var(--grad);
  border-radius: 40px;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 800;
  transform: rotate(-4deg);
}

.about-role {
  margin-top: 6px;
  color: var(--violet);
  font-weight: 600;
}

/* Preguntas frecuentes */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  list-style: none;
}

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

.faq-item summary span {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #120c1f;
  background: var(--lime);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 820px;
  padding: 0 26px 24px;
  color: var(--muted);
}

/* Armador de consulta */
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.builder {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.builder-label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  padding: 8px 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.choice:hover {
  background: rgba(255, 255, 255, 0.2);
}

.choice.on {
  color: #120c1f;
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.builder textarea,
.builder input {
  width: 100%;
  padding: 12px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.builder textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.builder textarea:focus,
.builder input:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.chat {
  position: sticky;
  top: 100px;
  overflow: hidden;
  background: #efe7dd;
  border-radius: 22px;
  box-shadow: 0 30px 70px var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #fff;
  background: #075e54;
}

.chat-head b,
.chat-head small {
  display: block;
  line-height: 1.2;
}

.chat-head small {
  opacity: 0.8;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #120c1f;
  background: var(--lime);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.chat-body {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 20px 16px;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  color: #111b21;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.bubble-in {
  justify-self: start;
  background: #fff;
  border-top-left-radius: 2px;
}

.bubble-out {
  justify-self: end;
  background: #d9fdd3;
  border-top-right-radius: 2px;
  white-space: pre-wrap;
}

.chat-send {
  display: flex;
  margin: 0 16px 16px;
  color: #fff;
  background: #25d366;
}

.chat-send:hover {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.footer-zone {
  color: var(--text);
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .chat {
    position: static;
  }
}

@media (max-width: 720px) {
  .about-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }

  .monogram {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    font-size: 2.2rem;
  }

  .faq-item summary {
    padding: 18px 20px;
    font-size: 1.05rem;
  }

  .faq-item p {
    padding: 0 20px 20px;
  }
}

/* "Ver todos los proyectos" */
.more-wrap {
  display: none;
  justify-content: center;
  margin-top: 30px;
}

.js .more-wrap {
  display: flex;
}

.js .grid:not(.open) .extra {
  display: none;
}

@media (max-width: 720px) {
  .js .grid:not(.open) .extra-m {
    display: none;
  }
}
