@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800;900&display=swap');

:root {
  /* Ultra Modern Dark Theme Variables */
  --bg-dark: #070b14;
  --bg-darker: #04060b;
  --bg-panel: rgba(16, 24, 39, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.4);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(56, 189, 248, 0.3);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-dark);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Abstract Backgrounds */
.bg-glow {
  position: fixed;
  top: -20vh;
  left: -20vw;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
  z-index: -2;
  filter: blur(80px);
}
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  opacity: 0.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.invert-logo {
  filter: brightness(0) invert(1) opacity(0.9);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

ul { list-style: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn--glow {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  border: 1px solid transparent;
}
.btn--glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.6);
  filter: brightness(1.1);
}

.btn--outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(5px);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #10b981;
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  border: 1px solid transparent;
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  background: #059669;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 1rem 0;
}
.header.scrolled {
  background: rgba(4, 6, 11, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-glass);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.nav__logo-img {
  height: 40px;
  width: auto;
}
.nav__menu {
  display: flex;
  gap: 2.5rem;
}
.nav__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}
.nav__link:hover, .nav__link.active {
  color: var(--text-main);
}
.nav__link::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -4px; left: 0;
  background: var(--accent);
  transition: var(--transition);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 6px;
}
.nav__toggle span {
  display: block; width: 28px; height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}
.hero__text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.badge-modern {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero__title {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero__title-line {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -2px;
}
.gradient-text {
  background: linear-gradient(to right, #fff 20%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero__subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-muted);
  font-weight: 400;
}
.hero__description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}
.hero__actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-heading);
  animation: float 3s ease-in-out infinite;
}
.hero__scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* Incredible Hero Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
}

.hero__visual {
  position: relative;
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-mockup {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 4/3;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  padding: 1.5rem;
  transform: rotateY(-15deg) rotateX(10deg);
  box-shadow: -20px 20px 40px rgba(0,0,0,0.4), 
              inset 0 0 0 1px rgba(255,255,255,0.1);
  animation: floatingMockup 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
}

@keyframes floatingMockup {
  0%, 100% { transform: rotateY(-15deg) rotateX(10deg) translateY(0); }
  50% { transform: rotateY(-12deg) rotateX(8deg) translateY(-20px); }
}

.mockup-header {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.mockup-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.mockup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-graph {
  height: 120px;
  background: linear-gradient(to top, rgba(56, 189, 248, 0.2), transparent);
  border-bottom: 2px solid var(--accent);
  border-radius: 8px;
  position: relative;
}

.mockup-lines {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.m-line {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}
.m-line.line-1 { width: 100%; }
.m-line.line-2 { width: 70%; }
.m-line.line-3 { width: 40%; }

.mockup-floating-card {
  position: absolute;
  top: -20px;
  right: -30px;
  background: rgba(16, 24, 39, 0.8);
  border: 1px solid var(--accent);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  animation: counterFloat 4s ease-in-out infinite reverse;
}

@keyframes counterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Background Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.4;
  animation: orbDrift 20s infinite alternate linear;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 10%;
  left: 10%;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 40%;
  right: 5%;
  animation-duration: 25s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: #a855f7; /* Purple accent for contrast */
  bottom: 0;
  left: 30%;
  animation-duration: 18s;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, -50px); }
}

/* Sections Global */
.section__header {
  text-align: center; margin-bottom: 5rem;
}
.section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.ta-left { text-align: left; }
.section__subtitle {
  font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto;
}

/* Empresas Grid */
.empresas { padding: 8rem 0; position: relative; }
.empresas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.premium-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.premium-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.card__glow {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56,189,248,0.06), transparent 40%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.premium-card:hover .card__glow { opacity: 1; }

.empresa__icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border-glass);
  margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.empresa__content { flex: 1; display: flex; flex-direction: column; }
.empresa__name {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem;
}
.empresa__category {
  font-size: 0.85rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.empresa__description {
  color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; flex: 1;
}
.empresa__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-main); font-family: var(--font-heading); font-weight: 600;
}
.empresa__link:hover { color: var(--accent); }
.empresa__link svg { transition: transform 0.3s; }
.empresa__link:hover svg { transform: translateX(5px); }

/* Nosotros */
.nosotros { padding: 8rem 0; background: var(--bg-darker); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.nosotros__logo-wrapper {
  background: var(--bg-panel); border: 1px solid var(--border-glass);
  border-radius: 30px; padding: 4rem; backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.glass-orb {
  position: absolute;
  width: 300px; height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1;
}
.modern-stats { display: flex; gap: 2rem; margin-top: 3rem; }
.stat-box { display: flex; align-items: center; gap: 1.5rem; }
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(59,130,246,0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat__number { display: block; font-size: 3rem; font-family: var(--font-heading); font-weight: 900; line-height: 1; }
.stat__label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Contacto */
.contacto { padding: 8rem 0; }
.glass-panel {
  background: var(--bg-panel); border: 1px solid var(--border-glass);
  border-radius: 32px; backdrop-filter: blur(12px);
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.contact__text-col { padding: 4rem; }
.contact__map-col { position: relative; }
.map-wrap { height: 100%; width: 100%; min-height: 400px; padding: 1rem; padding-left: 0; }
.map-wrap iframe { border-radius: 20px; filter: grayscale(1) invert(0.9) hue-rotate(180deg) opacity(0.8); }

.contact__info-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 2rem; }
.contact__item { display: flex; align-items: flex-start; gap: 1rem; }
.c-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.05); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.c-icon svg { width: 20px; height: 20px; }
.contact__item h5 { font-size: 1.1rem; color: var(--text-main); margin-bottom: 0.2rem; }
.contact__item span { color: var(--text-muted); font-size: 0.95rem; }

.mt-4 { margin-top: 2rem; }

/* Footer */
.footer { background: var(--bg-darker); padding: 5rem 0 2rem; }
.border-t { border-top: 1px solid var(--border-glass); padding-top: 4rem; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer__logo { height: 40px; margin-bottom: 1.5rem; }
.footer__tagline { color: var(--text-muted); max-width: 300px; }
.footer h4 { color: var(--text-main); font-size: 1.25rem; margin-bottom: 1.5rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer ul a { color: var(--text-muted); }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding-top: 2rem; border-top: 1px solid var(--border-glass); }

/* Responsive */
@media (max-width: 992px) {
  .hero__text { text-align: left; }
  .grid-2 { grid-template-columns: 1fr; }
  .glass-panel { grid-template-columns: 1fr; }
  .contact__text-col { padding: 3rem 2rem; }
  .map-wrap { padding: 0 2rem 2rem; min-height: 300px; }
  .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed; top: 70px; left: 0; width: 100%;
    background: rgba(4, 6, 11, 0.95); backdrop-filter: blur(10px);
    flex-direction: column; align-items: center; padding: 2rem; gap: 2rem;
    transform: translateY(-100%); opacity: 0; pointer-events: none; transition: var(--transition);
    border-bottom: 1px solid var(--border-glass);
  }
  .nav__menu.active { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__toggle { display: flex; }
  .modern-stats { flex-direction: column; }
  .hero__actions { justify-content: flex-start; }
}
