:root {
  color-scheme: dark;
  --page: #101012;
  --panel: #19191c;
  --line: #313136;
  --text: #f7f7f8;
  --muted: #bdbdc5;
  --red: #dd2637;
  --bright-red: #ff5662;
  --focus: #ff8a93;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 3.5rem, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 5;
  transform: translateY(-180%);
  padding: .9rem;
  border-radius: .5rem;
  background: var(--text);
  color: var(--page);
}

.skip-link:focus { transform: none; }

.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.site-header {
  border-bottom: 1px solid #28282c;
  background: #131315;
}

.header-content, .site-header nav, .brand {
  display: flex;
  align-items: center;
}

.header-content {
  justify-content: space-between;
  min-height: 4.875rem;
  gap: 1rem;
}

.brand { gap: .72rem; }

.brand img {
  width: auto;
  height: 3.25rem;
  border-radius: .22rem;
}

.brand-text {
  color: #dddde1;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.brand-text strong {
  display: block;
  margin-top: .22rem;
  color: var(--text);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.05em;
}

.site-header nav { gap: 1.5rem; font-size: .9rem; font-weight: 650; }

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #d4d4db;
}

.nav-link:hover { color: white; }

.nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .95rem;
  border: 1px solid #69323a;
  border-radius: .48rem;
  background: #291c20;
  color: #ffb6bd;
  white-space: nowrap;
}

.nav-button:hover { background: #42232a; }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
  gap: 1.375rem;
  margin-top: 1.875rem;
}

.hero, .contact-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
}

.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  overflow: hidden;
  background: #19161a;
}

.hero-image, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 56% center;
}

.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, #0b0b0edb 0%, #10101346 77%, #1010130d 100%),
    linear-gradient(180deg, #100a0de6 0%, #100a0d80 37%, transparent 68%, #100b1040 100%);
}

.hero-content {
  width: 100%;
  padding: clamp(1.8rem, 4vw, 3.6rem);
}

.location {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .68rem;
  border: 1px solid #8f424a;
  border-radius: .4rem;
  background: #27191ce8;
  color: #ffcad0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .015em;
}

.location .icon { width: 1rem; height: 1rem; color: var(--bright-red); }

.hero h1 {
  margin-top: 1.15rem;
  font-size: clamp(3.05rem, 5.6vw, 5.55rem);
  font-weight: 890;
  line-height: .98;
  letter-spacing: -.078em;
}

.hero h1 em {
  color: var(--bright-red);
  font-style: normal;
}

.hero-description {
  max-width: 24rem;
  margin-top: 1.1rem;
  color: #f0edf1;
  font-size: 1.06rem;
  line-height: 1.53;
}

.contact-panel {
  padding: clamp(1.2rem, 2.25vw, 2rem);
  background: var(--panel);
  scroll-margin-top: 1rem;
}

