:root {
  color-scheme: dark;
  --black: #050b18;
  --black-soft: #08142b;
  --surface: #0b1c38;
  --accent: #1687ff;
  --accent-light: #a9ddff;
  --text: #f5f9ff;
  --muted: #a8bbd8;
  --line: rgba(91, 174, 255, .27);
  --sans: "DM Sans", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background:
    radial-gradient(ellipse at 78% 6%, rgba(19, 77, 188, .32), transparent 36%),
    linear-gradient(145deg, #06112a 0%, #050b18 49%, #08142b 100%);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 36%, rgba(2, 8, 20, .31) 100%),
    repeating-linear-gradient(126deg, transparent 0 138px, rgba(76, 158, 255, .035) 139px 140px, transparent 141px 278px);
  content: "";
  opacity: .7;
  pointer-events: none;
  animation: ambient-pulse 12s ease-in-out infinite alternate;
}

main, .site-footer { position: relative; z-index: 2; }

#tormenta-hernandez {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.cinematic-intro {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  overflow: hidden;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(10, 34, 73, .3), transparent 62%),
    linear-gradient(145deg, rgba(2, 6, 17, .72), rgba(5, 13, 28, .66) 52%, rgba(1, 4, 11, .75));
  color: #fff;
}

.cinematic-intro.is-active {
  display: grid;
  animation: intro-dismiss var(--intro-fade-duration, 1000ms)
    calc(var(--intro-duration, 5000ms) - var(--intro-fade-duration, 1000ms))
    ease-in-out forwards;
}

.cinematic-intro.is-skipping {
  animation: intro-skip .45s ease-out forwards;
}

.cinematic-intro__skip {
  position: absolute;
  z-index: 3;
  top: 28px;
  right: 7%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(169, 221, 255, .55);
  background: rgba(3, 12, 28, .72);
  color: #eaf6ff;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.cinematic-intro__skip:hover {
  border-color: #a9ddff;
  background: rgba(16, 73, 139, .78);
}

.cinematic-intro__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(90vw, 680px);
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.cinematic-intro__logo {
  display: block;
  width: clamp(180px, 29vw, 350px);
  max-height: 45vh;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(80, 175, 255, .96)) drop-shadow(0 0 48px rgba(20, 115, 255, .76));
  animation: intro-logo-arrival 1s 2s cubic-bezier(.16, .8, .26, 1) both;
}

