:root {
  --bg: #000000;
  --bg-alt: #012d6a;
  --surface: rgba(1, 45, 106, 0.66);
  --surface-strong: #0d73d1;
  --text: #fefefe;
  --muted: #d7e6fb;
  --brand: #0194f3;
  --brand-2: #0d73d1;
  --ink: #373435;
  --line: rgba(254, 254, 254, 0.2);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(1, 148, 243, 0.24), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(13, 115, 209, 0.26), transparent 30%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 58%, #000000 100%);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.bg-orb {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

.orb-a {
  top: -7rem;
  left: -6rem;
  background: rgba(1, 148, 243, 0.24);
}

.orb-b {
  bottom: -8rem;
  right: -7rem;
  background: rgba(13, 115, 209, 0.2);
  animation-delay: 2.5s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.56);
}

.nav-wrap {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  font-size: 0.76rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 1.3rem;
}

.main-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 0.55rem;
  padding: 0.5rem 0.85rem;
  font: inherit;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--brand);
  margin: 0 0 0.65rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
}

h1,
.section-title {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 4.7vw, 4.2rem);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  padding: 0.72rem 1.1rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(1, 148, 243, 0.36);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card,
.service-card,
.about-panel,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-card-caption {
  padding: 1rem 1.1rem 1.15rem;
}

.hero-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.services-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 11.5rem;
  object-fit: cover;
}

.service-body {
  padding: 1rem;
}

.service-body p {
  color: var(--muted);
  margin: 0.55rem 0 0.85rem;
}

.service-body a {
  color: #8bc8ff;
  font-weight: 600;
}


.about-layout {
  display: grid;
  gap: 1.4rem;
}

#nosotros {
  position: relative;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.86), rgba(1, 45, 106, 0.83)),
    url("imagen/FONDO DE OFICINA.jpg.jpeg") center / cover no-repeat;
  border-top: 1px solid rgba(254, 254, 254, 0.16);
  border-bottom: 1px solid rgba(254, 254, 254, 0.16);
}

.about-intro {
  max-width: 74ch;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
}

.about-panel {
  padding: 1.15rem;
}

.about-panel p {
  margin: 0.55rem 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1.1fr;
  gap: 1.1rem;
}

.footer-brand {
  margin-bottom: 0.95rem;
}

.site-footer h4 {
  margin-bottom: 0.7rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.site-footer li,
.site-footer p,
.contact-form p {
  color: var(--muted);
}

.contact-form {
  padding: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.72rem;
  margin: 0.45rem 0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #93a2bf;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
}

.social-links a {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 148, 243, 0.7);
  background: rgba(1, 148, 243, 0.16);
}

.social-links svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: #fefefe;
}

.whatsapp-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 194, 117, 0.45);
  background: #25d366;
  color: #032016;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(8, 99, 58, 0.45);
  z-index: 40;
  animation: pulseWhatsapp 2s ease-in-out infinite;
}

.whatsapp-widget svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

@keyframes pulseWhatsapp {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
  color: rgba(254, 254, 254, 0.78);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 640ms ease, transform 640ms ease;
}

.stagger-item {
  opacity: 0;
  transform: translateY(14px);
}

.stagger-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav {
    display: none;
    position: absolute;
    right: 4vw;
    top: 4.3rem;
    background: #012d6a;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.8rem;
    min-width: 180px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.3rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-widget span {
    display: none;
  }

  .whatsapp-widget {
    padding: 0.72rem;
  }
}
