/* === TEXTO JUSTIFICADO === */
body {
  text-align: justify !important;
}
.acm-hero p,
.acm-hero .hero-intro,
.acm-hero .hero-heading {
  text-align: justify;
}

/* === HERO: centrar video === */
.hero-2 .dsyp-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.hero-2 .dsyp-video-wrapper video {
  width: 100% !important;
  height: auto !important;
}

/* === FOOTNAV: nombre del sitio en dos líneas === */
#t4-footnav .t4-col.logo .site-name {
  display: block;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
}

/* === FOOTER: texto justificado === */
#t4-footer p, #t4-footer .hero-heading,
#t4-footnav p, #t4-footnav li,
#t4-footnav .module-title {
  text-align: justify;
}

/* === NAVBAR: degradado de color === */
.t4-palette-primary.t4-sticky {
  background: linear-gradient(90deg, #b87fc4, #7eb8d4, #8b7fc4) !important;
}

/* === TALLERES: card completo clickable === */
.taller-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.taller-card-link:hover {
  color: inherit;
  text-decoration: none;
}

/* === SECCIÓN TALLERES (estilo Our Services) === */
#t4-section-2 .taller-horario {
  font-size: 0.9rem;
  color: #23929A;
  font-weight: 600;
  margin: 4px 0 8px;
}
#t4-section-2 .taller-horario i {
  margin-right: 5px;
}

/* === GALERÍA CATEGORÍAS PRODUCTOS === */
.categories-gallery .item-content-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
}
.categories-gallery .item-content-wrap a.category-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.categories-gallery .item-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.categories-gallery .item-content-wrap:hover .item-image img {
  transform: scale(1.05);
}
.categories-gallery .category-no-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #2c3e50, #3498db);
}
.categories-gallery .item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 40px 20px 20px;
  transition: background 0.3s ease;
}
.categories-gallery .item-content-wrap:hover .item-info {
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.categories-gallery .item-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.categories-gallery .category-desc-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin: 8px 0 0;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .categories-gallery .item-image img,
  .categories-gallery .category-no-image {
    height: 220px;
  }
}

/* === SECCIÓN CONTACTO: contacto izquierda, foto derecha === */
#t4-section-8 .section-8 .module-head-group {
  display: none;
}
#t4-section-8 .section-8 .module-ct {
  flex: 0 0 100%;
  max-width: 100%;
}
#t4-section-8 .t4-row {
  display: flex;
}
#t4-section-8 .section-8 {
  order: 1;
}
#t4-section-8 .section-8-spacer {
  order: 2;
}

/* === ARTÍCULOS PRODUCTOS: imágenes uniformes === */
.com-content-category-blog .item-image {
  height: 260px;
  overflow: hidden;
  margin: 0 0 15px 0;
}
.com-content-category-blog .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}
.com-content-category-blog .item:hover .item-image img {
  transform: scale(1.07);
}
.com-content-category-blog .item-image a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* === ARTÍCULO TALLER: ocultar metadatos (author, categoría, fecha, vistas) === */
.item-149 .article-info {
  display: none !important;
}

/* === OCULTAR HERO en páginas Talleres y Productos === */
.item-149 #t4-masthead,
.item-146 #t4-masthead {
  display: none !important;
}

/* === FORMULARIO RSFORM (página Contáctanos) === */
#t4-mainbody #userForm {
  max-width: 680px;
  margin: 0 auto;
}
#t4-mainbody #userForm h2 {
  font-size: 1.5rem;
  color: #2e2a4a;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid #b87fc4;
}
#t4-mainbody #userForm .formControlLabel {
  color: #2e2a4a;
  font-weight: 600;
  font-size: 0.9rem;
}
#t4-mainbody #userForm .formRequired {
  color: #b87fc4;
  margin-left: 2px;
}
#t4-mainbody #userForm .rsform-input-box,
#t4-mainbody #userForm .rsform-captcha-box {
  border: 1.5px solid #d1c4e9;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.97rem;
  color: #2e2a4a;
  background: #fafafa;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#t4-mainbody #userForm .rsform-input-box:focus,
#t4-mainbody #userForm .rsform-captcha-box:focus {
  border-color: #b87fc4;
  box-shadow: 0 0 0 3px rgba(184, 127, 196, 0.18);
  background: #fff;
  outline: none;
}
#t4-mainbody #userForm .formNoError {
  display: none;
}
#t4-mainbody #userForm .rsform-submit-button {
  background: linear-gradient(90deg, #b87fc4, #8b7fc4);
  border: none;
  border-radius: 6px;
  padding: 11px 36px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.2s ease;
}
#t4-mainbody #userForm .rsform-submit-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
#t4-mainbody .rsform-thankyou,
#t4-mainbody .formSuccess {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 16px 20px;
  color: #166534;
  font-weight: 500;
}
@media (max-width: 768px) {
  #t4-mainbody #userForm {
    padding: 0 8px;
  }
}