.cinematic-intro__name {
  margin: 18px 0 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(17px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.35;
  text-shadow: 0 0 16px rgba(137, 207, 255, .8), 0 0 42px rgba(24, 126, 255, .66);
  opacity: 0;
  animation: intro-text-arrival .7s 3s ease-out both;
}

.cinematic-intro__motto {
  margin: 13px 0 0;
  color: #c8e8ff;
  font-family: var(--serif);
  font-size: clamp(15px, 2.2vw, 20px);
  font-style: italic;
  text-shadow: 0 0 18px rgba(74, 160, 255, .6);
  opacity: 0;
  animation: intro-text-arrival .65s 3.25s ease-out both;
}

@keyframes intro-dismiss {
  to { opacity: 0; visibility: hidden; }
}

@keyframes intro-skip {
  to { opacity: 0; visibility: hidden; }
}

@keyframes intro-logo-arrival {
  0% { opacity: 0; filter: brightness(2.2) drop-shadow(0 0 34px #8bd8ff); transform: scale(.78); }
  55% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 28px #45aaff); transform: scale(1.035); }
  100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 18px #187cff); transform: scale(1); }
}

@keyframes intro-text-arrival {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ambient-pulse {
  from { opacity: .42; }
  to { opacity: .78; }
}

body, button, a { font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 94px;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.2%;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-logo {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(22, 135, 255, .72)) drop-shadow(0 0 22px rgba(22, 135, 255, .38));
}
.site-nav { display: flex; align-items: center; gap: 37px; }
.site-nav a { color: #c4d2e6; font-size: 12px; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent-light); }
.site-nav .nav-contact { padding: 12px 17px; border: 1px solid var(--line); color: var(--accent-light); box-shadow: inset 0 0 16px rgba(22, 135, 255, .05); }
.nav-contact span { margin-left: 9px; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 4%;
  min-height: 740px;
  height: min(850px, 100svh);
  align-items: center;
  overflow: hidden;
  padding: 120px 8% 90px;
  background:
    radial-gradient(ellipse at 29% 42%, rgba(17, 91, 231, .12), transparent 44%),
    linear-gradient(112deg, rgba(6, 17, 42, .62), rgba(8, 24, 58, .36) 54%, rgba(7, 19, 43, .46));
}

.hero-logo-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 440px);
  justify-self: center;
}

.hero-logo-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(82, 178, 255, .92))
    drop-shadow(0 0 30px rgba(18, 117, 255, .75));
}

@keyframes logo-electric-arrival {
  0% { opacity: 0; filter: brightness(2.4) drop-shadow(0 0 35px #8bd8ff); transform: scale(.78) rotate(-5deg); }
  48% { opacity: .8; filter: brightness(1.7) drop-shadow(0 0 26px #45aaff); transform: scale(1.035) rotate(1deg); }
  72% { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 20px #45aaff); transform: scale(.99) rotate(0); }
  100% { opacity: 1; filter: brightness(1) drop-shadow(0 0 16px #187cff); transform: scale(1) rotate(0); }
}

.hero-logo-frame.reveal.is-visible {
  animation: logo-electric-arrival 1.15s cubic-bezier(.16, .8, .26, 1) both;
}

.hero-glow {
  position: absolute;
  top: 24%;
  left: 3%;
  width: min(56vw, 680px);
  height: 52%;
  background: radial-gradient(ellipse, rgba(25, 117, 255, .32), rgba(40, 146, 255, .12) 42%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  animation: glow-breathe 8s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
  from { opacity: .65; }
  to { opacity: 1; }
}

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-content::before {
  position: absolute;
  z-index: -1;
  top: 38px;
  left: -55px;
  width: min(70vw, 650px);
  height: 310px;
  background: radial-gradient(ellipse, rgba(24, 108, 255, .32), rgba(65, 157, 255, .13) 46%, transparent 72%);
  content: "";
  filter: blur(20px);
  pointer-events: none;
}
.eyebrow, .section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--accent-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
}
.eyebrow span { width: 24px; height: 1px; background: var(--accent); box-shadow: 0 0 12px rgba(22, 135, 255, .8); }

h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin: 30px 0 20px;
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.09;
}
.hero h1 { color: #fff; text-shadow: 0 0 14px rgba(210, 239, 255, .36), 0 0 38px rgba(34, 130, 255, .72), 0 0 82px rgba(20, 100, 255, .36); }
.hero h1 span { color: #fff; }
h2 span { color: var(--accent-light); }
.hero-copy { max-width: 480px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 35px; }
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 21px;
  border: 1px solid rgba(128, 198, 255, .58);
  box-shadow: 0 0 18px rgba(23, 120, 255, .17), inset 0 0 12px rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .34) 48%, transparent 67%);
  content: "";
  opacity: .48;
  transform: translateX(-120%);
  animation: button-energy 5s ease-in-out infinite;
}
@keyframes button-energy {
  0%, 62%, 100% { transform: translateX(-120%); }
  82% { transform: translateX(120%); }
}
.button:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(23, 120, 255, .48), inset 0 0 14px rgba(255, 255, 255, .22); }
.button-primary { border-color: rgba(203, 236, 255, .92); background: linear-gradient(115deg, #0879ff, #8bd8ff); color: #06112a; box-shadow: 0 0 22px rgba(23, 120, 255, .34), inset 0 0 14px rgba(255, 255, 255, .2); }
.button-primary:hover { background: linear-gradient(115deg, #3696ff, #c5efff); }
.button svg, .button > * { position: relative; z-index: 1; }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.text-link { color: #c6d3e6; font-size: 12px; }
.text-link span { margin-left: 8px; color: var(--accent-light); }
.section-wrap { padding-right: 12%; padding-left: 12%; }
.intro { position: relative; display: grid; grid-template-columns: 1fr 2fr; gap: 7%; padding-top: 130px; padding-bottom: 135px; background: rgba(5, 14, 32, .76); }
.section-label { align-self: start; font-size: 9px; }
.section-label span { color: #8193ad; }
.intro-copy { max-width: 630px; }
.intro h2, .section-heading h2, .systems h2, .contact h2 {
  margin: -13px 0 22px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.3vw, 56px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.intro-copy > p:not(.motto) { max-width: 590px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.motto { margin-top: 27px; color: var(--accent-light); font-family: var(--serif); font-size: 19px; font-style: italic; }
.intro-stamp {
  position: absolute;
  right: 12%;
  bottom: 71px;
  display: flex;
  width: 100px;
  height: 100px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-light);
  transform: rotate(-12deg);
}
.intro-stamp span { font-family: var(--serif); font-size: 20px; }
.intro-stamp small { margin-top: 5px; color: var(--muted); font-size: 6px; letter-spacing: .14em; text-align: center; }

.services { padding-top: 112px; padding-bottom: 120px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-heading h2 { margin: 18px 0 0; }
.section-heading > p { max-width: 330px; margin: 0 0 7px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { position: relative; min-height: 230px; padding: 28px 27px 24px; border: 1px solid rgba(78, 167, 255, .22); background: linear-gradient(145deg, rgba(18, 33, 54, .76), rgba(10, 18, 32, .82)); box-shadow: 0 12px 28px rgba(0, 0, 0, .16), inset 0 1px rgba(158, 210, 255, .06); backdrop-filter: blur(10px); transition: background .25s ease, transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.service-card:hover { z-index: 1; border-color: rgba(95, 180, 255, .58); background: linear-gradient(145deg, rgba(20, 45, 76, .9), rgba(11, 24, 43, .94)); box-shadow: 0 15px 34px rgba(0, 17, 47, .36), 0 0 20px rgba(27, 127, 255, .1); transform: translateY(-3px); }
.card-number { position: absolute; top: 25px; right: 25px; color: #8193ad; font-size: 9px; letter-spacing: .12em; }
.service-icon { display: block; height: 35px; color: var(--accent-light); font-size: 25px; text-shadow: 0 0 14px rgba(54, 154, 255, .45); }
.service-card h3 { margin: 18px 0 9px; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.service-card p { min-height: 41px; margin-bottom: 17px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.service-card a { color: var(--accent-light); font-size: 10px; font-weight: 600; }
.service-card a span { padding-left: 7px; }
.service-disclaimer { margin: 20px 0 0; color: #8c9db5; font-size: 10px; line-height: 1.7; }

.systems { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10%; padding-top: 105px; padding-bottom: 110px; background: rgba(5, 14, 32, .76); }
.systems-heading .section-label { margin-bottom: 30px; }
.systems h2 { margin: 0; }
.systems-list { border-top: 1px solid var(--line); }
.system-item { display: grid; grid-template-columns: 42px 1fr 20px; gap: 17px; align-items: start; padding: 23px 0; border-bottom: 1px solid var(--line); }
.system-count { padding-top: 5px; color: var(--accent-light); font-size: 9px; letter-spacing: .1em; }
.system-item h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.system-item p { max-width: 430px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.system-arrow { color: var(--accent-light); font-size: 15px; }

.contact { padding-top: 115px; padding-bottom: 115px; }
.contact-card { display: flex; min-height: 390px; align-items: center; justify-content: space-between; gap: 50px; padding: 65px 8%; border: 1px solid rgba(78, 167, 255, .3); background: radial-gradient(ellipse at 83% 48%, rgba(21, 105, 255, .17), transparent 44%), linear-gradient(135deg, rgba(16, 29, 49, .9), rgba(8, 15, 27, .96)); box-shadow: 0 20px 48px rgba(0, 0, 0, .22), inset 0 1px rgba(158, 210, 255, .08); }
.contact h2 { margin: 22px 0 17px; font-size: clamp(40px, 5vw, 62px); }
.contact-copy > p { max-width: 420px; margin-bottom: 25px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.contact-detail { min-width: 235px; padding-top: 20px; }
.detail-caption { display: block; margin-bottom: 16px; color: var(--accent-light); font-size: 9px; letter-spacing: .16em; }
.contact-detail > a { display: block; font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.contact-detail > a span { color: var(--accent-light); font-family: var(--sans); font-size: 14px; }
.detail-rule { display: block; width: 50px; height: 1px; margin: 24px 0 20px; background: var(--accent); box-shadow: 0 0 12px rgba(22, 135, 255, .7); }
.contact-detail p { color: var(--muted); font-size: 9px; letter-spacing: .16em; line-height: 1.8; }

.site-footer { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 7.2%; border-top: 1px solid rgba(255,255,255,.08); }
.footer-brand { font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.footer-brand span { color: var(--accent-light); }
.site-footer p, .copyright { margin: 0; color: #8c9db5; font-size: 9px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { padding-right: 5%; padding-left: 5%; }
  .site-nav { gap: 21px; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 3%; padding-right: 6%; padding-left: 6%; }
  .hero h1 { font-size: clamp(42px, 5vw, 58px); }
  .hero-logo-frame { width: min(100%, 340px); }
  .section-wrap { padding-right: 8%; padding-left: 8%; }
  .intro-stamp { right: 8%; }
  .contact-card { padding-right: 6%; padding-left: 6%; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 74px; }
  .cinematic-intro__skip { top: 18px; right: 6%; min-height: 40px; padding: 0 12px; font-size: 11px; }
  .cinematic-intro__logo { width: clamp(170px, 60vw, 270px); max-height: 38vh; }
  .cinematic-intro__name { margin-top: 14px; font-size: clamp(15px, 4.2vw, 20px); letter-spacing: .1em; }
  .cinematic-intro__motto { margin-top: 10px; font-size: clamp(14px, 4vw, 18px); }
  .site-header { position: absolute; height: 74px; padding: 0 6%; }
  .brand-logo { width: 62px; height: 62px; }
  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { width: 17px; height: 1px; background: var(--accent-light); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 73px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 6% 20px;
    border-bottom: 1px solid var(--line);
    background: #08142b;
  }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .site-nav .nav-contact { margin-top: 12px; padding: 13px; border: 1px solid var(--line); text-align: center; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 27px; min-height: 0; height: auto; padding: 115px 7% 140px; }
  .hero-logo-frame { grid-row: 2; width: min(72vw, 280px); margin: 0 auto; }
  .hero-glow { top: 21%; left: -12%; width: 85vw; height: 42%; filter: blur(20px); animation: none; }
  .hero-content::before { top: 30px; left: -24px; width: 95vw; height: 270px; filter: blur(16px); }
  body::before { animation: none; opacity: .5; }
  .hero h1 { margin-top: 25px; font-size: clamp(44px, 11vw, 67px); }
  .hero-copy { max-width: 390px; font-size: 13px; }
  .eyebrow { font-size: 8px; letter-spacing: .14em; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .section-wrap { padding-right: 7%; padding-left: 7%; }
  .intro { grid-template-columns: 1fr; gap: 34px; padding-top: 82px; padding-bottom: 95px; }
  .intro h2, .section-heading h2, .systems h2 { font-size: 40px; }
  .intro-stamp { right: 7%; bottom: 22px; width: 76px; height: 76px; }
  .intro-stamp span { font-size: 16px; }
  .intro-stamp small { font-size: 5px; }
  .services { padding-top: 82px; padding-bottom: 85px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 32px; }
  .section-heading > p { font-size: 12px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 215px; padding: 22px 17px 19px; backdrop-filter: none; }
  .button::before { animation: none; }
  .card-number { top: 19px; right: 16px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 10px; }
  .systems { grid-template-columns: 1fr; gap: 36px; padding-top: 80px; padding-bottom: 82px; }
  .systems-heading .section-label { margin-bottom: 24px; }
  .system-item { grid-template-columns: 30px 1fr 16px; gap: 12px; }
  .system-item h3 { font-size: 18px; }
  .contact { padding-top: 75px; padding-bottom: 75px; }
  .contact-card { align-items: flex-start; flex-direction: column; gap: 35px; padding: 38px 7%; }
  .contact h2 { font-size: 48px; }
  .contact-detail { min-width: auto; padding-top: 0; }
  .contact-detail > a { font-size: 20px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 25px 7%; }
}

@media (max-width: 380px) {
  .cinematic-intro__content { width: 92vw; }
  .cinematic-intro__name { font-size: 14px; }
  .cinematic-intro__motto { font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 190px; }
  .hero h1 { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cinematic-intro.is-active { display: none !important; animation: none !important; }
  body::before, .hero-glow, .button::before { animation: none !important; }
  .hero-logo-frame.reveal.is-visible { animation: none !important; opacity: 1; transform: none; filter: none; }
  .reveal { opacity: 1; transform: none; }
}
