/* 01. Variables y estilos generales */
:root {
  --background: #0a0a0a;     /* hsl(0 0% 4%) */
  --foreground: #fff;
  --card: #141414;           /* hsl(0 0% 8%) */
  --border: #2e2e2e;         /* hsl(0 0% 18%) */
  --muted: #a3a3a3;          /* hsl(0 0% 64%) */
  --secondary: #262626;      /* hsl(0 0% 15%) */
  --accent: #333;            /* hsl(0 0% 20%) */
  --radius: 12px;
  --font: 'Instrument Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { width: 100%; max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { width: 100%; max-width: 100%; overflow-x: hidden; margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.04em; text-wrap: balance; font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: transparent; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
::selection { background: #fff; color: #0a0a0a; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 10px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

/* 02. Elementos reutilizables */
.eyebrow { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .3em; }
.section-label { margin-bottom: 32px; color: var(--muted); text-align: center; }
.reveal { opacity: 1; transform: none; filter: none; }
html.js .reveal { opacity: 0; transform: translateY(20px); filter: blur(4px); transition: opacity .7s cubic-bezier(.16,1,.3,1) var(--delay,0ms), transform .7s cubic-bezier(.16,1,.3,1) var(--delay,0ms), filter .7s cubic-bezier(.16,1,.3,1) var(--delay,0ms); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* 03. Cabecera */
.navbar { position: fixed; top: 0; left: 0; z-index: 40; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 24px; mix-blend-mode: difference; }
.navbar-brand { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.05em; text-transform: uppercase; color: #fff; }
.navbar-actions { display: flex; align-items: center; gap: 24px; }
.language-toggle, .nav-contact { font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: #fff; transition: opacity .2s; }
.language-toggle:hover, .nav-contact:hover { opacity: .6; }
.language-toggle { border: 1px solid rgb(255 255 255 / 20%); border-radius: 9999px; padding: 6px 12px; }

/* 04. Portada */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: calc(50vh - 200px) 24px 128px; text-align: center; background-image: linear-gradient(to bottom, rgb(0 0 0 / 50%), rgb(0 0 0 / 80%)), url('https://bmstudio.com.ar/bms/wp-content/uploads/2025/10/BMStudio_Portada.jpg'); background-size: cover; background-position: center; }
.hero-logo { width: 112px; margin: 0 auto 24px; }
.hero-subtitle { margin-bottom: 16px; color: rgb(255 255 255 / 60%); }
.hero-title { max-width: 768px; font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.05em; }
.hero-title-accent { color: var(--muted); font-weight: 400; font-style: italic; }

/* 05. Marcas */
.brands { padding: 40px 24px; }
.brands-image-container { width: 100%; max-width: 896px; margin: 0 auto; }
.brands-image { width: 100%; opacity: .8; }

/* 06. Carrusel de proyectos */
.projects { padding: 40px 0; }
.projects-heading { padding: 0 24px; margin-bottom: 24px; }
.projects-heading .section-label { margin: 0; }
.projects-viewport { position: relative; overflow: visible; padding: 32px 0; }
.projects-track { display: flex; width: max-content; animation: projects-marquee 40s linear infinite; will-change: transform; }
/* Cada tarjeta mide 360px + 8px de margen en ambos lados */
.project-card { position: relative; flex: 0 0 auto; display: block; overflow: hidden; width: min(360px, calc(100vw - 32px)); max-width: calc(100vw - 32px); margin: 0 8px; padding: 0; text-align: left; border-radius: 12px; background: var(--card); outline: 1px solid var(--border); outline-offset: -1px; transition: transform .5s cubic-bezier(.25,1,.5,1), box-shadow .5s cubic-bezier(.25,1,.5,1); }
.project-card > img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 12px; filter: grayscale(30%); transition: filter .5s cubic-bezier(.4,0,.2,1); }
.project-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; background: linear-gradient(to top, rgb(0 0 0 / 70%), transparent, transparent); opacity: 0; transition: opacity .3s; }
.project-overlay strong { display: block; color: #fff; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: -.025em; text-transform: uppercase; }
.project-overlay small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; line-height: 16px; }
.project-card:hover .project-overlay, .project-card:focus-visible .project-overlay { opacity: 1; }
.project-card:hover > img, .project-card:focus-visible > img { filter: grayscale(0%); }
@media (hover: hover) and (pointer: fine) { .project-card:hover { transform: scale(1.04) translateY(-8px); box-shadow: 0 24px 60px -12px rgb(0 0 0 / 60%); z-index: 10; } }
@keyframes projects-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--projects-loop-width, 2632px))); } }

