/* ===================================
   ContaNet Landing Page - Estilos Personalizados
   =================================== */

:root {
  /* Paleta de colores basada en la interfaz del sistema */
  --primary-dark: #1e293b;
  --primary-blue: #4285F4;
  --primary-blue-hover: #357ae8;
  --success-green: #10B981;
  --purple-accent: #8B5CF6;
  --orange-accent: #F59E0B;
  --light-bg: #f8fafc;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  color: #334155;
  line-height: 1.6;
}

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(30, 41, 59, 0.98);
  box-shadow: var(--card-shadow-hover);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: #fff !important;
}

.nav-link:hover::after {
  width: 80%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--purple-accent));
  border: none;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
  background: linear-gradient(135deg, var(--purple-accent), var(--primary-blue));
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #334155 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(66, 133, 244, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

#heroCarousel {
  width: 100%;
}

.carousel-item .container {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.carousel-item .row {
  align-items: center;
  justify-content: center;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
  text-align: left;
}

.hero-content h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary-blue), var(--purple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content {
  padding: 0;
}

.hero-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--purple-accent));
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(66, 133, 244, 0.5);
  color: white;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: white;
}

.hero-image {
  animation: fadeInRight 0.8s ease 0.3s both;
  position: relative;
  padding: 0 1rem;
}

.dashboard-mockup {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
  transform: scale(1.02);
}

/* Floating elements background */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.15), transparent);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent);
  bottom: 20%;
  right: -3%;
  animation-delay: 2s;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
  padding: 100px 0;
  background: var(--light-bg);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.2));
  color: var(--primary-blue);
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
  color: var(--success-green);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.2));
  color: var(--purple-accent);
}

.feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
  color: var(--orange-accent);
}

.feature-card:nth-child(5) .feature-icon {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(139, 92, 246, 0.2));
  color: var(--purple-accent);
}

.feature-card:nth-child(6) .feature-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(66, 133, 244, 0.2));
  color: var(--success-green);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), #334155);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(66, 133, 244, 0.1) 0%, transparent 50%);
}

.stat-card {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-blue), var(--purple-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Carousel customization */
.carousel-indicators {
  z-index: 3;
  margin-bottom: 2rem;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators button.active {
  background-color: var(--primary-blue);
  width: 30px;
  border-radius: 6px;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

/* ===================================
   TEAM SECTION
   =================================== */
.team-section {
  padding: 100px 0;
  background: white;
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
}

.team-image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.9), rgba(139, 92, 246, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-overlay .social-links {
  display: flex;
  gap: 1rem;
}

.team-overlay .social-links a {
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  transition: all 0.3s ease;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
}

.team-card:hover .team-overlay .social-links a {
  transform: translateY(0);
  opacity: 1;
}

.team-card:hover .team-overlay .social-links a:nth-child(1) {
  transition-delay: 0.1s;
}

.team-card:hover .team-overlay .social-links a:nth-child(2) {
  transition-delay: 0.2s;
}

.team-overlay .social-links a:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-5px);
}

.team-info {
  padding: 2rem;
  text-align: center;
}

.team-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.team-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===================================
   CLIENTS SECTION
   =================================== */
.clients-section {
  padding: 100px 0;
  background: var(--light-bg);
  overflow: hidden;
}

#clientsCarousel {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.clients-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
}

.client-logo-slide {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  width: 280px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-logo-slide:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--card-shadow-hover);
}

.client-logo-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.client-logo-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Controles del carousel de clientes */
.clients-control {
  width: 45px;
  height: 45px;
  background: rgba(66, 133, 244, 0.8);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.clients-section:hover .clients-control {
  opacity: 0.7;
}

.clients-control:hover {
  opacity: 1 !important;
  background: var(--primary-blue);
}

/* Badge de confianza */
.clients-badge {
  animation: fadeInUp 0.6s ease;
}

.clients-badge p {
  font-size: 1.1rem;
  margin: 0;
}

.clients-badge i {
  color: var(--success-green);
}

/* Responsive para clientes carousel */
@media (max-width: 992px) {
  .clients-slider {
    gap: 2rem;
  }

  .client-logo-slide {
    width: 220px;
    height: 140px;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .clients-slider {
    gap: 1rem;
    flex-direction: column;
  }

  .client-logo-slide {
    width: 100%;
    max-width: 300px;
  }

  .clients-control {
    display: none;
  }
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
  padding: 100px 0;
  background: var(--light-bg);
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-blue), var(--purple-accent));
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(66, 133, 244, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.cta-card h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.cta-card p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.btn-cta {
  background: white;
  color: var(--primary-blue);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  text-decoration: none;
  display: inline-block;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: var(--primary-blue);
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .cta-card h2 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 100px 0 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }
}