﻿/* Fuentes corporativas locales; licencias y procedencia en assets/fonts. */
@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("assets/fonts/RobotoCondensed-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/Roboto-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #211d1d;
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, .footer-brand { font-family: "Outfit", Arial, sans-serif; font-weight: 700; }
h3, .hero-intro, .services-page .service-title {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 600;
}
strong, b { font-weight: 500; }
html.photo-open { overflow: hidden; }
html.photo-open body {
  position: fixed;
  top: var(--photo-scroll-top);
  width: 100%;
}
.photo-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 0;
  background: #000000;
  color: #ffffff;
}
.photo-dialog[open] { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.photo-dialog::backdrop { background: rgb(0 0 0 / 85%); }
.photo-dialog-close {
  align-self: flex-end;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #e4ff1a;
  color: #000000;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.photo-dialog-close:focus-visible { outline: 3px solid #ffffff; outline-offset: 4px; }
.photo-dialog-image {
  display: block;
  min-height: 0;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.site-footer {
  background: #000000;
  color: #ffffff;
  border-top: 4px solid #454ade;
}
.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px 64px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.footer-company p { margin: 0 0 12px; }
.footer-company .footer-brand {
  color: #e4ff1a;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.footer-company address { max-width: 560px; font-style: normal; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: #ffffff;
  text-underline-offset: 4px;
}
.site-footer a:hover { color: #e4ff1a; }
.site-footer a:focus-visible {
  outline: 3px solid #e4ff1a;
  outline-offset: 4px;
}
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); padding: 40px 20px; gap: 24px; }
}
.site-header {
  background: #ffffff;
  color: #000000;
  border-bottom: 1px solid #bcbdbf;
}
.header-inner {
  max-width: 1200px;
  min-height: 120px;
  margin-inline: auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  border-radius: 2px;
}
.brand img { display: block; width: 120px; height: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  border-bottom: 2px solid transparent;
}
.main-nav a[aria-current="page"] {
  color: #454ade;
  border-bottom-color: #454ade;
}
.main-nav a:hover {
  background: #f1f1f1;
  border-bottom-color: currentColor;
}
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid #bcbdbf;
  border-radius: 2px;
  background: #fff;
  color: inherit;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.menu-toggle:hover { background: #f1f1f1; }
.menu-toggle[aria-expanded="true"] { border-color: #454ade; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
a:focus-visible, button:focus-visible { outline: 2px solid #211d1d; outline-offset: 4px; }
.site-header a:focus-visible, .site-header button:focus-visible {
  outline: 3px solid #454ade;
  outline-offset: 4px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hero {
  background: #000000;
  color: #ffffff;
}
.hero-content {
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) 32px;
  overflow-wrap: break-word;
}
.hero-intro {
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid #454ade;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.hero h1 {
  margin: 28px 0;
  font-size: clamp(30px, 6.4vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-align: left;
}
.hero h1 span { display: block; }
.hero-highlight { color: #e4ff1a; }
.hero-description {
  max-width: 660px;
  margin: 0 0 32px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 22px;
  border: 2px solid #e4ff1a;
  background: #e4ff1a;
  color: #000000;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.hero-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-link:focus-visible { outline: 3px solid #ffffff; outline-offset: 5px; }
.services {
  background: #ffffff;
  color: #000000;
}
.services-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 64px 32px;
}
.services h2 {
  margin: 0 0 32px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
}
.services h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 6px;
  margin-top: 16px;
  background: #e4ff1a;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid #000000;
  border-top: 4px solid #454ade;
  overflow-wrap: break-word;
}
.service-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.3;
}
.service-card p {
  margin: 0 0 16px;
  line-height: 1.6;
}
.service-card ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}
.service-card li + li { margin-top: 8px; }
.services-page .service-title {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.3;
}
.services-page .service-title::after { content: none; }
.projects-page .project-card { margin: 0; }
.projects-page .project-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}
.projects-page .project-photo-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  color: #454ade;
  text-underline-offset: 4px;
}
.projects-page .project-photo-link:focus-visible {
  outline: 3px solid #454ade;
  outline-offset: 4px;
}
.contact-page .contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  color: #454ade;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}
.contact-page .contact-link:focus-visible {
  outline: 3px solid #454ade;
  outline-offset: 4px;
}
.services-page .service-contact {
  margin-top: 32px;
  padding: 28px;
  background: #000000;
  color: #ffffff;
}
@media (max-width: 640px) {
  .services-inner { padding: 40px 20px; }
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .service-card { padding: 24px 20px; }
  .hero-content { padding: 64px 20px; }
  .header-inner {
    min-height: 100px;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 20px;
  }
  .brand img { width: 100px; }
  .menu-ready .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .main-nav { width: 100%; }
  .menu-ready .main-nav { display: none; }
  .menu-ready .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav a { justify-content: flex-start; padding-inline: 12px; }
}