/* === ARTÍCULO TALLER (vista individual) === */
.item-149 .com-content-article.item-page {
  max-width: 680px;
  margin: 0 auto;
}
.item-149 .page-header h2 {
  font-size: 1.8rem;
  color: #2e2a4a;
  padding-bottom: 14px;
  border-bottom: 2px solid #b87fc4;
  margin-bottom: 24px;
}
.item-149 .fields-container {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.item-149 .field-entry {
  background: #f5f0fa;
  border: 1.5px solid #d1c4e9;
  border-radius: 6px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.item-149 .field-label {
  color: #2e2a4a;
  font-weight: 600;
}
.item-149 .field-value {
  color: #23929A;
  font-weight: 500;
}
.item-149 .article-body {
  color: #3a3550;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 20px;
}
.item-149 .pagenavigation {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #d1c4e9;
}
.item-149 .pagenavigation .btn {
  background: linear-gradient(90deg, #b87fc4, #8b7fc4);
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 600;
  transition: opacity 0.25s ease;
}
.item-149 .pagenavigation .btn:hover {
  opacity: 0.85;
  color: #fff;
}
@media (max-width: 768px) {
  .item-149 .com-content-article.item-page {
    padding: 0 8px;
  }
}

/* === PRODUCTOS: vista lista de categoría === */
.item-146 .com-content-category-blog .item {
  background: #fff;
  border: 1.5px solid #d1c4e9;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}
.item-146 .com-content-category-blog .item:hover {
  box-shadow: 0 6px 24px rgba(184,127,196,0.18);
  transform: translateY(-3px);
}
.item-146 .com-content-category-blog .page-header {
  padding: 12px 16px 8px;
  margin: 0;
  border-bottom: none;
}
.item-146 .com-content-category-blog .page-header h2 {
  font-size: 1.1rem;
  color: #2e2a4a;
  font-weight: 700;
  margin: 0;
}
.item-146 .com-content-category-blog .page-header h2 a {
  color: #2e2a4a;
  text-decoration: none;
  transition: color 0.2s ease;
}
.item-146 .com-content-category-blog .page-header h2 a:hover {
  color: #b87fc4;
}
.item-146 .com-content-category-blog .item-intro {
  padding: 0 16px 16px;
  color: #5a5070;
  font-size: 0.9rem;
  line-height: 1.6;
}
.item-146 .com-content-category-blog .items-row {
  row-gap: 24px;
}
.item-146 .com-content-category-blog > .page-header h2,
.item-146 .com-content-category-blog > .page-header h1 {
  font-size: 1.8rem;
  color: #2e2a4a;
  padding-bottom: 14px;
  border-bottom: 2px solid #b87fc4;
  margin-bottom: 28px;
}

/* === PRODUCTOS: artículo individual === */
.item-146 .com-content-article.item-page.project-page {
  max-width: 820px;
  margin: 0 auto;
}
.item-146 .item-page.project-page .page-header h2 {
  font-size: 1.8rem;
  color: #2e2a4a;
  padding-bottom: 14px;
  border-bottom: 2px solid #b87fc4;
  margin-bottom: 24px;
}
.item-146 .item-page.project-page figure.pull-left.item-image {
  float: left;
  width: 45%;
  max-width: 380px;
  margin: 0 28px 16px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #d1c4e9;
}
.item-146 .item-page.project-page figure.pull-left.item-image img {
  width: 100%;
  height: auto;
  display: block;
}
.item-146 .item-page.project-page .com-content-article__body {
  color: #3a3550;
  font-size: 1.05rem;
  line-height: 1.75;
}
.item-146 .item-page.project-page .pagenavigation {
  clear: both;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #d1c4e9;
}
.item-146 .item-page.project-page .pagenavigation .btn {
  background: linear-gradient(90deg, #b87fc4, #8b7fc4);
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 600;
  transition: opacity 0.25s ease;
}
.item-146 .item-page.project-page .pagenavigation .btn:hover {
  opacity: 0.85;
  color: #fff;
}
@media (max-width: 768px) {
  .item-146 .com-content-category-blog .col-12 {
    margin-bottom: 0;
  }
  .item-146 .item-page.project-page figure.pull-left.item-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
  }
  .item-146 .com-content-article.item-page.project-page {
    padding: 0 8px;
  }
}

/* === SECTION-8: imagen derecha visible completa === */
#t4-section-8 .section-8-spacer {
  display: flex;
  align-items: stretch;
}
#t4-section-8 .section-8-spacer .custom {
  flex: 1;
  min-height: 420px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* === CAPTCHA: alinear imagen e input === */
#t4-mainbody #userForm .rsform-block-captcha .formControls .row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
#t4-mainbody #userForm .rsform-block-captcha .formControls .row > div {
  width: 100%;
  text-align: left;
}
#t4-mainbody #userForm .rsform-block-captcha img {
  display: block;
  margin: 0;
}
#t4-mainbody #userForm .rsform-block-captcha p {
  margin: 0;
}

/* === TÍTULOS DE SECCIÓN (Sobre mí, Talleres, Nuestros Productos) === */
#t4-section-1 .module-title,
#t4-section-2 .module-title,
#t4-section-4 .module-title {
    font-size: 2rem !important;
}

/* === Título "Nuestros Productos" encima de las tarjetas === */
#Mod147 .module-inner > .row {
    flex-direction: column;
}
#Mod147 .module-head-group {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}
#Mod147 .module-ct {
    flex: 0 0 100%;
    max-width: 100%;
}

/* === SECTION-8: ocultar título lateral, texto ocupa todo el ancho === */
#t4-section-8 .section-8 .module-head-group.col-md-4 {
    display: none !important;
}

#t4-section-8 .section-8 .module-ct.col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
}
