/* Prisma AI - Styles */
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(220, 15%, 15%);
}

html {
  scroll-behavior: smooth;
}

body {
  background: hsl(220, 20%, 4%);
  color: hsl(210, 40%, 98%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* CSS Variables */
:root {
  /* Dark AI Theme - Prisma AI */
  --background: 220 20% 4%;
  --foreground: 210 40% 98%;
  --card: 220 20% 6%;
  --card-foreground: 210 40% 98%;
  --popover: 220 20% 6%;
  --popover-foreground: 210 40% 98%;
  --primary: 175 80% 50%;
  --primary-foreground: 220 20% 4%;
  --secondary: 270 60% 60%;
  --secondary-foreground: 210 40% 98%;
  --muted: 220 15% 15%;
  --muted-foreground: 215 20% 65%;
  --accent: 175 80% 50%;
  --accent-foreground: 220 20% 4%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 220 15% 15%;
  --input: 220 15% 12%;
  --ring: 175 80% 50%;
  --radius: 0.75rem;
  
  /* Custom Prisma AI Colors */
  --glow-cyan: 175 80% 50%;
  --glow-purple: 270 60% 60%;
  --glow-teal: 165 70% 45%;
  --gradient-start: 175 80% 50%;
  --gradient-end: 270 60% 60%;
}

/* Aurora gradient background */
.aurora-bg {
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, hsl(175 80% 50% / 0.3), transparent),
    radial-gradient(ellipse 60% 40% at 80% 0%, hsl(270 60% 60% / 0.2), transparent),
    radial-gradient(ellipse 50% 30% at 20% 10%, hsl(165 70% 45% / 0.15), transparent),
    hsl(var(--background));
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

.aurora-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Allow glows to extend beyond section boundaries */
  overflow: visible;
}

.aurora-item {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

/* Consistent background with aurora effects */
.bg-background {
  position: relative;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, hsl(175 80% 50%), hsl(270 60% 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass morphism */
.glass {
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  background: hsl(220 20% 6% / 0.3);
  border: 1px solid hsl(220 15% 15% / 0.5);
}

.glass-subtle {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: hsl(220 20% 6% / 0.2);
  border: 1px solid hsl(220 15% 15% / 0.3);
}

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

/* Animations */
@keyframes pulse-glow {
  0%, 100% { 
    opacity: 0.5; 
    filter: blur(40px); 
  }
  50% { 
    opacity: 0.8; 
    filter: blur(60px); 
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes aurora-breathe {
  0%, 100% { 
    opacity: 0.4; 
    transform: scale(1) translateY(0);
    filter: blur(60px);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.1) translateY(-10px);
    filter: blur(80px);
  }
}

.aurora-breathe {
  animation: aurora-breathe 4s ease-in-out infinite;
}

@keyframes aurora-wave {
  0%, 100% { 
    opacity: 0.3;
    transform: translateX(0) scaleX(1);
  }
  25% {
    opacity: 0.5;
    transform: translateX(5%) scaleX(1.05);
  }
  50% { 
    opacity: 0.6;
    transform: translateX(0) scaleX(1.1);
  }
  75% {
    opacity: 0.4;
    transform: translateX(-5%) scaleX(1.05);
  }
}

.aurora-wave {
  animation: aurora-wave 6s ease-in-out infinite;
}

@keyframes aurora-shimmer {
  0% { 
    opacity: 0.3;
    transform: rotate(0deg) scale(1);
  }
  33% {
    opacity: 0.5;
    transform: rotate(2deg) scale(1.05);
  }
  66% {
    opacity: 0.4;
    transform: rotate(-2deg) scale(1.02);
  }
  100% { 
    opacity: 0.3;
    transform: rotate(0deg) scale(1);
  }
}

.aurora-shimmer {
  animation: aurora-shimmer 8s linear infinite;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

.stagger-children > * {
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(220 20% 2% / 0.9);
}

header .glass-subtle {
  background: hsl(220 20% 2% / 0.25);
  border: 1px solid hsl(220 15% 10% / 0.35);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, hsl(175 80% 50%), hsl(270 60% 60%));
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: hsl(210 40% 90% / 0.8);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}

.nav-link:hover {
  color: hsl(210 40% 90%);
  text-shadow: 0 0 10px hsl(175 80% 44% / 0.3);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-sm {
  height: 36px;
  padding: 0 0.75rem;
}

.btn-lg {
  height: 48px;
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.btn-xl {
  height: 56px;
  padding: 0 2.5rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

.btn-glow {
  background: linear-gradient(135deg, hsl(175 80% 44%), hsl(270 60% 54%));
  color: hsl(220 20% 2%);
  box-shadow: 0 10px 30px hsl(175 80% 44% / 0.4);
}

.btn-glow:hover {
  background: linear-gradient(135deg, hsl(175 80% 44% / 0.95), hsl(270 60% 54% / 0.95));
  box-shadow: 0 10px 40px hsl(175 80% 44% / 0.6);
  transform: scale(1.05);
}

.btn-glass {
  backdrop-filter: blur(40px);
  background: hsl(210 40% 90% / 0.1);
  border: 1px solid hsl(210 40% 90% / 0.2);
  color: hsl(210 40% 90%);
}

.btn-glass:hover {
  background: hsl(210 40% 90% / 0.2);
}

/* Card */
.card {
  border-radius: 0.75rem;
  border: 1px solid hsl(220 15% 15%);
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.05);
  transition: all 0.3s;
}

/* Input */
.input {
  display: flex;
  height: 48px;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--input));
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: all 0.3s;
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus {
  outline: none;
  ring: 2px;
  ring-color: hsl(var(--ring));
  ring-offset: 2px;
  box-shadow: 0 0 0 2px hsl(var(--ring));
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Textarea */
textarea.input {
  height: auto;
  resize: none;
  padding: 0.75rem 1rem;
}

/* Responsive Typography */
h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.text-lg {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Sections */
section {
  position: relative;
  padding: clamp(4rem, 10vh, 8rem) 0;
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  position: relative;
  /* Blend from deep black to the main background color */
  background: linear-gradient(to bottom, hsl(220 20% 1%), hsl(220 20% 4%));
}

/* Ensure the next section doesn't have a hard background break */
#servicios {
  margin-top: -1px; /* Remove any sub-pixel gaps */
  background: hsl(220 20% 4%);
}

.hero .container {
  z-index: 10;
  width: 100%;
}

/* Hero specific darker colors */
.hero .gradient-text {
  background: linear-gradient(135deg, hsl(175 80% 38%), hsl(270 60% 48%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .text-muted-foreground {
  color: hsl(215 20% 50%);
}

.hero .badge.glass {
  background: hsl(220 20% 1% / 0.45);
  border: 1px solid hsl(220 15% 5% / 0.6);
}

/* Hero aurora effects - darker */
.hero .aurora-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, hsl(175 80% 38% / 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 80% 0%, hsl(270 60% 48% / 0.14), transparent),
    radial-gradient(ellipse 50% 30% at 20% 10%, hsl(165 70% 34% / 0.1), transparent);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .stat-value {
    font-size: 2.5rem;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 1.5rem;
  transition: all 0.3s;
}

.service-card:hover {
  transform: scale(1.02);
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 20px 40px hsl(var(--primary) / 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: hsl(var(--primary) / 0.2);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-description {
  color: hsl(var(--muted-foreground));
}

/* Benefits */
.benefits-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.benefit-description {
  color: hsl(var(--muted-foreground));
}

/* Contact Grid */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.contact-value {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.3s;
}

.contact-value:hover {
  color: hsl(var(--primary));
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid hsl(220 15% 15% / 0.5);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
}

.text-7xl {
  font-size: clamp(3.5rem, 10vw, 5rem);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }

.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.pointer-events-none { pointer-events: none; }

.leading-tight { line-height: 1.25; }

.hidden { display: none; }

@media (min-width: 640px) {
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:text-xl { font-size: 1.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-7xl { font-size: 4.5rem; }
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:text-lg { font-size: 1.125rem; }
}

/* Spinner */
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid hsl(210 40% 98% / 0.3);
  border-top-color: hsl(210 40% 98%);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success message */
.success-message {
  text-align: center;
  padding: 3rem 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-description {
  color: hsl(var(--muted-foreground));
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checklist-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
