:root { color-scheme: dark; --ink: #f7f9fc; --muted: #c3ccd8; --blue: #009dff; --line: rgba(255,255,255,.16); --panel: #101e30; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .phone:focus-visible, .laptop-display:focus-visible { outline: 3px solid #65ccff; outline-offset: 5px; }
a { color: inherit; }
.vilanse-body { background: #071321; color: var(--ink); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 16px; background: white; color: #071321; border-radius: 8px; }
.vilanse-hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-layout { position: relative; container-type: inline-size; width: 100%; height: 100svh; min-height: calc(100vw * 856.8 / 2056); flex: 0 0 auto; margin: 0 auto; }
.hero-copy { --scene-unit: calc(100cqw / 2056); --copy-inset: clamp(20px, 1.25vw, 25px); position: absolute; z-index: 2; left: calc(3.750195% + var(--copy-inset)); top: calc(50% - 322 * var(--scene-unit)); width: calc(32.140078% - var(--copy-inset)); text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.vilanse-brand { display: inline-flex; flex-direction: column; text-decoration: none; margin-bottom: calc(42 * var(--scene-unit)); }
.brand-word { display: flex; align-items: center; height: calc(76.8 * var(--scene-unit)); gap: calc(3.6 * var(--scene-unit)); }
.brand-word img { width: auto; height: 100%; }
.brand-word > span { font-size: calc(76 * var(--scene-unit)); line-height: 1; font-weight: 800; font-style: italic; letter-spacing: -.035em; }
.brand-tagline { margin-top: calc(12 * var(--scene-unit)); font-size: calc(12 * var(--scene-unit)); letter-spacing: .13em; text-align: center; font-weight: 500; }
h1 { margin: 0; font-size: calc(48.3 * var(--scene-unit)); font-weight: 750; line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; }
.hero-intro { display: block; margin-bottom: calc(8 * var(--scene-unit)); font-size: .48em; font-weight: 400; letter-spacing: -.025em; }
h1 em { color: #03aaff; font-style: normal; }
.service-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: calc(18 * var(--scene-unit)) 0 calc(24 * var(--scene-unit)) calc(-18 * var(--scene-unit)); width: calc(590 * var(--scene-unit)); }
.service-types li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(9.5 * var(--scene-unit)); min-width: 0; padding: 0 calc(12 * var(--scene-unit)); font-size: calc(21.2 * var(--scene-unit)); line-height: 1.3; white-space: nowrap; }
.service-types li + li::before { content: ""; position: absolute; left: 0; top: calc(4 * var(--scene-unit)); bottom: calc(4 * var(--scene-unit)); width: 1px; background: rgba(228,238,249,.4); }
.service-types svg { display: block; flex-shrink: 0; width: calc(44.5 * var(--scene-unit)); height: calc(44.5 * var(--scene-unit)); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions { display: flex; gap: calc(24 * var(--scene-unit)); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1.5px solid transparent; border-radius: 12px; padding: 17px 22px; min-height: 56px; color: white; font-size: clamp(13px, 1.08vw, 18px); font-weight: 700; text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; }
.hero-actions .button { gap: calc(19 * var(--scene-unit)); border-radius: calc(12 * var(--scene-unit)); padding: calc(18 * var(--scene-unit)) calc(27.5 * var(--scene-unit)); min-height: calc(66 * var(--scene-unit)); font-size: calc(21.2 * var(--scene-unit)); white-space: nowrap; }
.button span { font-size: 1.5em; line-height: .7; font-weight: 400; }
.button-primary { background: #087bff; box-shadow: 0 9px 28px rgba(0,80,190,.2); }
.button-primary:hover { background: #1493ff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,115,255,.3); }
.button-outline { background: rgba(3,15,29,.45); border-color: #079fff; }
.button-outline:hover { background: rgba(0,133,242,.16); transform: translateY(-2px); }
.hero-visual { position: absolute; inset: 0; }
.device-showcase { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Acerca toda la fotografía y su pantalla proyectada desde el mismo punto. */
.scene-art, .scene-screens { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transform: scale(1.12); transform-origin: 55% 50%; }
.scene-extension-viewport { width: 2056px; height: 1565px; }
.scene-extension-raster { display: block; width: 100%; height: 100%; pointer-events: none; }
.scene-desk-extension { display: none; }
.scene-mobile-photograph { display: none; }
.scene-viewport { position: relative; width: 2056px; height: 765px; transform-origin: 0 0; }
/* Solo la pantalla: el marco, teclado y sombras siguen en la fotografía original. */
.laptop-display { position: absolute; left: 0; top: 0; width: 1600px; height: 870px; transform-origin: 0 0; transform: matrix3d(0.437252721514, -0.005429387136, 0, -0.000022952041, -0.057425910667, 0.49152196519, 0, -0.000034551347, 0, 0, 1, 0, 871.5, 139.5, 0, 1); pointer-events: auto; }
.laptop-screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #080b10; }
/* Las capturas completas conservan su proporción; se ocultan los 234 px de Chrome. */
.desktop-slide { position: absolute; left: 0; top: -130px; display: block; width: 1600px; height: 1000px; opacity: 0; transition: opacity .4s ease; }
.desktop-slide.is-visible { opacity: 1; }
.phone { position: absolute; left: 0; top: 0; width: 216px; height: 426px; transform-origin: 0 0; transform: matrix3d(0.744257386835, -0.009516409578, 0, -0.000102654818, -0.27342069669, 0.893198135724, 0, -0.000116072236, 0, 0, 1, 0, 1702, 225, 0, 1); pointer-events: auto; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #080b10; clip-path: path("M24 0H58V7Q58 23 74 23H143Q158 23 158 7V0H192Q216 0 216 24V402Q216 426 192 426H24Q0 426 0 402V24Q0 0 24 0Z"); }
.phone-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transition: opacity .4s ease; }
.phone-slide.is-visible { opacity: 1; }
.phone-playback { position: absolute; z-index: 3; bottom: 10px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: white; background: rgba(3,10,20,.7); opacity: .4; transition: opacity .2s, background .2s; }
.phone-playback::before { content: ""; position: absolute; inset: -10px; }
.phone-playback svg { width: 16px; height: 16px; pointer-events: none; }
.phone-playback .pause-icon { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.phone-playback .play-icon { display: none; fill: currentColor; }
.phone-playback[aria-pressed="true"] .pause-icon { display: none; }
.phone-playback[aria-pressed="true"] .play-icon { display: block; }
.phone:hover .phone-playback, .phone:focus-within .phone-playback { opacity: 1; }
.phone-playback:hover { background: #071d34; }
.screen-note { position: absolute; z-index: 3; left: var(--note-left, 81%); top: var(--note-top, 13%); width: clamp(138px, 9.6vw, 164px); height: 142px; }
.note-paper { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) 17px; gap: 5px; margin: 0; padding: 14px 14px 12px; border-radius: 2px 2px 19px 2px; color: #33280c; background: linear-gradient(165deg, #fff29a 0%, #ffe369 70%, #ffdc51 100%); box-shadow: 2px 6px 10px rgba(20,14,5,.26), inset 0 1px rgba(255,255,255,.55); transform: rotate(-9deg); transform-origin: 55% 35%; pointer-events: none; }
.note-paper::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 0 0 16px 0; background: linear-gradient(135deg, transparent 42%, rgba(191,143,20,.18) 45%, #fff3a5 67%, #f0c742 100%); pointer-events: none; }
.note-messages { display: grid; align-items: start; min-height: 0; }
.note-message { grid-area: 1 / 1; position: relative; margin: 0; font-family: "Chalkboard SE", "Segoe Print", "Comic Sans MS", cursive; font-size: clamp(16px, 1.15vw, 18px); font-weight: 600; line-height: 1.23; letter-spacing: -.025em; opacity: 0; transition: opacity .2s ease; }
.note-message.is-visible { opacity: 1; transition-delay: .2s; }
.note-doodle { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 17px; padding-right: 10px; }
.note-underline { display: block; width: 34px; height: 7px; border-top: 2px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-6deg); opacity: .8; }
.note-smile { position: relative; width: 13px; height: 8px; border-bottom: 2px solid currentColor; border-radius: 0 0 50% 50%; transform: rotate(8deg); }
.note-smile::before, .note-smile::after { content: ""; position: absolute; top: -5px; width: 2px; height: 3px; border-radius: 50%; background: currentColor; }
.note-smile::before { left: 2px; }
.note-smile::after { right: 2px; }
.overlay-dialog { width: min(1050px, calc(100% - 56px)); padding: 30px; max-height: calc(100dvh - 64px); color: var(--ink); border: 1px solid rgba(206,229,255,.27); border-radius: 24px; background: linear-gradient(135deg, rgba(14,33,53,.97), rgba(7,18,33,.96)); box-shadow: 0 32px 100px rgba(0,0,0,.55); margin: auto; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #48708f transparent; }
.overlay-dialog::backdrop { background: rgba(2,9,19,.55); backdrop-filter: blur(7px); }
.dialog-open { overflow: hidden; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.projects-dialog .dialog-heading { position: sticky; top: -30px; z-index: 3; margin-top: -12px; padding-block: 12px; background: #102033; }
.eyebrow { color: #66c8ff; font-size: 10px; letter-spacing: .18em; font-weight: 700; }
.dialog-heading h2 { font-size: clamp(23px, 2.4vw, 34px); line-height: 1.14; letter-spacing: -.035em; margin: 9px 0; text-wrap: balance; }
.dialog-heading p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }
.close-button { width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.05); color: white; font-size: 26px; line-height: 1; }
.close-button:hover { background: rgba(255,255,255,.15); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { --accent: #ff982b; --accent-rgb: 255,152,43; position: relative; display: grid; grid-template-columns: 118px minmax(0,1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; text-decoration: none; background: rgba(255,255,255,.025); transition: border-color .2s, background .2s, transform .2s; min-height: 220px; }
.project-card:hover { border-color: var(--accent); background: rgba(255,255,255,.06); transform: translateY(-3px); }
.project-rasca { --accent: #ae8cff; --accent-rgb: 174,140,255; }
.project-negocios { --accent: #57c9ea; --accent-rgb: 87,201,234; }
.project-vibas { --accent: #ff5999; --accent-rgb: 255,89,153; }
.card-visual { position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 60%, rgba(var(--accent-rgb),.23), rgba(var(--accent-rgb),.025) 80%); overflow: hidden; min-height: 220px; }
.card-phone { width: 87px; padding: 3px; background: #090c12; border: 1px solid #677181; border-radius: 14px; transform: rotate(-5deg) translateY(10px); box-shadow: 9px 12px 24px rgba(0,0,0,.35); }
.card-phone img { display: block; width: 100%; height: auto; border-radius: 10px; }
.card-copy { display: flex; flex-direction: column; justify-content: center; padding: 21px 18px 21px 13px; min-width: 0; }
.project-category { color: var(--accent); font-size: 8px; letter-spacing: .09em; font-weight: 700; line-height: 1.5; }
.card-copy h3 { font-size: 22px; letter-spacing: -.04em; margin: 8px 0; }
.card-copy p { color: #bfcbda; font-size: 12px; line-height: 1.65; margin: 0 0 12px; }
.card-benefits { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; }
.card-benefits li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; color: #dce6f0; font-size: 12px; line-height: 1.45; }
.card-benefits li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.card-link { display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-size: 11px; font-weight: 700; }
.card-link > span { font-size: 18px; font-weight: 400; }
.new-tab-note { color: #91a4b9; font-size: 9px; margin-top: 7px; }
.contact-dialog { width: min(540px, calc(100% - 40px)); }
#quote-form { display: grid; gap: 17px; }
#quote-form label { display: grid; gap: 8px; color: #e4edf5; font-size: 12px; font-weight: 600; }
#quote-form input, #quote-form select, #quote-form textarea { width: 100%; min-width: 0; border: 1px solid #37506c; border-radius: 9px; background: #0a192b; color: white; padding: 12px; font-size: 16px; line-height: 1.4; }
#quote-form textarea { resize: vertical; min-height: 100px; }
#quote-form input::placeholder, #quote-form textarea::placeholder { color: #8c9eb3; }
.quote-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.quote-actions .button { font-size: 12px; padding: 13px 16px; min-height: 44px; }
.quote-actions .button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.quote-status { color: #a9d8f4; font-size: 12px; line-height: 1.6; margin: 0; }
.noscript-note { position: relative; background: #0a192b; padding: 20px; font-size: 14px; line-height: 1.8; }
@media (hover: none) { .phone-playback { opacity: .65; } }
@media (max-width: 1100px), (max-aspect-ratio: 4/3) {
  .vilanse-hero { display: block; }
  .hero-layout { display: grid; justify-items: center; gap: 28px; height: auto; min-height: 0; }
  .hero-visual { position: relative; inset: auto; width: 100%; min-width: 0; padding-bottom: 20px; }
  .hero-copy { --scene-unit: 1px; position: relative; left: auto; top: auto; width: calc(100% - 48px); max-width: 700px; margin-top: 24px; text-align: center; }
  .vilanse-brand { margin-bottom: 20px; }
  .brand-word { height: 61.2px; gap: 3.6px; }
  .brand-word > span { font-size: 61.2px; }
  .brand-tagline { font-size: 8.4px; margin-top: 10.8px; }
  h1 { font-size: clamp(32px, 5.52vw, 44.85px); line-height: 1.2; max-width: 650px; margin-inline: auto; }
  .service-types { margin: 20px auto; width: min(100%, 400px); }
  .service-types li { font-size: 15px; gap: 9px; }
  .service-types svg { width: 31px; height: 31px; }
  .hero-actions { justify-content: center; gap: 16px; }
  .hero-actions .button { font-size: 15px; min-height: 52px; padding: 16px 24px; border-radius: 12px; gap: 18px; }
  .screen-note { position: absolute; left: var(--note-left, 73%); top: var(--note-top, 8%); width: clamp(96px, 12vw, 132px); height: auto; margin: 0; }
  .note-paper { position: relative; inset: auto; display: block; padding: 10px 12px 19px; border-radius: 1px 1px 10px 1px; transform: rotate(-11deg); transform-origin: 0 0; box-shadow: 2px 4px 7px rgba(20,14,5,.25); }
  .note-paper::before { content: ""; position: absolute; left: 22%; top: -8px; width: 20px; height: 13px; background: rgba(219,226,231,.45); box-shadow: inset 0 0 1px rgba(255,255,255,.5); transform: rotate(16deg); }
  .note-paper::after { width: 12px; height: 12px; border-bottom-right-radius: 12px; }
  .note-messages { position: relative; display: block; padding-bottom: 2px; overflow: hidden; }
  .note-message { position: absolute; inset: 0; width: 100%; font-size: 15px; line-height: 1.16; overflow-wrap: anywhere; }
  .note-message.is-visible { position: relative; inset: auto; }
  .note-doodle { position: absolute; left: 12px; bottom: 7px; display: block; height: 3px; padding: 0; }
  .note-underline { width: 27px; height: 3px; border-top-width: 1px; border-bottom: 0; }
  .note-smile { display: none; }
  .device-showcase { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 941 / 720; }
  .scene-art, .scene-screens { overflow: visible; transform: none; }
  .scene-photograph, .scene-desk-extension { display: none; }
  .scene-mobile-photograph { display: block; }
  .scene-viewport { width: 941px; height: 1672px; }
  /* Proyección de las capturas sobre las pantallas de la fotografía móvil. */
  .laptop-display { transform: matrix3d(0.267717593109, -0.055814417196, 0, -0.000048544973, -0.051557062253, 0.27342945655, 0, -0.000061002207, 0, 0, 1, 0, 185, 1031, 0, 1); }
  .phone { transform: matrix3d(0.586043064061, -0.082106720709, 0, -0.000079647705, -0.209164036604, 0.443067800944, 0, -0.000200527861, 0, 0, 1, 0, 754, 1088, 0, 1); }
  .phone-playback { width: 40px; height: 40px; padding: 8px; }
  .phone-playback::before { inset: -20px; }
  .phone-playback svg { width: 22px; height: 22px; }
}
@media (max-width: 680px) {
  .screen-note { width: clamp(68px, 17.5vw, 104px); }
  .note-paper { padding: 7px 8px 14px; }
  .note-paper::before { width: 14px; height: 10px; top: -6px; }
  .note-paper::after { width: 8px; height: 8px; border-bottom-right-radius: 10px; }
  .note-message { font-size: clamp(10.5px, 2.8vw, 12px); }
  .note-doodle { left: 8px; bottom: 5px; }
  .note-underline { width: 22px; }
  .hero-copy { width: calc(100% - 36px); margin-top: 20px; }
  .vilanse-brand { margin-bottom: 17px; }
  .brand-word { height: 48px; gap: 3.6px; }
  .brand-word > span { font-size: 48px; }
  .brand-tagline { font-size: 7.4px; letter-spacing: .15em; margin-top: 9px; }
  h1 { font-size: clamp(26.5px, 6.9vw, 36.5px); line-height: 1.17; max-width: 500px; }
  .hero-intro { font-size: .5em; margin-bottom: 6px; }
  .desktop-break { display: none; }
  .service-types { margin-block: 17px; width: min(100%, 310px); }
  .service-types li { font-size: 12px; gap: 6px; }
  .service-types svg { width: 23px; height: 23px; stroke-width: 2; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; max-width: 420px; margin: 0 auto; }
  .hero-actions .button { padding: 12px 11px; gap: 9px; min-height: 46px; border-radius: 10px; font-size: 12.75px; }
  .phone-playback { width: 64px; height: 64px; padding: 12px; }
  .phone-playback::before { inset: -30px; }
  .phone-playback svg { width: 34px; height: 34px; }
  .overlay-dialog { width: calc(100% - 26px); padding: 20px 16px; max-height: calc(100dvh - 40px); border-radius: 20px; }
  .dialog-heading { gap: 10px; margin-bottom: 20px; }
  .projects-dialog .dialog-heading { top: -20px; }
  .dialog-heading h2 { font-size: 26px; }
  .dialog-heading p { font-size: 11px; }
  .eyebrow { font-size: 8px; }
  .close-button { width: 33px; height: 33px; font-size: 24px; }
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card { grid-template-columns: 106px minmax(0,1fr); min-height: 205px; }
  .card-visual { min-height: 205px; }
  .card-copy { padding: 17px 14px 17px 9px; }
  .card-copy h3 { font-size: 21px; }
  .card-copy p { font-size: 11px; margin-bottom: 13px; }
  .project-category { font-size: 7px; }
  .card-phone { width: 80px; }
  .contact-dialog { width: calc(100% - 26px); }
}
@media (max-width: 360px) { .hero-actions { grid-template-columns: 1fr; } .hero-actions .button { gap: 9px; } .project-card { grid-template-columns: 88px minmax(0,1fr); } .card-phone { width: 68px; } .card-copy h3 { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
