/* Cleaner — estilos del sitio. Valores tomados del sitio original (colores, tamaños, quiebres). */

:root {
  --gris: #333333;
  --verde: #00953b;
  --azul: #0033a1;
  --naranja: #ff5000;
  --olivo: #e2e239;
  --celeste: #e0f2fc;
  --morado: #902ee7;
  --negro-cookies: #1a1a1a;
}

@font-face { font-family: Rubik; src: url(/fonts/Rubik-Light.woff) format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: Rubik; src: url(/fonts/Rubik-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Rubik; src: url(/fonts/Rubik-Medium.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: Rubik; src: url(/fonts/Rubik-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: Rubik; src: url(/fonts/Rubik-Bold.woff) format("woff"); font-weight: 800; font-display: swap; }

body {
  background-color: #fff;
  font-family: "Rubik", sans-serif;
  font-weight: 300;
  color: var(--gris);
  overflow-x: hidden;
}

.ico { display: inline-block; height: 1em; vertical-align: -0.125em; }
.ico-angle { width: 0.5em; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--azul); color: #fff; padding: 8px 16px; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Botones ---------- */
.btnCorpBlue { background-color: var(--azul); color: #fff; border-radius: 8px; padding-left: 15px; padding-right: 15px; }
.btnCorpBlue:hover { color: var(--azul); border-color: var(--azul); }
.btnCorpWhite {
  background-color: transparent; color: #fff !important; border-radius: 8px;
  padding-left: 15px; padding-right: 15px; border-color: #fff !important;
}
.btnCorpWhite:hover { background-color: rgba(255, 255, 255, 0.12); }
.btnVerde { background-color: var(--verde); color: #fff; width: 100%; font-size: 26px; border-radius: 26px; }
.btnVerde:hover { background-color: transparent; color: var(--verde); border-color: var(--verde); }
.btnContacto {
  background-color: #0033a0; color: #fff; width: 50%; font-size: 22px; border-radius: 15px;
  margin-left: auto; display: block;
}
.btnContacto:hover, .btnContacto:focus-visible { background-color: transparent; color: var(--azul); border-color: var(--azul); }
.btnContacto:disabled { opacity: 0.6; }

.btnBio, .btnBio:hover {
  background-color: var(--verde); color: #fff; width: 70%; display: inline-block;
  font-size: 20px; font-weight: 400; margin-top: 50px; margin-bottom: 80px;
}
.btnBio:hover { opacity: 0.7; }
.btnWyn, .btnWyn:hover { background-color: var(--morado); }

/* ---------- Diseño general ---------- */
.paddingCustom { padding-left: 4rem; padding-right: 4rem; }

.tituloCompuesto { font-size: 42px; color: var(--azul); font-weight: 300; line-height: 46px; margin-top: 0; }
.tituloCompuesto strong { font-weight: 600; color: var(--verde); }

.fullBg { position: relative; }
.bgTopCenter { background-position: top center !important; }

.degradadoTopToBottom {
  width: 100%; position: absolute; z-index: 1; top: 0; height: 500px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 12%, #fff 70%, #fff 100%);
}

/* ---------- Menú ---------- */
.navbar {
  padding-top: 20px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #fff 48%, #fff 72%);
  transition: all 0.3s ease-out;
}
.navbar .container-fluid { position: static; }
.backBlue {
  background-image: url(/img/azul-menu.png);
  background-position: left center; background-repeat: no-repeat; background-size: 100% 100%;
  position: absolute; left: 0; top: 0; height: 200px; width: 400px; z-index: 0;
}
.navbar-brand { position: relative; z-index: 1; }
.navbar-brand img { height: 100px; width: auto; transition: all 0.3s ease-out; }
.navbar-toggler { position: relative; z-index: 1; background-color: #fff; }
.navbar-collapse { position: relative; z-index: 1; }

#menu-principal { border-bottom: 1px solid var(--azul); }
#menu-principal li { padding-left: 15px; padding-right: 15px; padding-bottom: 5px; }
#menu-principal li:first-child { padding-left: 0; }
#menu-principal li:last-child { padding-right: 0; }
#menu-principal li a {
  text-transform: uppercase; font-size: 18px; text-decoration: none; color: var(--azul); position: relative;
}
#menu-principal > li a::after {
  content: ""; background-color: transparent; width: 100%; position: absolute;
  height: 6px; left: 0; bottom: -12px; border-radius: 3px; transition: background-color 0.2s;
}
#menu-principal > li a:hover::after { background-color: rgba(226, 226, 57, 0.5); }
#menu-principal > li.current-menu-item a::after { background-color: var(--olivo); }

/* ---------- Banner rotativo ---------- */
#bannerProductos { position: relative; height: 860px; background-color: var(--gris); }
#bannerProductos .waveTop { width: 50%; position: absolute; top: -100px; left: 0; z-index: 2; height: auto; pointer-events: none; }
.slider { position: relative; z-index: 1; height: 100%; overflow: hidden; touch-action: pan-y; }
.slide {
  position: absolute; inset: 0; height: 860px; background-color: #fff;
  opacity: 0; transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; z-index: 1; }
.piezaBg { height: 100%; background-size: cover; background-position: top center; background-repeat: no-repeat; }
.bg-slide-home { background-image: url(/img/banner-home.jpg); }
.bg-slide-comprometidos { background-image: url(/img/banner-comprometidos.jpg); }
.bg-slide-sostenible { background-image: url(/img/banner-sostenible.jpg); }
.waveGreen { position: absolute; bottom: 0; width: 50% !important; right: 0; }
.backwave { bottom: 0; position: absolute; width: 100%; left: 0; }
.contenido { width: 100%; z-index: 2; position: absolute; bottom: 100px; }
.contenido p { font-size: 32px; color: #fff; font-weight: 400; line-height: 38px; margin-bottom: 0; }
.slider-dots { text-align: center; position: absolute; bottom: 300px; width: 47%; right: 0; z-index: 3; line-height: 0; }
.slider-dot {
  display: inline-block; vertical-align: middle; position: relative; top: 0;
  width: 12px; height: 12px; margin: 0 10px; padding: 0; border: 0; border-radius: 50%;
  background-color: #fff; transition: all 0.2s ease-out; cursor: pointer;
}
.slider-dot.active { width: 20px; height: 20px; top: -1px; }
.slider-dot:focus-visible { outline: 2px solid var(--olivo); outline-offset: 2px; }

/* ---------- Inicio: filosofía ---------- */
#filosofia { padding-top: 30px; position: relative; z-index: 2; background-color: var(--celeste); padding-bottom: 120px; }
#filosofia .tituloCompuesto strong { color: var(--azul); }
#filosofia p { font-size: 20px; width: 100%; line-height: 28px; text-align: justify; }
#filosofia .destacadoHome p { text-align: center; }
#filosofia p strong { color: var(--azul); font-weight: 400; }
#logoIntermedio { height: 180px; width: auto; margin-top: 50px; margin-bottom: 80px; }
.destacadoHome p { font-weight: 400; color: var(--azul); line-height: 32px !important; font-size: 22px !important; }
.destacadoHome iframe { border: 0; max-width: 100%; vertical-align: baseline; display: inline-block; }

/* ---------- Inicio: marcas ---------- */
#marcas {
  padding-top: 200px; background-color: var(--celeste); position: relative;
  background-image: url(/img/bg-cleaner.png); background-repeat: no-repeat;
  background-position: center; background-size: auto 100%;
}
#apoyoMarcas { position: absolute; width: 50%; height: auto; left: 0; top: 0; z-index: 1; }
#marcas .container-xxl { z-index: 1; position: relative; top: 0; }
#marcas .tituloCompuesto, #marcas .tituloCompuesto strong { color: #fff !important; }
#marcas .tituloCompuesto { margin-top: 150px; }
#marcas .tituloCompuesto strong, #nuestrasMarcas .tituloCompuesto strong { font-size: 52px; }
.logo-marca { height: 200px; width: auto; }
.producto-marca { height: 500px; width: auto; }
#cajaProductos { margin-top: 150px; }

/* ---------- Quiénes somos ---------- */
#boxValores { margin-top: 30px; padding-bottom: 100px; }
.detalleValores { list-style: none; padding: 0; margin: 70px 0; }
.valores {
  color: var(--azul); text-align: center !important; font-size: 24px !important;
  line-height: 28px; margin-bottom: 30px; font-weight: 500;
}

/* ---------- Páginas con imagen superior ---------- */
#bgContacto { height: 800px; background-position: center; background-repeat: no-repeat; background-size: cover; }
.bg-sostenibilidad { background-image: url(/img/banner-sostenibilidad.jpg); }
.bg-marcas { background-image: url(/img/banner-marcas.jpg); }
.bg-contacto { background-image: url(/img/banner-contacto.jpg); }
.waveContacto { position: absolute; width: 100%; height: auto; bottom: 0; left: 0; z-index: 1; }

/* ---------- Sostenibilidad ---------- */
#compromiso {
  background-image: url(/img/bg-compromiso.png); background-repeat: no-repeat;
  background-position: top center; background-size: 100% auto;
  padding-top: 150px; padding-bottom: 200px; margin-top: -300px; z-index: 2; position: relative;
}
#compromiso p { font-size: 20px; width: 100%; line-height: 28px; color: #fff; text-align: justify; }
#compromiso .tituloCompuesto, #compromiso .tituloCompuesto strong { color: #fff; }
.anillos { margin-bottom: 20px; height: 100px; width: auto; }
.sellosUP p, .sellosDWN p { font-size: 14px !important; line-height: 22px !important; }
.sellos p strong { font-size: 18px; font-weight: 400; }
.iconoSostenible { width: 80px; height: auto; filter: brightness(0) invert(1); margin-bottom: 15px; }
.bottomLine { border-bottom: 1px solid rgba(255, 255, 255, 0.7); }
.lineaLateral {
  position: absolute; background-image: url(/img/linea-lateral.png);
  background-size: 100% auto; background-position: bottom center; background-repeat: no-repeat;
  height: calc(100% + 50px); left: -2px; width: 5px; top: -20px;
}
.sellosUP .lineaLateral { transform: rotate(180deg); height: 100%; top: 0; }
.sellosUP .col-lg-3:first-child .lineaLateral,
.sellosDWN .col-lg-3:first-child .lineaLateral { display: none; }
.sellosDWN .lineaLateral { height: 100%; top: 0; }

/* ---------- Nuestras marcas ---------- */
#nuestrasMarcas {
  background-image: url(/img/bg-marcas.png); background-repeat: no-repeat;
  background-position: top center; background-size: 100% auto;
  padding-top: 150px; padding-bottom: 100px; margin-top: -300px; z-index: 2; position: relative;
}
#nuestrasMarcas p { font-size: 16px; width: 100%; line-height: 28px; color: #fff; text-align: justify; }
#nuestrasMarcas p strong { font-weight: 400; }
#nuestrasMarcas .tituloCompuesto, #nuestrasMarcas .tituloCompuesto strong { color: #fff; }
.cajainterna { margin-top: 100px !important; }
.fotoprod { height: auto; }

/* ---------- Formularios (contacto, mayorista, trabajo) ---------- */
#contenidoContacto { background-color: var(--celeste); padding-bottom: 150px; position: relative; }
#contenidoContacto .container { z-index: 1; position: relative; color: #fff; }
#contenidoContacto .container p { font-size: 20px; width: 100%; line-height: 28px; }
#boxContact {
  padding: 50px 80px; background-color: #fff; border-radius: 30px;
  box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px; margin-top: -150px; position: relative; z-index: 2;
}
#boxContact h1 {
  font-size: 42px; line-height: 48px; color: var(--azul); font-weight: 300;
  margin-bottom: 50px; margin-top: 40px;
}
#boxContact h1.mb-4 { margin-bottom: 1.5rem; }
#boxContact h1 strong { font-weight: 600; }
.cleanerContact { position: absolute; height: 120px; width: auto; top: -30px; right: 0; }
#boxContact .text-dark a { color: var(--azul); }
.bioForm .form-control { border-radius: 0; border-width: 0; border-bottom-width: 1px; font-size: 18px; }
.bioForm textarea.form-control { border: 1px solid #ddd !important; border-radius: 10px; }
.bioForm .form-control:focus { box-shadow: none; border-color: var(--azul); }
.bioForm .form-control.is-invalid { border-color: #dc3545; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: block; color: var(--gris); font-size: 18px; line-height: 23px; text-align: center; min-height: 31px; padding-top: 8px; }
.form-status.ok { color: var(--verde); font-weight: 400; }
.form-status.error { color: #c0392b; font-weight: 400; }
.bgWork { height: 650px !important; }

/* ---------- Páginas simples (términos, 404) ---------- */
#simplePage { margin-top: 250px; position: relative; z-index: 3; padding-bottom: 100px; }
#simplePage h1 { font-weight: 600; font-size: 42px; margin-bottom: 50px; color: var(--azul); }
#simplePage h2 { font-size: 2rem; font-weight: 500; margin-bottom: 1.5rem; }
#simplePage p { font-size: 18px; }

/* ---------- Pie de página ---------- */
footer { background-color: var(--azul); color: #fff; padding-top: 75px; padding-bottom: 30px; }
footer img.logoFooter { height: 120px; width: auto; }
.footerNav { padding-left: 0; list-style-type: none; margin-bottom: 0; }
.footerNav a { font-weight: 400; text-decoration: none; color: #fff; line-height: 32px; text-transform: uppercase; }
.footerNav a:hover, .terminosFooter:hover { text-decoration: underline; }
footer .row .col-borde { border-right: 1px solid #fff; }
footer .row > div:last-child { border-right: 0; }
.telefonoFooter { font-weight: 400; line-height: 32px; }
.phoneData { margin: 0; font-style: normal; }
.phoneIcon {
  width: 36px; height: 36px; background-color: #fff; border-radius: 50%; text-align: center;
  line-height: 34px; display: inline-block; margin-right: 10px; color: var(--azul); font-size: 20px;
}
.phoneIcon .ico-marker { width: 0.75em; vertical-align: -0.15em; }
.rowBarraFooter { border-top: 1px solid #fff; margin-top: 60px; }
.terminosFooter { color: #fff; text-decoration: none; }

/* ---------- Aviso de cookies ---------- */
#cookies {
  position: fixed; bottom: 0; left: 0; right: 0; background-color: var(--negro-cookies); color: #fff;
  font-size: 14px; padding: 15px 0; z-index: 999999;
}
#cookies[hidden] { display: none; }
.btn-cookies { background-color: var(--azul); color: #fff; font-weight: 600; }
.btn-cookies:hover, .btn-cookies:focus-visible { color: #fff; background-color: var(--azul); opacity: 0.8; }

/* ---------- Animación al hacer scroll (aparece hacia arriba) ---------- */
html.js [data-aos] {
  opacity: 0; transform: translate3d(0, 100px, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js [data-aos].aos-animate { opacity: 1; transform: none; }
html.js [data-aos-delay="150"] { transition-delay: 150ms; }
html.js [data-aos-delay="300"] { transition-delay: 300ms; }
html.js [data-aos-delay="450"] { transition-delay: 450ms; }
html.js [data-aos-delay="600"] { transition-delay: 600ms; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-aos], .slide, .slider-dot, .navbar, .navbar-brand img { transition: none !important; }
}

a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--olivo); outline-offset: 2px; }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 1600px) {
  #bgContacto { height: 900px; }
  #nuestrasMarcas { margin-top: -350px; }
  #marcas { background-position: top center; background-size: cover; padding-top: 120px; }
  .contenido { bottom: 120px; }
  .waveGreen { width: 42% !important; }
  .slider-dots { width: 40%; }
  .piezaBg { background-position: center; }
  #apoyoMarcas { width: 40%; }
  #compromiso { margin-top: -400px; padding-top: 200px; }
}

/* ---------- Tabletas ---------- */
@media (max-width: 1024px) {
  .paddingCustom { padding-left: 1rem; padding-right: 1rem; }
  .backBlue { height: 150px; width: 280px; }
  .navbar-brand img { height: 80px; margin-left: 20px; }
  /* Al bajar por la página el logo queda en 80 px, también en teléfonos (como el original). */
  .navbar.scrolled .navbar-brand img { height: 80px; margin-left: 20px; }
  #menu-principal li a { font-size: 16px; }
  .waveGreen { width: 62% !important; }
  .contenido p { font-size: 28px; }
  .slider-dots { bottom: 280px; }
  #compromiso { background-image: url(/img/bg-marcas-inversed.png); }
  .cleanerContact { height: 80px; top: 0; }
  footer img.logoFooter { height: auto; max-width: 100%; }
  .col-logo { padding-right: 0 !important; }
  .row .col-borde { padding-left: 30px !important; padding-right: 10px !important; }
  .row .rrss { padding-left: 30px !important; }
}

/* Menú desplegable (bajo 992 px, igual que el original) */
@media (max-width: 991.98px) {
  #navbarNav { background-color: #fff; padding-left: 15px; }
  #menu-principal { border-bottom: 0; padding-bottom: 0; padding-top: 20px; }
  #menu-principal li { margin-bottom: 15px; }
  #menu-principal li:first-child { padding-left: 15px; }
}

/* ---------- Teléfonos y tabletas pequeñas ---------- */
@media (max-width: 768px) {
  .navbar { padding-top: 10px; }
  .navbar .paddingCustom { padding-left: 0 !important; padding-right: 0 !important; }
  .paddingCustom { padding-left: 15px; padding-right: 15px; }
  .navbar-toggler { margin-right: 15px; }
  .navbar-brand { margin-left: 15px; }
  .navbar-brand img { height: 70px; margin-left: 40px; }
  #menu-principal { padding-top: 80px; }
  .backBlue { height: 150px; width: 280px; }

  .tituloCompuesto { font-size: 32px; line-height: 36px; }

  #bannerProductos { height: 560px; background-color: #fff; }
  .slide { height: 560px; }
  .waveGreen { width: 65% !important; height: 50%; }
  .contenido p { font-size: 20px !important; line-height: 28px; }
  .contenido { bottom: 65px; }
  .slider-dots { bottom: 210px; }

  #logoIntermedio { height: 120px; margin-bottom: 50px; }

  #marcas { background-position: top center; background-size: auto; padding-top: 0; }
  #cajaProductos { margin-top: 50px; }

  #compromiso { background-image: url(/img/bottomwork.png); background-size: auto 100%; }
  #compromiso p { margin-bottom: 40px; }
  #compromiso p br { display: none; }
  .lineaLateral { display: none !important; }
  .bottomLine, .sellos { border: 0 !important; }
  .sellos .col-12 { padding-left: 100px; padding-right: 100px; margin-bottom: 30px; }

  #nuestrasMarcas { background-image: url(/img/bg-compromiso-1920.png); background-size: auto 100%; padding-top: 190px; }
  .cajainterna { margin-top: 50px !important; }
  .cajainterna img { max-width: 60%; }
  .fotoprod { margin-bottom: 50px; }

  #boxContact { padding: 30px; border-radius: 15px; }
  #boxContact h1 { font-size: 36px; line-height: 38px; }

  footer { padding-top: 30px; }
  footer .row .col-borde { border: 0; }
  .col-logo { text-align: center; }
  footer img.logoFooter { margin-bottom: 30px; }
  .footerNav { text-align: center; border: 0 !important; padding: 0; margin-top: 0; }
  .telefonoFooter { text-align: center; }
  .col-borde-bottom { border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important; padding-bottom: 15px; }
  .rrss { text-align: center; padding-top: 30px; }
  .rowBarraFooter { margin-top: 30px; }
  .row .col-borde { padding-left: 30px !important; padding-right: 30px !important; }
}

@media (max-width: 400px) {
  .waveGreen { width: 98% !important; height: 60%; }
  .backBlue { height: 130px; width: 280px; }
  #menu-principal { padding-top: 60px; }
  #apoyoMarcas { width: 80%; }
  #marcas .tituloCompuesto { margin-top: 250px; }
  .producto-marca { height: auto; }
  #marcas, #compromiso { background-image: url(/img/bg-compromiso-1920.png); }
  #filosofia { background-size: 80% auto; }
  #bgContacto { height: 700px; }
  .sellos .col-12 { padding-left: 50px; padding-right: 50px; }
  .cleanerContact { position: relative; margin-left: auto; margin-right: auto; display: block; margin-top: 30px; }
  #boxContact h1 { text-align: center; }
  .btnContacto { width: 100%; }
  footer img.logoFooter { max-height: 80px; }
  #simplePage { margin-top: 180px; }
}
