/* GERSystem — Estilos personalizados: Liquid Glass, paleta y movimiento */

:root {
  --ger-bg-deep: #0a0e17;
  --ger-bg-panel: #101626;
  --ger-blue-dark: #0f1c3f;
  --ger-blue-steel: #1b2b4f;
  --ger-gray-corp: #8a93a6;
  --ger-accent: #ff7a1a;
  --ger-accent-soft: #ffb066;
  --ger-white: #f5f7fb;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background-color: var(--ger-bg-deep);
  color: var(--ger-white);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Liquid Glass (Glassmorphism 2.0) ---------- */
.liquid-glass {
  background: linear-gradient(
    155deg,
    rgba(27, 43, 79, 0.55),
    rgba(16, 22, 38, 0.35)
  );
  border: 1px solid rgba(245, 247, 251, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(245, 247, 251, 0.06);
}

.liquid-glass-strong {
  background: linear-gradient(
    155deg,
    rgba(27, 43, 79, 0.7),
    rgba(10, 14, 23, 0.6)
  );
  border: 1px solid rgba(255, 122, 26, 0.18);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Refraction sheen overlay, single pseudo-element, no extra DOM nodes */
.liquid-glass::before,
.liquid-glass-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 35%
  );
  pointer-events: none;
}

.liquid-glass,
.liquid-glass-strong {
  position: relative;
  isolation: isolate;
}

/* ---------- Header ---------- */
#site-header {
  background: rgba(10, 14, 23, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(245, 247, 251, 0.06);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#site-header.header-scrolled {
  background: rgba(10, 14, 23, 0.85);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Hero overlay ---------- */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.55) 0%,
    rgba(10, 14, 23, 0.78) 55%,
    rgba(10, 14, 23, 0.95) 100%
  );
}

/* ---------- Scroll reveal (Slow Design: deliberate, unhurried motion) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Service cards ---------- */
.service-card {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 26, 0.4);
}

/* ---------- Timeline ---------- */
.timeline-line {
  background: linear-gradient(
    90deg,
    rgba(255, 122, 26, 0.7),
    rgba(255, 122, 26, 0.05)
  );
}

/* ---------- Focus visibility (WCAG 2.2) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ger-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Form ---------- */
.ger-input {
  background: #101626;
  border: 1px solid rgba(245, 247, 251, 0.14);
  color: var(--ger-white);
}

.ger-input::placeholder {
  color: rgba(138, 147, 166, 0.85);
}

.ger-input:focus {
  outline: none;
  border-color: var(--ger-accent);
  background: #0f1c3f;
}

select.ger-input {
  background-color: #101626;
  color: var(--ger-white);
}

select.ger-input option {
  background-color: #101626;
  color: var(--ger-white);
}

select.ger-input option:disabled {
  color: rgba(138, 147, 166, 0.85);
}

/* ---------- Modales ---------- */
.modal-box {
  animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* ---------- Skip link (Accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ger-accent);
  color: var(--ger-bg-deep);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
