/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
 Version: 1.0
*/

:root {
  --imada-accent: var(--imada-green, #7dba3a);
  --imada-ink: #17212b;
  --imada-muted: #667085;
  --imada-line: #d9dee6;
  --imada-surface: #ffffff;
  --imada-soft: #f3f6f9;
}

.productos-archive,
.producto-single {
  color: var(--imada-ink);
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 20px 72px;
}

.productos-header {
  margin-bottom: 28px;
}

.productos-header h1,
.producto-title {
  color: var(--imada-ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.productos-header p,
.producto-desc,
.producto-card__desc {
  color: var(--imada-muted);
}

.productos-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.chip {
  align-items: center;
  border: 1px solid var(--imada-line);
  border-radius: 8px;
  color: var(--imada-ink);
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
  padding: 9px 14px;
  text-decoration: none;
}

.chip.active,
.chip:hover {
  background: var(--imada-accent);
  border-color: var(--imada-accent);
  color: #ffffff;
}

.productos-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.producto-card {
  background: var(--imada-surface);
  border: 1px solid var(--imada-line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.producto-card__content {
  padding: 20px;
}

.producto-card__title {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.producto-card__title a,
.producto-card__link {
  color: var(--imada-ink);
  text-decoration: none;
}

.producto-card__meta,
.producto-card__linea {
  margin: 0 0 10px;
}

.producto-card__linea {
  color: var(--imada-accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.producto-card__desc {
  margin: 0 0 16px;
}

.producto-card__link {
  font-weight: 800;
}

.producto-badge,
.producto-card .video-badge {
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  left: 14px;
  position: absolute;
  top: 14px;
  z-index: 3;
}

.producto-badge {
  background: var(--imada-accent);
  color: #ffffff;
  padding: 7px 10px;
}

.producto-card .video-badge {
  background: rgba(23, 33, 43, 0.86);
  border: 0;
  color: #ffffff;
  cursor: pointer;
  left: auto;
  padding: 8px 11px;
  right: 14px;
}

.imada-product-carousel {
  background: var(--imada-soft);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.imada-product-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.imada-product-carousel__track::-webkit-scrollbar {
  display: none;
}

.imada-product-carousel__slide {
  aspect-ratio: 4 / 3;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.imada-product-carousel__slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.imada-product-carousel__button {
  align-items: center;
  background: var(--imada-accent) !important;
  border: 1px solid var(--imada-accent) !important;
  border-radius: 8px;
  color: #ffffff !important;
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  height: 40px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  z-index: 2;
}

.imada-product-carousel__button:hover,
.imada-product-carousel__button:focus {
  background: #6aa82f !important;
  border-color: #6aa82f !important;
  color: #ffffff !important;
  outline: none;
}

.imada-product-carousel__button span {
  color: inherit;
  display: block;
  line-height: 1;
}

.imada-product-carousel__button--prev {
  left: 12px;
}

.imada-product-carousel__button--next {
  right: 12px;
}

.imada-product-carousel--empty {
  align-items: center;
  aspect-ratio: 4 / 3;
  color: var(--imada-muted);
  display: flex;
  font-weight: 700;
  justify-content: center;
}

.producto-hero {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.producto-galeria {
  border-radius: 8px;
}

.producto-hero__info {
  min-width: 0;
}

.producto-meta {
  border-bottom: 1px solid var(--imada-line);
  border-top: 1px solid var(--imada-line);
  margin: 22px 0;
  padding: 16px 0 6px;
}

.producto-meta p {
  margin: 0 0 10px;
}

.producto-features ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.producto-pdf,
.producto-email-btn {
  background: var(--imada-accent);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  margin-top: 16px;
  padding: 12px 16px;
  text-decoration: none;
}

.producto-contacto {
  background: var(--imada-soft);
  border-radius: 8px;
  margin-top: 24px;
  padding: 20px;
}

.producto-contacto__botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.producto-video,
.producto-content {
  grid-column: 1 / -1;
}

.producto-video__wrapper {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}

.producto-video__wrapper iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.producto-video__external {
  background: var(--imada-accent);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  margin-top: 8px;
  padding: 12px 16px;
  text-decoration: none;
}

.producto-video__external:hover,
.producto-video__external:focus {
  background: #6aa82f;
  color: #ffffff;
}

.producto-content {
  margin-top: 40px;
}

.zona-no-productos {
  background: var(--imada-soft);
  border-radius: 8px;
  padding: 28px;
}

@media (max-width: 780px) {
  .productos-archive,
  .producto-single {
    padding: 36px 16px 56px;
  }

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

  .imada-product-carousel__button {
    height: 36px;
    width: 36px;
  }
}
