/* ============================================
   Solivent Instalaciones - Static Site CSS
   Replicated from rt_clarion Joomla template
   Accent: #00AFF0 | Dark: #333 | BG: #F6F6F6
   ============================================ */

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-regular-webfont.woff') format('woff'),
       url('../fonts/roboto-regular-webfont.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-bold-webfont.woff') format('woff'),
       url('../fonts/roboto-bold-webfont.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6em;
  color: #6E6E6E;
  background: #E8E8E8 url('../images/wavy-lines.jpg') repeat;
  height: 100%;
}
a { color: #00AFF0; font-weight: bold; text-decoration: none; transition: color 0.2s ease-out; }
a:hover { color: #008fc0; }
h1, h2, h3, h4, h5 { line-height: 1.3; margin: 0 0 15px; color: #444; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* === Layout Container === */
.rt-container {
  max-width: 960px;
  margin: 0 auto;
}
.site-wrapper {
  background: transparent;
  max-width: 960px;
  margin: 0 auto;
}

/* === Top Bar === */
#rt-top {
  background: #333;
  color: #aaa;
  font-size: 12px;
}
#rt-top .rt-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
}
#rt-top .tagline { color: #ccc; }
#rt-top .social-icons { display: flex; align-items: center; gap: 8px; }
#rt-top .social-icons span { color: #aaa; }
#rt-top .social-icons a img { width: 20px; height: 20px; vertical-align: middle; opacity: 0.7; transition: opacity 0.2s; }
#rt-top .social-icons a:hover img { opacity: 1; }

/* === Navigation === */
#rt-navigation {
  background: #fff;
  border-bottom: 5px solid #00AFF0;
}
#rt-navigation .rt-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo-block a { display: block; }
.logo-block img { height: 55px; width: auto; }

