/* -------------------------------------------------
   ESTILOS EXCLUSIVOS PARA INDEX.HTML
------------------------------------------------- */

/*Hero central*/
.hero {
  background:
    linear-gradient(135deg, rgba(0, 0, 51, 0.9) 0%, rgba(0, 122, 192, 0.8) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 0;
  color: white;
}

.hero-content {
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(60px, 10vw, 260px);        
  flex-wrap: nowrap;  
}

.hero-text {
  flex: 1 1 620px;
  max-width: 680px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: white;
}

.hero-text p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  color: white;
}

/* Contenedor de botones */
.hero-buttons {
  display: flex;
  gap: 18px;         
  flex-wrap: nowrap;
  margin-top: 16px;
}

/* ✅ BOTÓN BASE DEL HERO (para los 3 botones: presentar/seguir/whatsapp) */
.hero-btn {
  padding: 16px 28px;     
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  min-width: 240px;        
  text-align: center;
  text-decoration: none;

  display: block;
  line-height: 1.2;
  box-sizing: border-box;
}


.hero-buttons .hero-btn {
  flex: 1;
}


.btn-outline {
  border: 2px solid white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--color-primario);
}

/* Efectos interactivos del hero */
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------
   CTA WhatsApp dentro del hero (lado derecho)
------------------------------------------------- */
.hero-whatsapp {
  flex: 0 0 420px;     
  max-width: 420px;
  width: 100%;
  display: flex;
  justify-content:  center;
}

.wa-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(6px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.wa-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.wa-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.18);
  font-size: 22px;
  color: #25D366;
}

.wa-copy h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
}

.wa-copy p {
  margin: 4px 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
  color: #fff;
}

/* WhatsApp: color del outline (mismo shape del hero-btn) */
.btn.btn-outline.btn-whatsapp {
  border-color: #25D366;
  color: #ffffff;
  border-width: 2px;
}

.btn.btn-outline.btn-whatsapp:hover {
  background: #25D366;
  color: #0b1b12;
}

/* -------------------------------------------------
   MEJORAS SECCIONES "CÓMO FUNCIONA" Y "BENEFICIOS"
------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--color-primario);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--color-secundario);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 20px auto 0;
}

.swipe-hint {
  display: none;
}

.carousel-dots {
  display: none;
}

/* Tarjetas de proceso - Cómo funciona */
.process-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.process-step {
  flex: 1;
  min-width: 300px;
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.process-step:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-secundario);
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--color-secundario);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 50px;
  border-radius: 50%;
  margin-bottom: 25px;
}

.step-icon {
  font-size: 3rem;
  color: var(--color-secundario);
  margin-bottom: 20px;
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-primario);
}

.process-step p {
  color: #666;
}

/* Tarjetas de beneficios */
.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-card:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--color-secundario);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 122, 192, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.benefit-icon i {
  font-size: 2.5rem;
  color: var(--color-secundario);
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-primario);
}

.benefit-card p {
  color: #666;
}

/* -------------------------------------------------
   CENTRAR ICONOS, TÍTULOS Y TEXTOS EN PASOS/BENEFICIOS
------------------------------------------------- */
.info-seccion {
  padding: 60px 0;
}

.info-seccion h2 {
  text-align: center;
  margin-bottom: 40px;
}

.info-seccion .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
  text-align: center;
}

/* -------------------------------------------------
   Responsive (móviles)
------------------------------------------------- */
@media (max-width: 768px) {

  .hero {
    min-height: auto;
    padding: 24px 0 32px;
    align-items: flex-start; 
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
  }

  /* ✅ clave: matar el flex-basis grande en mobile */
  .hero-text {
    flex: 0 0 auto;
    text-align: center;
    max-width: 680px;
  }

  .hero-whatsapp {
    flex: 0 0 auto;   
    width: 100%;
    max-width: 340px;
    margin-top: 8px;  
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-btn,
  .wa-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    min-width: 0;
  }

  .hero-btn {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .wa-card {
    padding: 14px;
    border-radius: 14px;
    margin: 0 auto;
  }

  .wa-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .wa-copy h3 { font-size: 1.05rem; }
  .wa-copy p  { font-size: 0.9rem;  }

  .wa-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 20px;
  }
  .hero-text h1{
    font-size: 1.55rem;   
    line-height: 1.15;    
    margin-bottom: .9rem; 
  }

  .section-header.section-header--swipe {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    margin-bottom: 14px;
  }

  .section-header.section-header--swipe h2 {
    display: block;
    font-size: 1.7rem;
    line-height: 1.1;
    margin: 0;
  }

  .section-header.section-header--swipe h2:after {
    display: none;
  }

  .section-header.section-header--swipe p {
    display: none;
  }

  .swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a2f57;
    white-space: nowrap;
  }

  .process-container,
  .benefits-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .process-container::-webkit-scrollbar,
  .benefits-container::-webkit-scrollbar {
    display: none;
  }

  .process-step,
  .benefit-card {
    min-width: 0;
    padding: 16px 14px;
    border-radius: 14px;
    scroll-snap-align: start;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  }

  .process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num title"
      "text text";
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
  }

  .process-step:hover,
  .benefit-card:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  }

  .process-step .step-icon,
  .benefit-card .benefit-icon {
    display: none;
  }

  .process-step .step-number {
    grid-area: num;
    display: inline-grid;
    place-items: center;
    text-align: center;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    line-height: 1;
    margin: 0;
  }

  .process-step h3,
  .benefit-card h3 {
    font-size: 0.95rem;
    line-height: 1.2;
    margin: 0 0 6px;
  }

  .process-step h3 {
    grid-area: title;
    margin: 0;
  }

  .process-step p,
  .benefit-card p {
    font-size: 0.74rem;
    line-height: 1.3;
    margin: 0;
  }

  .process-step p {
    grid-area: text;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }

  .carousel-dots button {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: #c8cfdb;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .carousel-dots button.is-active {
    background: #08163a;
    transform: scale(1.15);
  }
}

@media (max-width: 600px) {
  body.homepage header .container {
    justify-content: center;
  }

  body.homepage header .logo {
    margin: 0 auto;
  }

  body.homepage header .logo img {
    display: block;
    margin: 0 auto;
  }
}

/*<!--Revisado em texto-->*/
