@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;450;500;550;600;650;700&family=Space+Grotesk:wght@400;500;600&display=swap');

/* Base y accesibilidad */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    400 16px/1.7 'DM Sans',
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button {
  border: 0;
}
::selection {
  background: var(--accent);
  color: white;
}
.logo-light,
html[data-theme='light'] .logo-dark {
  display: none !important;
}
html[data-theme='light'] .logo-light {
  display: block !important;
}

/* Navegación lateral */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  padding: 35px 22px 24px;
  background: var(--surface-alt);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.brand {
  display: block;
  margin: 0 10px 55px;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 3.4px;
  text-align: center;
  color: var(--muted);
  margin-top: 8px;
}
.sidebar-caption {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.6px;
  margin: 0 12px 18px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 4px;
  border-radius: 5px;
  color: var(--muted);
  transition: background 0.2s;
}
.nav-link > span {
  font: 20px Arial;
  width: 22px;
}
.nav-link b {
  font-weight: 500;
  font-size: 14px;
}
.nav-link i {
  margin-left: auto;
  font-size: 10px;
  font-style: normal;
  opacity: 0.5;
}
.nav-link:hover,
.social-nav :is(button, a[data-social], .contact-link):hover {
  background: var(--hover);
  color: var(--text);
}
.nav-link.active {
  background: var(--hover);
  color: var(--accent);
}
.social-nav {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.social-nav :is(button, a[data-social], .contact-link) {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  text-align: left;
  color: var(--muted);
  border-radius: 5px;
  font-size: 12px;
}
.social-dot {
  width: 22px;
  font: 19px Arial;
  text-align: center;
}
.social-nav i {
  margin-left: auto;
  font-size: 13px;
  font-style: normal;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 38px 12px 0;
  color: var(--muted);
  font-size: 10px;
}
.sidebar-bottom small {
  display: block;
  margin-top: 12px;
  font-size: 9px;
}
.online-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
}

/* Opciones de página */
.page {
  margin-left: 230px;
}
header {
  height: 88px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  backdrop-filter: blur(18px);
}
.breadcrumb {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 12px;
  opacity: 0.5;
}
.breadcrumb b {
  color: var(--text);
  font-weight: 400;
}
.header-options {
  display: flex;
  align-items: center;
  gap: 15px;
}
.theme-switch,
.language-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.theme-switch button,
.language-switch button {
  font-size: 11px;
  padding: 5px 8px;
  background: transparent;
  border-radius: 3px;
  color: var(--muted);
  white-space: nowrap;
}
.theme-switch button[aria-pressed='true'],
.language-switch button.selected {
  background: var(--hover);
  color: var(--text);
}
.header-cta {
  border: 1px solid var(--border);
  background: transparent;
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 12px;
}
.header-cta:hover {
  border-color: var(--accent);
}
.mobile-menu {
  display: none;
  background: transparent;
  font-size: 22px;
  padding: 4px;
}

