/* ========================================
   TECHNOLOGIA.ar - CSS Styles
   ======================================== */

/* CSS Variables */
:root {
  --color-purple-400: #a855f7;
  --color-purple-500: #8b5cf6;
  --color-purple-600: #7c3aed;
  --color-purple-700: #6d28d9;
  --color-cyan-400: #22d3ee;
  --color-cyan-500: #06b6d4;
  --color-cyan-600: #0891b2;
  --color-pink-500: #ec4899;
  --color-green-500: #22c55e;
  --color-green-600: #16a34a;
  --color-zinc-300: #d4d4d8;
  --color-zinc-400: #a1a1aa;
  --color-zinc-500: #71717a;
  --color-zinc-600: #52525b;
  --color-zinc-700: #3f3f46;
  --color-zinc-800: #27272a;
  --color-zinc-900: #18181b;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --border-radius: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(to bottom, var(--color-zinc-900), var(--color-black));
  color: var(--color-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

.gradient-text {
  background: linear-gradient(to right, var(--color-purple-400), var(--color-cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-reverse {
  background: linear-gradient(to right, var(--color-cyan-400), var(--color-purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 63, 70, 0.5);
  transition: background var(--transition-normal);
}

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

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

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--color-purple-500), var(--color-cyan-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-zinc-300);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-purple-400);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: rgba(24, 24, 27, 0.95);
  border-top: 1px solid rgba(63, 63, 70, 0.5);
}

.mobile-menu.active {
  display: flex;
}

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

  .mobile-menu-btn {
    display: none;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  overflow: hidden;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  opacity: 0.3;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
}

/* WhatsApp Hero Button Styles */
.whatsapp-hero-button-wrapper {
  position: relative;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-hero-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 48px;
  background: linear-gradient(135deg, #25D366 0%, #20B350 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 0 60px rgba(37, 211, 102, 0.5), 
              0 8px 32px rgba(37, 211, 102, 0.4), 
              0 0 20px rgba(37, 211, 102, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: whatsapp-glow-pulse 2s ease-in-out infinite;
}

@keyframes whatsapp-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 60px rgba(37, 211, 102, 0.5), 
                0 8px 32px rgba(37, 211, 102, 0.4), 
                0 0 20px rgba(37, 211, 102, 0.2);
  }
  50% {
    box-shadow: 0 0 80px rgba(37, 211, 102, 0.7), 
                0 12px 48px rgba(37, 211, 102, 0.6), 
                0 0 40px rgba(37, 211, 102, 0.4);
  }
}

.whatsapp-hero-button:hover {
  transform: scale(1.05) translateY(-2px);
  background: linear-gradient(135deg, #20B350 0%, #1FA247 100%);
  animation: none;
  box-shadow: 0 0 80px rgba(37, 211, 102, 0.7), 
              0 12px 48px rgba(37, 211, 102, 0.6), 
              0 0 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-hero-button:active {
  transform: scale(0.98);
}

.whatsapp-hero-button i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-hero-button {
    font-size: 1rem;
    padding: 16px 40px;
  }
  
  .whatsapp-hero-button i {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .whatsapp-hero-button {
    font-size: 0.875rem;
    padding: 14px 32px;
    gap: 8px;
  }

  .whatsapp-hero-button i {
    width: 20px;
    height: 20px;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-zinc-300);
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scroll-indicator {
  margin-top: 4rem;
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  width: 32px;
  height: 32px;
  color: var(--color-zinc-500);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(to right, var(--color-purple-600), var(--color-cyan-600));
  color: var(--color-white);
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--color-purple-700), var(--color-cyan-600));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-purple-500);
  color: var(--color-purple-400);
}

.btn-outline:hover {
  background: rgba(139, 92, 246, 0.1);
}

.btn-gradient {
  position: relative;
  background: linear-gradient(to right, var(--color-purple-500), var(--color-pink-500), var(--color-cyan-500));
  color: var(--color-white);
  overflow: hidden;
  transform: scale(1);
}

.btn-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: linear-gradient(to right, var(--color-purple-600), var(--color-cyan-600));
  color: var(--color-white);
}

.btn-secondary:hover {
  background: linear-gradient(to right, var(--color-purple-700), var(--color-cyan-600));
}

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

/* ========================================
   SECTIONS COMMON
   ======================================== */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.section-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.section-glow-1 {
  bottom: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: rgba(6, 182, 212, 0.1);
}

.section-glow-2 {
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.1);
}

.section-glow-3 {
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.1);
}

