/* ==========================================================
   4M Water Solutions - ajustes de marca sobre la plantilla
   ========================================================== */
:root {
  --theme-color1: #0a8bd6;   /* azul 4M */
  --theme-color2: #061a35;   /* azul noche */
  --theme-color3: #0b2a52;   /* títulos */
  --theme-color4: #18b4e8;   /* celeste */
  --theme-color5: #0a6fb3;
  --link-color: #0a8bd6;
  --link-hover-color: #0a6fb3;
}

/* ---------- Logo ---------- */
.brand-logo { display: inline-flex !important; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo img { height: 58px !important; width: auto !important; max-height: none !important; }
.brand-logo .brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--title-font); }
.brand-logo .brand-text strong { font-size: 30px; font-weight: 800; color: var(--theme-color3); letter-spacing: -0.5px; }
.brand-logo .brand-text small { font-size: 11px; font-weight: 700; color: var(--theme-color1); letter-spacing: 1.6px; text-transform: uppercase; margin-top: 4px; }
.sticky-header .brand-logo img { height: 42px !important; }
.sticky-header .brand-logo .brand-text strong { font-size: 24px; }
.brand-logo.light .brand-text strong { color: #fff; }
.brand-logo.light .brand-text small { color: #5cc8f5; }
.mobile-menu .nav-logo .brand-logo img { height: 44px !important; }

/* ---------- Colores fijos de la plantilla ---------- */
.why-choose-us:before { background-color: var(--theme-color2); }
.main-footer { background-color: #04142b; }
.page-title:before { background: linear-gradient(90deg, rgba(6, 26, 53, .92) 0%, rgba(10, 111, 179, .55) 100%); opacity: 1; }
.banner-section-one:before { background: linear-gradient(100deg, rgba(5, 24, 52, .94) 0%, rgba(8, 60, 112, .82) 55%, rgba(10, 139, 214, .45) 100%); }

/* ---------- Banner ---------- */
.banner-section-one .bg { background-position: center; background-size: cover; }
.banner-section-one .content-box .sub-title { color: #5cc8f5; letter-spacing: 2px; }
.banner-section-one .content-box .title .accent { color: #29b6f6; }
.banner-section-one .hero-tagline { color: #fff; font-family: var(--title-font); font-weight: 700; letter-spacing: 2px; font-size: 16px; margin: 0 0 8px; }
.banner-section-one .hero-text { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 520px; margin-bottom: 36px; }
.banner-section-one .hero-products { position: relative; z-index: 3; max-width: 46%; }
.banner-section-one .hero-products img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-outline-light-4m { border: 2px solid rgba(255, 255, 255, .7); color: #fff !important; padding: 13px 30px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; transition: all .3s; display: inline-block; }
.btn-outline-light-4m:hover { background: #fff; color: var(--theme-color3) !important; }
@media (max-width: 991.98px) {
  .banner-section-one .d-flex { flex-direction: column; align-items: flex-start !important; }
  .banner-section-one .hero-products { max-width: 100%; margin-top: 40px; }
  .banner-section-one { padding-bottom: 180px; }
}

/* ---------- Bloques "Quiénes somos" del inicio ---------- */
.about-block .icon, .about-block-two .icon { font-size: 42px; color: var(--theme-color1); }
.about-block.col-md-4 .title { font-size: 18px; }

/* ---------- Tarjetas de servicio / producto ---------- */
.service-block .lower-content .icon[class*="fa-"] { font-size: 38px; display: flex; align-items: center; justify-content: center; }
.service-block .lower-content .text { min-height: 60px; }
.service-block .lower-content .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { background: #e8f4fc; color: var(--theme-color3); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 30px; line-height: 1.6; }

/* ---------- Sección enfoque (inicio) ---------- */
.about-section-two .title { background-image: url(../images/4m/planta-ro.jpg) !important; background-size: cover !important; background-position: center; }
.check-list-4m { list-style: none; padding: 0; margin: 0; }
.check-list-4m li { position: relative; padding: 14px 0 14px 46px; border-bottom: 1px solid #e3ecf3; font-family: var(--title-font); font-weight: 700; color: var(--theme-color3); font-size: 17px; line-height: 1.4; }
.check-list-4m li:last-child { border-bottom: 0; }
.check-list-4m li i { position: absolute; left: 0; top: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--theme-color1); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---------- Recomendado para ---------- */
.why-choose-us .feature-block-two .inner-box { margin-bottom: 28px; }
.why-choose-us .feature-block-two .icon[class*="fa-"] { display: flex; align-items: center; justify-content: center; font-size: 34px; }
.why-choose-us .note-4m { color: rgba(255, 255, 255, .5); font-size: 13px; line-height: 1.6; margin-top: 10px; }

/* ---------- Contacto (inicio) ---------- */
.contact-section .bg-img4 { background-image: url(../images/4m/planta-wide.jpg) !important; background-size: cover; background-position: center; }
.contact-section .feature-box .icon[class*="fa-"] { font-size: 46px; }

/* ---------- Productos químicos ---------- */
.quimicos-section { padding: 110px 0 90px; background: linear-gradient(180deg, #f3f8fc 0%, #fff 100%); position: relative; }
.quimicos-img { background: radial-gradient(ellipse at center, #e1f1fb 0%, rgba(225, 241, 251, 0) 70%); padding: 30px 0; text-align: center; }
.quimicos-img img { max-width: 100%; filter: drop-shadow(0 25px 30px rgba(11, 42, 82, .18)); }
.presentaciones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.presentaciones span { background: var(--theme-color3); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 30px; }
.app-quimica { display: flex; gap: 18px; padding: 20px 22px; background: #fff; border: 1px solid #e3ecf3; border-left: 4px solid var(--theme-color1); margin-bottom: 16px; transition: all .3s; }
.app-quimica:hover { box-shadow: 0 15px 35px rgba(11, 42, 82, .08); transform: translateY(-2px); }
.app-quimica i { font-size: 30px; color: var(--theme-color1); width: 40px; flex-shrink: 0; padding-top: 4px; }
.app-quimica h5 { margin: 0 0 4px; font-size: 18px; }
.app-quimica p { margin: 0; font-size: 15px; line-height: 1.6; }

/* ---------- Servicios (lista de pasos) ---------- */
.features-section-two .feature-block-one .inner-box { height: 100%; }
.features-section-two .feature-block-one { height: calc(100% - 30px); margin-bottom: 30px; }
.features-section-two .feature-block-one .icon i[class*="fa-"] { font-size: 34px; }
.features-section-two .feature-block-one .feature-btn span { display: block; padding: 0; }
.service-cta-card { height: calc(100% - 30px); margin-bottom: 30px; background: linear-gradient(135deg, var(--theme-color3) 0%, var(--theme-color1) 100%); padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.service-cta-card h4 { color: #fff; margin-bottom: 12px; }
.service-cta-card p { color: rgba(255, 255, 255, .85); line-height: 1.6; margin-bottom: 24px; }
.service-cta-card .theme-btn { background: #fff; align-self: flex-start; }
.service-cta-card .theme-btn .btn-title { color: var(--theme-color3); }

.enfoque-box { display: flex; gap: 20px; align-items: center; background: #eaf5fc; padding: 26px 30px; border-left: 4px solid var(--theme-color1); margin-top: 30px; }
.enfoque-box i { font-size: 40px; color: var(--theme-color1); }
.enfoque-box h5 { margin: 0 0 4px; }
.enfoque-box p { margin: 0; line-height: 1.6; }

/* ---------- Nosotros ---------- */
.offer-section .info-box .text { color: #fff; }
.pillar-text { font-size: 15px; line-height: 1.7; }

/* ---------- Contacto ---------- */
.contact-details__info li .text span.ruc { font-weight: 600; }
.map-4m iframe { width: 100%; height: 420px; border: 0; display: block; filter: saturate(.85); }
.contact-details label { font-weight: 600; color: var(--theme-color3); }

/* ---------- Pie ---------- */
.main-footer .about-widget .text { margin-bottom: 20px; }
.main-footer .contact-widget-4m li { color: #9fb3c8; display: flex; gap: 12px; margin-bottom: 14px; line-height: 1.6; font-size: 15px; }
.main-footer .contact-widget-4m li i { color: var(--theme-color1); margin-top: 6px; width: 16px; }
.main-footer .contact-widget-4m a { color: #9fb3c8; }
.main-footer .contact-widget-4m a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float { position: fixed; right: 12px; bottom: 78px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 30px; z-index: 999; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .3s; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Varios ---------- */
.sec-title .sub-title { letter-spacing: 1.5px; }
.header-top .top-right .ruc-top { color: rgba(255, 255, 255, .75); font-size: 13px; }

/* Iconos Font Awesome dentro de bloques que usan Flaticon */
.service-block .lower-content .icon[class*="fa-"] { font-family: "Font Awesome 6 Pro" !important; font-weight: 300; background-color: var(--theme-color3); font-size: 40px; line-height: 100px; }
.service-block .inner-box:hover .lower-content .icon[class*="fa-"] { background-color: var(--theme-color1); }
.features-section .title { line-height: 1.3; }
.service-block .lower-content .chips { min-height: 62px; align-content: flex-start; }
.contact-form-page .form-group { margin-bottom: 18px; }
.contact-form-page .form-control { height: 56px; border: 1px solid #dfe8ef; background: #f5f9fc; border-radius: 0; padding: 10px 20px; font-size: 15px; }
.contact-form-page textarea.form-control { height: auto; min-height: 150px; }
.contact-form-page .form-control:focus { border-color: var(--theme-color1); box-shadow: none; background: #fff; }
.features-section-two .feature-block-one .title { font-size: 19px; line-height: 1.3; hyphens: none; word-break: normal; }
.contact-form-page label.error, .contact-form label.error { color: #d93025; font-size: 13px; margin-top: 4px; }
.contact-details__info li { align-items: center; }
.contact-details__info li .icon { flex-shrink: 0; }
.contact-details__info li .text span, .contact-details__info li .text a { font-size: 16px; line-height: 1.6; }
.contact-details__info li .text .ruc { font-weight: 600; }
@media (max-width: 767.98px) {
  .banner-section-one .hero-products { display: none; }
  .banner-section-one { padding-bottom: 170px; }
}

/* ---------- Títulos de página con video de fondo ---------- */
.page-title.page-title-video { overflow: hidden; }
.page-title-video .page-title-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.page-title.page-title-video:before { z-index: 1; opacity: 1; background: linear-gradient(90deg, rgba(9, 87, 144, .88) 0%, rgba(0, 154, 195, .70) 100%); }
.page-title-video .auto-container { position: relative; z-index: 2; }
.page-title-video .title, .page-title-video .page-breadcrumb li, .page-title-video .page-breadcrumb li a { color: #fff; }

/* ---------- Menú alineado a la derecha (junto a los botones) ---------- */
.main-header .header-lower .main-box .nav-outer { justify-content: flex-end; }
.main-header .header-lower .main-box .nav-outer .main-menu { margin-right: 30px; }
.main-header .header-lower .outer-box .theme-btn { margin-left: 14px; }

/* ---------- Botón WhatsApp del encabezado ---------- */
.btn-whatsapp-header { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff !important; font-weight: 700; font-size: 14px; padding: 0 22px; height: 54px; transition: background .3s; white-space: nowrap; }
.btn-whatsapp-header i { font-size: 22px; }
.btn-whatsapp-header:hover { background: #1ebe5a; }
@media (max-width: 1399.98px) {
  .btn-whatsapp-header { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
  .btn-whatsapp-header span { display: none; }
}
@media (max-width: 1023.98px) { .btn-whatsapp-header { margin-right: 14px; } }
.contact-details__info li .icon.icon-wa { background: #25d366; color: #fff; font-size: 26px; }

.main-header .header-lower .outer-box .info-btn { margin-right: 22px; }
@media (max-width: 1399.98px) {
  .main-header .header-lower .main-box .nav-outer .main-menu { margin-right: 20px; }
  .main-header .main-menu .navigation > li { margin-right: 26px !important; }
  .main-header .main-menu .navigation > li:last-child { margin-right: 0 !important; }
}
.brand-logo .brand-text small { white-space: nowrap; }
.main-header .main-menu .navigation > li.dropdown { margin-right: 40px !important; }

/* WhatsApp flotante: abajo a la derecha, encima del botón "subir" */
@media (max-width: 767.98px) {
  .whatsapp-float { width: 52px; height: 52px; font-size: 28px; right: 14px; bottom: 76px; }
}

/* ---------- Servicios: tarjeta CTA ancha ---------- */
.service-cta-card.service-cta-wide { height: 100%; min-height: 300px; margin-bottom: 0; padding: 50px 50px; background-image: linear-gradient(120deg, rgba(9, 87, 144, .95) 0%, rgba(0, 154, 195, .88) 100%), url(../images/4m/planta-wide.jpg); background-size: cover; background-position: center; }
.service-cta-wide .cta-kicker { color: #bfe9ff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.service-cta-wide h4 { font-size: 30px; }
.service-cta-wide p { max-width: 460px; }
/* Tarjetas de igual altura en Servicios y Productos */
.srv-eq .row > .service-block { display: flex; }
.srv-eq .service-block .inner-box { display: flex; flex-direction: column; width: 100%; }
.srv-eq .service-block .lower-content { flex: 1 1 auto; }

/* ---------- Efecto de agua en el banner principal ---------- */
.banner-section-one { overflow: hidden; }
.banner-section-one canvas.liquid-hero { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity .8s ease; }
.banner-section-one canvas.liquid-hero.is-ready { opacity: 1; }
/* Capa de color algo más liviana para que se note el agua */
.banner-section-one:before { background: linear-gradient(100deg, rgba(5, 24, 52, .86) 0%, rgba(8, 60, 112, .70) 50%, rgba(10, 139, 214, .30) 100%); pointer-events: none; }

/* ---------- Barra superior con degradado animado ---------- */
.main-header .header-top {
  background: linear-gradient(110deg, #0080b0 0%, #00538b 35%, #0b2a52 65%, #00538b 85%, #0080b0 100%);
  background-size: 300% 100%;
  animation: topbarFlow 12s ease-in-out infinite;
}
@keyframes topbarFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { .main-header .header-top { animation: none; } }
.main-header .header-top, .main-header .header-top a, .main-header .header-top .ruc-top, .main-header .header-top .list-style-one li { color: #fff; }
.main-header .header-top .list-style-one li i { color: #8fdcff; }

/* ---------- Inicio: carrusel "Nuestras soluciones" ---------- */
.project-section-home6.sol-4m { background: linear-gradient(135deg, #0b2a52 0%, #00538b 60%, #0080b0 100%); overflow: hidden; }
.sol-4m .sec-title { margin-bottom: 60px; }
.sol-4m .project-block-two .image-box .image img { aspect-ratio: 3 / 4; object-fit: cover; }
.sol-4m .project-block-two .info-box { text-align: center; }
.sol-4m .sol-cat { display: inline-block; color: #8fdcff; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.sol-4m .project-block-two .info-box .title a { color: #fff; }
.sol-4m .owl-nav .owl-prev, .sol-4m .owl-nav .owl-next { color: var(--theme-color1) !important; }

/* ---------- Servicios: grilla tipo proyectos ---------- */
.project-section.srv-4m { background-color: #0b2a52; background-image: linear-gradient(180deg, rgba(11, 42, 82, .96), rgba(0, 83, 139, .94)), url(../images/icons/dot-map.png); }
.srv-4m .sec-title { margin-bottom: 60px; }
.srv-4m .sec-title .text { color: rgba(255, 255, 255, .75); max-width: 680px; margin-left: auto; margin-right: auto; }
.srv-4m .project-block .image-box .image img { aspect-ratio: 3 / 4; object-fit: cover; }
.srv-4m .project-block .info-box .cat { background-color: var(--theme-color1); }
.srv-4m .project-block .info-box .cat i { margin-right: 4px; }
.srv-4m .project-block .info-box .title { background: #fff; }
.srv-cta-tile { height: calc(100% - 30px); margin-bottom: 30px; min-height: 380px; background: linear-gradient(150deg, #0080b0 0%, #00538b 60%, #0b2a52 100%); border: 1px solid rgba(255, 255, 255, .15); padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.srv-cta-tile > i { font-size: 46px; color: #8fdcff; margin-bottom: 18px; }
.srv-cta-tile h4 { color: #fff; font-size: 26px; margin-bottom: 12px; }
.srv-cta-tile p { color: rgba(255, 255, 255, .85); line-height: 1.6; margin-bottom: 26px; }
.srv-cta-tile .theme-btn { background: #fff; align-self: flex-start; }
.srv-cta-tile .theme-btn .btn-title { color: #0b2a52; }

/* Servicios: tarjeta completa clicable */
.srv-4m .project-block .image-box { position: relative; }
.srv-4m .srv-card-link { position: absolute; inset: 0; z-index: 5; }
.srv-4m .project-block .inner-box { cursor: pointer; }
.srv-4m .project-block .image-box .image img { transition: transform .6s ease; }
.srv-4m .project-block .inner-box:hover .image-box .image img { transform: scale(1.06); }
.srv-4m .project-block .info-box .title { color: var(--theme-color3); }
.srv-4m .project-block .inner-box:hover .info-box .title { color: var(--theme-color1); }

/* Barra superior: quitar fondos internos que tapaban la animación */
.header-top .inner-container,
.header-style-two .header-top .inner-container { background: transparent !important; background-color: transparent !important; }

/* ---------- Logo: entrada desde la derecha al cargar la página ---------- */
@keyframes logoFadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.header-lower .logo .brand-logo img,
.header-lower .logo .brand-logo .brand-text strong,
.header-lower .logo .brand-logo .brand-text small { opacity: 0; animation: logoFadeInRight .7s cubic-bezier(.22, .61, .36, 1) forwards; }
.header-lower .logo .brand-logo img { animation-delay: .15s; }
.header-lower .logo .brand-logo .brand-text strong { animation-delay: .55s; }
.header-lower .logo .brand-logo .brand-text small { animation-delay: .95s; }
@media (prefers-reduced-motion: reduce) {
  .header-lower .logo .brand-logo img,
  .header-lower .logo .brand-logo .brand-text strong,
  .header-lower .logo .brand-logo .brand-text small { animation: none; opacity: 1; }
}

/* Productos: separación entre filas de tarjetas (el ícono sobresale 50px por arriba) */
#equipos .row > .service-block { margin-bottom: 90px; }
#equipos .row { margin-top: 20px; }
@media (max-width: 767.98px) { #equipos .row > .service-block { margin-bottom: 80px; } }

/* ---------- Botón "Solicitar cotización" en todas las versiones del menú ---------- */
.sticky-header .nav-outer { display: flex; align-items: center; }
.sticky-header .sticky-cta { margin-left: 30px; padding: 12px 26px; white-space: nowrap; }
.sticky-header .sticky-cta .btn-title { font-size: 13px; }
@media (max-width: 1023.98px) { .sticky-header .sticky-cta { display: none; } }
.mobile-menu .mobile-cta { padding: 20px 25px 10px; }
.mobile-menu .mobile-cta .theme-btn { display: block; width: 100%; text-align: center; }
.main-header .theme-btn.is-current { box-shadow: 0 0 0 3px rgba(10, 139, 214, .25); }

/* ---------- No cortar palabras a la mitad en ningún texto ---------- */
body, h1, h2, h3, h4, h5, h6, p, li, a, span, .title, .text {
  -ms-word-wrap: normal; word-wrap: normal; overflow-wrap: normal; word-break: normal;
  -webkit-hyphens: manual; hyphens: manual;
}
/* Correos y enlaces largos sí pueden partirse para no desbordar en celulares */
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Caja azul "Evaluamos su requerimiento..." más ancha para que entren las palabras */
.contact-section .content-column .feature-box { width: 330px; padding: 55px 40px 45px; }
@media (max-width: 991.98px) { .contact-section .content-column .feature-box { width: 100%; } }

/* ==========================================================
   Productos (v06): portada, tratamiento químico y fichas
   ========================================================== */
/* Portada de productos */
.prod-hub-4m { padding: 110px 0 40px; }
.hub-card { display: block; position: relative; overflow: hidden; margin-bottom: 30px; background: var(--theme-color3); color: #fff; }
.hub-card figure { margin: 0; }
.hub-card figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .55; transition: transform .7s ease, opacity .4s; }
.hub-card:hover figure img { transform: scale(1.05); opacity: .4; }
.hub-card .hub-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; background: linear-gradient(0deg, rgba(6, 26, 53, .95) 0%, rgba(6, 26, 53, 0) 100%); }
.hub-kicker { display: inline-block; color: #8fdcff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.hub-card h3 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.hub-card p { color: rgba(255, 255, 255, .85); margin-bottom: 16px; line-height: 1.6; }
.hub-more { font-weight: 700; color: #fff; border-bottom: 2px solid var(--theme-color1); padding-bottom: 3px; }
.hub-more i { margin-left: 6px; transition: margin .3s; }
.hub-card:hover .hub-more i { margin-left: 12px; }
@media (max-width: 575.98px) { .hub-card .hub-content { padding: 24px; } .hub-card h3 { font-size: 24px; } .hub-card figure img { aspect-ratio: 3 / 4; } }

/* Atajos a cada sistema */
a.app-quimica.app-jump { position: relative; align-items: center; color: inherit; }
.app-jump .sis-num { display: block; font-size: 12px; font-weight: 700; color: var(--theme-color1); letter-spacing: 1.2px; text-transform: uppercase; }
.app-jump .jump-arrow { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: #e8f4fc; color: var(--theme-color1); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; transition: all .3s; }
.app-jump .jump-arrow i { font-size: 14px; width: auto; padding: 0; color: inherit; }
.app-jump:hover .jump-arrow { background: var(--theme-color1); color: #fff; }
html { scroll-behavior: smooth; }
.sistema-4m { scroll-margin-top: 110px; }

/* Grupos por sistema */
.productos-4m { padding: 40px 0 60px; }
.sistema-4m { margin-bottom: 50px; }
.sistema-head { display: flex; align-items: center; gap: 28px; padding: 30px 36px; margin-bottom: 30px; background: linear-gradient(120deg, #0b2a52 0%, #00538b 60%, #0080b0 100%); color: #fff; }
.sistema-num { font-family: var(--title-font); font-size: 64px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); flex-shrink: 0; }
.sistema-info .sub-title { color: #8fdcff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.sistema-info h3 { color: #fff; margin: 4px 0 6px; font-size: 28px; }
.sistema-info p { color: rgba(255, 255, 255, .82); margin: 0; line-height: 1.6; max-width: 720px; }
.sistema-icon { margin-left: auto; font-size: 54px; color: rgba(255, 255, 255, .25); flex-shrink: 0; }
@media (max-width: 767.98px) {
  .sistema-head { flex-wrap: wrap; gap: 14px; padding: 24px; }
  .sistema-num { font-size: 44px; }
  .sistema-icon { display: none; }
  .sistema-info h3 { font-size: 22px; }
}

/* Tarjeta de producto */
.prod-col { display: flex; margin-bottom: 30px; }
.prod-card-4m { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid #e3ecf3; transition: box-shadow .3s, transform .3s; }
.prod-card-4m:hover { box-shadow: 0 20px 40px rgba(11, 42, 82, .12); transform: translateY(-4px); }
.prod-img { display: block; position: relative; overflow: hidden; background: #f6f6f6; }
.prod-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform .6s ease; }
.prod-card-4m:hover .prod-img img { transform: scale(1.05); }
.prod-badge { position: absolute; top: 14px; left: 14px; background: var(--theme-color3); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 5px 12px; border-radius: 30px; line-height: 1.5; }
.prod-badge i { margin-right: 4px; color: #8fdcff; }
.prod-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 24px 26px 22px; border-top: 3px solid var(--theme-color1); }
.prod-tipo { display: block; color: var(--theme-color1); font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 6px; }
.prod-name { font-size: 22px; margin: 0 0 10px; }
.prod-name a { color: var(--theme-color3); }
.prod-name a:hover { color: var(--theme-color1); }
.prod-text { font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.prod-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #e3ecf3; }
.prod-more { font-weight: 700; font-size: 14px; color: var(--theme-color3); text-transform: uppercase; letter-spacing: .5px; }
.prod-more i { margin-left: 6px; color: var(--theme-color1); transition: margin .3s; }
.prod-more:hover i { margin-left: 10px; }
.prod-wa { width: 42px; height: 42px; border-radius: 50%; background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .3s, background .3s; }
.prod-wa:hover { background: #1ebe5a; transform: scale(1.08); }

/* Ficha de producto */
.prod-detail-4m { padding: 110px 0 80px; }
.prod-detail-img { position: relative; margin: 0; background: #f6f6f6; border: 1px solid #e3ecf3; }
.prod-detail-img img { width: 100%; display: block; }
.prod-detail-title { font-size: 42px; margin: 4px 0 14px; color: var(--theme-color3); }
.prod-detail-lead { font-size: 19px; line-height: 1.6; color: var(--theme-color3); font-weight: 500; margin-bottom: 16px; }
.prod-detail-4m p { line-height: 1.75; }
.prod-benef { list-style: none; padding: 0; margin: 22px 0 26px; }
.prod-benef li { position: relative; padding: 7px 0 7px 34px; font-weight: 600; color: var(--theme-color3); line-height: 1.5; }
.prod-benef li i { position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--theme-color1); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.prod-meta { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e3ecf3; margin-bottom: 30px; }
.prod-meta > div { padding: 14px 18px; font-weight: 600; color: var(--theme-color3); }
.prod-meta > div + div { border-left: 1px solid #e3ecf3; }
.prod-meta span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #7b8a9a; margin-bottom: 2px; }
.prod-detail-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-wa-4m { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff !important; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; padding: 0 32px; min-height: 60px; transition: background .3s; }
.btn-wa-4m i { font-size: 24px; }
.btn-wa-4m:hover { background: #1ebe5a; }
@media (max-width: 575.98px) {
  .prod-detail-title { font-size: 32px; }
  .prod-meta { grid-template-columns: 1fr; }
  .prod-meta > div + div { border-left: 0; border-top: 1px solid #e3ecf3; }
  .prod-detail-btns > a { width: 100%; justify-content: center; text-align: center; }
}
.related-4m { background: linear-gradient(180deg, #f3f8fc 0%, #fff 100%); padding: 100px 0 70px; }
.prod-cta-4m { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px; background: linear-gradient(150deg, #0080b0 0%, #00538b 60%, #0b2a52 100%); color: #fff; }
.prod-cta-4m > i { font-size: 44px; color: #8fdcff; margin-bottom: 16px; }
.prod-cta-4m h4 { color: #fff; font-size: 24px; margin-bottom: 10px; max-width: 460px; }
.prod-cta-4m p { color: rgba(255, 255, 255, .85); line-height: 1.6; margin-bottom: 24px; max-width: 460px; }
.hub-card .hub-content { padding-top: 140px; background: linear-gradient(0deg, rgba(6, 26, 53, .97) 0%, rgba(6, 26, 53, .85) 45%, rgba(6, 26, 53, 0) 100%); }
@media (max-width: 575.98px) { .page-title .title { font-size: 40px; line-height: 1.15; } }

/* ==========================================================
   Logo por partes: 307 x 108 px
   Orden de aparición: 01 escudo → 02 "4M" → 03 slogan
   ========================================================== */
.logo-4m { display: inline-flex !important; align-items: center; height: 108px; text-decoration: none; }
.logo-4m .lg { display: block; width: auto !important; max-width: none !important; max-height: none !important; }
.logo-4m .lg-1 { height: 104px !important; }
.logo-4m .lg-2 { height: 108px !important; }
.logo-4m .lg-3 { height: 99px !important; }
.main-header .header-lower .logo-box .logo { padding: 0; }

@keyframes lgShield { 0% { opacity: 0; transform: scale(.6) rotate(-12deg); } 70% { opacity: 1; transform: scale(1.06) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes lgPop { 0% { opacity: 0; transform: translateY(-14px) scale(.85); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes lgFromRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.header-lower .logo-4m .lg { opacity: 0; animation-fill-mode: forwards; animation-timing-function: cubic-bezier(.22, .61, .36, 1); }
.header-lower .logo-4m .lg-1 { animation-name: lgShield; animation-duration: .8s; animation-delay: .15s; }
.header-lower .logo-4m .lg-2 { animation-name: lgPop; animation-duration: .6s; animation-delay: .75s; }
.header-lower .logo-4m .lg-3 { animation-name: lgFromRight; animation-duration: .7s; animation-delay: 1.25s; }
@media (prefers-reduced-motion: reduce) { .header-lower .logo-4m .lg { animation: none; opacity: 1; } }

/* Menú fijo al hacer scroll: logo completo, más pequeño y sin animación */
.sticky-header .logo-4m { height: 60px; }
.sticky-header .logo-4m .lg-1 { height: 58px !important; }
.sticky-header .logo-4m .lg-2 { height: 60px !important; }
.sticky-header .logo-4m .lg-3 { height: 55px !important; }

/* Celulares: misma proporción, más compacto */
@media (max-width: 575.98px) {
  .header-lower .logo-4m { height: 72px; }
  .header-lower .logo-4m .lg-1 { height: 69px !important; }
  .header-lower .logo-4m .lg-2 { height: 72px !important; }
  .header-lower .logo-4m .lg-3 { height: 66px !important; }
}

/* ==========================================================
   v08: encabezado más bajo, teléfono visible, banner
   ========================================================== */
/* Sin relleno vertical en la caja del logo: el menú queda a la altura del logo */
.main-header .header-lower .logo-box,
.header-style-two .header-lower .logo-box { padding: 0 !important; }

/* Teléfono del encabezado visible en pantallas de 1400 px o más (ej. 1600x900) */
@media (min-width: 1400px) {
  .header-style-two .info-btn { display: block !important; }
}
@media (min-width: 1400px) and (max-width: 1699.98px) {
  .main-header .header-lower .main-box .nav-outer .main-menu { margin-right: 26px; }
  .main-header .header-lower .outer-box .info-btn { margin-right: 6px; }
}

/* Banner: productos apoyados sobre la franja celeste inferior */
.banner-section-one .hero-products { position: absolute; z-index: 3; right: 5%; bottom: 46px; width: 40%; max-width: 660px; max-height: none; }
.banner-section-one .hero-products img { display: block; width: 100%; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35)); }
@media (max-width: 1199.98px) { .banner-section-one .hero-products { width: 46%; right: 3%; bottom: 40px; } }

/* Banner: logo como marca de agua */
.banner-section-one .hero-watermark { position: absolute; z-index: 2; top: 46%; left: 58%; transform: translate(-50%, -50%); height: 68%; width: auto; max-width: none; pointer-events: none; user-select: none; }
@media (max-width: 991.98px) { .banner-section-one .hero-watermark { left: 72%; height: 55%; } }
@media (max-width: 767.98px) { .banner-section-one .hero-watermark { left: 50%; top: 42%; height: 45%; opacity: .7; } }
@media (max-width: 767.98px) {
  .banner-section-one .hero-products { display: block !important; width: 92%; right: 4%; bottom: 34px; }
  .banner-section-one { padding-bottom: 230px !important; }
}

/* ---------- v10: redes sociales en fichas y páginas de solución ---------- */
.prod-social { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #e3ecf3; }
.prod-social span { font-family: var(--title-font); font-weight: 700; color: var(--theme-color3); font-size: 15px; margin-right: 6px; }
.prod-social a { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e8f4fc; color: var(--theme-color3); font-size: 17px; transition: all .3s; }
.prod-social a:hover { background: var(--theme-color1); color: #fff; transform: translateY(-2px); }
.sol-detail-img img { aspect-ratio: 1 / 1; object-fit: cover; }
.hub-card h3 { font-size: 26px; }
@media (min-width: 1200px) { .hub-card figure img { aspect-ratio: 3 / 4; } .hub-card .hub-content { padding: 120px 28px 30px; } }

/* ---------- v11: Contacto más compacto + logo CIP ---------- */
.contact-details .contact-details__info { margin-top: 0; }
.contact-details .contact-details__info li + li { margin-top: 26px; }
.cip-badge { margin-top: 34px; padding-top: 28px; border-top: 1px solid #e3ecf3; }
.cip-badge img { display: block; width: 100%; max-width: 280px; height: auto; }

/* Detalle de servicio (v13) */
.srv-detail-img img { aspect-ratio: 3 / 4; object-fit: cover; }
.srv-detail-4m .srv-alcance-title { margin: 26px 0 0; font-size: 20px; color: var(--theme-color3); }
.srv-detail-4m .srv-alcance-title + .prod-benef { margin-top: 12px; }

/* Logos de Contacto (v14): el ancho máximo de cada logo se define en el administrador */
.cip-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.cip-badge img { width: 100%; height: auto; }
.cip-badge a { display: block; flex: 0 1 auto; }

/* v16: título de "¿Quiénes somos?" en el inicio */
.about-section .sec-title h2 { font-size: 32px; padding-bottom: 12px; margin-bottom: 0; }

/* v16: Quiénes somos - misión, visión y políticas */
.nosotros-4m .sec-title { margin-bottom: 26px; }
.nosotros-4m .sec-title h2 { font-size: 32px; }
.nosotros-4m .image-column .inner-column.sin-imagen-2 { padding-bottom: 0; }
.nosotros-4m .call-anytime-box .number a { color: inherit; }
.mv-4m { position: relative; padding: 18px 22px 16px; margin-bottom: 16px; background: #f3f8fc; border-left: 4px solid var(--theme-color1); border-radius: 0 6px 6px 0; }
.mv-4m h4 { font-size: 21px; margin: 0 0 6px; color: var(--theme-color3); }
.mv-4m h4 i { color: var(--theme-color1); margin-right: 6px; }
.mv-4m p { margin: 0; line-height: 1.7; }
.politicas-4m { margin-top: 30px; }
.politicas-4m .politicas-titulo { font-size: 20px; text-transform: uppercase; letter-spacing: .5px; color: var(--theme-color3); margin-bottom: 18px; }
.politica-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e3ecf3; box-shadow: 0 6px 18px rgba(11, 42, 82, .08); }
.politica-card > a:first-child { display: block; overflow: hidden; }
.politica-card img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.politica-card > a:first-child:hover img { transform: scale(1.04); }
.politica-btn { display: block; margin-top: auto; padding: 11px 12px; text-align: center; background: #2e9e5b; color: #fff !important; font-size: 13px; font-weight: 600; line-height: 1.35; transition: background .2s; }
.politica-btn:hover { background: #237a46; }
.politica-btn i { margin-right: 6px; }
.politica-btn { min-height: 58px; display: flex; align-items: center; justify-content: center; }

/* v17: aviso de vista previa cuando el sitio está en construcción */
.aviso-vista-previa { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; padding: 9px 16px; text-align: center; font-size: 13px; line-height: 1.4; color: #3d2c00; background: #ffd34d; box-shadow: 0 -2px 10px rgba(0, 0, 0, .15); }
.aviso-vista-previa i { margin-right: 6px; }

/* v20: Nanoburbujas / Ecotubo (páginas con contenido editable) */
.pp-4m { padding: 100px 0 40px; }
.pp-banner { position: relative; margin: 0 auto 80px; max-width: 1000px; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 40px rgba(11, 42, 82, .18); }
.pp-banner img { display: block; width: 100%; height: auto; }
.pp-banner-texto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 30px 6%; background: linear-gradient(90deg, rgba(11, 42, 82, 0) 30%, rgba(11, 42, 82, .75) 100%); }
.pp-banner-texto h2 { color: #fff; font-size: 38px; line-height: 1.2; max-width: 520px; text-transform: uppercase; margin: 0; }
.pp-banner-texto .accent { color: #8fdcff; }
.pp-intro { margin-bottom: 70px; }
.pp-texto p { line-height: 1.8; margin-bottom: 16px; text-align: justify; }
.pp-texto p:last-child { margin-bottom: 0; }
.pp-texto strong { color: var(--theme-color3); }
.pp-figura { position: relative; margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(11, 42, 82, .15); background: #f3f8fc; }
.pp-figura a { display: block; }
.pp-figura img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.pp-figura:hover img { transform: scale(1.04); }
.pp-figura-alta, .pp-figura-alta a, .pp-figura-alta img { height: 100%; }
.pp-figura-alta img { object-fit: cover; min-height: 320px; }
.pp-bloque { padding: 50px 0; border-top: 1px solid #e3ecf3; }
.pp-bloque-titulo { font-size: 30px; margin-bottom: 18px; color: var(--theme-color3); position: relative; padding-left: 18px; }
.pp-bloque-titulo:before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--theme-color1); }
.pp-imagenes { display: grid; gap: 18px; }
.pp-imagenes.doble { grid-template-columns: 1fr 1fr; align-items: center; }
.pp-imagenes .pp-figura-2 { background: #fff; }
.pp-ventajas { padding: 90px 0 70px; background: #f3f8fc; }
.pp-ventaja { height: 100%; padding: 26px 26px 22px; background: #fff; border-radius: 8px; border-top: 4px solid var(--theme-color1); box-shadow: 0 6px 20px rgba(11, 42, 82, .07); }
.pp-ventaja h4 { font-size: 19px; line-height: 1.35; margin-bottom: 12px; color: var(--theme-color3); }
.pp-ventaja h4 i { color: var(--theme-color1); margin-right: 6px; }
.pp-ventaja .pp-texto p { font-size: 15px; line-height: 1.7; text-align: left; }
.pp-video { padding: 90px 0 30px; }
.pp-video-marco { max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 14px 40px rgba(11, 42, 82, .2); }
.pp-video-marco iframe, .pp-video-marco video { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 991px) {
  .pp-4m { padding-top: 70px; }
  .pp-banner { margin-bottom: 50px; }
  .pp-banner-texto h2 { font-size: 24px; }
  .pp-bloque-titulo { font-size: 24px; }
  .pp-texto p { text-align: left; }
}