/* Menu */
.main-menu { display: flex; gap: 0; }
.main-menu li { position: relative; }
.main-menu li a {
  display: block;
  padding: 0 18px;
  line-height: 70px;
  height: 70px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 0.05em;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid transparent;
  transition: background 0.2s, color 0.2s;
}
.main-menu li a:hover,
.main-menu li.active a {
  color: #00AFF0;
  background: #f8f8f8;
}
.main-menu li.active a { border-bottom: 3px solid #00AFF0; }

/* Breadcrumbs */
.breadcrumbs {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  padding: 6px 10px;
  font-size: 11px;
  color: #888;
}
.breadcrumbs a { color: #888; font-weight: normal; }
.breadcrumbs a:hover { color: #00AFF0; }
.breadcrumbs span + span::before { content: ' › '; color: #bbb; }

/* === Hero Showcase === */
#rt-showcase { overflow: hidden; }
#rt-showcase .rt-container { padding: 0; max-width: 960px; }
.rg-ss-container { width: 960px; }
.rg-ss-slice-container {
  position: relative;
  width: 960px;
  height: 300px;
  overflow: hidden;
}
.rg-ss-slice-container img { display: block; width: 960px; height: 300px; }
.rg-ss-info {
  position: absolute;
  left: 48px;
  bottom: 95px;
  width: 384px;
}
.rg-ss-title {
  display: block;
  font-size: 39px;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
  line-height: 1.1;
  margin-bottom: 4px;
}
.rg-ss-caption {
  display: block;
  font-size: 13px;
  color: #000;
  background: rgba(0, 175, 240, 0.5);
  padding: 4px 8px;
}

/* === Feature Section === */
#rt-feature {
  background: #f6f6f6;
  padding: 20px 0;
}
#rt-feature .rt-container { display: flex; gap: 20px; align-items: flex-start; padding: 0 20px; box-sizing: border-box; }
.feature-text { flex: 0 0 220px; }
.feature-text h2 {
  font-size: 1.2em;
  color: #444;
  text-transform: uppercase;
  border-bottom: 1px solid #C8C8C8;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.feature-text p { font-size: 12px; color: #666; margin-bottom: 15px; }
.readon {
  display: inline-block;
  background: #00AFF0;
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid #00AFF0;
  font-weight: bold;
  transition: background 0.2s;
}
.readon:hover { background: #008fc0; border-color: #008fc0; }

.feature-gallery { flex: 1; display: flex; gap: 15px; }
.feature-card {
  flex: 1;
  text-align: center;
  font-size: 11px;
}
.feature-card img {
  width: 175px;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.feature-card-title {
  display: block;
  color: #6E6E6E;
  font-weight: bold;
  text-transform: uppercase;
  margin: 6px 0 3px;
  font-size: 11px;
}
.feature-card-desc { color: #888; line-height: 1.3; }

/* === Main Content === */
#rt-main { padding: 20px 0; }
.page-content { background: #fff; padding: 20px; border-radius: 2px; }
.page-title {
  font-size: 1.5em;
  color: #444;
  text-transform: uppercase;
  border-bottom: 2px solid #00AFF0;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.page-intro { color: #666; margin-bottom: 20px; font-size: 13px; line-height: 1.7; }

/* Two-column category intro: text left, image right */
.category-intro {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.category-intro .category-intro-text {
  flex: 0 0 57%;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  text-align: justify;
}
.category-intro .category-intro-image {
  flex: 0 0 40%;
}
.category-intro .category-intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Category products section title */
.page-content h1 {
  font-size: 16px;
  font-weight: 700;
  color: #6E6E6E;
  margin: 0 0 8px;
}

/* === Product Grid (categories page) === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.product-category-card {
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: #fff;
}
.product-category-card:hover {
  box-shadow: 0 2px 8px rgba(0,175,240,0.2);
  border-color: #00AFF0;
}
.product-category-card a { color: inherit; font-weight: normal; display: block; }
.product-category-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.product-category-card .cat-label {
  padding: 8px 5px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  color: #555;
  line-height: 1.3;
  background: #fafafa;
}

/* === Orderby bar === */
.orderby-displaynumber {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  font-size: 12px;
  color: #666;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}
.orderby-displaynumber::after { content: ""; display: table; clear: both; }
.orderby-displaynumber .width70 { float: left; width: 70%; }
.orderby-displaynumber .width30 { float: right; width: 30%; text-align: right; }
.orderby-displaynumber .orderlistcontainer .title {
  font-weight: bold;
  color: #444;
  margin-bottom: 4px;
}
.orderlistcontainer { font-size: 12px; display: inline-block; margin: 0 15px 0 0; position: relative; }
.orderlistcontainer div.activeOrder {
  background: url('https://www.soliventinstalaciones.com/templates/rt_clarion/images/vmgeneral/arrow_down.png') right top no-repeat #fff;
  cursor: pointer;
  border: 1px solid #cac9c9;
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 24px 1px 12px;
}
.orderlistcontainer div.activeOrder a { text-decoration: none; color: #444; font-weight: normal; display: block; }
.orderlistcontainer div.orderlist {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  border: 1px solid #cac9c9;
  background: #fff;
  cursor: pointer;
  min-width: 160px;
}
.orderlistcontainer div.orderlist div { padding: 2px 12px 1px; }
.orderlistcontainer div.orderlist div:hover { color: #eee; background: #cac9c9; }
.orderlistcontainer div.orderlist a { text-decoration: none; display: block; color: #444; font-weight: normal; font-size: 12px; }
.orderby-displaynumber .display-number {
  text-align: right;
  font-size: 11px;
}
.orderby-displaynumber .display-number select {
  font-size: 11px;
  margin-top: 3px;
}

/* === Product Items Grid (subcategory pages) === */
.product-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}
.product-item-card {
  width: 158px;
  border: 1px solid #e0e0e0;
  background: #fff;
  text-align: center;
  padding: 5px 5px 8px;
  transition: box-shadow 0.2s;
}
.product-item-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.product-item-card img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.product-item-card .item-name {
  padding: 6px 4px 4px;
  font-weight: normal;
  color: #00AFF0;
  font-size: 11px;
  display: block;
}
.product-item-card .product-details {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #666;
  font-size: 11px;
  font-weight: normal;
  text-decoration: none;
}
.product-item-card .product-details:hover {
  background: #e8e8e8;
  color: #444;
}
.product-item-card .product-s-desc {
  font-size: 11px;
  color: #666;
  padding: 3px 4px;
  font-weight: normal;
  line-height: 1.4;
}

/* Trabajos realizados: manufacturer gallery table */
.category_description table { width: 100%; border-collapse: collapse; }
.category_description td { padding: 8px; vertical-align: top; font-size: 11px; color: #666; line-height: 1.4; }
.category_description td img { width: 100%; height: auto; display: block; }

/* Rejas: 3 images side by side */
.category-images-row {
  display: flex;
  gap: 5px;
  margin-top: 15px;
}
.category-images-row img {
  flex: 1;
  width: 0;
  height: auto;
  display: block;
}

/* === Trabajos Realizados Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,175,240,0.85);
  color: #fff;
  font-size: 10px;
  padding: 5px 8px;
  transform: translateY(100%);
  transition: transform 0.3s;
  line-height: 1.3;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* === Footer Bottom === */
#rt-bottom {
  background: transparent;
  color: #444;
  padding: 30px 0;
  border-top: 1px solid #ddd;
}
#rt-bottom .rt-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.footer-block h2 {
  color: #444;
  font-size: 1em;
  text-transform: uppercase;
  border-bottom: 1px solid #555;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.footer-block p { font-size: 12px; color: #444; margin-bottom: 8px; line-height: 1.5; }
.footer-block a { color: #00AFF0; font-weight: normal; }
.footer-block a:hover { color: #0088cc; }
.footer-block .social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00AFF0;
  font-size: 12px;
  margin-bottom: 8px;
  font-weight: normal;
}
.footer-block .social-link:hover { color: #0088cc; }

/* rt_clarion text-icon sprite */
.text-icon {
  display: inline-block;
  padding-left: 24px;
  background-image: url('../images/rt_clarion/typography/light/icon-set1.png');
  background-repeat: no-repeat;
}
.text-icon.info { background-position: 0px -2096px; }
.text-icon.phone { background-position: 0px -296px; }
.text-icon.email { background-position: 0px 4px; }

/* === Copyright === */
#rt-copyright {
  background: #F6F6F6;
  color: #6E6E6E;
  font-size: 13px;
  padding: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}
#rt-copyright .rt-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.copytext { color: #6E6E6E; font-size: 13px; }
.copytext a { color: #888; font-weight: normal; }
.totop-block { text-align: right; }
#gantry-totop {
    display: inline-block;
    width: 23px;
    padding: 16px;
    height: 28px;
    background: rgb(51, 51, 51) url(../images/rt_clarion/main/light/totop-arrow.png) no-repeat 50% 12px;
    border-radius: 4px;
}
.totop-desc { display: none; }

/* === Contact Page === */
.contact-form-section { padding: 10px 0; }
.contact-form-section h2 {
  font-size: 1.3em;
  color: #444;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-form-section p { color: #888; margin-bottom: 20px; font-size: 12px; }
.form-group { margin-bottom: 15px; }
.form-group label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
  font-weight: bold;
}
.form-group label .req { color: #00AFF0; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 13px;
  color: #555;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(82,168,236,0.8);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 8px rgba(82,168,236,0.6);
  outline: none;
}
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
  background: #00AFF0;
  color: #fff;
  border: none;
  padding: 9px 24px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #008fc0; }
.form-message { margin-top: 15px; padding: 10px 15px; border-radius: 2px; font-size: 12px; display: none; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-message.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* === Quienes Somos (article) === */
.article-content { padding: 10px 0; line-height: 1.8; color: #555; }
.article-content h3 { color: #00AFF0; margin-top: 20px; }

/* === Responsive === */
@media (max-width: 960px) {
  .rt-container { padding: 0 15px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  #rt-bottom .rt-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #rt-navigation .rt-container { flex-direction: column; height: auto; padding: 10px; }
  .main-menu { flex-wrap: wrap; justify-content: center; }
  .main-menu li a { line-height: 40px; height: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-items-grid { grid-template-columns: repeat(2, 1fr); }
  #rt-feature .rt-container { flex-direction: column; }
  .feature-gallery { flex-direction: column; }
  #rt-bottom .rt-container { grid-template-columns: 1fr; }
  #rt-showcase { height: 200px; }
  .slide-caption { left: 10px; bottom: 10px; max-width: 90%; }
}
