/* =========================================================
   GTECH CANARIAS - ESTILOS
   ========================================================= */

:root {
  --bg: #080807;
  --bg-soft: #11100e;
  --bg-panel: rgba(20, 19, 17, 0.82);
  --text: #f4eee7;
  --muted: #b8aaa0;
  --muted-2: #8f837a;
  --copper: #c47a46;
  --copper-dark: #8e4f2e;
  --bronze: #d3a66e;
  --teal: #4f9690;
  --border: rgba(211, 166, 110, 0.22);
  --border-strong: rgba(211, 166, 110, 0.42);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: 1120px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(196, 122, 70, 0.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(79, 150, 144, 0.12), transparent 28%),
    linear-gradient(180deg, #080807 0%, #0c0b0a 48%, #080807 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 82px 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(17, 16, 14, 0.88), rgba(8, 8, 7, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 90px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 7, 0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-text {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: block;
  color: var(--copper);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--text);
  background: rgba(196, 122, 70, 0.14);
}

.nav-menu .nav-cta {
  color: #120d09;
  background: linear-gradient(135deg, var(--bronze), var(--copper));
  font-weight: 850;
}

.nav-menu .nav-cta:hover {
  color: #120d09;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 19, 17, 0.86);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.98), rgba(8, 8, 7, 0.9) 42%, rgba(8, 8, 7, 0.28)),
    url("../img/hero-workbench.png") center right / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--bronze);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.contact-card h2 {
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5.2vw, 4.7rem);
}

.hero-description {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.72;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #140d08;
  background: linear-gradient(135deg, var(--bronze), var(--copper));
  box-shadow: 0 18px 38px rgba(196, 122, 70, 0.25);
}

.btn-secondary {
  color: var(--text);
  background: rgba(20, 19, 17, 0.72);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin-top: 28px;
}

.hero-metrics span {
  min-height: 70px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(12, 11, 10, 0.68);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  color: var(--text);
  font-size: 1.02rem;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: clamp(310px, 38vw, 460px);
  object-fit: cover;
}

.panel-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.panel-strip span {
  min-height: 54px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-strip span + span {
  border-left: 1px solid var(--border);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading h2,
.split-copy h2,
.contact-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.section-heading p,
.service-card p,
.split-copy p,
.faq-answer p,
.contact-card p,
.reference-copy p {
  color: var(--muted);
  line-height: 1.68;
}

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

.service-card,
.faq-item,
.contact-card,
.reference-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(196, 122, 70, 0.08), transparent 42%),
    rgba(20, 19, 17, 0.78);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-card:hover,
.reference-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.service-index {
  width: fit-content;
  margin-bottom: auto;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.service-card h3,
.reference-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
  gap: 46px;
}

.split-grid-reverse {
  grid-template-columns: 1fr 0.9fr;
}

.split-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: clamp(320px, 38vw, 470px);
  object-fit: cover;
}

.split-copy {
  max-width: 620px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--copper);
  border-radius: 50%;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-row span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(8, 8, 7, 0.42);
  font-size: 0.9rem;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reference-card {
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.reference-visual {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(196, 122, 70, 0.18), rgba(79, 150, 144, 0.16)),
    url("../img/software-development.png") center / cover no-repeat;
}

.reference-visual-tech {
  background:
    linear-gradient(135deg, rgba(8, 8, 7, 0.2), rgba(196, 122, 70, 0.18)),
    url("../img/hero-workbench.png") center / cover no-repeat;
}

.reference-visual span {
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(8, 8, 7, 0.74);
  backdrop-filter: blur(14px);
  font-weight: 900;
}

.reference-copy {
  padding: 24px;
}

.text-link {
  width: fit-content;
  display: inline-flex;
  margin-top: 14px;
  color: var(--bronze);
  font-weight: 850;
}

.text-link::after {
  content: " ->";
}

.text-link:hover {
  color: var(--copper);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  border: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-question span {
  color: var(--bronze);
  font-size: 1.45rem;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question span {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 22px 22px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px;
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(196, 122, 70, 0.16), rgba(79, 150, 144, 0.1)),
    rgba(20, 19, 17, 0.88);
}

.contact-card p {
  max-width: 720px;
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-grid a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

@media (max-width: 1040px) {
  .nav-menu a {
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .hero-grid,
  .split-grid,
  .split-grid-reverse {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(8, 8, 7, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
  }

  .service-grid,
  .reference-grid,
  .faq-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 52px);
    background:
      linear-gradient(180deg, rgba(8, 8, 7, 0.98), rgba(8, 8, 7, 0.9) 66%, rgba(8, 8, 7, 0.68)),
      url("../img/hero-workbench.png") center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .hero-metrics,
  .panel-strip {
    grid-template-columns: 1fr;
  }

  .panel-strip span + span {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .hero-panel img,
  .split-media img {
    height: 270px;
  }

  .service-card {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
