/*
 * Conpre Concretos - Custom CSS Overrides
 * Version: 1.0.0
 * Date: 12/12/2025
 * Description: Custom styles for Conpre Concretos website
 */

/* ================================
   SEARCH - Ocultar hasta implementar
   ================================ */
.popup-search-box,
.searchBoxToggler {
  display: none !important;
}

/* ================================
   SERVICE BLOCKS - Responsive Fix
   ================================ */
.service-block__hide {
  width: 100%;
  max-width: 300px;
  height: 200px;
  overflow-y: auto;
  padding: 10px;
}

@media (max-width: 768px) {
  .service-block__hide {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 250px;
  }
}

/* ================================
   SERVICE BLOCK CARDS - Min Height
   ================================ */
.service-block {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 20px;
}

.service-block__text {
  flex-grow: 1;
}

/* Lista de viñetas para tarjetas de infraestructura */
.service-block__list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.service-block__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #666;
}

.service-block__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0B6B21;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.3;
}

/* Lista de viñetas para sección Historia */
.history-block__list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.history-block__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.history-block__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0B6B21;
  font-weight: bold;
  font-size: 14px;
}

/* Lista de viñetas para proceso de trabajo */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

.process-list li:last-child {
  margin-bottom: 0;
}

.process-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #0B6B21;
  font-weight: bold;
}

/* ================================
   COUNTER SECTION - Mobile Fix
   ================================ */
@media (max-width: 768px) {
  .counter-media {
    text-align: center;
  }

  .row.justify-content-between .col-3 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 20px;
  }
}

/* ================================
   CONTACT INFO - White Text
   ================================ */
.contact-info-content,
.contact-info-content p,
.contact-info-content strong,
.contact-info-content .contact-info-note {
  color: #ffffff;
}

/* ================================
   BRAND COLORS - Override Template Orange
   ================================ */
:root {
  /* === NUEVA IDENTIDAD CONPRE 2025 === */
  --theme-color: #0B6B21;
  --theme-color-dark: #084f19;
  --theme-color-light: #e8f5e9;
  --theme-color-rgb: 11, 107, 33;
  --accent-lime: #BAF235;
  --gold-accent: #ECC101;
  --dark: #1b2a38;
  --gray-light: #f5f5f5;

  /* Compatibilidad con nombres anteriores */
  --color-primary: var(--theme-color);
  --color-accent: var(--accent-lime);
  --color-gold: var(--gold-accent);
}

/* ================================
   HEADER LOGO - Adjusted Size
   ================================ */
.header-logo img.logo {
  max-height: 60px;
  width: auto;
  padding-bottom: 10px;
  padding-top: 20px;
}

@media (max-width: 991px) {
  .header-logo img.logo {
    max-height: 60px;
  }
}

/* ================================
   HERO SECTION - Adjusted Height
   ================================ */