/* 07. Servicios */
.services { padding: 40px 24px; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; max-width: 1024px; margin: 0 auto; align-items: stretch; }
.service-reveal { height: 100%; }
.service-card { display: flex; flex-direction: column; height: 100%; padding: 24px; border: 1px solid rgb(46 46 46 / 40%); border-radius: 12px; background: var(--card); transition: border-color .3s, box-shadow .3s; }
.service-card:hover { border-color: rgb(255 255 255 / 20%); box-shadow: 0 8px 32px -8px rgb(255 255 255 / 5%); }
.service-icon { width: 28px; height: 28px; fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; transition: stroke .3s; }
.service-card:hover .service-icon { stroke: #fff; }
.service-card h3 { margin-bottom: 12px; color: #fff; font-size: 14px; line-height: 20px; letter-spacing: -.025em; font-weight: 700; }
.service-card p { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.625; }

/* 08. Frase central */
.cta { padding: 0px 24px 80px; text-align: center; }
.cta-title { max-width: 672px; margin: 0 auto; color: var(--muted); font-size: 20px; line-height: 1.375; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.cta-accent { color: #fff; font-style: italic; }

/* 09. Contacto */
.contact { position: relative; padding: 64px 24px; border-top: 1px solid rgb(46 46 46 / 40%); background: linear-gradient(to bottom, hsl(0 0% 4%), hsl(270 40% 12%), hsl(270 50% 18%), hsl(270 50% 18%)); }
.contact-title { margin-bottom: 40px; color: #fff; font-weight: 700; font-size: 24px; line-height: 32px; letter-spacing: -.05em; text-align: center; text-wrap: balance; }
.contact-content { max-width: 512px; margin: 0 auto; }
.contact-content > .reveal + .reveal { margin-top: 16px; }
.contact-line { display: flex; align-items: center; gap: 16px; color: var(--muted); transition: color .2s; }
a.contact-line:hover { color: #fff; }
.contact-line svg { flex: 0 0 auto; width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.contact-line span { font-size: 14px; line-height: 20px; }
.social-links { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 16px; }
.social-links a { color: var(--muted); font-size: 12px; line-height: 16px; letter-spacing: .15em; transition: color .2s, transform .2s; }
.social-links a:hover { color: #fff; }
.social-links a:active { transform: scale(.95); }

/* 10. Pie de página */
.footer { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: 24px; border-top: 1px solid rgb(46 46 46 / 30%); background: var(--background); }
.footer-brand { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 16px; letter-spacing: -.05em; text-transform: uppercase; }
.footer-rights { color: rgb(163 163 163 / 60%); font-size: 10px; line-height: 16px; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.footer-author { color: var(--muted); font-size: 12px; line-height: 16px; letter-spacing: .15em; transition: color .2s; }
.footer-author:hover { color: #fff; }

/* 11. WhatsApp flotante */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 50; display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 999px; background: #25d366; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%); animation: wa-pulse 2s ease-in-out infinite; transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float:active { transform: scale(.95); }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 0 0 0 hsla(142,70%,45%,.5); } 50% { box-shadow: 0 0 0 12px hsla(142,70%,45%,0); } }

/* 12. Visor de proyectos */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(10 10 10 / 85%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: lightbox-fade .2s both; }
.lightbox-panel { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1024px; max-height: 90vh; animation: lightbox-scale .25s both; }
.lightbox-image { display: block; width: 100%; max-height: 75vh; border-radius: 12px; object-fit: contain; }
.lightbox-caption { margin-top: 16px; text-align: center; }
.lightbox-caption h3 { font-size: 18px; line-height: 28px; font-weight: 700; letter-spacing: -.025em; text-transform: uppercase; }
.lightbox-caption p { max-width: 512px; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 20px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 999px; background: var(--secondary); transition: background .2s; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { top: -48px; right: 0; }
.lightbox-prev { top: 50%; left: 0; transform: translate(-8px, -50%); }
.lightbox-next { top: 50%; right: 0; transform: translate(8px, -50%); }
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-scale { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 13. Responsive */
@media (min-width: 640px) {
  .hero-title { font-size: 36px; line-height: 40px; }
}
@media (min-width: 768px) {
  .hero-logo { width: 144px; }
  .hero-title { font-size: 48px; line-height: 1; }
  .brands { padding-right: 48px; padding-left: 48px; }
  .projects-heading { padding-right: 48px; padding-left: 48px; }
  .services { padding-right: 48px; padding-left: 48px; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { padding-right: 48px; padding-left: 48px; }
  .cta-title { font-size: 24px; line-height: 32px; }
  .contact { padding-right: 48px; padding-left: 48px; }
  .contact-title { font-size: 30px; line-height: 36px; }
  .footer { flex-direction: row; padding-right: 48px; padding-left: 48px; }
  .lightbox { padding: 32px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-prev { transform: translate(-56px, -50%); }
  .lightbox-next { transform: translate(56px, -50%); }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 60px; line-height: 1; }
  .services { padding-right: 96px; padding-left: 96px; }
  .cta-title { font-size: 30px; line-height: 36px; }
  .contact { padding-right: 96px; padding-left: 96px; }
  .contact-title { font-size: 36px; line-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .projects-track { animation: none; }
  html.js .reveal { transition-duration: .01ms; transform: none; filter: none; }
  .whatsapp-float { animation: none; }
}

/* 14. Contenido comercial y conversión: SEO nacional e internacional. */
.services-intro { max-width: 760px; margin: -8px auto 28px; text-align: center; }
.services-intro p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.services-action { display: inline-flex; margin-top: 16px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; border-bottom: 1px solid rgb(255 255 255 / 45%); padding-bottom: 4px; transition: border-color .2s, opacity .2s; }
.services-action:hover { border-color: #fff; opacity: .8; }
.contact-intro { max-width: 540px; margin: -12px auto 32px; color: var(--muted); font-size: 14px; line-height: 1.7; text-align: center; }
@media (min-width: 768px) {
  .services-intro p { font-size: 15px; }
}

/* Separación natural de los dos párrafos de la sección de servicios. */
.services-intro-more { margin-top: 10px; }
