:root {
  --bg-dark: #030303;
  --surface: rgba(18, 18, 18, 0.7);
  --surface-light: #fdfdfd;
  --primary: #0070f3;
  --primary-glow: rgba(0, 112, 243, 0.3);
  --accent: #d4af37;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-dark: #0a0a0a;
  --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  --container-width: 1100px;
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--noise);
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 0;
  transition: var(--transition);
  background: transparent;
}

nav.scrolled {
  padding: 1rem 0;
  background: rgba(3, 3, 3, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo span {
  color: var(--primary);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: var(--transition);
}

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

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

.btn-cta {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 112, 243, 0.05) 0%,
    transparent 70%
  );
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 5rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 1.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: white;
}

/* Sections General */
section {
  padding: 10rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ¿Quiénes Somos? */
#nosotros {
  background: var(--surface-light);
  color: var(--text-dark);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--bg-dark);
  line-height: 1.1;
}

.about-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #333;
}

.stat-box {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  border-left: 6px solid var(--primary);
}

.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: #666;
}

.about-visual {
  position: relative;
}

.geometric-shape {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

/* Equipo */
#equipo {
  background: #050505;
  padding: 10rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.team-member {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.02);
}

.member-photo {
  width: 160px;
  height: 160px;
  border-radius: 40px; /* Squircle style */
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: grayscale(1);
  transition: var(--transition);
}

.team-member:hover .member-photo {
  transform: rotate(5deg) scale(1.1);
  filter: grayscale(0);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 112, 243, 0.3);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.member-role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.member-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

/* Especialización */
#servicios {
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 3.5rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  flex: 1 1 320px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(0, 112, 243, 0.3);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 112, 243, 0.1);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--x) var(--y),
    rgba(0, 112, 243, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.icon-wrapper {
  margin-bottom: 1.5rem;
  width: 60px;
  height: 60px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ¿Por qué MONICO? */
#por-que-monico {
  background: var(--surface-light);
  color: var(--text-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
}

.feature-item {
  text-align: left;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  color: var(--primary);
}

.feature-item h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-item p {
  font-size: 1rem;
  color: #555;
}

/* CTA Final */
#cta-final {
  background: var(--bg-dark);
  text-align: center;
  padding: 12rem 0;
  position: relative;
  overflow: hidden;
}

#cta-final::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle,
    var(--primary-glow) 0%,
    transparent 60%
  );
  transform: translate(-50%, -50%);
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.cta-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.6;
}

.btn-large {
  padding: 1.2rem 3.5rem;
  font-size: 1.1rem;
  border-radius: 12px;
  display: inline-block;
}

/* Footer */
footer {
  background: #000;
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.copyright {
  text-align: center;
  color: #333;
  font-size: 0.9rem;
  border-top: 1px solid #111;
  padding-top: 3rem;
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  width: 32px;
  height: 2px;
  background: white;
  transition: var(--transition);
}

@media (max-width: 968px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(3, 3, 3, 0.98);
    backdrop-filter: blur(20px);
    padding: 4rem 2rem;
    gap: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: -1;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }
}
