/* styles.css -> Recreando la Estética Premium SaaS del "Primer Intento" */

:root {
  /* Premium Dark Theme Color Palette */
  --bg-color: #050b14;
  --bg-light: #0d1525;
  --bg-lighter: #162036;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;

  --primary-color: #3b82f6;
  /* Bright Blue */
  --primary-hover: #2563eb;
  --accent-color: #8b5cf6;
  /* Neon Purple */
  --accent-secondary: #0ea5e9;
  /* Cyan */

  --glass-bg: rgba(22, 32, 54, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --border-radius: 12px;
  --transition: all 0.3s ease;

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.dark-theme {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-family: var(--font-primary);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
}

.glass-effect {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  font-size: 0.8rem;
  font-weight: bold;
  font-family: var(--font-heading);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.mt-5 {
  margin-top: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Typography Formatting */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 800px;
  line-height: 1.7;
}

.section {
  padding: 100px 0;
}

.bg-light-dark {
  background-color: var(--bg-light);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ========= Navigation (Exactamente como el primer intento) ========= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}

.logo i {
  color: var(--primary-color);
  font-size: 2rem;
}

.logo span span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ========= Hero Section & Carousel ========= */
.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 700px;
  background-color: var(--bg-color);
}

.hero-slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 10s linear;
}

.hero-slide-item.active .hero-bg {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 11, 20, 0.95) 0%, rgba(5, 11, 20, 0.6) 100%);
  z-index: 1;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-nav-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.hero-nav-btn.prev-btn {
  left: 20px;
}

.hero-nav-btn.next-btn {
  right: 20px;
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.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: var(--primary-color);
  width: 30px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .hero-nav-btn {
    display: none;
  }
}


.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(to right, var(--primary-color), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

/* Image Glass Mockup - Hero Visual */
.glass-mockup {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.glass-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 16px;
  border-bottom: 1px solid var(--glass-border);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b5563;
}

.dots span:nth-child(1) {
  background: #ef4444;
}

.dots span:nth-child(2) {
  background: #eab308;
}

.dots span:nth-child(3) {
  background: #22c55e;
}

.mockup-img {
  width: 100%;
  display: block;
  opacity: 0.95;
}

/* ========= Split Layout / Nosotros ========= */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.video-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.video-placeholder:hover {
  transform: scale(1.02);
}

.video-overlay {
  /* Dim overlay */
  background: rgba(5, 11, 20, 0.6);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.video-placeholder:hover .video-overlay {
  background: rgba(5, 11, 20, 0.4);
}

/* ========= Flujo Automatizado ========= */
.workflow-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  height: 75px;
  width: 75px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step.highlight .step-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.step h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-divider i {
  font-size: 2rem;
  color: var(--glass-border);
}

/* ========= Services (Reutilizando Grid & Cards del Primer Intento con Imágenes) ========= */
.grid {
  display: grid;
  gap: 2rem;
}

.cards-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
}

.image-card {
  padding: 3rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.image-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.6);
}

.eco-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-color);
}

.image-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: white;
}

.image-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.eco-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.eco-link i {
  transition: transform 0.2s;
}

.eco-link:hover i {
  transform: translateX(5px);
}

/* ========= Clientes Minimalista ========= */
.client-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 2rem;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* ========= Testimonials ========= */
.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.quote-bg {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.03);
  z-index: 0;
}

.testimonial p {
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 2rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.author {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.author h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: white;
}

.author span {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

/* ========= Footer ========= */
footer {
  background: #02060c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin-top: 1rem;
}

.footer-links h4 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.contact-info li {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.contact-info i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.socials {
  display: flex;
  gap: 15px;
  font-size: 1.5rem;
}

.socials a:hover {
  color: var(--primary-color);
}

/* Keyframes */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* ========= Progress Bars ========= */
.progress-container {
  margin: 2rem 0;
}

.progress-item {
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.progress-header strong {
  color: var(--primary-color);
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  height: 100%;
  border-radius: 20px;
  transition: width 1s ease;
}

/* ========= Clients Carousel/Grid ========= */
.clients-slider-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.client-case-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.client-case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.5);
}

.client-img {
  background: #fff;
  padding: 20px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid var(--glass-border);
}

.client-img img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.client-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(5, 11, 20, 0.4);
  border-radius: 0 0 12px 12px;
}

.client-content span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: bold;
}

.client-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: white;
  margin: 0;
}

/* ========= Review Stars ========= */
.stars {
  color: #facc15;
  font-size: 1.2rem;
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin-top: auto;
}

/* Media Queries */
@media (max-width: 1024px) {

  .hero-container,
  .split-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cards-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .clients-slider-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .workflow-steps {
    flex-direction: column;
  }

  .step-divider i {
    transform: rotate(90deg);
  }

  .hero-cta-group {
    justify-content: center;
  }

  .author {
    justify-content: center;
  }

  .contact-info li {
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}