:root {
  --white: #f8f7fb;
  --muted: #d1ccd9;
  --deep: #191b20;
  --black: #090909;
  --line: rgba(171, 118, 255, .82);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
.site-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 72px; padding: 0 max(3vw,28px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.24); background: rgba(48,42,58,.12); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; }
.brand-logo { display: block; width: 31px; height: 31px; object-fit: contain; }
.brand small, .section-kicker { display: none !important; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: rgba(255,255,255,.9); text-decoration: none; font-size: 13px; }
.site-nav a:hover { color: #fff; }
.site-section { position: relative; padding: 96px max(7.2vw,32px); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-hero { min-height: 430px; display: flex; align-items: flex-start; padding: 116px max(3vw,28px) 60px; background: radial-gradient(ellipse at 88% 30%, rgba(226,219,235,.42), transparent 32%), linear-gradient(115deg,#aaa1b4 0%,#a49cb0 42%,#898493 100%); }
.section-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg,transparent 0 25%,rgba(207,193,224,.13) 25% 48%,transparent 48% 100%); pointer-events: none; }
.section-hero .section-inner { max-width: none; width: 100%; position: relative; z-index: 1; }
.hero-badge { display: inline-block; padding: 6px 10px; border: 1px solid rgba(127,82,215,.82); border-radius: 999px; color: #fff; font-size: 11px; line-height: 1.2; letter-spacing: .04em; font-weight: 600; background: rgba(58,43,93,.08); }
.section-hero h1 { font-size: clamp(30px,2.45vw,48px); line-height: 1.14; max-width: 1120px; margin: 22px 0 14px; letter-spacing: -.8px; }
.section-hero .hero-copy { max-width: 1180px; font-size: clamp(17px,1.18vw,22px); line-height: 1.48; color: rgba(255,255,255,.94); font-weight: 500; }
.hero-copy p { margin: 0 0 7px; }
.section-intro { background: var(--deep); }
.section-intro h2 { font-size: clamp(34px,4vw,56px); line-height: 1.1; letter-spacing: -1.5px; margin: 0 0 26px; color: #fff; }
.section-copy { max-width: 780px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.section-copy p { margin: 0 0 15px; }
.service-category { position: relative; padding: 90px max(1.7vw,28px); overflow: hidden; }
.category-gradient { background: linear-gradient(180deg,#8b68dd 0%,#6546ad 30%,#422d6d 58%,#1c1b20 84%,#090909 100%); }
.category-dark, .category-single { background: #090909; }
.category-grid { max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 18px; align-items: stretch; }
.category-lead { grid-column: 1; grid-row: 1 / span 20; padding: 2px 18px 0 0; }
.category-lead h2 { font-size: clamp(34px,3.5vw,58px); line-height: 1.07; letter-spacing: -1.6px; margin: 0 0 24px; }
.category-lead p { color: #eeeaf4; font-size: clamp(17px,1.55vw,22px); line-height: 1.5; margin: 0; }
.product-row { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; align-items: stretch; }
.product-row.reverse .product-card { order: 2; }
.product-row.reverse .product-media { order: 1; }
.product-card, .product-media { min-width: 0; min-height: 0; border-radius: 11px; }
.product-card { overflow: auto; padding: 25px 18px; border: 1px solid var(--line); background: rgba(45,32,73,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.product-row > .product-card { height: 100%; }
.category-dark .product-card { background: rgba(255,255,255,.025); }
.product-card h3 { font-size: clamp(20px,1.7vw,28px); line-height: 1.15; margin: 0 0 14px; color: #fff; }
.product-card p { margin: 0; color: #dcd6e6; font-size: clamp(15px,1.2vw,18px); line-height: 1.5; }
.product-media { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.product-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.image-placeholder { height: 100%; min-height: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; background: linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.015)); }
.category-single { padding-top: 84px; padding-bottom: 84px; }
.single-grid { max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr); gap: 22px; align-items: stretch; }
.single-copy, .single-grid .product-media { min-width: 0; }
.single-copy { padding: 10px 0; }
.single-copy h2 { font-size: clamp(32px,3.5vw,56px); margin: 0 0 10px; line-height: 1.05; }
.category-intro { color: #aaa4b1; font-size: 17px; margin: 0 0 28px; }
.category-single .product-card { min-height: 166px; border-color: var(--line); box-shadow: 0 0 19px rgba(134,96,236,.58), inset 0 1px 0 rgba(255,255,255,.08); background: linear-gradient(180deg,#1d1b20,#0e0e0f); }
.category-single .product-card h3 { font-size: 20px; }
.category-single .product-media, .category-single .product-media img, .category-single .image-placeholder { min-height: 250px; }
.section-text, .section-process { background: var(--deep); }
.section-text .section-inner { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; }
.section-text .section-copy p, .section-process .section-copy p { padding: 17px 22px; margin: 0 0 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; color: #fff; font-size: 18px; }
.section-process .section-copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; max-width: 100%; }
.section-gallery { background: var(--black); }
.section-cta { background: linear-gradient(115deg,#301d65,#8660ec); padding-top: 100px; padding-bottom: 100px; }
.section-image { display: block; width: 100%; max-height: 550px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); }
.empty-page { padding: 180px 6vw; text-align: center; background: var(--black); }
.empty-page h1 { font-size: 48px; }
.site-footer { padding: 38px max(7.2vw,32px); display: flex; justify-content: space-between; gap: 24px; background: #000; color: #d0ccd7; font-size: 13px; border-top: 1px solid rgba(255,255,255,.18); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; min-height: 46px; }
.footer-mark { display: block; width: 46px; height: 46px; object-fit: contain; }
@media (max-width: 980px) { .category-grid { grid-template-columns: minmax(190px,.65fr) minmax(0,1fr) minmax(0,1fr); } .category-lead { padding-right: 8px; } .product-card { padding: 20px 16px; } .product-card p { font-size: 15px; } }
@media (max-width: 700px) { .site-header { top: 14px; left: 18px; right: 18px; height: 70px; padding: 0 18px; border-radius: 12px; } .site-nav { gap: 13px; } .site-nav a { font-size: 11px; } .site-nav a:nth-child(3) { display: none; } .section-hero { min-height: 720px; padding-top: 145px; } .section-hero h1 { font-size: 45px; letter-spacing: -1px; } .section-hero .section-copy { font-size: 19px; } .service-category { padding: 64px 20px; } .category-grid, .single-grid { display: block; } .category-lead { padding: 0; margin-bottom: 30px; } .category-lead h2 { font-size: 40px; } .product-row { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; min-height: 0; } .product-row.reverse .product-card, .product-row.reverse .product-media { order: initial; } .product-card { padding: 22px 18px; } .product-media, .product-media img, .image-placeholder { min-height: 0; height: 220px; } .single-copy { padding: 0; } .single-grid .product-media { margin-top: 18px; } .section-text .section-inner { display: block; } .section-process .section-copy { grid-template-columns: 1fr; } .section-copy { font-size: 18px; } .site-footer { display: block; padding: 30px 22px; } .site-footer div + div { margin-top: 14px; } }

@media (max-width: 700px) {
  .section-hero { min-height: 520px; padding: 26px 20px 42px; }
  .section-hero h1 { font-size: clamp(30px,9vw,42px); margin-top: 25px; }
  .section-hero .hero-copy { font-size: 20px; }
}

@media (max-width: 700px) {
  .site-header { top: 0; left: 0; right: 0; height: 64px; padding: 0 20px; border-radius: 0; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 11px; }
  .section-hero { min-height: 560px; padding: 100px 20px 44px; }
  .section-hero h1 { font-size: clamp(31px,9vw,42px); line-height: 1.12; margin: 24px 0 16px; }
  .section-hero .hero-copy { font-size: 18px; line-height: 1.5; }
}

/* Encabezado enmarcado, igual al diseño de referencia */
.site-header {
  top: 14px;
  left: 50%;
  right: auto;
  width: min(1050px, calc(100% - 36px));
  height: 78px;
  padding: 0 40px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 13px;
  background: rgba(119,112,130,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

@media (max-width: 700px) {
  .site-header {
    top: 12px;
    left: 16px;
    right: 16px;
    width: auto;
    height: 64px;
    padding: 0 20px;
    transform: none;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 12px;
  }
  .category-single .product-card { height: auto; }
}

@media (max-width: 700px) {
  .product-media, .category-single .product-media {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .product-media img, .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .category-single .product-card {
    width: 100%;
    min-height: 0;
    margin-top: 18px;
  }
}

@media (max-width: 980px) and (min-width: 701px) {
  .service-category { padding-left: 22px; padding-right: 22px; }
  .category-grid { display: block; }
  .category-lead { padding: 0; margin-bottom: 34px; }
  .product-row { grid-column: auto; }
}

@media (max-width: 900px) and (min-width: 701px) {
  .single-grid { grid-template-columns: 1fr; }
  .category-single .product-media { margin-top: 22px; }
}

@media (min-width: 981px) {
  .service-category { padding-left: clamp(28px, 2.8vw, 48px); padding-right: clamp(28px, 2.8vw, 48px); }
}

/* Limita el crecimiento en monitores ultrawide y conserva la proporción visual. */
@media (min-width: 1600px) {
  .site-header {
    width: min(1450px, calc(100% - 120px));
  }
  .section-hero .section-inner,
  .category-grid,
  .single-grid {
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
  }
  .service-category { padding-left: 48px; padding-right: 48px; }
}