.section-glow-4 {
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.1);
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-zinc-400);
  max-width: 42rem;
  margin: 0 auto;
}

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

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products {
  position: relative;
  padding: 5rem 0;
  background: rgba(24, 24, 27, 0.9);
  overflow: hidden;
}

.products .container {
  position: relative;
  z-index: 10;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

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

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

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

/* Product Card */
.product-card {
  background: rgba(39, 39, 42, 0.5);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(63, 63, 70, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.product-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.2);
  transform: translateY(-4px);
}

.product-image-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-zinc-900);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.variant-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-white);
}

.product-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.product-description {
  font-size: 0.875rem;
  color: var(--color-zinc-400);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Color Selector */
.color-selector {
  margin-bottom: 1rem;
}

.color-label {
  font-size: 0.875rem;
  color: var(--color-zinc-300);
  margin-bottom: 0.5rem;
  display: block;
}

.color-label span {
  color: var(--color-white);
  font-weight: 500;
}

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

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--color-zinc-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-btn:hover {
  transform: scale(1.1);
  border-color: var(--color-zinc-400);
}

.color-btn.active {
  border-color: var(--color-purple-400);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.5);
}

.color-btn.white-btn {
  border-color: var(--color-zinc-400);
}

/* Product Buttons */
.product-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.product-buttons .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

.product-buttons .btn i {
  width: 14px;
  height: 14px;
}

/* Consult Section */
.consult-section {
  text-align: center;
  margin-top: 3rem;
}

.consult-text {
  color: var(--color-zinc-400);
  margin-bottom: 1rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  position: relative;
  padding: 5rem 0;
  background: rgba(24, 24, 27, 0.9);
  overflow: hidden;
}

.about .container {
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.feature-card {
  background: rgba(39, 39, 42, 0.5);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(63, 63, 70, 0.5);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.2);
  transform: translateY(-4px);
}

.feature-icon {
  margin-bottom: 1rem;
}

.feature-icon i {
  width: 40px;
  height: 40px;
}

.feature-icon.purple i {
  color: var(--color-purple-500);
}

.feature-icon.cyan i {
  color: var(--color-cyan-500);
}

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

.feature-description {
  font-size: 0.875rem;
  color: var(--color-zinc-400);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: rgba(24, 24, 27, 0.95);
  border-top: 1px solid rgba(63, 63, 70, 0.5);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

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

.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-zinc-400);
}

.footer-copyright p {
  margin-bottom: 0.5rem;
}

.design-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.design-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  color: var(--color-cyan-400);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.design-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(6, 182, 212, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.design-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  transition: border-color var(--transition-normal);
}

.design-link:hover {
  color: var(--color-white);
}

.design-link:hover::before {
  opacity: 1;
}

.design-link:hover::after {
  border-color: rgba(6, 182, 212, 0.3);
}

.design-link:hover span {
  background: linear-gradient(to right, var(--color-cyan-400), var(--color-purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.design-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.design-link:hover .design-logo {
  transform: scale(1.1);
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-500);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background: var(--color-green-600);
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.whatsapp-float i {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* ========================================
   AOS CUSTOM ANIMATIONS
   ======================================== */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-zinc-900);
}

::-webkit-scrollbar-thumb {
  background: var(--color-zinc-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-zinc-600);
}

/* ========================================
   SELECTION STYLING
   ======================================== */
::selection {
  background: var(--color-purple-500);
  color: var(--color-white);
}