/* CQ · A clear video cover, navy portfolio and cyan-lit editing studio. */
:root {
  color-scheme: light;
  --cq-page: #f7fbff;
  --cq-section-base: #f7fbff;
  --cq-blue: #0877f9;
  --cq-blue-deep: #063a86;
  --cq-midnight: #061b3b;
  --cq-navy: #0a2e61;
  --cq-steel: #586e8c;
  --cq-ice: #eaf3ff;
  --cq-action-surface: #0877f9;
  --cq-action-hover: #0665df;
  --bg: #f7fbff;
  --surface: #fff;
  --ink: #102e53;
  --muted: #536b88;
  --line: #dae6f4;
  --lime: #0877f9;
}
html, body, #main { background: #f7fbff; color: #102e53; }
#main { overflow-x: clip; }
body { padding-top: 0; }
html { scroll-padding-top: 108px; }
::selection { background: #bcdcff; color: #052759; }
:focus-visible { outline-color: #0877f9; }
.skip { background: #fff; color: #102e53; }

/* The original film leads the cover, with only a light contrast overlay. */
#main > #inicio {
  --ink: #fff;
  --muted: #e6f1ff;
  --bg: #062754;
  color: #fff;
  background: #061b33;
}
#inicio .hero-stage {
  --bajada-video: calc(clamp(24px, 3vw, 44px) + 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: start;
  min-height: calc(clamp(490px, 47vw, 680px) + var(--bajada-video));
  padding: 0;
  overflow: clip;
}
#contacto::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: '';
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 23%, #c5e6ff 0 1px, transparent 1.7px),
    radial-gradient(circle at 26% 13%, #fff 0 .8px, transparent 1.4px),
    radial-gradient(circle at 39% 31%, #b5dcff 0 1px, transparent 1.6px),
    radial-gradient(circle at 67% 16%, #fff 0 .8px, transparent 1.5px),
    radial-gradient(circle at 87% 24%, #b2dbff 0 1px, transparent 1.7px),
    radial-gradient(circle at 19% 48%, #ddf1ff 0 .8px, transparent 1.4px),
    radial-gradient(circle at 79% 44%, #ddf1ff 0 .7px, transparent 1.4px);
  opacity: .55;
}
#inicio .hero-stage > .hero-background {
  position: absolute;
  inset: var(--bajada-video) 0 0;
  z-index: 0;
  grid-area: auto;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  opacity: 1;
  mix-blend-mode: normal;
  background-color: transparent;
  filter: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 90px), transparent);
}
#inicio .hero-stage > .hero-background > video { filter: none; object-position: center; }
#inicio .hero-stage > .hero-background::after { background: rgb(3 19 42 / .14); }
#inicio .hero-stage-content {
  z-index: 2;
  grid-area: 1 / 1;
  align-self: center;
  padding: var(--bajada-video) 0 0;
}
#inicio .hero-stage .hero-heading {
  width: 100%;
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}
#inicio .hero-stage .hero-heading .eyebrow {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 7px 16px;
  border: 1px solid rgb(192 223 255 / .28);
  border-radius: 99px;
  background: rgb(6 27 51 / .4);
  color: #e5f2ff;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#inicio .hero-stage .eyebrow::before { content: none; }
#inicio .hero-stage .hero-heading h1 {
  color: #fff;
  font-size: clamp(3.25rem, 6.2vw, 6rem);
  font-weight: 550;
  letter-spacing: -.06em;
  line-height: 1.02;
  text-shadow: 0 2px 18px rgb(0 17 44 / .45);
}
#inicio .hero-stage h1 > em {
  margin-top: 2px;
  font: italic 400 1.1em/1.02 'Instrument Serif', Georgia, serif;
  letter-spacing: -.035em;
}
#inicio .hero-stage .hero-description {
  max-width: 51ch;
  margin: 24px auto 0;
  color: #fff;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
  text-wrap: balance;
}

