:root {
  --bg: #06120c;
  --surface: #0d1f16;
  --surface-2: #112a1d;
  --primary: #2eb872;
  --primary-2: #22a362;
  --text: #e8f4ed;
  --muted: #b9d3c3;
  --line: rgba(46, 184, 114, 0.2);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(46, 184, 114, 0.14) 0%, transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(24, 91, 58, 0.2) 0%, transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(34, 163, 98, 0.1) 0%, transparent 38%),
    linear-gradient(180deg, #07150f 0%, #050f0a 46%, #06120c 100%);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.28;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-header.scrolled {
  background: rgba(6, 18, 12, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand img {
  width: 170px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.2rem;
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
}

.hero {
  padding: 6rem 0 3rem;
}

.hero-premium {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-glow-left {
  left: -140px;
  top: 20px;
  background: radial-gradient(circle, #2eb872 0%, transparent 70%);
}

.hero-glow-right {
  right: -120px;
  top: 40px;
  background: radial-gradient(circle, #1f6d47 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.hero-kpi {
  padding: 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(17, 42, 29, 0.55);
}

.hero-kpi strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.hero-kpi span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hero-media-wrap {
  position: relative;
}

.hero-media {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.45s ease, border-color 0.35s ease;
  animation: floatHero 6s ease-in-out infinite;
}

.hero-media:hover {
  transform: perspective(1100px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  border-color: rgba(46, 184, 114, 0.45);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.hero-media-shine {
  position: absolute;
  inset: -20px -20px auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(46, 184, 114, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  animation: pulseShine 4.2s ease-in-out infinite;
}

.about-hero {
  padding-bottom: 1rem;
}

.about-tags .chip {
  background: rgba(46, 184, 114, 0.14);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1rem;
}

.about-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: rgba(10, 27, 18, 0.65);
}

.about-stat strong {
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.2;
}

.about-stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.services-hero {
  padding-bottom: 0.8rem;
}

.services-hero-grid {
  align-items: start;
}

.services-tags .chip {
  background: rgba(46, 184, 114, 0.15);
}

.services-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.services-mini-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 28, 19, 0.7);
  padding: 0.75rem 0.82rem;
}

.services-mini-stat strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
}

.services-mini-stat span {
  color: var(--muted);
  font-size: 0.78rem;
}

.services-hero-media {
  position: relative;
  overflow: hidden;
}

.services-hero-media img {
  transition: transform 0.65s ease;
}

.services-hero-media:hover img {
  transform: scale(1.06);
}

.services-floating-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 0.42rem 0.72rem;
  font-size: 0.78rem;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 18, 12, 0.72);
  backdrop-filter: blur(4px);
  animation: labelPulse 4s ease-in-out infinite;
}

.services-cards-grid {
  position: relative;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  background:
    radial-gradient(circle at 85% 12%, rgba(46, 184, 114, 0.17) 0%, transparent 38%),
    linear-gradient(180deg, rgba(13, 34, 23, 0.98), rgba(10, 26, 18, 0.98));
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), rgba(46, 184, 114, 0.15));
  opacity: 0.95;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(46, 184, 114, 0.5), transparent 55%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.42;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 0.95;
}

.service-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.service-head h2 {
  margin: 0;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #04130b;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 18px rgba(46, 184, 114, 0.28);
}

.mission-vision-grid {
  align-items: stretch;
}

.purpose-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background:
    radial-gradient(circle at 82% 18%, rgba(46, 184, 114, 0.16) 0%, transparent 42%),
    linear-gradient(175deg, rgba(14, 36, 24, 0.96), rgba(10, 27, 18, 0.98));
}

.purpose-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), rgba(46, 184, 114, 0.15));
  opacity: 0.95;
}

.purpose-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(125deg, rgba(46, 184, 114, 0.45), transparent 55%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.purpose-card:hover::after {
  opacity: 0.95;
}

.purpose-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.purpose-head h2 {
  margin: 0;
}

.purpose-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #04130b;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 18px rgba(46, 184, 114, 0.28);
}

.values-section {
  margin-top: 0.5rem;
}

.values-carousel {
  position: relative;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 0.7rem;
  align-items: center;
}

.values-track-wrap {
  overflow: hidden;
}

