/* ===================================================
   VARIABLES Y BASE
   =================================================== */
:root {
  --primary-accent: #ab8557;
  --accent-light: #eef3ff;
  --text-dark: #1e242b;
  --text-muted: #5e6d7e;
  --border-subtle: #eaedf1;
  --bg-card: #ffffff;
  --bg-section: #f7f9fb;
  --radius-card: 16px;
  --radius-badge: 10px;
}

.prev__container{
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    flex-direction: column-reverse;
}

.prev__demo{
    height: 150px;
    width: 80%;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    border-radius: 10px;
    background-position: top;
    background-size: cover;
    margin-bottom: 20px;
    text-decoration: none;
    overflow: hidden;
    
    
}

.prev__demo p{
    color: rgb(255, 255, 255);;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.082);
    padding: 10px 100%;
    align-self: flex-end;
        -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

h2{
    margin: 10px;
    font-size: 30px;
    font-weight: 600;
    color: var(--carton)
}


.bienvenida__container{
    height: 30vh;
    background-image: url(../content/banner/banner-welcome.jpg);
    background-position: center;
    background-size: cover;
    color: white;
    display: flex;
    text-align: center;
    align-items: center;
    line-height: 30px;
}

.tap__container{
    display: flex;
    flex-direction: column;
    margin: 30px 0 10px 0;
    text-align: center;
}




/* ===================================================
   1. BARRA DE CONFIANZA / STATS (MOBILE-FIRST)
   =================================================== */
.trust-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px 16px;
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  margin: 24px auto;
  width: 90%;
  max-width: 960px;
  text-align: center;
}

.stat-item {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================================================
   2. GRID DE BENEFICIOS / DIFERENCIADORES (MOBILE)
   =================================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 36px auto;
  box-sizing: border-box;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-badge);
  background: var(--accent-light);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px 0;
}

.benefit-card p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================
   3. SECCIÓN CÓMO FUNCIONA / PASOS (MOBILE)
   =================================================== */
.steps-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 40px auto;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
}

.steps-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.step-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text-dark);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.step-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px 0;
}

.step-box p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================================
   4. MEJORA RESPONSIVE PARA EL CATÁLOGO (.prev__container)
   =================================================== */
/* En móvil se mantiene a 1 columna */
.prev__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 90%;
  max-width: 1040px;
  margin: 0 auto 28px auto;
  box-sizing: border-box;
}

.prev__demo {
  height: 160px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 12px;
  background-position: top;
  background-size: cover;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prev__demo p {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  text-align: center;
}

/* ===================================================
   MEDIA QUERIES: PANTALLAS MEDIANAS (TABLETS >= 640px)
   =================================================== */
@media (min-width: 640px) {
  .trust-bar {
    grid-template-columns: repeat(3, 1fr);
    padding: 22px 20px;
  }

  .stat-item:not(:last-child) {
    border-right: 1px solid var(--border-subtle);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .prev__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* ===================================================
   MEDIA QUERIES: ESCRITORIO (DESKTOP >= 1024px)
   =================================================== */
@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .prev__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .prev__demo {
    height: 180px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .prev__demo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .stat-item strong {
    font-size: 1.6rem;
  }
}