/* A small translucent capsule; the page is visible around the navigation. */
body .site-header, body .site-header.is-scrolled {
  height: 90px;
  padding: 18px 16px 12px;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body .site-header .nav.wrap {
  width: min(680px, 100%);
  height: 58px;
  padding: 6px 10px;
  border-color: rgb(181 217 255 / .28);
  background: rgb(8 44 96 / .5);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 4px 18px rgb(0 29 79 / .08);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transition: background .25s, border-color .25s;
}
body .site-header .nav nav a:not(.brand):not(.header-contact) { color: #fff; font-weight: 500; font-size: .875rem; }
body .site-header .nav nav a:not(.brand):not(.header-contact):is(:hover, .is-active) { color: #fff; background: rgb(255 255 255 / .12); }
body .site-header.is-scrolled .nav.wrap { background: rgb(255 255 255 / .91); border-color: #dce8f6; box-shadow: 0 4px 20px rgb(32 77 132 / .07); }
body .site-header.is-scrolled .nav nav a:not(.brand):not(.header-contact) { color: #173b68; }
body .site-header.is-scrolled .nav nav a:not(.brand):not(.header-contact):is(:hover, .is-active) { background: #e8f2ff; color: #0665df; }
body .site-header .nav-icon { color: currentColor !important; }
body .site-header a:focus-visible { outline-color: #72b7ff; }

/* White sections inherit their own ink instead of the previous dark theme. */
#main > :is(#portafolio, #tienda, #contacto) {
  --bg: #f7fbff;
  --surface: #fff;
  --ink: #102e53;
  --muted: #536b88;
  --cq-action-surface: #0877f9;
  --cq-action-hover: #0665df;
  --cq-ice: #eaf3ff;
  --cq-lime: #0877f9;
  --lime: #0877f9;
  --line: #dae6f4;
  color: #102e53;
  background: transparent;
  border: 0;
  box-shadow: none;
}
#main > :is(#portafolio, #tienda, #contacto) > .section-atmosphere { display: none; }
#main > #portafolio {
  --bg: #061b33;
  --surface: #0b2b49;
  --ink: #fff;
  --muted: #bed3e5;
  --line: rgb(141 214 241 / .24);
  --cq-ice: #b8f3ff;
  padding-block: 32px clamp(58px, 5vw, 74px);
  color: #fff;
  background:
    radial-gradient(ellipse 65% 40% at 50% 40%, rgb(35 121 182 / .26), transparent 78%),
    radial-gradient(ellipse 55% 45% at 50% 65%, rgb(34 125 161 / .18), transparent 80%),
    #061b33;
}
#portafolio .portfolio-intro .section-head > .eyebrow,
#tienda .store-heading > .eyebrow,
#contacto .contact-intro > .eyebrow { color: #2561a8; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; }
#portafolio .portfolio-intro .section-head > #services-title,
#tienda .store-heading > h2,
#contacto #contact-title {
  color: #102e53;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 550;
  letter-spacing: -.05em;
  line-height: 1.1;
}
#portafolio #services-title em,
#tienda #store-title em,
#contacto #contact-title em { color: #0877f9; font-weight: 400; }
#portafolio .portfolio-intro .section-head > .eyebrow { color: #adecf7; }
#portafolio .portfolio-intro .section-head > #services-title { color: #fff; }
#portafolio #services-title em { color: #a8f1ff; }
#portafolio .portfolio-intro .section-head > #services-title { max-width: 920px; }
#portafolio #services-title > span,
#portafolio #services-title > em { display: block; }
#portafolio #services-title > em { margin-top: 4px; }
#portafolio .portfolio-description {
  max-width: 52ch;
  margin: 20px auto 0;
  color: #d9e9f7;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: balance;
}
#portafolio .portfolio-carousel { margin-top: clamp(-80px, -5vw, -25px); }
#portafolio .portfolio-slide { --bg: #08264e; --surface: #08264e; border-color: rgb(139 211 237 / .28); box-shadow: 0 8px 26px rgb(0 12 30 / .18); }
#portafolio .portfolio-slide-caption { color: #fff; background: rgb(5 27 57 / .86); border-color: rgb(255 255 255 / .22); }
#portafolio .portfolio-current { color: #bed3e5; font-size: .8125rem; }
#portafolio .portfolio-profile { -webkit-mask-image: linear-gradient(to top, transparent, #000 12%); mask-image: linear-gradient(to top, transparent, #000 12%); }
#portafolio .portrait-cutout img { filter: brightness(1.03) saturate(.95); }

/* Light product cards with restrained borders and short, blue shadows. */
#main > #tienda {
  padding-block: clamp(56px, 5vw, 80px);
  background: linear-gradient(180deg, #061b33 0, #285778 24px, #b5d7ea 56px, #f7fbff 100px, #eff6ff 50%, #f7fbff calc(100% - 120px), #d7ebfc calc(100% - 88px), #376c9a calc(100% - 32px), #031a3b 100%);
}
#tienda .store-heading > p:not(.eyebrow) { color: #536b88; font-size: 1rem; text-shadow: none; }
#tienda .store-intro { margin-bottom: 36px; }
#tienda .store-grid { --store-ink: #102e53; --store-muted: #536b88; --store-line: #dae6f4; --store-cover: #eef4fb; gap: 24px; }
#tienda .store-grid .store-icon { background: #fff; border: 1px solid #dce7f5; border-radius: 22px; box-shadow: 0 3px 12px rgb(24 63 113 / .035); }
#tienda .store-grid .store-icon:hover { border-color: #9bc5f8; box-shadow: 0 9px 24px rgb(24 83 160 / .09); transform: translateY(-4px); }
#tienda .store-grid .product-caption strong { color: #102e53; }
#tienda .store-grid .product-caption > span { color: #536b88; font-size: .875rem; }
#tienda .store-grid .product-badge { background: #e3f0ff; color: #075bbb; }
#tienda .store-grid .product-preview-cue { border-color: #d6e7fc; background: #0877f9; }

/* The former cover atmosphere now surrounds the editing studio. */
#main > #contacto {
  --bg: #031a3b;
  --surface: #0b2b49;
  --ink: #fff;
  --muted: #d9e9f7;
  padding-block: 60px 28px;
  color: #fff;
  background:
    linear-gradient(to bottom, #031a3b 0, rgb(3 26 59 / .6) 24px, transparent 80px),
    radial-gradient(ellipse 45% 48% at 50% 0%, rgb(46 151 255 / .95), transparent 82%),
    radial-gradient(ellipse 75% 37% at 50% 40%, rgb(0 100 255 / .28), transparent 82%),
    linear-gradient(180deg, #031a3b 0%, #06377e 30%, #06479a 55%, #0958bc 66%, #3794ed 76%, #9beaf8 83%, #2673a2 92%, #061b33 100%);
}
#contacto > .wrap { position: relative; z-index: 1; }
#contacto .contact-intro > .eyebrow { color: #b8f3ff; }
#contacto #contact-title { color: #fff; }
#contacto #contact-title em { color: #b8f3ff; }
#contacto .contact-intro > p:not(.eyebrow) { color: #e4f1ff; }
#contacto .contact-email { color: #536b88; }
#contacto .contact-intro > p:not(.eyebrow) { font-size: 1rem; }
#contacto .contact-art .contact-profile { --ink: #102e53; --muted: #536b88; background: rgb(255 255 255 / .96); border: 1px solid #dae6f4; border-radius: 24px; box-shadow: 0 6px 22px rgb(4 29 65 / .12); }
#contacto .contact-signature p,
#contacto .contact-art .contact-link,
#contacto .contact-art .contact-link > strong { color: #102e53; }
#contacto .contact-signature span,
#contacto .contact-art .contact-link > span { color: #536b88; }
#contacto .contact-art .contact-link > svg { color: #2464b7 !important; border-color: #dbe9fc; background: #edf5ff; }
#contacto .contact-email { text-decoration-color: #acc6e8; }
#contacto .studio-world::after { background: radial-gradient(ellipse, rgb(43 78 125 / .15), transparent 70%); }
#contacto .footer { color: #d9e9f7; border-color: rgb(218 230 244 / .22); }

/* Compact primary blue and secondary white actions, consistent in every section. */
body .site-header .header-contact.glossy-btn.glossy-btn.glossy-btn,
body .contact-dock .contact-dock-button.glossy-btn.glossy-btn.glossy-btn,
body #contacto a.glossy-btn.glossy-btn.glossy-btn[href^="https://wa.me/"],
#portafolio .portfolio-youtube.glossy-btn.glossy-btn.glossy-btn {
  border-color: rgb(255 255 255 / .2);
  background: linear-gradient(180deg, #0b6fe5, #075dce);
  color: #fff;
  border-radius: 99px;
  font-weight: 550;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 3px 8px rgb(13 93 204 / .15);
}
body .site-header .header-contact.glossy-btn.glossy-btn.glossy-btn:hover,
body .contact-dock .contact-dock-button.glossy-btn.glossy-btn.glossy-btn:hover,
body #contacto a.glossy-btn.glossy-btn.glossy-btn[href^="https://wa.me/"]:hover,
#portafolio .portfolio-youtube.glossy-btn.glossy-btn.glossy-btn:hover { background: #0864d3; color: #fff; border-color: #0864d3; box-shadow: 0 3px 9px rgb(13 93 204 / .2); }
body :is(.header-contact, .contact-button, .contact-dock-button) svg.social-mark:has(use[href="#icon-whatsapp"]),
body :is(.portfolio-youtube, .youtube-external) svg.social-mark:has(use[href="#icon-youtube"]) { background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
body #contacto .contact-mail.glossy-btn.glossy-btn.glossy-btn,
#portafolio .portfolio-navigation .portfolio-next.glossy-btn.glossy-btn.glossy-btn,
#contacto .studio-scene .studio-playback:not([hidden]) {
  color: #174575;
  background: #fff;
  border: 1px solid #cfdef0;
  border-radius: 99px;
  box-shadow: 0 2px 6px rgb(24 63 113 / .04);
}
body #contacto .contact-mail svg,
#portafolio .portfolio-next svg { color: #0877f9 !important; background: transparent; padding: 0; box-shadow: none; }
#contacto .studio-playback::before { background: #0877f9; box-shadow: none; }
#contacto .studio-playback::after { background: #fff; }
/* A small cyan light follows the actual mouse in the 3D scene. */
.studio-mouse-glow {
  position: absolute; z-index: 2; left: var(--studio-mouse-x, 50%); top: var(--studio-mouse-y, 50%);
  width: clamp(24px, 5vw, 40px); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgb(211 250 255 / .65) 0%, rgb(61 191 255 / .36) 23%, transparent 66%);
}
.studio-scene.is-rendered .studio-mouse-glow { opacity: .65; }
.studio-scene.is-rendered.monitor-activo .studio-mouse-glow { animation: mouse-ambient 2.8s ease-in-out infinite alternate; }
.studio-scene.is-rendered.pausa-manual .studio-mouse-glow { animation: mouse-click .8s ease-out both; }
@keyframes mouse-ambient { from { opacity: .4; scale: .82; } to { opacity: .8; scale: 1.08; } }
@keyframes mouse-click { 0% { opacity: .45; scale: .7; } 35% { opacity: 1; scale: 1.32; } 100% { opacity: .65; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .studio-scene.is-rendered .studio-mouse-glow { animation: none; } }
#contacto .studio-scene.is-rendered.reproduccion-manual .studio-screen-feedback::after {
  background: rgb(8 21 46 / .85);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: reproduccion-monitor .9s ease-out both;
}
#contacto .studio-scene.is-rendered.reproduccion-manual .studio-screen-feedback::before {
  content: ''; position: absolute; z-index: 1; width: 9px; height: 11px;
  background: white; opacity: 0; clip-path: polygon(0 0, 100% 50%, 0 100%);
  animation: reproduccion-monitor .9s ease-out both;
}
@keyframes reproduccion-monitor {
  0% { opacity: 0; transform: scale(.75); }
  18%, 55% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .studio-scene.is-rendered.reproduccion-manual .studio-screen-feedback::before,
  .studio-scene.is-rendered.reproduccion-manual .studio-screen-feedback::after { animation: none; }
}
#portafolio .portfolio-next:focus-visible,
body .glossy-btn.glossy-btn.glossy-btn:focus-visible,
#contacto .contact-link:focus-visible { outline-color: #0877f9; }

/* Product and video windows keep the same contrast as the light page. */
body :is(#product-dialog, #plugin-download-dialog, #service-dialog, #videos-dialog) {
  color-scheme: light;
  --bg: #f1f6fd;
  --surface: #fff;
  --ink: #102e53;
  --muted: #536b88;
  --line: #d8e5f5;
  --lime: #0867db;
  --cq-action-surface: #075dce;
  --cq-action-hover: #0b6fe5;
  color: #102e53;
  background: #fff;
  border-color: #d8e5f5;
  box-shadow: 0 18px 70px rgb(4 36 82 / .2);
}
body :is(#product-dialog, #plugin-download-dialog, #service-dialog, #videos-dialog)::backdrop { background: rgb(5 28 62 / .52); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body :is(#product-dialog, #plugin-download-dialog, #service-dialog, #videos-dialog) .dialog-close { color: #174575; background: #edf4fe; border-color: #d8e5f5; }
body :is(#product-dialog, #plugin-download-dialog, #service-dialog, #videos-dialog) svg:not(.symbol-library) { color: #2464b7 !important; }
body :is(#product-dialog, #plugin-download-dialog) .ready-check { color: #0867db; }
body .detail-actions > .glossy-btn.glossy-btn.glossy-btn:not([data-action="inquiry"]),
body :is(#product-dialog, #plugin-download-dialog) .btn.primary.glossy-btn.glossy-btn.glossy-btn { background: #0867db; color: #fff; border-color: #0867db; }
body #plugin-download-dialog .btn.primary.glossy-btn.glossy-btn.glossy-btn:disabled { background: #e7eef8; border-color: #d2dfed; color: #425e7c; box-shadow: none; }
body :is(#product-dialog, #plugin-download-dialog) .btn.primary svg { color: #fff !important; }
body :is(#service-dialog, #videos-dialog) :is(.service-player, .youtube-stage) { background: #061b3b; }

@media (max-width: 760px) {
  body .site-header, body .site-header.is-scrolled { height: 80px; padding: 12px 10px; }
  body .site-header .nav.wrap { height: 56px; padding-inline: 7px; }
  body .site-header .nav nav { grid-template-columns: 1.25fr .9fr 32px 1.15fr 42px; gap: 3px; }
  body .site-header .nav nav a:not(.brand):not(.header-contact) { font-size: .75rem; gap: 4px; }
  body .site-header .nav nav .nav-icon { width: 14px; height: 14px; }
  body .site-header .header-contact.glossy-btn.glossy-btn.glossy-btn { width: 38px; height: 38px; min-height: 38px; padding: 0; }
  #inicio .hero-stage { min-height: 650px; }
  #inicio .hero-stage > .hero-background { inset: 80px 0 0; margin: 0; width: 100%; height: auto; aspect-ratio: auto; }
  #inicio .hero-stage-content { grid-area: 1 / 1; padding: 80px 0 0; }
  #inicio .hero-stage .hero-heading .eyebrow { margin-bottom: 22px; font-size: .75rem; padding: 6px 13px; }
  #inicio .hero-stage .hero-heading h1 { font-size: clamp(2.75rem, 9.2vw, 4.25rem); letter-spacing: -.055em; }
  #inicio .hero-stage h1 > em { margin-top: 6px; font-size: 1.08em; }
  #inicio .hero-stage .hero-description { font-size: 1rem; margin-top: 22px; max-width: 32ch; }
  #main > #portafolio { padding-block: 18px 50px; }
  #main > #tienda { background: linear-gradient(180deg, #061b33 0, #285778 14px, #b5d7ea 34px, #f7fbff 64px, #eff6ff 50%, #f7fbff calc(100% - 90px), #d7ebfc calc(100% - 66px), #376c9a calc(100% - 24px), #031a3b 100%); }
  #portafolio .portfolio-intro .section-head > #services-title,
  #tienda .store-heading > h2,
  #contacto #contact-title { font-size: clamp(2.125rem, 7.5vw, 3rem); }
  #portafolio .portfolio-description { max-width: 34ch; font-size: 1rem; }
  #portafolio .portfolio-carousel { margin-top: -26px; }
  #portafolio .portfolio-navigation { gap: 12px; margin-top: 40px; }
  #tienda .store-grid { gap: 14px; }
  #tienda .store-grid .store-icon { padding: 12px; border-radius: 18px; }
  #tienda .store-grid .product-caption strong { font-size: .9375rem; }
  #tienda .store-grid .product-caption > span { font-size: .875rem; }
  #main > #contacto { padding-top: 40px; }
}
@media (max-width: 370px) {
  body .site-header .nav nav a:not(.brand):not(.header-contact) { font-size: .6875rem; }
  #inicio .hero-stage .hero-heading h1 { font-size: 2.5rem; }
  #inicio .hero-stage-content { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .site-header .nav.wrap { transition: none; }
}

/* Compatibility symbols and a compact requirements window. */
#product-dialog .pro-platform{display:flex;align-items:center;gap:8px;margin:10px 0;color:#245b94;font-size:.875rem;font-weight:600}
#product-dialog .pro-platform[hidden]{display:none}
#elastico-donation-step .elastico-support-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 18px; }
#elastico-donation-step .btn { min-height: 44px; }
#elastico-donation-step .elastico-skip { display: block; margin-top: 12px; min-height: 32px; padding: 6px 0; border: 0; background: transparent; color: #496078; font: inherit; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#elastico-donation-step .elastico-skip:focus-visible { outline: 2px solid #126edf; outline-offset: 4px; }
#download-platforms .platform-options { max-width: 420px; }
#download-platforms .platform-options input[value="mac"] + span svg { color: #858c96 !important; }
#product-dialog [data-plugin-download]:disabled { opacity: .6; cursor: not-allowed; }
#plugin-download-dialog [download][hidden] { display: none !important; }
body #product-dialog .pro-platform svg{width:18px;height:18px;color:#0877f9!important}
body #product-dialog .platform-options input[value="mac"] + span svg{color:#858c96!important}
body .pro-requirements-dialog{width:min(660px,calc(100% - 32px));height:min(760px,calc(100dvh - 40px));max-width:none;max-height:none;padding:0;overflow:hidden;border:1px solid #d8e5f5;border-radius:22px;background:#fff;box-shadow:0 18px 70px rgb(4 36 82 / .2)}
body .pro-requirements-dialog::backdrop{background:rgb(5 28 62 / .52);backdrop-filter:blur(8px)}
.pro-requirements-dialog iframe{display:block;width:100%;height:100%;border:0}
body .pro-requirements-dialog .dialog-close{z-index:2;color:#174575;background:#edf4fe;border-color:#d8e5f5}
body .pro-requirements-dialog .dialog-close svg{color:#2464b7!important}

/* A white title wraps the portrait; the carousel remains interactive. */
#portafolio .portfolio-accessible-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#portafolio .portfolio-intro > .section-head { z-index: 5; }
#portafolio .portfolio-description {
  margin: 0 auto;
  color: #dcecf8;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#portafolio .portfolio-carousel { margin-top: 8px; }
#portafolio .portfolio-display-title {
  position: absolute;
  top: 15%;
  left: 50%;
  width: max-content;
  max-width: none;
  transform: translateX(-50%) scaleX(.92);
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-size: clamp(3.4rem, 16.5vw, 16rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.015em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
#portafolio .portfolio-display-title--fill { z-index: 2; color: #fff; }
#portafolio .portfolio-display-title--outline {
  z-index: 4;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.9);
}
#portafolio .portrait-cutout img {
  inset: auto 0 0;
  width: auto;
  height: 123%;
  max-width: none;
  max-height: none;
  margin: auto;
}
@media (max-width: 760px) {
  #portafolio .portfolio-carousel { margin-top: 12px; }
  #portafolio .portfolio-display-title { top: 16%; font-size: clamp(3.1rem, 17.2vw, 8rem); }
  #portafolio .portrait-cutout img { height: 120%; }
  #portafolio .portfolio-description { font-size: .75rem; }
}

/* Larger portrait, layered lettering and controls below the videos. */
#portafolio .portfolio-description em {
  color: #B8F3FF;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
}
#portafolio .portfolio-display-title { top: 2%; }
#portafolio .portfolio-profile {
  bottom: -155px;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Cyan accents, with dark text wherever the accent forms a light surface. */
::selection { background: #B8F3FF; color: #09264C; }
:focus-visible { outline-color: #B8F3FF; }
#inicio .hero-stage .hero-heading .eyebrow { color: #B8F3FF; border-color: rgb(184 243 255 / .45); }
body .site-header .nav nav a:not(.brand):not(.header-contact).is-active { box-shadow: inset 0 -2px #B8F3FF; }
#tienda .store-heading > h2 em { color: #B8F3FF; text-decoration: underline; text-decoration-color: #B8F3FF; text-decoration-thickness: 3px; text-underline-offset: .15em; }
#portafolio .portfolio-youtube.glossy-btn.glossy-btn.glossy-btn,
#portafolio .portfolio-navigation .portfolio-next.glossy-btn.glossy-btn.glossy-btn,
body #contacto .contact-mail.glossy-btn.glossy-btn.glossy-btn,
#contacto .studio-scene .studio-playback:not([hidden]),
body .detail-actions > .glossy-btn.glossy-btn.glossy-btn:not([data-action="inquiry"]),
body :is(#product-dialog, #plugin-download-dialog) .btn.primary.glossy-btn.glossy-btn.glossy-btn:not(:disabled) {
  background: #B8F3FF;
  border-color: #B8F3FF;
  color: #09264C;
}
#portafolio .portfolio-youtube.glossy-btn.glossy-btn.glossy-btn:hover,
#portafolio .portfolio-navigation .portfolio-next.glossy-btn.glossy-btn.glossy-btn:hover,
body #contacto .contact-mail.glossy-btn.glossy-btn.glossy-btn:hover,
#contacto .studio-scene .studio-playback:not([hidden]):hover,
body .detail-actions > .glossy-btn.glossy-btn.glossy-btn:not([data-action="inquiry"]):hover,
body :is(#product-dialog, #plugin-download-dialog) .btn.primary.glossy-btn.glossy-btn.glossy-btn:not(:disabled):hover {
  background: #d6f9ff;
  border-color: #d6f9ff;
  color: #09264C;
}
#portafolio .portfolio-youtube svg,
#portafolio .portfolio-next svg,
body #contacto .contact-mail svg,
body :is(#product-dialog, #plugin-download-dialog) .btn.primary:not(:disabled) svg,
body .detail-actions > .glossy-btn.glossy-btn.glossy-btn:not([data-action="inquiry"]) svg { color: #09264C !important; }
#contacto .studio-playback::before { background: #B8F3FF; }
#contacto .studio-playback::after { background: #09264C; }
#tienda .store-grid .product-preview-cue,
#tienda .store-grid .product-badge { background: #B8F3FF; border-color: #B8F3FF; color: #09264C; }
#tienda .store-grid .product-preview-cue svg { color: #09264C !important; }
#tienda .store-grid .store-icon:hover { border-color: #B8F3FF; }
#portafolio .portfolio-next:focus-visible,
body .glossy-btn.glossy-btn.glossy-btn:focus-visible,
#contacto .contact-link:focus-visible { outline-color: #B8F3FF; }
#portafolio .portrait-cutout img { height: 150%; bottom: -10%; }
#portafolio .portfolio-youtube.glossy-btn.glossy-btn.glossy-btn {
  left: 18%;
  bottom: 5%;
  min-width: 140px;
}
#portafolio .portfolio-current {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#portafolio .portfolio-navigation { justify-content: flex-end; }

/* Stable navy navigation and WhatsApp's green on every contact button. */
body .site-header .nav.wrap,
body .site-header.is-scrolled .nav.wrap {
  background: #09264c;
  border-color: rgb(170 215 255 / .25);
}
body .site-header.is-scrolled .nav nav a:not(.brand):not(.header-contact) { color: #fff; }
body .site-header.is-scrolled .nav nav a:not(.brand):not(.header-contact):is(:hover,.is-active) { color: #fff; background: rgb(255 255 255 / .12); }
body .site-header .header-contact.glossy-btn.glossy-btn.glossy-btn,
body .contact-dock .contact-dock-button.glossy-btn.glossy-btn.glossy-btn,
body #contacto a.glossy-btn.glossy-btn.glossy-btn[href^="https://wa.me/"] {
  background: #087c41;
  border-color: #087c41;
  color: #fff;
}
body .site-header .header-contact.glossy-btn.glossy-btn.glossy-btn:hover,
body .contact-dock .contact-dock-button.glossy-btn.glossy-btn.glossy-btn:hover,
body #contacto a.glossy-btn.glossy-btn.glossy-btn[href^="https://wa.me/"]:hover {
  background: #066532;
  border-color: #066532;
  color: #fff;
}
@media (max-width: 760px) {
  #portafolio .portfolio-display-title { top: 4%; }
  #portafolio .portfolio-profile { bottom: -135px; }
  #portafolio .portrait-cutout img { height: 150%; }
  #portafolio .portfolio-youtube.glossy-btn.glossy-btn.glossy-btn { left: 20%; bottom: 4%; min-width: 105px; padding-inline: 12px; }
  #portafolio .portfolio-navigation {
    position: absolute;
    top: calc(clamp(315px, 91vw, 485px) + 14px);
    left: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 0;
  }
  #portafolio .portfolio-navigation .portfolio-next.glossy-btn.glossy-btn.glossy-btn {
    gap: 5px;
    padding-inline: 11px;
    font-size: .72rem;
  }
}

/* Ajustes solicitados: video completo, título bajo el carrusel y retrato más pequeño. */
#inicio .hero-stage {
  --cq-hero-video-height: 56.25vw;
  min-height: calc(var(--cq-hero-video-height) + var(--bajada-video));
}
#inicio .hero-stage > .hero-background {
  inset: var(--bajada-video) 0 auto;
  width: 100%;
  height: var(--cq-hero-video-height);
  aspect-ratio: 16 / 9;
}
#inicio .hero-stage > .hero-background > video {
  object-fit: cover;
  object-position: center;
}
#portafolio .portfolio-stage {
  height: clamp(420px, 39vw, 590px);
}
#portafolio .portfolio-panels {
  inset-block: 36% 8%;
}
#portafolio .portfolio-display-heading {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(120px, 17vw, 230px);
  margin: clamp(8px, 1.2vw, 16px) auto 0;
  isolation: isolate;
}
#portafolio .portfolio-display-title {
  position: static;
  grid-area: 1 / 1;
  top: auto;
  left: auto;
  width: max-content;
  max-width: 100%;
  transform: scaleX(.92);
  font-size: clamp(3.4rem, 16.5vw, 16rem);
  line-height: .95;
}
#portafolio .portfolio-display-title--fill { z-index: 1; }
#portafolio .portfolio-display-title--outline { z-index: 2; }
#portafolio .portrait-cutout img { height: 125%; }
#portafolio .portfolio-invite {
  max-width: 48ch;
  margin: 12px auto 0;
  color: #f4f8fc;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}
#main > #portafolio { position: relative; z-index: 1; }
#main > #tienda { position: relative; z-index: 2; isolation: isolate; }
#main > #tienda::before {
  position: absolute;
  z-index: 1;
  inset: -72px 0 auto;
  height: 72px;
  content: '';
  background: linear-gradient(to bottom, transparent, #061b33);
  pointer-events: none;
}
#main > #tienda > .store { position: relative; z-index: 2; }

/* Keep the portfolio invitation close to the carousel and give it more presence. */
#portafolio .portfolio-description,
#portafolio .portfolio-invite {
  position: relative;
  top: 20px;
}
#portafolio .portfolio-intro > .section-head { margin-bottom: 10px; }
#portafolio .portfolio-invite {
  max-width: 40ch;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.35;
}
#portafolio .portfolio-letter {
  display: inline-block;
}
#portafolio .portfolio-display-title { pointer-events: auto; }
#portafolio .portfolio-navigation { margin-top: 18px; }
@media (max-width: 760px) {
  #portafolio .portfolio-description,
  #portafolio .portfolio-invite { top: 16px; }
  #portafolio .portfolio-intro > .section-head { margin-bottom: 8px; }
  #portafolio .portfolio-invite {
    max-width: 32ch;
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  #portafolio .portfolio-letter { animation: none; }
}
@media (max-width: 760px) {
  #inicio .hero-stage {
    --bajada-video: 56px;
    min-height: calc(var(--cq-hero-video-height) + var(--bajada-video));
  }
  #inicio .hero-stage > .hero-background {
    inset: var(--bajada-video) 0 auto;
    width: 100%;
    height: var(--cq-hero-video-height);
    aspect-ratio: 16 / 9;
  }
  #inicio .hero-stage-content { padding: var(--bajada-video) 0 0; }
  #portafolio .portfolio-stage { height: clamp(290px, 82vw, 425px); }
  #portafolio .portfolio-panels { inset-block: 38% 15%; }
  #portafolio .portfolio-display-heading { height: clamp(88px, 22vw, 132px); margin-top: 8px; }
  #portafolio .portfolio-display-title { font-size: clamp(2.5rem, 14.5vw, 8rem); }
  #portafolio .portrait-cutout img { height: 120%; }
  #portafolio .portfolio-invite { max-width: 32ch; margin-top: 8px; font-size: clamp(1.2rem, 5.2vw, 1.55rem); }
  #main > #tienda::before { inset-block-start: -56px; height: 56px; }
  #portafolio .portfolio-navigation {
    position: relative;
    top: auto;
    left: auto;
    justify-content: flex-end;
    margin: 8px 0 0;
    padding: 0;
  }
}
