/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: #383838;
  background: #f6fbff;
  border-top: 5px solid #15445a;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #15445a; text-decoration: none; transition: color .2s; }
a:hover { color: #54a0c6; }
ul { list-style: none; }
strong { font-weight: 700; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: #15445a; line-height: 1.3; }
h1 { font-size: 24px; margin-bottom: 15px; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 10px; }
h4 { font-size: 14px; margin-bottom: 8px; }
p { margin-bottom: 12px; }

/* ===== LAYOUT ===== */
.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  padding: 20px 0 0;
  border-bottom: 1px solid #e8e8e8;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
}
.logo img { max-height: 60px; }
.header-contact { text-align: right; font-size: 12px; }
.header-contact .phone {
  font-size: 18px;
  font-weight: 700;
  color: #15445a;
  display: block;
  margin-bottom: 2px;
}
.header-contact .phone::before { content: '\260E\00a0'; }
.header-contact .email a { color: #54a0c6; }

/* ===== NAVIGATION ===== */
.main-nav { background: #15445a; }
.main-nav .container { padding: 0; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background .2s;
}
.nav-list > li > a:hover,
.nav-list > li.active > a { background: #54a0c6; color: #fff; }
.nav-list > li > a.has-dropdown::after { content: ' \25BE'; font-size: 10px; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
  z-index: 100;
  border-top: 2px solid #54a0c6;
}
.nav-list > li:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 16px;
  color: #383838;
  font-size: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.dropdown li a:hover { background: #f6fbff; color: #54a0c6; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: #15445a;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
}
.nav-toggle:hover { background: #1a5570; }

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #15445a;
  max-height: 420px;
}
.hero-slider .slides { position: relative; }
.hero-slider .slide {
  display: none;
  position: relative;
}
.hero-slider .slide:first-child { display: block; }
.hero-slider .slide img { width: 100%; height: 420px; object-fit: cover; }
.hero-slider .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(21,68,90,.8);
  color: #fff;
  padding: 20px 30px;
}
.hero-slider .slide-caption h2 { color: #fff; font-size: 22px; margin-bottom: 5px; }
.hero-slider .slide-caption p { color: rgba(255,255,255,.9); margin: 0; font-size: 13px; }
.slider-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 10;
  display: flex;
  gap: 8px;
}
.slider-btn {
  background: rgba(255,255,255,.3);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 3px;
  transition: background .2s;
}
.slider-btn:hover { background: rgba(255,255,255,.5); }

/* ===== INFOBOX ===== */
.infobox {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #54a0c6;
  padding: 25px 30px;
  margin: 30px 0;
}
.infobox h1 { font-size: 22px; margin-bottom: 5px; }
.infobox h3 { color: #54a0c6; font-weight: 300; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.infobox p { font-size: 13px; line-height: 1.8; margin: 0; }

/* ===== ICON BOXES (homepage) ===== */
.icon-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 30px 0;
}
.icon-box {
  text-align: center;
  padding: 25px 15px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  transition: box-shadow .2s, border-color .2s;
}
.icon-box:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); border-color: #54a0c6; }
.icon-box-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box-icon img { width: 50px; height: 50px; }
.icon-box h4 { margin-bottom: 8px; }
.icon-box h4 a { color: #15445a; }
.icon-box h4 a:hover { color: #54a0c6; }
.icon-box p { font-size: 12px; margin: 0; }

/* ===== CATALOG GRID / GALLERY GRID ===== */
.catalog-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}
.catalog-item, .gallery-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.catalog-item:hover, .gallery-item:hover { box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.catalog-item .item-image, .gallery-item .item-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.catalog-item .item-image img, .gallery-item .item-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .3s;
}
.catalog-item:hover .item-image img,
.gallery-item:hover .item-image img { transform: scale(1.05); }
.item-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,68,90,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.catalog-item:hover .item-overlay,
.gallery-item:hover .item-overlay { opacity: 1; }
.item-overlay span {
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.catalog-item h4 { padding: 12px; font-size: 12px; text-align: center; }
.catalog-item h4 a { color: #15445a; }
/* ===== CATALOG ITEM PRICES ===== */
.catalog-item-body { padding: 12px 14px 14px; }
.catalog-item-body h4 { font-size: 13px; margin-bottom: 6px; color: #15445a; }
.catalog-item-desc { font-size: 12px; color: #666; margin-bottom: 10px; line-height: 1.5; }
.catalog-item-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-old { font-size: 13px; color: #999; text-decoration: line-through; }
.price-outlet { font-size: 16px; font-weight: 700; color: #d4542a; }
.price-consultar { font-size: 13px; color: #15445a; font-style: italic; }
.price-badge { background: #d4542a; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; letter-spacing: .5px; }


/* ===== TESTIMONIALS ===== */
.testimonials { margin: 30px 0; }
.testimonial {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
}
.testimonial p { font-style: italic; font-size: 13px; line-height: 1.8; margin-bottom: 15px; }
.testimonial-meta { font-size: 12px; font-weight: 600; color: #15445a; }
.testimonial-meta .grey { color: #999; font-weight: 400; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 25px 0 15px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 25px;
}
.page-header h1 { margin-bottom: 0; font-size: 22px; }

/* ===== CONTENT WITH SIDEBAR ===== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 30px;
  padding: 25px 0 40px;
}
.content-full { padding: 25px 0 40px; }

/* ===== MAIN CONTENT ===== */
.entry-slider {
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.entry-slider .slides { position: relative; }
.entry-slider .slide { display: none; }
.entry-slider .slide:first-child { display: block; }
.entry-slider .slide img { width: 100%; max-height: 400px; object-fit: cover; cursor: pointer; }
.entry-slider .slider-controls { bottom: 10px; right: 10px; }

.entry-body { margin-bottom: 25px; }
.entry-title { font-size: 20px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #e8e8e8; }
.entry-quote {
  border-left: 3px solid #54a0c6;
  padding: 12px 20px;
  background: #f6fbff;
  margin-bottom: 15px;
  font-size: 13px;
}
.entry-content { font-size: 13px; line-height: 1.8; }
.entry-content p { margin-bottom: 12px; }
.entry-content ul { list-style: disc; margin-left: 20px; margin-bottom: 12px; }
.entry-content li { margin-bottom: 5px; }

/* ===== VIDEO EMBED ===== */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 25px 0;
  border-radius: 3px;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== SIDEBAR ===== */
.sidebar .widget {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  padding: 18px;
  margin-bottom: 20px;
}
.sidebar .widget h3 {
  font-size: 14px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid #54a0c6;
}
.sidebar .widget-menu ul { list-style: none; }
.sidebar .widget-menu li { border-bottom: 1px solid #f0f0f0; }
.sidebar .widget-menu li:last-child { border-bottom: none; }
.sidebar .widget-menu a {
  display: block;
  padding: 8px 0;
  font-size: 12px;
  color: #383838;
}
.sidebar .widget-menu a:hover { color: #54a0c6; padding-left: 5px; }
.sidebar .widget-menu .sub-menu { padding-left: 15px; }
.sidebar .widget-menu .sub-menu a { font-size: 11px; }

.sidebar .latest-posts li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.sidebar .latest-posts li:last-child { border-bottom: none; }
.sidebar .latest-posts a { font-size: 12px; font-weight: 600; display: block; margin-bottom: 4px; }
.sidebar .latest-posts span { font-size: 11px; color: #888; line-height: 1.5; }

.sidebar .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sidebar .tags a {
  display: inline-block;
  padding: 3px 10px;
  background: #f6fbff;
  border: 1px solid #e0e0e0;
  font-size: 11px;
  border-radius: 2px;
  color: #555;
}
.sidebar .tags a:hover { background: #54a0c6; color: #fff; border-color: #54a0c6; }

/* ===== GALLERY SECTION ===== */
.gallery-section { margin-top: 30px; }
.gallery-section h3 { font-size: 16px; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #e8e8e8; }

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
}
.google-map {
  width: 100%;
  height: 400px;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  margin-bottom: 25px;
}
.contact-form { margin-top: 20px; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 12px;
}
.contact-form .note { color: #c00; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  margin-bottom: 15px;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #54a0c6; outline: none; }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form .checkbox-group { margin-bottom: 15px; font-size: 12px; }
.contact-form .checkbox-group input { margin-right: 5px; }

.btn, .button {
  display: inline-block;
  padding: 10px 25px;
  background: #15445a;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background .2s;
}
.btn:hover, .button:hover { background: #54a0c6; color: #fff; }

.contact-info-sidebar h3 { font-size: 14px; margin-bottom: 12px; }
.contact-info-sidebar p { font-size: 12px; margin-bottom: 8px; }
.contact-info-sidebar .ci-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}
.contact-info-sidebar .ci-icon { color: #54a0c6; font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }

/* ===== FOOTER ===== */
.site-footer {
  background: #15445a;
  color: #c8dce6;
  padding: 35px 0 0;
  margin-top: 40px;
  font-size: 12px;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #8ec7e3;
}
.footer-widget h3 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-widget p { color: #b0cbda; font-size: 11px; line-height: 1.6; }
.footer-widget a { color: #b0cbda; }
.footer-widget a:hover { color: #fff; }

.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: #c8dce6;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: #54a0c6; color: #fff; }

.footer-phone {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-top: 5px;
}
.footer-address { line-height: 1.8; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 11px;
  color: #8daab9;
}
.footer-bottom a { color: #8daab9; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 15px; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ===== BLOG PLACEHOLDER ===== */
.blog-list .blog-entry {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  padding: 20px;
  margin-bottom: 20px;
}
.blog-entry h3 { margin-bottom: 8px; }
.blog-entry .blog-meta { color: #999; font-size: 11px; margin-bottom: 10px; }
.blog-entry p { font-size: 13px; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: #15445a;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 100;
}
.scroll-top:hover { background: #54a0c6; }
.scroll-top.visible { display: flex; }

/* ===== LEGAL PAGES ===== */
.legal-content { font-size: 13px; line-height: 1.8; }
.legal-content h2 { font-size: 18px; margin-top: 5px; }
.legal-content ul { list-style: disc; margin-left: 20px; margin-bottom: 12px; }
.legal-content li { margin-bottom: 5px; }
.legal-content .colorear { color: #c00; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-top { flex-direction: column; text-align: center; gap: 10px; }
  .header-contact { text-align: center; }

  .nav-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .dropdown { position: static; box-shadow: none; border-top: none; background: #1a5570; }
  .dropdown li a { color: #fff; padding-left: 35px; border-bottom-color: rgba(255,255,255,.05); }
  .dropdown li a:hover { background: rgba(255,255,255,.05); }

  .icon-boxes { grid-template-columns: 1fr; gap: 15px; }
  .catalog-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-slider .slide img { height: 250px; }
  .hero-slider .slide-caption { padding: 12px 15px; }
  .hero-slider .slide-caption h2 { font-size: 16px; }

  .catalog-item .item-image img,
  .gallery-item .item-image img { height: 160px; }
}

@media (max-width: 480px) {
  .catalog-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .icon-boxes { grid-template-columns: 1fr; }
}

/* ===== Blog Article Pages ===== */
.blog-article { background: #fff; padding: 0; }
.blog-article-meta { color: #999; font-size: 11px; margin-bottom: 15px; }
.blog-article-intro { font-size: 15px; color: #444; margin-bottom: 20px; padding: 15px 20px; background: #f9f9f9; border-left: 3px solid #1e7097; border-radius: 0 3px 3px 0; }
.blog-article-content { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 25px; }
.blog-article-content p { margin-bottom: 14px; }
.blog-article-content ol, .blog-article-content ul { margin: 10px 0 14px 25px; }
.blog-article-content li { margin-bottom: 5px; }
.blog-article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 30px; }
.blog-article-gallery a { display: block; overflow: hidden; border-radius: 3px; background: #f0f0f0; }
.blog-article-gallery a img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform .3s; }
.blog-article-gallery a:hover img { transform: scale(1.05); }
.blog-article-back { margin-top: 10px; padding-top: 20px; border-top: 1px solid #e8e8e8; }
.btn-back { display: inline-block; padding: 8px 18px; background: #1e7097; color: #fff; text-decoration: none; border-radius: 3px; font-size: 13px; font-weight: 600; transition: background .2s; }
.btn-back:hover { background: #155578; color: #fff; }
.latest-posts-list { list-style: none; padding: 0; margin: 0; }
.latest-posts-list li { padding: 8px 0; border-bottom: 1px solid #e8e8e8; }
.latest-posts-list li:last-child { border-bottom: none; }
.latest-posts-list a { font-size: 12px; font-weight: 600; color: #1e7097; line-height: 1.4; display: block; }
.latest-posts-list a:hover { color: #155578; }

@media (max-width: 600px) {
  .blog-article-gallery { grid-template-columns: repeat(2, 1fr); }
  .blog-article-gallery a img { height: 150px; }
}
