/*
 * brand.css — Corporativo S&F
 * Color overrides over the Landio template (style.css).
 * Do NOT edit style.css directly. All brand changes go here.
 *
 * Brand palette (from logo):
 *   --brand-red:     #c0232a  (corporate red — primary)
 *   --brand-red-dark:#9b1820  (hover / deep red)
 *   --brand-dark:    #1a1a1a  (charcoal — headings, footer, dark sections)
 *   --brand-grey:    #4a4a4a  (medium grey — body text accents)
 */

/* ── 1. CSS VARIABLE OVERRIDES ─────────────────────────────────── */
:root {
  --color-primary:   #c0232a;   /* was #473bf0 purple */
  --color-primary-2: #9b1820;   /* was #FF3E3F flat red → deeper brand red */
  --color-primary-4: #c0232a;   /* was #FF3E3F — used for CTA buttons */
  --color-primary-5: #e05a5f;   /* was #5580ff — lighter red accent */
  --color-secondary-4: #1a1a1a; /* was #2b354f navy → charcoal footer */
  --color-heading:   #1a1a1a;   /* was #161c2d → charcoal */
}

/* ── 2. BUTTONS ────────────────────────────────────────────────── */

.template-btn {
  -webkit-box-shadow: 0px 10px 30px 0px rgba(192, 35, 42, 0.28);
          box-shadow: 0px 10px 30px 0px rgba(192, 35, 42, 0.28);
}

.template-btn.bordered-btn {
  color: #c0232a;
  border-color: rgba(192, 35, 42, 0.35);
}
.template-btn.bordered-btn:hover {
  background-color: #1a1a1a;
  border-color:     #1a1a1a;
  color: #fff;
}

.template-btn.primary-bg-4 {
  -webkit-box-shadow: 0px 10px 30px 0px rgba(192, 35, 42, 0.28);
          box-shadow: 0px 10px 30px 0px rgba(192, 35, 42, 0.28);
}
.template-btn.primary-bg-4.bordered-btn {
  border-color: rgba(192, 35, 42, 0.35);
}
.template-btn.primary-bg-4.bordered-btn:hover {
  background-color: #c0232a;
  border-color:     #c0232a;
}

/* ── 3. TAGLINE PILLS ──────────────────────────────────────────── */

