/* Contenedor principal del hero */
.hero-productos {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background-color: var(--color-white);
  width: 100%;
  text-align: center;
  font-size: var(--font-size-24);
  color: var(--color-gray-200);
  font-family: var(--font-montserrat);
}
/* Banner adaptable */
.hero-banner {
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));
  object-fit: cover;
  display: block;
  max-width: none;
  height: auto;
}

.hero-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Textos del hero */

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-text h1,
.hero-text h2,
.hero-text h3 {
  text-transform: uppercase;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  font-size: var(--font-size-24);
}
.linea-decorativa {
  margin: 0.5rem auto 1.5rem; /* Espaciado vertical */
  width: 80%;                /* Se adapta al contenedor */
  max-width: 600px;          /* Tope de ancho */
  height: 4px;
  border-top: 2px solid var(--color-yellowgreen-100);
  box-sizing: border-box;
}
.hero-text .intro {
  font-size: var(--font-size-14);
  font-weight: 500;
  max-width: 375px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.asesoria-boton {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-orange);
  border: none;
  text-decoration: none;
  border-radius: 17px;
  width: 90%;         /* Responsive: se adapta al contenedor */
  max-width: 320px;   /* Límite en desktop */
  height: 45px;
  margin: 2rem auto;
  cursor: pointer;
}

.solicita-asesora-gratis {
  font-size: 18px;
  font-family: var(--font-montserrat);
  font-weight: 600;
  color: var(--color-white);
  text-align: center;
  line-height: 1.2;
  text-decoration: none;
}

/* Ajustes en desktop */
@media (min-width: 768px) {
  .hero-banner {
    height: 50vh;
  }
  .hero-productos {
    padding: 0;
  }
  .hero-text {
    align-items: center;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text h3 {
    font-size: 24px;
  }

  .hero-text .intro {
    font-size: 18px;
    max-width: 680px;
    margin-top: 1rem;
  }
}
.lineas-productos {
  padding: 2rem 1rem;
  max-width: 1500px;
  margin: auto;
}

.lineas-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.lineas-texto p {
  font-size: var(--font-size-14);
  font-weight: 350;
  font-family: var(--font-montserrat);
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-gray-200);
  text-transform: none;
}

.lineas-iconos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  row-gap: 2 rem;
}

.icono-linea {
  width: 100px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--font-size-10);
  color: var(--color-yellowgreen-100);
  text-transform: uppercase;
  flex: 1 1 80px;
  max-width: 100px;
}

.icono-linea img {
  width: 60px;
  height: auto;
  max-height: 60px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.download-icon {
  width: 20px;
  height: 20px;
  margin-right: 1rem;
  fill: var(--color-white);
}

.separador-vertical {
  display: none; /* solo visible en desktop */
}

/* DESKTOP STYLES */
@media (min-width: 768px) {
  .lineas-contenido {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
  }

  .lineas-texto {
    flex: 1;
    font-size: var(--font-size-40);
    padding-right: 2rem;
    text-align:justify;
    display: flex;
    justify-content:center
  }
  
  .lineas-texto p {
    text-align: right;
  }  

  .lineas-iconos {
    flex: 1;
    justify-content: flex-start;
  }

  .separador-vertical {
    display: block;
    width: 1px;
    height: 120px;
    background-color: var(--color-yellowgreen-100);
    margin: 0 2rem;
  }
}
.productos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1rem;
  justify-items: center;
}

.tarjeta-producto {
  background-color: white;
  border-radius: 18px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  font-family: var(--font-montserrat);
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease;
}

.tarjeta-producto img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.tarjeta-producto h3 {
  font-size: 20px;
  color: var(--color-gray-200);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tarjeta-producto p {
  font-size: 15px;
  color: var(--color-gray-200);
  font-weight: 500;
  text-transform: none;
}

.btn-vermas {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--color-orange);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 17px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

/* Responsive Columns */
@media (min-width: 768px) {
  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .productos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .productos-grid:has(.tarjeta-producto:nth-child(3n+2):last-child),
  .productos-grid:has(.tarjeta-producto:nth-child(3n+1):last-child) {
    grid-template-columns: 1fr 1fr;
  }
  .productos-grid:has(.tarjeta-producto:only-child) {
    grid-template-columns: 1fr;
  }
}

/* Scroll animation */
.tarjeta-producto.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.beneficios-video {
  text-align: center;
  padding: 2rem 1rem;
}

.beneficios-lista {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.beneficio {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 150px;
}

.beneficio img {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.beneficio p {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-gray-200);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Video embebido */
.video-fullwidth {
  width:100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));
}

.video-wrapper {
  aspect-ratio: 16 / 9;
  width: 90%;        
  max-width: 1920px;  
  margin: 0 auto;   
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Botón de CTA */
.cta-container {
  text-align: center;
  margin-top: 1rem;
}

.btn-asesoria {
  background-color: var(--color-orange);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .beneficios-lista {
    flex-direction: row;
    justify-content: space-around;
  }

  .beneficio {
    max-width: none;
  }
}
/* Animación Fade-Down + Zoom-In */
@keyframes fadeDownZoom {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(-40px) scale(0.95);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  animation: fadeDownZoom 1s ease forwards;
}
/* ===== Ajustes específicos para la página de Blog ===== */
.page-blog .productos-grid .tarjeta-producto {
  opacity: 1;           /* visibles desde el inicio */
  transform: none;      /* sin desplazamiento inicial */
}

.page-blog .productos-grid .tarjeta-producto img {
  object-fit: cover;    /* la imagen llena bien la tarjeta */
}
/* Hero visible aunque tenga animate-on-scroll */
.page-blog .hero-banner.animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}