.values-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1rem;
  transition: transform 0.5s ease;
}

.value-slide {
  min-height: 185px;
  background:
    radial-gradient(circle at 85% 12%, rgba(46, 184, 114, 0.16) 0%, transparent 40%),
    linear-gradient(180deg, rgba(13, 34, 23, 0.98), rgba(10, 27, 18, 0.98));
}

.value-slide h3 {
  margin-bottom: 0.65rem;
}

.values-nav {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 26, 18, 0.8);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.values-nav:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 184, 114, 0.45);
  background: rgba(15, 34, 24, 0.95);
}

.values-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.values-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(185, 211, 195, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.values-dot.active {
  width: 22px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

@keyframes floatHero {
  0%,
  100% {
    transform: perspective(1100px) rotateY(-2deg) rotateX(1deg) translateY(0);
  }
  50% {
    transform: perspective(1100px) rotateY(-2deg) rotateX(1deg) translateY(-8px);
  }
}

@keyframes pulseShine {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes labelPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(46, 184, 114, 0);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(46, 184, 114, 0.25);
  }
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
}

p {
  color: var(--muted);
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 184, 114, 0.45);
}

.section {
  padding: 4rem 0;
}

.strengths-section {
  position: relative;
}

.strengths-head {
  max-width: 850px;
}

.strengths-head h2 {
  margin-bottom: 0.8rem;
}

.strengths-grid {
  position: relative;
}

.strength-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background:
    radial-gradient(circle at 85% 15%, rgba(46, 184, 114, 0.15) 0%, transparent 35%),
    linear-gradient(180deg, rgba(13, 31, 22, 0.95), rgba(11, 28, 20, 0.96));
}

.strength-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, rgba(46, 184, 114, 0.35), transparent 50%) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.strength-card:hover::after {
  opacity: 0.9;
}

.strength-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.95rem;
  color: #04130b;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 16px rgba(46, 184, 114, 0.25);
}

.strength-card h3 {
  margin-bottom: 0.7rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #031108;
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
}

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  font-size: 0.82rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(46, 184, 114, 0.08);
}

.project-demo {
  height: 220px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1812;
  color: var(--text);
  padding: 0.78rem 0.85rem;
  margin-bottom: 0.9rem;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(46, 184, 114, 0.3);
  border-color: var(--primary);
}

.invalid {
  border-color: #f16a6a;
}

.form-status {
  min-height: 1.3rem;
  font-size: 0.9rem;
}

.form-status.error {
  color: #ff9f9f;
}

.form-status.success {
  color: #94f6c5;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 12px;
}

#site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #050f0b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 0.9rem;
  font-size: 0.9rem;
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 1200;
}

.fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #04140b;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease;
}

.fab:hover {
  transform: translateY(-4px) scale(1.03);
}

.fab.whatsapp {
  background: #24d366;
}

.fab.facebook {
  background: #1877f2;
  color: #fff;
}

.fab.instagram {
  background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
}

/* Galeria de Servicios */
.gallery-section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 20, 11, 0.9) 0%, rgba(4, 20, 11, 0.4) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--primary);
  transform: translateY(15px);
  transition: transform 0.4s ease;
}

.gallery-overlay p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  transform: translateY(15px);
  transition: transform 0.4s ease;
  transition-delay: 0.05s;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

.cv-section {
  max-width: 1200px;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.2rem;
}

.cv-viewer {
  padding: 0.75rem;
}

.cv-viewer iframe {
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
  border-radius: 12px;
  background: #0b1812;
}

@media (max-width: 940px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.6rem;
  }

  .hero-kpis {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .services-mini-stats {
    grid-template-columns: 1fr;
  }

  .hero-media {
    transform: none;
    animation: none;
  }

  .strength-card {
    min-height: auto;
  }

  .service-card {
    min-height: auto;
  }

  .purpose-card {
    min-height: auto;
  }

  .values-carousel {
    grid-template-columns: 1fr;
  }

  .values-nav {
    display: none;
  }

  .cv-viewer iframe {
    height: 72vh;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 4%;
    background: #0a1a12;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    flex-direction: column;
    min-width: 210px;
  }

  .nav-links.open {
    display: flex;
  }
}
