/* ==========================================
   1. RESET BÁSICO Y CONFIGURACIÓN GENERAL
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;
}

/* Ocultar Barras de Scroll manteniendo funcionalidad */
.v-container, .h-container, .panel-scrollable {
  scrollbar-width: none;
}
.v-container::-webkit-scrollbar,
.h-container::-webkit-scrollbar,
.panel-scrollable::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ==========================================
   2. ESTRUCTURA DE CONTENEDORES (DESKTOP)
   ========================================== */
/* Scroll Vertical Principal */
.v-container {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Scroll Horizontal Secundario */
.h-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Paneles Base */
.panel {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
}

.panel-scrollable {
  overflow-y: auto;
}

.panel-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
}
.panel-content.wide {
  max-width: 1100px;
}

/* ==========================================
   3. PALETA MONOCROMÁTICA Y TIPOGRAFÍA
   ========================================== */
.bg-black { background-color: #0a0a0a; }
.bg-dark-gray { background-color: #141414; }
.bg-mid-gray { background-color: #262626; }
.bg-light-gray { background-color: #f0f0f0; }
.bg-white { background-color: #ffffff; }

.text-white { color: #ffffff; }
.text-black { color: #0a0a0a; }

h1 { font-size: 3.2rem; letter-spacing: -1.5px; font-weight: 300; margin: 0.5rem 0; }
h2 { font-size: 2.4rem; letter-spacing: -1px; margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { font-size: 1.05rem; line-height: 1.6; opacity: 0.85; }
.subtitle { max-width: 650px; margin: 0 auto 1.5rem auto; }
.section-desc { margin-bottom: 2rem; }

.badge {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}

/* ==========================================
   4. COMPONENTES (Métricas, Botones, Cards)
   ========================================== */
/* Métricas Hero */
.metrics-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.metric-item { display: flex; flex-direction: column; }
.metric-num { font-size: 1.8rem; font-weight: bold; }
.metric-label { font-size: 0.8rem; opacity: 0.7; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-solid { background-color: #ffffff; color: #000000; }
.btn-solid:hover { background-color: #e0e0e0; }
.btn-outline { border: 1px solid #ffffff; color: #ffffff; background: transparent; }
.btn-outline:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; justify-content: center; margin-top: 1rem; }
.btn-lg { font-size: 1.1rem; padding: 1rem 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }

/* Cards de Precios */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: left;
  margin-top: 1.5rem;
}
.card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card.featured { border-color: #ffffff; background-color: #262626; }
.card .tag { position: absolute; top: -10px; right: 15px; background: #ffffff; color: #000; font-size: 0.7rem; font-weight: bold; padding: 2px 8px; border-radius: 4px; }
.card .price { font-size: 1.8rem; font-weight: bold; margin: 0.5rem 0 1rem 0; }
.card ul { list-style: none; font-size: 0.9rem; line-height: 1.8; opacity: 0.8; }
.promos-list li { margin-bottom: 0.5rem; }

.express-banner {
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

/* Features ATS & PyME Steps */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.feature-box { background: rgba(255, 255, 255, 0.05); padding: 1.5rem; border-radius: 6px; }
.feature-box .icon { font-size: 2rem; margin-bottom: 0.5rem; }

.pyme-steps { display: flex; flex-direction: column; gap: 0.8rem; text-align: left; max-width: 500px; margin: 1.5rem auto; }
.pyme-step { display: flex; align-items: center; gap: 1rem; background: rgba(255, 255, 255, 0.05); padding: 0.8rem; border-radius: 4px; }
.pyme-step span { background: #fff; color: #000; font-weight: bold; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.8rem; }

/* Proceso & FAQ */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; text-align: left; margin: 1.5rem 0; }
.step-card { border: 1px solid #ddd; padding: 1rem; border-radius: 6px; }
.step-num { font-size: 1.2rem; font-weight: bold; opacity: 0.4; }

.faq-list { text-align: left; max-width: 700px; margin: 1rem auto; }
details { border-bottom: 1px solid #ddd; padding: 0.8rem 0; cursor: pointer; }
summary { font-weight: 500; }
details p { font-size: 0.9rem; margin-top: 0.5rem; opacity: 0.8; }

/* Grilla de Testimonios & Lightbox */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.testimonial-card {
  position: relative;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); border-color: #ffffff; }
.testimonial-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}
.testimonial-card:hover .testimonial-img { filter: grayscale(0%); }
.zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.75rem;
  padding: 4px 8px; border-radius: 4px; opacity: 0.8;
}

.lightbox {
  display: none; position: fixed; z-index: 2000;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center; align-items: center;
}
.lightbox-content { max-width: 90%; max-height: 85vh; border-radius: 8px; border: 1px solid #444; }
.close-lightbox { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }

/* Indicadores / Floating Nav & WhatsApp */
.dots-nav {
  position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1rem; z-index: 1000;
}
.dot-group { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent; cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.dot.sub-dot { width: 6px; height: 6px; }
.dot.active { background-color: #fff; transform: scale(1.3); }
.dots-nav.theme-dark .dot { border-color: rgba(0,0,0,0.6); }
.dots-nav.theme-dark .dot.active { background-color: #000; }

.btn-whatsapp-fixed {
  position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px;
  background-color: #25d366; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1000; text-decoration: none;
}

.scroll-hint { position: absolute; bottom: 1.5rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.4; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }

/* ==========================================
   5. REGLAS RESPONSIVE UNIFICADAS (MOBILE)
   ========================================== */
@media (max-width: 768px) {

  /* Permite scroll libre de la pagina en cel */
  body, html {
    overflow-y: auto !important;
  }

  /* 1. Transformamos la sección horizontal en vertical nativa */
  .h-container {
    display: block !important;
    width: 100vw !important;
    height: auto !important;
    overflow: visible !important;
  }

  .h-container .panel {
    width: 100vw !important;
    min-height: 100vh !important;
    height: auto !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  /* 2. Ocultamos indicadores innecesarios en mobile */
  .dots-nav,
  .horizontal-hint,
  .scroll-hint {
    display: none !important;
  }

  /* 3. Badge en 1 sola línea */
  .badge {
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 3px 8px;
    white-space: nowrap;
    display: inline-block;
  }

  /* 4. Métricas en 1 sola fila de 3 columnas */
  .metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem;
    margin: 1.2rem 0;
  }

  .metric-num { font-size: 1.3rem; }
  .metric-label { font-size: 0.7rem; line-height: 1.2; }

  /* 5. Títulos y Cards adaptadas */
  h1 { font-size: 2.3rem; line-height: 1.1; }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .card { padding: 1.2rem; }
}