:root {
  --ink: #0f2438;
  --ink-soft: #4a6072;
  --brand: #0d6a9e;
  --brand-deep: #0a4d75;
  --accent: #c45e12;
  --paper: #f2f7fb;
  --paper-2: #e4eef6;
  --line: rgba(15, 36, 56, 0.12);
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(10, 50, 80, 0.12);
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background-color: #1a1040;
  background-image: linear-gradient(125deg, #2a1458 0%, #1e3a78 28%, #0f5f9a 55%, #1a2f6e 78%, #28145a 100%);
  background-size: 220% 220%;
  animation: bg-shift 12s ease-in-out infinite alternate;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.bg-motion {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.95;
  will-change: transform, opacity;
}

.bg-orb-a {
  width: min(72vw, 700px);
  height: min(72vw, 700px);
  top: -22%;
  left: -18%;
  background: radial-gradient(circle, #ff6b3d 0%, rgba(255, 107, 61, 0) 68%);
  animation: orb-drift-a 14s ease-in-out infinite alternate;
}

.bg-orb-b {
  width: min(68vw, 660px);
  height: min(68vw, 660px);
  top: -12%;
  right: -20%;
  background: radial-gradient(circle, #2ecbff 0%, rgba(46, 203, 255, 0) 68%);
  animation: orb-drift-b 16s ease-in-out infinite alternate;
}

.bg-orb-c {
  width: min(62vw, 600px);
  height: min(62vw, 600px);
  bottom: -20%;
  left: 15%;
  background: radial-gradient(circle, #b24dff 0%, rgba(178, 77, 255, 0) 68%);
  animation: orb-drift-c 13s ease-in-out infinite alternate;
}

.bg-orb-d {
  width: min(58vw, 540px);
  height: min(58vw, 540px);
  top: 32%;
  left: 28%;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.55;
  animation: orb-drift-d 11s ease-in-out infinite alternate;
}

.bg-orb-e {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  bottom: 0%;
  right: 0%;
  background: radial-gradient(circle, #3d7bff 0%, rgba(61, 123, 255, 0) 68%);
  animation: orb-drift-e 15s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% { background-position: 0% 35%; }
  100% { background-position: 100% 65%; }
}

@keyframes orb-drift-a {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24%, 20%) scale(1.22); }
}

@keyframes orb-drift-b {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20%, 16%) scale(1.18); }
}

@keyframes orb-drift-c {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(18%, -22%) scale(1.25); }
}

@keyframes orb-drift-d {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(-14%, 12%) scale(1.3); opacity: 0.7; }
}

@keyframes orb-drift-e {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-16%, -18%) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .bg-orb {
    animation: none;
  }

  body {
    background-size: 100% 100%;
  }

  .rubro-grid img,
  .rubro-grid li.reveal.is-visible img,
  .rubro-grid figure:hover img {
    animation: none;
    transform: none;
    transition: none;
  }

  .rubro-grid figure,
  .rubro-grid figure:hover {
    transform: none;
    transition: none;
  }

  .rubro-grid li {
    transition-delay: 0s;
  }
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(20, 16, 55, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 12, 45, 0.78);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
  padding: 0.15rem 0;
  border-radius: 0;
  background: transparent;
}

.logo img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.brand-mark {
  margin: 0 0 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.brand-mark img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
}

.brand-mark .logo-text {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(10, 20, 50, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.nav a:hover {
  color: #ffffff;
}

.nav-cta {
  color: #ffffff !important;
  padding: 0.45rem 0.95rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6b1d, #e24a00);
  box-shadow: 0 6px 18px rgba(255, 107, 29, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 107, 29, 0.5);
  background: linear-gradient(135deg, #ff8140, #ff6b1d);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 64px);
  align-items: end;
  position: relative;
  overflow: clip;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem) 1.5rem;
  max-width: 42rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 20ch;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(10, 20, 50, 0.35);
}

.hero-lead {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 36ch;
  text-shadow: 0 1px 12px rgba(10, 20, 50, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark,
  .hero h1,
  .hero-lead,
  .hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: rise 0.85s var(--ease) forwards;
  }

  .brand-mark { animation-delay: 0.08s; }
  .hero h1 { animation-delay: 0.2s; }
  .hero-lead { animation-delay: 0.32s; }
  .hero-actions { animation-delay: 0.44s; }

  .hero-shot {
    transform: scale(1.04);
    animation: kenburns 16s var(--ease) forwards;
  }
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 20, 70, 0.72) 0%, rgba(25, 50, 110, 0.4) 30%, rgba(20, 80, 140, 0.12) 55%, transparent 78%),
    linear-gradient(0deg, rgba(25, 40, 90, 0.35) 0%, transparent 30%);
  pointer-events: none;
}

.hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.btn-primary {
  background: linear-gradient(135deg, #f26b1d, #d4550f);
  color: var(--white);
  border: 1.5px solid #d4550f;
  box-shadow: 0 8px 20px rgba(242, 107, 29, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff7a2e, #f26b1d);
  border-color: #f26b1d;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
}

.section-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.section-cta .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section-inner {
  max-width: 70rem;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: #ffffff;
  text-shadow: 0 1px 14px rgba(10, 20, 50, 0.35);
}

.section-lead,
.section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  font-size: 1.06rem;
  text-shadow: 0 1px 10px rgba(10, 20, 50, 0.25);
}

.section-lead {
  margin-bottom: 2.25rem;
}

.section-about,
.section-features,
.section-gallery,
.section-rubros {
  background: transparent;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.section-cta {
  background: transparent;
  border: 0;
  text-align: left;
}

.section-about p {
  font-size: 1.15rem;
  max-width: 48ch;
}

.contact-icons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0 1.75rem;
  max-width: 28rem;
}

.contact-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.contact-icon-link svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.contact-icon-link:hover {
  opacity: 0.88;
}

.contact-icon-link span {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.feature-list li {
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.feature-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-list p {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
}

.rubro-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.rubro-grid li {
  margin: 0;
}

.rubro-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.rubro-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 1.1s var(--ease);
}

.rubro-grid li.reveal.is-visible img {
  transform: scale(1);
  animation: rubro-pan 12s var(--ease) 0.35s infinite alternate;
}

.rubro-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(10, 50, 80, 0.16);
}

.rubro-grid figure:hover img {
  animation: none;
  transform: scale(1.08);
  transition-duration: 0.55s;
}

.rubro-grid li:nth-child(1) { transition-delay: 0.02s; }
.rubro-grid li:nth-child(2) { transition-delay: 0.08s; }
.rubro-grid li:nth-child(3) { transition-delay: 0.14s; }
.rubro-grid li:nth-child(4) { transition-delay: 0.2s; }
.rubro-grid li:nth-child(5) { transition-delay: 0.26s; }
.rubro-grid li:nth-child(6) { transition-delay: 0.32s; }
.rubro-grid li:nth-child(7) { transition-delay: 0.38s; }
.rubro-grid li:nth-child(8) { transition-delay: 0.44s; }

.rubro-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.25rem 1rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(10, 20, 40, 0.45);
  background: linear-gradient(180deg, transparent 0%, rgba(12, 24, 48, 0.55) 100%);
}

@keyframes rubro-pan {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.5%, -1%); }
}

.gallery-carousel {
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.gallery-track:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 4px;
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.gallery-item {
  margin: 0;
  position: relative;
  flex: 0 0 min(100%, 52rem);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 18, 40, 0.35);
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top center;
  background: #dceaf5;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2rem 1rem 0.9rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(10, 20, 40, 0.45);
  background: linear-gradient(180deg, transparent 0%, rgba(12, 24, 48, 0.55) 100%);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.gallery-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: #ffffff;
  transform: scale(1.2);
}

.section-cta h2 {
  max-width: 18ch;
  color: #ffffff;
  text-align: left;
}

.section-cta p {
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  max-width: 40ch;
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 2.75rem;
  border-top: 1px solid var(--line);
  background: #0f2c40;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  text-align: center;
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer strong {
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.site-footer a {
  color: #9ec9e6;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-slogan {
  max-width: 40rem;
  margin: 0.85rem auto 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-meta {
  opacity: 0.85;
}

.inline-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.inline-link:hover {
  color: #ffd4a8;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

@media (min-width: 760px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }

  .gallery-item {
    flex-basis: min(92%, 52rem);
  }

  .rubro-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .feature-list {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .rubro-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(22rem, 38%) 1fr;
    align-items: stretch;
  }

  .hero-copy {
    padding-bottom: clamp(3rem, 8vw, 6rem);
    align-self: center;
  }

  .hero-visual {
    position: relative;
    height: 100%;
    min-height: calc(100svh - 64px);
    align-self: stretch;
  }

  .hero-visual::after {
    background:
      linear-gradient(90deg, rgba(30, 20, 70, 0.75) 0%, rgba(25, 50, 110, 0.4) 20%, transparent 45%),
      linear-gradient(0deg, rgba(25, 40, 90, 0.4) 0%, transparent 24%);
  }
}

@media (max-width: 700px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    position: relative;
    min-height: 42vh;
    order: -1;
  }

  .hero-copy {
    padding-top: 1.5rem;
  }

  .hero-visual::after {
    background:
      linear-gradient(0deg, rgba(30, 20, 70, 0.82) 0%, rgba(25, 50, 110, 0.3) 45%, transparent 70%);
  }

  .brand-mark img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .brand-mark .logo-text {
    font-size: 1.45rem;
  }
}