.common-heading.tagline-boxed .tagline {
  background-color: #fde8e9;
  color: #c0232a;
}
.common-heading.tagline-boxed-two .tagline {
  background-color: #fde8e9;
  color: #9b1820;
}
.common-heading.heading-white.tagline-boxed .tagline {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.common-heading.heading-white.tagline-boxed-two .tagline {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── 4. SECTION BORDER LINES ───────────────────────────────────── */
.border-bottom-primary {
  border-bottom-color: rgba(192, 35, 42, 0.10) !important;
}
.border-top-primary {
  border-top-color: rgba(192, 35, 42, 0.10) !important;
}
.border-bottom-secondary-2 {
  border-bottom-color: rgba(192, 35, 42, 0.08) !important;
}

/* ── 5. ICON GRADIENTS (tarjetas de servicios) ─────────────────── */
.iconic-boxes-v1 .iconic-box .icon.icon-gradient-1 {
  background: -webkit-linear-gradient(130deg, #1a1a1a 0%, #c0232a 100%);
  background:          linear-gradient(130deg, #1a1a1a 0%, #c0232a 100%);
  -webkit-box-shadow: 0px 10px 40px 0px rgba(192, 35, 42, 0.30);
          box-shadow: 0px 10px 40px 0px rgba(192, 35, 42, 0.30);
}
.iconic-boxes-v1 .iconic-box .icon.icon-gradient-2 {
  background: -webkit-linear-gradient(130deg, #9b1820 0%, #c0232a 100%);
  background:          linear-gradient(130deg, #9b1820 0%, #c0232a 100%);
  -webkit-box-shadow: 0px 10px 40px 0px rgba(155, 24, 32, 0.30);
          box-shadow: 0px 10px 40px 0px rgba(155, 24, 32, 0.30);
}
.iconic-boxes-v1 .iconic-box .icon.icon-gradient-3 {
  background: -webkit-linear-gradient(130deg, #c0232a 0%, #e05a5f 100%);
  background:          linear-gradient(130deg, #c0232a 0%, #e05a5f 100%);
  -webkit-box-shadow: 0px 10px 40px 0px rgba(192, 35, 42, 0.28);
          box-shadow: 0px 10px 40px 0px rgba(192, 35, 42, 0.28);
}
.iconic-boxes-v1 .iconic-box .icon.icon-gradient-4 {
  background: -webkit-linear-gradient(130deg, #7b1216 0%, #c0232a 100%);
  background:          linear-gradient(130deg, #7b1216 0%, #c0232a 100%);
  -webkit-box-shadow: 0px 10px 40px 0px rgba(123, 18, 22, 0.28);
          box-shadow: 0px 10px 40px 0px rgba(123, 18, 22, 0.28);
}
.iconic-boxes-v1 .iconic-box .icon.icon-gradient-5 {
  background: -webkit-linear-gradient(130deg, #1a1a1a 0%, #4a4a4a 100%);
  background:          linear-gradient(130deg, #1a1a1a 0%, #4a4a4a 100%);
  -webkit-box-shadow: 0px 10px 40px 0px rgba(26, 26, 26, 0.28);
          box-shadow: 0px 10px 40px 0px rgba(26, 26, 26, 0.28);
}
.iconic-boxes-v1 .iconic-box .icon.icon-gradient-6 {
  background: -webkit-linear-gradient(130deg, #c0232a 0%, #1a1a1a 100%);
  background:          linear-gradient(130deg, #c0232a 0%, #1a1a1a 100%);
  -webkit-box-shadow: 0px 10px 40px 0px rgba(26, 26, 26, 0.28);
          box-shadow: 0px 10px 40px 0px rgba(26, 26, 26, 0.28);
}

/* ── 6. PAGE TITLE AREA (páginas internas) ─────────────────────── */
.page-title-area {
  background-color: #1a1a1a;
}
.page-title-area .page-title {
  color: #ffffff;
}
.page-title-area .breadcrumb-nav li {
  color: rgba(255, 255, 255, 0.70);
}
.page-title-area .breadcrumb-nav li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.40);
}
.page-title-area .breadcrumb-nav li a {
  color: rgba(255, 255, 255, 0.70);
}
.page-title-area .breadcrumb-nav li a:hover {
  color: #c0232a;
}
.page-title-area .breadcrumb-nav li.active {
  color: #ffffff;
}

/* ── 7. HEADER / NAV ───────────────────────────────────────────── */

.template-header.sticky-on {
  border-bottom-color: rgba(192, 35, 42, 0.10);
}
.canvas-close:hover,
.panel-close:hover {
  color: #c0232a;
}

/* ── 8. FOOTER ─────────────────────────────────────────────────── */

.template-footer.footer-secondary-4-bg .footer-widgets .widget .social-links li a:hover {
  background-color: #c0232a;
  color: #ffffff;
}
.template-footer.footer-secondary-4-bg .footer-widgets .widget.contact-widget li a i {
  color: #e05a5f;
}

/* ── 9. MISC ───────────────────────────────────────────────────── */

.back-to-top {
  background-color: #c0232a;
  border-color: #c0232a;
}
.back-to-top:hover {
  background-color: #9b1820;
  border-color: #9b1820;
}

.progress-bar, .loading-bar {
  background-color: #c0232a !important;
}

/* ── 10. CONTENEDORES ROJOS — texto blanco (contraste) ─────────── */

/* Info boxes: bg #FF3E3F hardcoded en style.css → override a brand red */
.info-boxes-wrapper {
  background-color: #c0232a !important;
  box-shadow: 0px 2px 20px 0px rgba(192, 35, 42, 0.35) !important;
}
/* Todo el texto dentro de info-boxes queda blanco */
.info-boxes-wrapper .box-title,
.info-boxes-wrapper .box-content p,
.info-boxes-wrapper .box-content li,
.info-boxes-wrapper .box-item {
  color: #ffffff !important;
}
.info-boxes-wrapper .box-content p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Video CTA text block: bg var(--color-primary-4) = #c0232a */
.video-cta .video-cta-text-block p,
.video-cta .video-cta-text-block li,
.video-cta .video-cta-text-block ul {
  color: rgba(255, 255, 255, 0.88) !important;
}
.video-cta .video-cta-text-block .title {
  color: #ffffff !important;
}

/* ── 11. HERO — backdrop semi-transparente sobre la foto ────────── */

.hero-area-v2 .hero-content {
  background: rgba(15, 15, 15, 0.52);
  border-radius: 20px;
  padding: 44px 48px 48px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Texto del hero blanco sobre el backdrop oscuro */
.hero-area-v2 .hero-content p {
  color: rgba(255, 255, 255, 0.88) !important;
}

@media (max-width: 991px) {
  .hero-area-v2 .hero-content {
    padding: 32px 28px 36px;
  }
}
@media (max-width: 575px) {
  .hero-area-v2 .hero-content {
    padding: 24px 20px 28px;
    border-radius: 16px;
  }
}

/* ── 12. TIPOGRAFÍA — escala y legibilidad ─────────────────────── */

body {
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  -webkit-font-smoothing: antialiased;
}

p {
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .common-heading .title {
  color: #1a1a1a;
  line-height: 1.2;
}

/* ── 11. ESPACIADO DE SECCIONES — reducir p-t/p-b en mobile ────── */

@media (max-width: 991px) {
  .p-t-130 { padding-top:    80px !important; }
  .p-b-130 { padding-bottom: 80px !important; }
  .p-t-120 { padding-top:    70px !important; }
  .p-b-120 { padding-bottom: 70px !important; }
  .p-t-100 { padding-top:    60px !important; }
  .p-b-100 { padding-bottom: 60px !important; }
  .p-t-80  { padding-top:    48px !important; }
  .p-b-80  { padding-bottom: 48px !important; }
  .p-t-150 { padding-top:    90px !important; }
}

@media (max-width: 575px) {
  .p-t-130 { padding-top:    56px !important; }
  .p-b-130 { padding-bottom: 56px !important; }
  .p-t-120 { padding-top:    48px !important; }
  .p-b-120 { padding-bottom: 48px !important; }
  .p-t-100 { padding-top:    40px !important; }
  .p-b-100 { padding-bottom: 40px !important; }
  .p-t-80  { padding-top:    32px !important; }
  .p-b-80  { padding-bottom: 32px !important; }
  .p-t-150 { padding-top:    64px !important; }
}

/* ── 12. SCROLL HORIZONTAL — prevención global ──────────────────── */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── 13. FOCUS STATES — accesibilidad ──────────────────────────── */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #c0232a;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 14. HEADER — sticky opaco con sombra ───────────────────────── */

.template-header.sticky-on {
  background-color: #ffffff !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10) !important;
  border-bottom: none !important;
}

/* ── 15. NAV ACTIVO ─────────────────────────────────────────────── */

.nav-menu li a.active,
.nav-menu li.active > a {
  color: #c0232a !important;
}
.nav-menu li a.active::after,
.nav-menu li.active > a::after {
  width: 100% !important;
  background-color: #c0232a !important;
}

.mobile-menu li a.active,
.mobile-menu li.active > a {
  color: #c0232a !important;
  font-weight: 600;
}

/* ── 16. FOOTER — responsive ────────────────────────────────────── */

@media (max-width: 767px) {
  .template-footer .footer-widgets .row > [class*="col-"] {
    margin-bottom: 36px;
  }
  .template-footer .footer-widgets .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
  .template-footer .widget-title {
    margin-bottom: 14px;
  }
  .template-footer .social-links {
    justify-content: flex-start !important;
  }
}

/* ── 17. BOTONES — consistencia ─────────────────────────────────── */

.template-btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
}

/* ── 18. IMÁGENES — object-fit en tarjetas ──────────────────────── */

.project-thumbnail img,
.post-thumbnail img,
.recent-project-item .project-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ── 19. TARJETAS — altura uniforme en grid ─────────────────────── */

.recent-project-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.recent-project-item .project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.recent-project-item .project-content .read-more-btn {
  margin-top: auto;
}

/* ── 20. HOME — INFO BOXES ──────────────────────────────────────── */

.info-boxes-wrapper {
  border-radius: 24px;
}
.info-boxes .box-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.info-boxes .box-icon {
  flex-shrink: 0;
}
.info-boxes .box-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
@media (max-width: 575px) {
  .info-boxes {
    flex-direction: column !important;
    gap: 24px;
  }
  .info-boxes .box-item {
    flex-direction: column;
  }
}

/* ── 21. HOME — ICONIC BOXES (servicios + páginas internas) ─────── */

.iconic-boxes-v2 .iconic-box {
  border-radius: 16px;
  padding: 28px 24px;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.iconic-boxes-v2 .iconic-box:hover {
  box-shadow: 0 12px 32px rgba(192, 35, 42, 0.15);
  transform: translateY(-4px);
}
.iconic-boxes-v2 .iconic-box .icon {
  margin-bottom: 16px;
}
.iconic-boxes-v2 .iconic-box .title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.iconic-boxes-v2 .iconic-box .title a {
  color: #1a1a1a;
  text-decoration: none;
}
.iconic-boxes-v2 .iconic-box .title a:hover {
  color: #c0232a;
}
.iconic-boxes-v2 .iconic-box p {
  color: #5b6475;
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}

/* Equal-height columns + row gap consistente */
.row.iconic-boxes-v2 {
  row-gap: 28px;
}
.row.iconic-boxes-v2 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.row.iconic-boxes-v2 > [class*="col-"] > .iconic-box {
  flex: 1;
  margin-bottom: 0 !important; /* anula m-b-50 del template */
}

/* ── 22. HOME — ÁREAS ESPECIALIDAD (iconic boxes v1) ────────────── */

.iconic-boxes-v1 .iconic-box {
  border-radius: 16px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.iconic-boxes-v1 .iconic-box:hover {
  box-shadow: 0 12px 32px rgba(192, 35, 42, 0.12);
  transform: translateY(-3px);
}

/* ── 23. HOME — COUNTERS ────────────────────────────────────────── */

.counter-items-v2 .counter-item .counter {
  color: #c0232a;
}
.counter-items-v2 .counter-item .title {
  color: rgba(255, 255, 255, 0.80);
  font-size: 15px;
}

/* ── 24. HOME — VIDEO CTA ───────────────────────────────────────── */

.landio-video {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.video-cta .play-btn {
  background-color: #c0232a;
  border-color: #c0232a;
  color: #fff;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.video-cta .play-btn:hover {
  background-color: #9b1820;
  transform: scale(1.08);
}

/* ── 25. HOME — CTA SECTION ─────────────────────────────────────── */

.cta-section .cta-btns {
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 575px) {
  .cta-section .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-section .cta-btns .template-btn {
    width: 100%;
    text-align: center;
  }
}

/* ── 26. HOME — TESTIMONIOS ─────────────────────────────────────── */

.testimonial-item {
  border-radius: 20px;
  padding: 36px 32px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.testimonial-item .testimonial-content {
  color: #3a4560;
  font-size: 15px;
  line-height: 1.75;
}
.testimonial-item .author-name {
  font-weight: 700;
  color: #1a1a1a;
}
.testimonial-project-section .slick-dots li.slick-active button::before {
  color: #c0232a;
}
.testimonial-project-section .slick-dots li button::before {
  font-size: 10px;
  color: #c0232a;
  opacity: 0.30;
}

/* ── 27. HOME — BRANDS SLIDER ───────────────────────────────────── */

#brands-slider-container .brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  filter: grayscale(20%);
  opacity: 0.90;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
#brands-slider-container .brand-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.06);
}
#brands-slider-container .brand-item img {
  max-height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ── 28. HOME — BLOG CARDS ──────────────────────────────────────── */

#home-latest-posts .recent-project-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
#home-latest-posts .recent-project-item:hover {
  box-shadow: 0 14px 36px rgba(192, 35, 42, 0.14);
  transform: translateY(-4px);
}
.project-content {
  padding: 20px 22px 24px;
}
.project-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #c0232a;
  text-decoration: none;
  margin-bottom: 8px;
  display: inline-block;
}
.project-content .title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: #1a1a1a;
}
.project-content p {
  font-size: 14px;
  color: #5b6475;
  line-height: 1.65;
}
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #c0232a;
  text-decoration: none;
  transition: gap 0.2s;
}
.read-more-btn:hover {
  color: #9b1820;
  gap: 10px;
}

/* ── 29. HOME — ESTADÍSTICAS floating images mobile ─────────────── */

@media (max-width: 991px) {
  .preview-galley-v6 .main-img,
  .preview-galley-v7 .main-img {
    max-width: 80%;
    margin: 0 auto;
    display: block;
  }
  /* Quitar margen lateral del template que desplaza la imagen en mobile */
  .preview-galley-v7 {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  /* Quitar padding-left del bloque de texto "Conocimiento" en mobile */
  .statistic-section .statistic-text-block {
    padding-left: 0 !important;
  }
}

/* ── 30. PAGE TITLE — altura mínima consistente ─────────────────── */

.page-title-area {
  padding-top: 100px;
  padding-bottom: 60px;
  min-height: 220px;
  display: flex;
  align-items: center;
}
.page-title-area .container {
  width: 100%;
}

@media (max-width: 767px) {
  .page-title-area {
    padding-top: 72px;
    padding-bottom: 40px;
    min-height: 160px;
  }
  .page-title-area .page-title {
    font-size: 28px !important;
  }
}

/* ── 31. BLOG INDEX — tarjetas de posts ─────────────────────────── */

.single-blog-post {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  margin-bottom: 36px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.single-blog-post:last-child { margin-bottom: 0; }
.single-blog-post:hover {
  box-shadow: 0 14px 40px rgba(192,35,42,0.12);
  transform: translateY(-3px);
}
.single-blog-post .post-thumbnail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.single-blog-post .post-content {
  padding: 24px 28px 28px;
}
.single-blog-post .post-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.single-blog-post .post-meta li {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 5px;
}
.single-blog-post .post-meta li i { color: #c0232a; }
.single-blog-post .post-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.single-blog-post .post-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}
.single-blog-post .post-title a:hover { color: #c0232a; }
.single-blog-post .post-excerpt p {
  color: #5b6475;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}
.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #c0232a;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.post-read-more:hover { color: #9b1820; gap: 10px; }

/* ── 32. BLOG SIDEBAR ─────────────────────────────────────────────── */

.blog-sidebar .widget-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}
.popular-posts-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f5f5f5;
}
.popular-posts-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.popular-posts-thumbnail { flex-shrink: 0; }
.popular-posts-thumbnail img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.popular-posts-item-content { flex: 1; min-width: 0; }
.popular-posts-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
}
.popular-posts-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}
.popular-posts-title a:hover { color: #c0232a; }
.posts-date {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.posts-date i { color: #c0232a; }

/* ── 33. BLOG POST INTERIOR — tipografía del artículo ───────────── */

.blog-details-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}
.blog-details-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 40px 0 16px;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.blog-details-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 28px 0 12px;
}
.blog-details-content p { margin-bottom: 20px; }
.blog-details-content ul,
.blog-details-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.blog-details-content ul li,
.blog-details-content ol li {
  margin-bottom: 8px;
  line-height: 1.75;
}
.blog-details-content strong { color: #1a1a1a; font-weight: 700; }
.blog-details-content table { margin-bottom: 28px; }
.blog-details-content .table-bordered td,
.blog-details-content .table-bordered th { vertical-align: middle; }

.post-meta-data { margin-bottom: 16px; }
.post-meta-data .post-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.post-meta-data .post-meta li {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-meta-data .post-meta li i { color: #c0232a; }

.post-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  margin-top: 40px;
}

@media (max-width: 991px) {
  .blog-post-items { padding-right: 0 !important; }
}
@media (max-width: 767px) {
  .single-blog-post .post-content { padding: 18px 20px 22px; }
  .single-blog-post .post-title { font-size: 17px; }
  .blog-details-content h2 { font-size: 19px; margin-top: 28px; }
}
@media (max-width: 575px) {
  .blog-details-area .template-btn {
    display: block; width: 100%; margin-right: 0 !important;
    margin-bottom: 14px; text-align: center;
  }
  .blog-details-area .template-btn:last-child { margin-bottom: 0; }
}

/* ── 34. SERVICE DETAIL PAGES ────────────────────────────────────── */

.service-title {
  font-size: 34px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
}
.service-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

/* "Resultado" highlight box */
.service-result-box {
  background: #f7f9fc;
  border-left: 4px solid #c0232a;
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 48px;
}
.service-result-box h4 {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 10px;
}

/* CTA dentro del result box — full-width en mobile */
@media (max-width: 575px) {
  .service-details-content .template-btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  /* Reducir padding del result box en mobile */
  .service-result-box,
  [style*="border-left:4px solid #c0232a"] {
    padding: 22px 20px !important;
  }
  /* Items de la lista — quitar wow delay en col (ya estático, solo por consistencia) */
  .service-details-content .row [class*="col-"] {
    margin-bottom: 20px;
  }
}

/* ── 35. LEGAL PAGES — privacidad y términos ─────────────────────── */

/* h2/h3 de texto largo: separador sutil y tamaños legibles */
.service-details-area .col-lg-9 h2 {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ebebeb;
}
.service-details-area .col-lg-9 h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-top: 20px;
  margin-bottom: 8px;
}
/* Links en texto legal */
.service-details-area .col-lg-9 a {
  color: #c0232a;
  text-decoration: none;
}
.service-details-area .col-lg-9 a:hover {
  text-decoration: underline;
}

/* ── 36. SERVICE PAGES — cross-nav strip ─────────────────────────── */

.otros-servicios-strip {
  background: #f7f9fc;
  padding: 28px 0 32px;
  border-top: 1px solid #ebebeb;
}
.otros-servicios-strip .strip-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  margin-bottom: 14px;
}
.otros-servicios-strip .strip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.otros-servicios-strip .strip-links a {
  display: inline-block;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.otros-servicios-strip .strip-links a:hover {
  border-color: #c0232a;
  color: #c0232a;
  background: #fff8f8;
}

/* ── 36. HEADER MOBILE — logo, toggler y panel deslizante ────────── */

/* Logo en mobile — limita ancho para no desbordar */
@media (max-width: 1199.98px) {
  .template-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 84px;
  }
  .template-header .header-left,
  .template-header .header-right {
    display: flex;
    align-items: center;
  }
  .template-header .header-left {
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    gap: 16px;
  }
  .template-header .brand-logo {
    max-width: min(62vw, 220px);
  }
  .template-header .brand-logo img {
    width: 100%;
    height: auto;
    display: block;
  }
  /* Botón hamburguesa */
  .template-header .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid #0f172a;
    border-radius: 14px;
    background: #fff;
    flex-shrink: 0;
  }
  .template-header .navbar-toggler span {
    width: 24px;
    height: 2px;
    background: #0f172a;
    margin: 3px 0;
    display: block;
  }
  /* Panel deslizante */
  .mobile-slide-panel {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .mobile-slide-panel.panel-on {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-slide-panel .panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .mobile-slide-panel.panel-on .panel-overlay {
    opacity: 1;
  }
  .mobile-slide-panel .panel-inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 360px);
    background: #fff;
    padding: 28px 24px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .mobile-slide-panel.panel-on .panel-inner {
    transform: translateX(0);
  }
  /* Logo dentro del panel */
  .mobile-slide-panel .mobile-logo {
    max-width: 190px;
    margin-bottom: 24px;
  }
  .mobile-slide-panel .mobile-logo img {
    width: 100%;
    height: auto;
    display: block;
  }
  /* Links del menú */
  .mobile-slide-panel .mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mobile-slide-panel .mobile-menu li + li {
    margin-top: 8px;
  }
  .mobile-slide-panel .mobile-menu li a {
    display: block;
    padding: 10px 0;
    font-size: 22px;
    line-height: 1.25;
    color: #c0232a;
    text-decoration: none;
    font-weight: 500;
  }
  .mobile-slide-panel .mobile-menu li a:hover {
    color: #9b1820;
  }
  /* Botón cerrar */
  .mobile-slide-panel .panel-close {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 24px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-slide-panel .panel-close:hover {
    background: #fee2e2;
    color: #c0232a;
  }
}

@media (min-width: 1200px) {
  .mobile-slide-panel {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .template-header .header-inner {
    min-height: 76px;
  }
  .template-header .brand-logo {
    max-width: min(58vw, 180px);
  }
  .template-header .navbar-toggler {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
}

/* ── 37. OFF-CANVAS PANEL (desktop) ───────────────────────────────── */

.canvas-inner .canvas-logo {
  max-width: 180px;
  margin-bottom: 32px;
}
.canvas-inner .canvas-logo img {
  width: 100%;
  height: auto;
  display: block;
}
.canvas-inner .canvas-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c0232a;
}
.canvas-inner .about-us p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 28px;
}
.canvas-inner .contact-us ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.canvas-inner .contact-us ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #444;
}
.canvas-inner .contact-us ul li i {
  color: #c0232a;
  margin-top: 3px;
  flex-shrink: 0;
}
.canvas-inner .contact-us ul li a {
  color: #444;
  text-decoration: none;
}
.canvas-inner .contact-us ul li a:hover {
  color: #c0232a;
}
.canvas-close {
  transition: color 0.2s;
}
.canvas-close:hover {
  color: #c0232a !important;
}

/* ── 38. CONTACTO — formulario, info boxes y mobile ─────────────── */

/* Submit button sin clase de color — fuerza rojo de marca */
#contactForm button[type="submit"] {
  background-color: #c0232a;
  color: #fff;
  border: none;
  width: 100%;
}
#contactForm button[type="submit"]:hover {
  background-color: #9b1820;
  color: #fff;
}

/* Focus en inputs → borde inferior rojo */
.contact-form-v2 .input-field input:focus,
.contact-form-v2 .input-field select:focus,
.contact-form-v2 .textarea-field textarea:focus {
  border-bottom-color: #c0232a !important;
  outline: none;
}

/* Reducir separación entre info-boxes y formulario en mobile
   (el template aplica m-t-md-100 = 100px en mobile) */
@media (max-width: 767px) {
  .contact-form-area {
    margin-top: 48px !important;
  }
}

/* Info boxes — links en color de marca */
.contact-info-box .info-body a {
  color: #1a1a1a;
  text-decoration: none;
}
.contact-info-box .info-body a:hover {
  color: #c0232a;
}

/* ── 39. NOSOTROS — CTA y layout ─────────────────────────────────── */

/* CTA usa bg-primary-color → si el override CSS var lo hace rojo,
   el botón primary-bg-4 (rojo) desaparece. Forzar charcoal. */
.cta-area.bg-primary-color {
  background-color: #1a1a1a !important;
}

/* Botones del CTA que stackean en mobile */
@media (max-width: 575px) {
  .cta-area .template-btn {
    display: block;
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 14px;
    text-align: center;
  }
  .cta-area .template-btn:last-child {
    margin-bottom: 0;
  }
}
