/* ==========================================================================
   Loopcod - Estilos Principales
   Sitio Web Estático Corporativo
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #111726;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  
  --glow-cyan: rgba(0, 242, 254, 0.25);
  --glow-purple: rgba(139, 92, 246, 0.2);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Fondos ambientales de luz (Glow Effect) */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-cyan) 0%, rgba(10, 13, 20, 0) 70%);
  filter: blur(80px);
  opacity: 0.6;
}

.glow-orb-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-purple) 0%, rgba(10, 13, 20, 0) 70%);
  filter: blur(100px);
  opacity: 0.4;
}

/* Contenedor Principal */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* ==========================================================================
   Sección Hero Central
   ========================================================================== */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  max-width: 780px;
}

/* Contenedor del Logo Central */
.logo-container {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-glow-ring {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  filter: blur(45px);
  opacity: 0.4;
  animation: pulse 6s ease-in-out infinite alternate;
}

.logo-image {
  position: relative;
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 48px -15px rgba(0, 0, 0, 0.8),
              0 0 35px rgba(56, 189, 248, 0.25);
  transition: var(--transition-normal);
}

.logo-image:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 35px rgba(0, 242, 254, 0.35);
  border-color: rgba(0, 242, 254, 0.5);
}

/* Nombre de la Empresa */
.brand-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--text-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.brand-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   Sección de Servicios
   ========================================================================== */
.services-section {
  width: 100%;
  margin-bottom: 4rem;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6),
              0 0 20px rgba(56, 189, 248, 0.15);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.icon-consulting {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.icon-development {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.icon-ai {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.service-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Sección de Llamada a la Acción (CTA)
   ========================================================================== */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.5) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.75rem 2rem;
  width: 100%;
  max-width: 820px;
  margin-bottom: 3.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cta-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 1.75rem auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  color: #04101e;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -4px rgba(0, 242, 254, 0.55);
  color: #000000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 1100px;
}

/* Animaciones */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.45;
  }
}

/* ==========================================================================
   Responsividad Móvil
   ========================================================================== */
@media (max-width: 768px) {
  .site-wrapper {
    padding: 2rem 1.25rem;
  }

  .brand-title {
    font-size: 2.5rem;
  }

  .logo-image {
    width: 190px;
    height: 190px;
    border-radius: 28px;
  }

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

  .cta-section {
    padding: 2rem 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