.panel-title, .dialog-title {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.icon-tile {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 2.6rem;
  place-items: center;
  border: 1px solid #653038;
  border-radius: .58rem;
  background: #342025;
  color: var(--bright-red);
}

.panel-title h2, .dialog-title h2 {
  font-size: clamp(1.5rem, 2.25vw, 1.96rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.panel-description {
  margin-top: .72rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

form { margin-top: 1.2rem; }
.field + .field { margin-top: .88rem; }

label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 720;
}

label span {
  margin-left: .3rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 450;
}

input, select, textarea {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: .65rem .75rem;
  border: 1px solid #39393f;
  border-radius: .48rem;
  background: #121214;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

input::placeholder, textarea::placeholder {
  color: #9999a4;
  opacity: 1;
}

input:focus, select:focus, textarea:focus { border-color: var(--focus); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }

select {
  appearance: none;
  padding-right: 2.35rem;
  cursor: pointer;
}

select:invalid { color: #b8b8c0; }
select option { color: var(--text); }

.select-wrap { position: relative; }

.select-wrap .icon {
  position: absolute;
  top: 50%;
  right: .8rem;
  width: 1.05rem;
  height: 1.05rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

textarea { min-height: 5.4rem; resize: vertical; }
[aria-invalid="true"] { border-color: #ff7e89; }

.field-error {
  margin-top: .4rem;
  color: #ff9da6;
  font-size: .86rem;
  line-height: 1.4;
}

.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .62rem .9rem;
  border-radius: .5rem;
  font-size: .96rem;
  font-weight: 750;
  text-align: center;
}

.primary-button {
  border: 1px solid transparent;
  background: var(--red);
  color: white;
}

.primary-button:hover { background: #c51e2e; }

form .primary-button { width: 100%; margin-top: 1rem; }

.form-note {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.5;
  text-align: center;
}

.form-note a { text-decoration: underline; }

.services { margin-block: 2.35rem 3.4rem; scroll-margin-top: 1rem; }

.services h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 2.4vw, 2.02rem);
  font-weight: 810;
  letter-spacing: -.043em;
}

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.service-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid #2e2e33;
  border-radius: .85rem;
  background: #171719;
}

.service-card h3 {
  margin-top: .85rem;
  font-size: 1.18rem;
  font-weight: 780;
  letter-spacing: -.025em;
}

.service-card p {
  margin-block: .4rem .55rem;
  color: var(--muted);
  line-height: 1.5;
}

.service-button {
  min-height: 2.75rem;
  margin-top: auto;
  padding: .25rem 0;
  border: 0;
  background: none;
  color: #ff8690;
  font-size: .88rem;
  font-weight: 710;
  text-align: left;
}

.service-button:hover { text-decoration: underline; }

.site-footer {
  padding-block: 1.1rem;
  border-top: 1px solid #28282c;
  background: #131315;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .55rem 1.5rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

.footer-content p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .65rem;
}

.footer-content span { color: #a3a3af; }
.footer-content .icon { color: var(--bright-red); }

dialog {
  width: min(100% - 2rem, 32rem);
  max-height: calc(100% - 2rem);
  padding: 1.3rem;
  overflow: auto;
  border: 1px solid #4a3d45;
  border-radius: 1rem;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1rem 4rem #0008;
}

dialog::backdrop { background: #050506c9; }

.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border: 1px solid #3c3c42;
  border-radius: .5rem;
  background: #232327;
}

.icon-button:hover, .secondary-button:hover { background: #303035; }

#mensaje {
  max-height: 16rem;
  margin: 1rem 0;
  padding: .9rem;
  overflow: auto;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #121214;
  font: inherit;
  line-height: 1.45;
  white-space: pre-wrap;
}

.dialog-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.dialog-actions > * { flex: 1 1 10rem; }

.secondary-button {
  border: 1px solid #48484e;
  background: #232327;
  color: var(--text);
}

@media (max-width: 54rem) {
  .shell { width: min(100% - 2rem, 45rem); }
  .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
  .hero { min-height: clamp(21rem, 75vw, 27rem); }
  .hero h1 { font-size: clamp(3.05rem, 8.8vw, 4.8rem); }
  .hero-image { object-position: 59% 54%; }
  .hero-description { max-width: 22rem; }
  .service-grid { gap: .75rem; }
  .service-card { padding: 1rem; }
}

@media (max-width: 37rem) {
  .header-content { min-height: 4.1rem; }
  .brand img { height: 2.75rem; }
  .brand { gap: .5rem; }
  .brand-text { font-size: .63rem; }
  .brand-text strong { font-size: 1.2rem; }
  .site-header nav { gap: .75rem; font-size: .8rem; }
  .nav-link { display: none; }
  .nav-button { padding-inline: .65rem; }
  .hero-content { padding: 1.45rem 1.1rem; }
  .hero h1 { font-size: clamp(2.55rem, 11.5vw, 4rem); }
  .hero-description { max-width: 18rem; font-size: 1rem; }
  .hero::after {
    background:
      linear-gradient(90deg, #100d10c4 0%, #100d1033 94%),
      linear-gradient(180deg, #101013e6 0%, #100a0d5e 51%, transparent 81%);
  }
  .services { margin-block: 1.8rem 2.6rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
