/* --- 1. Global Styles & Variables --- */
:root {
  --primary-blue: #0A6EFA;
  --dark-blue: #1E293B;
  --text-dark: #111827;
  --text-muted: #4B5563;
  --bg-light: #F8FAFC;
  --border-light: #E2E8F0;
  --white: #FFFFFF;
  --font-family: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 24px;
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

p {
  font-size: 16px;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0056d6;
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}

.btn-ghost:hover {
  background-color: #e7f1ff;
}

/* --- 2. Header & Navigation --- */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

header.sticky {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}


.logo img {
  height: 80px; /* ajusta el tamaño del logo */
  width: auto; /* mantiene la proporción */
  display: block; /* elimina espacios raros */
}

.logo span {
  color: var(--text-muted);
  font-weight: bold;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none; /* sin subrayado */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.nav-cta {
  display: flex;
  gap: 16px;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
}

/* --- 3. Hero Section --- */
#hero {
  padding-top: 160px; /* Account for sticky header */
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Clase que muestra el video (visible) */
.hero-video.visible {
  opacity: 1;
  z-index: 2;
}

/* --- 4. Social Proof Section --- */
#social-proof {
  background-color: var(--bg-light);
}

#social-proof h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.logos-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-placeholder {
  width: 120px;
  height: 40px;
  background-color: #ccc;
  border-radius: 8px;
}

/* --- 5. Problem & Features Section Shared Styles --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  margin-top: 64px;
}

.feature-item .img-title {
  margin: 0 auto 16px;
  background-size: cover; /* ajusta la imagen a todo el div */
  background-position: center; /* centra la imagen */
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item .feature-item-img-1 {
  background-image: url('../img/2-1.png');
}

.feature-item .feature-item-img-2 {
  background-image: url('../img/2-2.png');
}

.feature-item .feature-item-img-3 {
  background-image: url('../img/2-3.png');
}

.lang-switch button {
  border: 0;
  padding: 0;
  width: 24px;
  cursor: pointer;
}

/* --- 6. Solution Section --- */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.solution-visual {
  background-size: cover; /* ajusta la imagen a todo el div */
  background-position: center; /* centra la imagen */
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-visual-img {
  background-image: url('../img/4-3.png');
}

.solution-sec-img {
  background-image: url('../img/3.png');
}

.solution-content .benefit-list {
  list-style: none;
  margin-top: 24px;
}

.solution-content .benefit-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.solution-content .benefit-list .icon-placeholder {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
}

.solution-content .benefit-list strong {
  display: block;
}

/* --- 7. How It Works --- */
#how-it-works {
  background-color: var(--bg-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
  text-align: center;
}

.step-item h3 {
  margin-top: 16px;
}

/* --- 8. Security Section --- */
/* Re-uses .solution-grid styles */

/* --- 9. Use Cases Section --- */
/* Simple Tab Structure */
.tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.tab {
  padding: 10px 20px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

.tab.active {
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- 10. Pricing --- */
#pricing {
  background-color: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.pricing-card.highlighted {
  border: 2px solid var(--primary-blue);
  transform: scale(1.05);
}

.pricing-card h3 {
  font-size: 24px;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 700;
  margin: 16px 0;
}

.pricing-card .features-list {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.pricing-card .features-list li {
  margin-bottom: 12px;
}

/* --- 11. Final CTA --- */
#cta {
  background-color: var(--dark-blue);
  color: var(--white);
  text-align: center;
}

#cta h2 {
  color: var(--white);
}

#cta p {
  color: #cbd5e1;
  max-width: 600px;
  margin: 16px auto 32px;
}

/* --- 12. Footer --- */
footer {
  background-color: var(--dark-blue);
  color: #cbd5e1;
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #334155;
}

/* --- 13. Responsive Styles --- */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-120%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-grid, .solution-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    grid-row: 1;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .feature-grid, .steps-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.highlighted {
    transform: scale(1);
  }

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