/* Portada: tipografía editorial y una única forma abstracta */
.hero {
  position: relative;
  overflow: hidden;
  padding: 85px 6% 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 0 50px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font:
    500 clamp(38px, 4vw, 64px)/1.13 'DM Sans',
    sans-serif;
  letter-spacing: -2.4px;
  margin: 24px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-copy > p {
  max-width: 450px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-radius: 4px;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button.primary {
  color: #fff;
  background: var(--button);
}
.button:hover {
  transform: translateY(-2px);
}
.text-link {
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  padding-block: 7px;
  white-space: nowrap;
}
.text-link > span + span {
  margin-left: 12px;
}
.hero-tags {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-top: 34px;
}
.hero-art {
  position: relative;
  width: 100%;
  align-self: stretch;
  min-height: 460px;
}
.brand-sculpture {
  position: absolute;
  inset: -70px -90px -15px -90px;
  pointer-events: none;
}
.brand-sculpture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.art-caption {
  position: absolute;
  left: 18%;
  right: 8%;
  bottom: 33px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}
.hero-footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.hero-footer a {
  letter-spacing: 0;
  font-size: 12px;
}

/* Servicios */
.section {
  padding: 85px 6%;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 28px;
}
.section h2 {
  font:
    500 36px/1.25 'DM Sans',
    sans-serif;
  letter-spacing: -1.2px;
  margin: 17px 0 0;
  max-width: 620px;
}
.section-heading > p {
  max-width: 300px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.filters {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 35px 0 0;
}
.filters button {
  font-size: 12px;
  padding: 12px 0;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
}
.filters button.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  gap: 0;
}
.service-card {
  padding: 8px 28px 8px 0;
  text-align: left;
  background: transparent;
  color: var(--text);
  border-right: 1px solid var(--line);
}
.service-card + .service-card {
  padding-left: 28px;
}
.service-card:last-child {
  padding-right: 0;
  border-right: 0;
}
.service-card[hidden] {
  display: none;
}
.service-number {
  font-size: 12px;
  color: var(--accent);
}
.service-info h3 {
  margin: 23px 0 15px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.35;
}
.service-info h3 span {
  float: right;
  margin-left: 8px;
  font-size: 18px;
  font-weight: 400;
}
.service-info p {
  min-height: 100px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.service-chip {
  display: inline-block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.service-card:hover h3 {
  color: var(--accent);
}
.catalog-note {
  color: var(--muted);
  font-size: 11px;
  margin: 30px 0 0;
}

/* Empresa y ventajas */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 65px;
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}
.about-art {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--brand-panel);
  padding: 30px;
  border: 1px solid var(--line);
}
.about-art > .eyebrow {
  position: absolute;
  top: 24px;
  left: 25px;
  font-size: 8px;
  color: var(--muted);
}
.company-logo-panel {
  width: 100%;
}
.company-logo-panel img {
  width: 100%;
  height: auto;
}
.company-logo-panel p {
  font-size: 7px;
  letter-spacing: 1.8px;
  text-align: center;
  margin: 16px 0 0;
}
.about-bottom {
  position: absolute;
  bottom: 24px;
  left: 25px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 1px;
}
.about-copy h2 {
  margin-bottom: 25px;
}
.about-copy p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}
.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  font-size: 11px;
  color: var(--text);
  margin-top: 25px;
}
.about-values span {
  padding-left: 12px;
  border-left: 1px solid var(--accent);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 45px;
}
.benefit-grid article {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.benefit-grid h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 14px;
}
.benefit-grid p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}
.process {
  padding-top: 25px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.steps article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.steps article > span {
  font-size: 12px;
  color: var(--accent);
}
.steps h3 {
  font-weight: 500;
  font-size: 18px;
  margin: 16px 0 12px;
}
.steps p {
  font-size: 14px;
  color: var(--muted);
}

/* Contacto y pie de página */
.final-cta {
  margin: 0 6% 65px;
  padding: 45px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--line);
}
.final-cta h2 {
  font:
    500 32px/1.35 'DM Sans',
    sans-serif;
  letter-spacing: -1px;
  margin: 18px 0 0;
}
.button.dark {
  background: var(--button);
  color: #fff;
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 6% 30px;
  color: var(--muted);
  font-size: 10px;
}
footer > a:first-child {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
footer > a > span {
  font-size: 10px;
  font-weight: 400;
  margin-left: 4px;
}
footer p {
  margin: 0;
}

/* Ventanas y formulario */
dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100% - 40px);
  padding: 38px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: 0 24px 100px #0004;
}
dialog::backdrop {
  background: #051021a6;
  backdrop-filter: blur(7px);
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
}
dialog h2 {
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 20px 0;
}
dialog p,
dialog ul {
  color: var(--muted);
  font-size: 14px;
}
dialog ul {
  padding-left: 20px;
  line-height: 2;
  margin-block: 25px;
}
dialog .button {
  width: 100%;
}
form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  border-radius: 4px;
  font-size: 14px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}
textarea {
  resize: vertical;
}
form small {
  color: var(--muted);
  font-size: 10px;
}
#form-status {
  color: var(--accent);
  margin: 0;
}
#form-status:empty {
  display: none;
}