.breadcumb-wrapper {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.breadcumb-wrapper .breadcumb-content {
  padding: 20px 0 40px;
}

.breadcumb-title {
  text-transform: uppercase;
  font-size: 36px;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .breadcumb-title {
    font-size: 24px;
  }
}

@media (max-width: 991px) {
  .breadcumb-wrapper .breadcumb-content {
    padding: 15px 0 30px;
  }
}

/* ================================
   INDEX HERO - Full Height
   ================================ */
.hero {
  position: relative;
}

.hero-layout1 .hero-inner {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-layout1 .hero-content {
  padding: 20px 0 30px;
}

.hero-layout1 .hero-title {
  font-size: 50px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-layout1 .hero-text {
  font-size: 18px;
  margin: 0 0 20px 0;
}

/* Slider nav - circular buttons centered */
.hero-slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 16px;
}

.hero-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  background: var(--theme-color);
  border-color: var(--theme-color);
}

/* Hide old slider buttons */
.hero-slider--buttons {
  display: none;
}

@media (max-width: 1199px) {
  .hero-layout1 .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  .hero-layout1 .hero-title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .hero-layout1 .hero-inner {
    min-height: 100vh;
  }
  .hero-layout1 .hero-title {
    font-size: 24px;
  }
  .hero-layout1 .hero-text {
    font-size: 15px;
  }
  .hero-slider-dots {
    bottom: 24px;
  }
  .hero-dot {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* ================================
   CARD COMPONENT - Responsive
   ================================ */
.card {
  width: 340px;
  padding: 20px;
  border-radius: 14px;
}

@media (max-width: 480px) {
  .card {
    width: 260px;
    padding: 16px;
  }
}

/* ================================
   BUTTON SIZES - Responsive
   ================================ */
.btn {
  padding: 14px 22px;
  font-size: 1.1rem;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}

/* ================================
   CAROUSEL - Auto Height Fix
   ================================ */
.vs-carousel > div {
  height: auto !important;
}

.vs-carousel > div > .service-block {
  height: 100% !important;
}

/* ================================
   DIFERENCIADORES - Style3 Cards Fix
   ================================ */
/* Fix image distortion - use cover */
.service-block--style3 .service-block__body {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

/* White overlay - covers image by default */
.service-block--style3 .service-block__body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Dark overlay for hover */
.service-block--style3 .service-block__body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* On hover: hide white, show dark overlay */
.service-block--style3:hover .service-block__body::before {
  opacity: 0;
}

.service-block--style3:hover .service-block__body::after {
  opacity: 1;
}

/* Content above overlays */
.service-block--style3 .service-block__body > * {
  position: relative;
  z-index: 3;
}

/* Uniform card height */
.service-block--style3 {
  height: 100%;
  min-height: 350px;
}

/* Text and icon color change on hover for readability */
.service-block--style3:hover .service-block__title,
.service-block--style3:hover .service-block__title__link,
.service-block--style3:hover .service-block__text {
  color: #ffffff !important;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Icon to white on hover */
.service-block--style3:hover .service-block__icon img {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.service-block--style3 .service-block__icon img {
  transition: filter 0.3s ease;
}

/* Carousel items same height */
.serviceslider .slick-track {
  display: flex !important;
}

.serviceslider .slick-slide {
  height: inherit !important;
}

.serviceslider .slick-slide > div {
  height: 100%;
}

.serviceslider .slick-slide .service-block--style3 {
  height: 100%;
}

/* ================================
   SPACING - Extra padding for sections
   ================================ */
.space-extra,
.space-extra-bottom {
  padding-top: 80px;
}

@media (max-width: 768px) {
  .space-extra,
  .space-extra-bottom {
    padding-top: 50px;
  }
}

/* ================================
   FOOTER - Remove bottom margin
   ================================ */
.footer-layout__bottom {
  margin-bottom: 0 !important;
  padding: 15px 0 !important;
}

.footer-layout--style,
.footer-layout--style2 {
  margin-bottom: 0;
}

/* ================================
   FOOTER - Reduce height
   ================================ */
.footer-layout--style .footer-layout__top,
.footer-layout--style2 .footer-layout__top {
  padding-top: 50px !important;
  padding-bottom: 20px !important;
}

.footer-widget {
  margin-bottom: 20px !important;
}

.widget_title {
  margin-bottom: 15px !important;
  font-size: 18px !important;
}

.footer-text {
  margin: 0 0 15px 0 !important;
  font-size: 14px !important;
}

.footer-widget .footer-social {
  margin-top: 10px;
}

.footer-widget .footer-social a {
  min-height: auto !important;
  min-width: auto !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.footer-logo {
  margin-bottom: 10px !important;
}

.footer-logo img,
.vs-widget-about .logo {
  max-width: 140px !important;
}

.footer-info--style2 {
  padding: 0 !important;
  margin-bottom: 8px !important;
}

.footer-info--style2.pt-3 {
  padding-top: 8px !important;
}

/* ================================
   FOOTER - Products single column
   ================================ */
.footer-menu--style > ul {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 8px;
}

.footer-menu--style > ul > li {
  float: none !important;
  width: 100% !important;
  margin-bottom: 0 !important;
}

/* ================================
   WHATSAPP FLOATING BUTTON
   ================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none !important;
}

.whatsapp-float:hover {
  background: #128c7e;
  color: #fff !important;
  transform: scale(1.1);
  text-decoration: none !important;
}

/* Mover botón scroll-to-top arriba del WhatsApp */
.scrollToTop.show {
  bottom: 100px !important;
  right: 34px !important;
}

@media (max-width: 575px) {
  .whatsapp-float {
    bottom: 20px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .scrollToTop.show {
    bottom: 80px !important;
    right: 20px !important;
  }
}

/* ================================
   MENU - Compact spacing for 7 items
   ================================ */
.main-menu.menu-style1 > ul > li > a {
  padding: 14px 10px 14px 0 !important;
  font-size: 19px !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@media (max-width: 1399px) {
  .main-menu.menu-style1 > ul > li > a {
    padding: 14px 8px 14px 0 !important;
    font-size: 12px !important;
  }
}
@media (max-width: 1199px) {
  .main-menu.menu-style1 > ul > li > a {
    padding: 14px 5px 14px 0 !important;
    font-size: 11px !important;
  }
}

/* Cotizar Proyecto button - proportional to header */
.menu-top .vs-btn {
  padding: 10px 18px !important;
  font-size: 13px !important;
  white-space: nowrap;
}
@media (max-width: 1399px) {
  .menu-top .vs-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* ================================
   IDENTIDAD VISUAL CONPRE 2025
   Clases utilitarias + overrides
   ================================ */

/* --- Eyebrow / Subtítulo de sección --- */
.eyebrow {
  display: block;
  color: var(--gold-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* --- Subtítulos de sección (sec-subtitle) en dorado --- */
.sec-subtitle,
.sec-subtitle2 {
  color: var(--gold-accent) !important;
}

/* --- Underline dorado en títulos de sección --- */
.sec-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold-accent);
  margin-top: 0.75rem;
}
.text-center .sec-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* --- Stat / Counter números destacados --- */
.vs-counter__number,
.counter-media__number {
  color: var(--gold-accent) !important;
}
.counter-media__plus {
  color: var(--gold-accent) !important;
}
.counter-box--style1 .counter-box__number {
  color: var(--gold-accent) !important;
}

/* --- Botones primarios: lime con texto verde --- */
.vs-btn {
  background-color: var(--accent-lime) !important;
  color: var(--theme-color) !important;
  border-color: var(--accent-lime) !important;
}
.vs-btn .vs-btn__bar {
  background: var(--theme-color) !important;
}

/* --- Hover de botones primarios --- */
.vs-btn:hover {
  background-color: var(--accent-lime) !important;
  color: #ffffff !important;
  border-color: var(--accent-lime) !important;
}
.vs-btn:hover .vs-btn__bar {
  background: var(--dark) !important;
}
.vs-btn.style2:hover {
  background-color: var(--accent-lime) !important;
  color: #ffffff !important;
  border-color: var(--accent-lime) !important;
}

/* --- Encabezados de tabla con fondo oscuro: texto blanco legible --- */
/* Anula la regla global `th { color: var(--title-color) }` que dejaba el texto negro sobre fondo oscuro */
.blog-snippet-table thead th,
[style*="#0d2c1a"] th {
  color: #ffffff !important;
}

/* --- Nav link activo: lime --- */
.main-menu > ul > li.current-menu-item > a,
.main-menu > ul > li > a:hover {
  color: var(--accent-lime) !important;
}

/* --- Footer: títulos de widget en dorado --- */
.footer-layout--style .widget_title,
.footer-layout--style2 .widget_title {
  color: var(--gold-accent) !important;
}

/* --- Footer: links hover en lime --- */
.footer-widget a:hover {
  color: var(--accent-lime) !important;
}

/* --- Footer: social icons hover en lime --- */
.footer-widget .footer-social a:hover {
  background-color: var(--accent-lime) !important;
  color: var(--dark) !important;
  border-color: var(--accent-lime) !important;
}

/* --- WhatsApp flotante: lime vibrante --- */
.whatsapp-float {
  background: var(--accent-lime) !important;
  color: var(--dark) !important;
}
.whatsapp-float:hover {
  background: #a8d92f !important;
  color: var(--dark) !important;
}

/* --- Scroll-to-top: dorado --- */
.scrollToTop {
  background-color: var(--gold-accent) !important;
  color: var(--dark) !important;
}
.scrollToTop:hover {
  background-color: var(--accent-lime) !important;
  color: var(--dark) !important;
}

/* --- Service block: bullets lime --- */
.service-block__list li::before {
  color: var(--accent-lime) !important;
}

/* --- History list: checkmarks lime --- */
.history-block__list li::before {
  color: var(--accent-lime) !important;
}

/* --- Process list: arrows lime --- */
.process-list li::before {
  color: var(--accent-lime) !important;
}

/* --- Card con acento dorado superior --- */
.service-block {
  border-top: 3px solid var(--gold-accent);
}

/* --- Badge dorado --- */
.badge-gold {
  display: inline-block;
  background: var(--gold-accent);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Badge lime --- */
.badge-lime {
  display: inline-block;
  background: var(--accent-lime);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
}

/* --- Card destacada (featured) --- */
.card-featured,
.product-card-featured {
  border: 2px solid var(--accent-lime) !important;
  box-shadow: 0 0 20px rgba(186, 242, 53, 0.15);
}

/* --- Accordion numbers en dorado --- */
.accordion-button__number {
  background: var(--gold-accent) !important;
  color: var(--dark) !important;
}

/* --- History timeline: tab activa en lime --- */
.history-style .nav-pills .nav-link.active {
  background: var(--accent-lime) !important;
  color: var(--dark) !important;
  border-color: var(--accent-lime) !important;
}

/* --- Counter border dorado --- */
.counter-box--style1 {
  border-color: var(--gold-accent) !important;
}

/* --- CTA section quote: título con acento --- */
.quote--layout1 .sec-subtitle {
  color: var(--gold-accent) !important;
}

/* --- Breadcrumb: subtítulo en dorado --- */
.breadcumb-text {
  color: var(--gold-accent) !important;
  font-weight: 600;
}
