/* =========================================
           VARIABLES Y BASE
           ========================================= */
/* =========================================
   VARIABLES Y BASE
   ========================================= */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --shadow-1: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

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

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
  /* Push to right */
  list-style: none !important;
  padding: 0;
  margin-bottom: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--dark-color) !important;
  transition: color 0.3s ease;
  position: relative;
  margin: 0 10px;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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


.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Page Header */
.page-header {
  padding: 150px 0 80px;
  background: var(--gradient-1);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-opacity="0.1" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* =========================================
   HERO SLIDER (BANNER PRINCIPAL)
   ========================================= */
.hero-slider-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

/* Overlay oscuro para leer texto */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  color: white;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
  animation: fadeInDown 1s ease forwards;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #e2e8f0;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.btn-hero {
  background: white;
  color: var(--primary-color);
  font-weight: 700;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.btn-hero:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  background: var(--gradient-3);
  color: white;
}

/* Controles del Slider Hero */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.slider-arrow:hover {
  background: white;
  color: var(--primary-color);
}

.slider-prev {
  left: 30px;
}

.slider-next {
  right: 30px;
}

.slider-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.3);
  width: 30px;
  /* Elipse */
  border-radius: 20px;
}

/* Keyframes animaciones texto */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
           SECCIÓN DE PRODUCTOS (GRID - NO SLIDER)
           ========================================= */
.products-section {
  padding: 100px 0;
  background: var(--light-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.section-header h2 span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Grid Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columnas fijas en desktop */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Estilo de Tarjetas (Mismas que antes pero adaptadas al grid) */
.product-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-1);
  transition: height 0.3s ease;
}

.card-2::before {
  background: var(--gradient-2);
}

.card-3::before {
  background: var(--gradient-3);
}

.card-4::before {
  background: var(--gradient-4);
}

.product-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-2);
}

.product-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  font-size: 2rem;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}

.product-card:hover .product-icon {
  transform: rotate(10deg) scale(1.1);
}

.icon-1 {
  background: var(--gradient-1);
}

.icon-2 {
  background: var(--gradient-2);
}

.icon-3 {
  background: var(--gradient-3);
}

.icon-4 {
  background: var(--gradient-4);
}

.product-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark-color);
}

.product-card p {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 0.95rem;
  flex-grow: 1;
}

.feature-list {
  list-style: none;
  margin-bottom: 25px;
}

.feature-list li {
  padding: 5px 0;
  color: #64748b;
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  color: #10b981;
  font-weight: bold;
}

.btn-product {
  display: block;
  width: 100%;
  text-align: center;
  background: #f1f5f9;
  color: var(--dark-color);
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-product:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-1 .btn-product:hover {
  background: var(--gradient-1);
}

.card-2 .btn-product:hover {
  background: var(--gradient-2);
}

.card-3 .btn-product:hover {
  background: var(--gradient-3);
}

.card-4 .btn-product:hover {
  background: var(--gradient-4);
}


/* Projects Section (Grid Simple) */
.projects-section {
  padding: 100px 0;
  background: white;
}

.grid-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2);
}

.project-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-content p {
  color: #64748b;
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: var(--dark-color);
  /* Fondo oscuro */
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Fondo decorativo sutil */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.2), transparent 60%);
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.btn-cta {
  background: var(--gradient-1);
  color: white;
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--neon-glow);
  display: inline-block;
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}

.btn-cta:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px;
  text-align: center;
}

/* =========================================
   PROJECT LINKS (INNOVACIÓN)
   ========================================= */
.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.project-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom-color: var(--secondary-color);
}

.project-link:hover i {
  transform: translateX(5px);
}

.footer p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.social-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 en tablets */
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .slider-arrow {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 0;
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.5s ease-in-out;
  }

  .nav-links.active {
    clip-path: circle(140% at 100% 0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    /* 1 en móvil */
  }
}

/* =========================================
   FEATURE CARDS (PÁGINAS INTERNAS)
   ========================================= */
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-1);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.feature-card p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* Variaciones de color para iconos */
.col-lg-4:nth-child(2) .feature-icon {
  background: var(--gradient-2);
}

.col-lg-4:nth-child(3) .feature-icon {
  background: var(--gradient-3);
}

.col-lg-4:nth-child(4) .feature-icon {
  background: var(--gradient-4);
}