/* Adaptación a tablet y móvil */
@media (min-width: 1600px) {
  main {
    max-width: 1500px;
    margin-inline: auto;
  }
  .hero {
    padding-top: 100px;
  }
  .hero-art {
    min-height: 530px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding-inline: 15px;
  }
  .page {
    margin-left: 200px;
  }
  header {
    padding-inline: 30px;
  }
  .hero {
    padding-top: 65px;
  }
  .hero h1 {
    font-size: 44px;
    letter-spacing: -1.6px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-actions {
    gap: 18px;
    flex-wrap: wrap;
  }
  .hero-art {
    min-height: 410px;
  }
  .brand-sculpture {
    inset: -30px -100px 0 -80px;
  }
  .section h2 {
    font-size: 30px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading > p {
    max-width: 240px;
  }
  .service-card {
    padding-right: 18px;
  }
  .service-card + .service-card {
    padding-left: 18px;
  }
  .service-info h3 {
    font-size: 18px;
  }
  .about-section {
    gap: 35px;
  }
  .about-art {
    padding: 20px;
    min-height: 300px;
  }
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
  }
  .final-cta h2 {
    font-size: 27px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    width: 230px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 20px 0 80px #0003;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .page {
    margin-left: 0;
  }
  header {
    height: 74px;
    padding-inline: 24px;
  }
  .mobile-menu {
    display: block;
  }
  .breadcrumb {
    display: none;
  }
  .section {
    padding-block: 65px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero-art {
    min-height: 400px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  header {
    padding-inline: 17px;
    gap: 10px;
    height: 68px;
  }
  .header-options {
    gap: 7px;
  }
  .theme-switch button,
  .language-switch button {
    font-size: 10px;
    padding: 5px 6px;
  }
  .theme-switch button > span[aria-hidden] {
    display: none;
  }
  .header-cta {
    font-size: 10px;
    padding: 9px;
  }
  .hero {
    display: block;
    padding: 48px 25px 0;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: clamp(37px, 8.6vw, 49px);
    letter-spacing: -1.5px;
    margin-block: 22px;
  }
  .hero-copy > p {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .hero-actions {
    gap: 20px;
  }
  .button {
    padding: 14px 18px;
    font-size: 12px;
  }
  .text-link {
    font-size: 11px;
  }
  .hero-tags {
    gap: 15px;
    font-size: 9px;
    margin-top: 25px;
  }
  .hero-art {
    height: 280px;
    min-height: 0;
    margin-top: 15px;
  }
  .brand-sculpture {
    inset: -50px -25px -25px;
  }
  .art-caption {
    bottom: 8px;
    left: 0;
    right: 0;
    font-size: 8px;
  }
  .hero-footer {
    padding-block: 20px;
    margin-top: 25px;
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .hero-footer a {
    font-size: 10px;
    text-align: right;
    max-width: 145px;
  }
  .section {
    padding: 55px 25px;
  }
  .section-heading {
    display: block;
  }
  .section h2 {
    font-size: 29px;
  }
  .section-heading > p {
    max-width: none;
    margin-top: 20px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .filters {
    gap: 20px;
    margin-top: 25px;
  }
  .filters button {
    font-size: 10px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .service-card,
  .service-card + .service-card {
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .service-info h3 {
    font-size: 23px;
    margin-top: 12px;
  }
  .service-info p {
    min-height: 0;
    margin-bottom: 14px;
  }
  .service-chip {
    border-top: 0;
    padding-top: 0;
  }
  .catalog-note {
    font-size: 10px;
    margin-top: 20px;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-art {
    min-height: 240px;
    padding: 25px;
  }
  .benefit-grid {
    gap: 25px;
    margin-top: 35px;
  }
  .benefit-grid h3 {
    font-size: 16px;
  }
  .benefit-grid p {
    font-size: 13px;
  }
  .process {
    padding-top: 10px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }
  .steps article {
    padding-top: 20px;
  }
  .steps h3 {
    margin-top: 10px;
  }
  .final-cta {
    display: block;
    margin: 0 25px 35px;
    padding-block: 35px;
  }
  .final-cta h2 {
    font-size: 29px;
    margin-bottom: 25px;
  }
  footer {
    padding: 0 25px 25px;
    flex-wrap: wrap;
    gap: 10px;
  }
  footer p {
    width: 100%;
    order: 3;
    font-size: 9px;
  }
  footer > a:last-child {
    margin-left: auto;
  }
  dialog {
    padding: 32px 24px;
  }
  dialog h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Respuesta inmediata y movimiento discreto, siguiendo apple-design. */
button, .button, .nav-link, .text-link { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, .button, .nav-link, .text-link {
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.button { position: relative; overflow: hidden; }
.button::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, #ffffff1f, transparent 65%); opacity: 0; transition: opacity 180ms ease; }
.button > span[aria-hidden], .service-info h3 span, .social-nav i { display: inline-block; transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) {
  .button:hover, .header-cta:hover { transform: translateY(-3px); box-shadow: 0 7px 18px #0002; }
  .button:hover::before { opacity: 1; }
  .button:hover > span[aria-hidden], .service-card:hover h3 span, .social-nav :is(button, a[data-social], .contact-link):hover i { transform: translate(3px, -3px); }
  .social-nav :is(button, a[data-social], .contact-link):hover, .nav-link:hover { transform: translateX(3px); }
  .service-card:hover { transform: translateY(-4px); }
  .filters button:hover, .text-link:hover { color: var(--accent); }
  .theme-switch button:hover, .language-switch button:hover, .dialog-close:hover { background: var(--hover); color: var(--text); }
}
button:active, .button:active, .nav-link:active, .text-link:active { transform: scale(.97); transition-duration: 70ms; }
.button:active::before { opacity: 1; }
.portfolio-section { padding-top: 15px; }
.portfolio-project { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; margin-top: 32px; }
.project-image { display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: #07131b; }
.project-image img { display: block; width: 100%; height: auto; transition: transform 350ms cubic-bezier(.2,.8,.2,1); }
.project-copy h3 { font-size: 28px; font-weight: 500; letter-spacing: -.8px; margin: 14px 0 18px; }
.project-copy p { font-size: 14px; line-height: 1.85; color: var(--muted); }
.project-copy .button { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .project-image:hover img { transform: scale(1.025); } }
@media (max-width: 1050px) { .portfolio-project { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) {
  button, .button, .nav-link, .text-link, .service-card, .project-image img, .button > span[aria-hidden], .service-info h3 span, .social-nav i { transform: none !important; transition: none !important; }
}
