/* Galvanoquímica · Hexametafosfato de Sodio — colores tomados del logotipo */
:root {
  --azul: #0b63b0;
  --azul-oscuro: #08325c;
  --azul-claro: #e8f2fb;
  --azul-hover: #084a85;
  --cian: #1aa3dc;
  --texto: #2b3a47;
  --gris: #f4f7fa;
  --header-h: 76px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--texto);
  padding-top: var(--header-h);
  line-height: 1.7;
}
h1, h2, h3, h4, .hero-title, .side-title { font-family: 'Poppins', sans-serif; color: var(--azul-oscuro); }
h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.55rem; font-weight: 600; margin: 2.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 3px solid var(--azul-claro); position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 70px; height: 3px; background: var(--azul); }
h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 .8rem; }
/* Párrafos justificados (se centran solo en bloques centrados: CTA, 404, etc.) */
p { text-align: justify; hyphens: auto; }
.text-center p, .cta-bloque p, .app-cta p, .side-cta p { text-align: center; }

/* Textos con ancla: azul corporativo (distinto de las negritas); hover lo oscurece ligeramente */
a { color: var(--azul); text-decoration: none; transition: color .2s; }
a:hover { color: var(--azul-hover); text-decoration: none; }
a strong { color: inherit; }
strong { color: var(--texto); }

/* Header */
#header { background: #fff; box-shadow: 0 2px 14px rgba(8, 50, 92, .12); height: var(--header-h); z-index: 1030; }
#header .navbar { height: 100%; padding: 0; }
#header .navbar-brand img { max-height: 52px; width: auto; }
#header .nav-link { font-family: 'Poppins', sans-serif; font-size: .9rem; font-weight: 500; color: var(--azul-oscuro); padding: .5rem .85rem; border-radius: 6px; }
#header .nav-link:hover, #header .nav-link.active { color: #fff; background: var(--azul); }
#header .navbar-toggler { border: 0; font-size: 2rem; color: var(--azul-oscuro); }
#header .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  #header .navbar-collapse { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; padding: 1rem; box-shadow: 0 10px 20px rgba(8, 50, 92, .15); }
}

/* Botones */
.btn-cta { background: var(--azul); color: #fff; border: 0; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 500; padding: .6rem 1.5rem; transition: .25s; }
.btn-cta:hover { background: var(--azul-oscuro); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(8, 50, 92, .25); }
.btn-cta.btn-lg { font-size: 1.05rem; padding: .8rem 2rem; }
.btn-cta-outline { background: transparent; border: 2px solid var(--azul); color: var(--azul); }

/* Banner */
.hero { background-size: cover; background-position: center; position: relative; min-height: 340px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 50, 92, .92) 0%, rgba(8, 50, 92, .72) 50%, rgba(8, 50, 92, .25) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero-box { max-width: 620px; padding: 2.5rem 0; }
.hero-title { font-size: 2.4rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; line-height: 1.2; }
.hero-text { font-size: 1.15rem; color: #e8f2fb; margin-bottom: 1.5rem; }
@media (max-width: 767.98px) { .hero-title { font-size: 1.8rem; } .hero { min-height: 300px; } }

/* Contenido */
.contenido { padding: 3rem 0 2rem; }
.contenido img { border-radius: 10px; }
.subtitulo { font-size: 1.15rem; color: var(--azul); font-weight: 600; margin-top: -.5rem; }
.img-sombra { box-shadow: 0 8px 24px rgba(8, 50, 92, .18); }

/* Tarjetas de aplicaciones */
.card-app { border: 0; border-radius: 12px; box-shadow: 0 4px 18px rgba(8, 50, 92, .12); height: 100%; overflow: hidden; transition: .25s; }
.card-app:hover { transform: translateY(-4px); }
.card-app img { border-radius: 0; aspect-ratio: 4/3; object-fit: cover; }
.card-app .card-title { font-size: 1.1rem; font-family: 'Poppins', sans-serif; color: var(--azul-oscuro); font-weight: 600; }
.card-app .card-body { display: flex; flex-direction: column; }
.card-app .card-body .mt-auto { padding-top: .5rem; }

/* Listas */
.lista-check { list-style: none; padding: 0; margin: 0; }
.lista-check li { position: relative; padding: .45rem 0 .45rem 2rem; border-bottom: 1px solid #edf1f5; }
.lista-check li::before { content: "\F26A"; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: .45rem; color: var(--azul); font-size: 1.15rem; }

/* Cajas */
.caja { background: var(--azul-claro); border-left: 5px solid var(--azul); border-radius: 10px; padding: 1.5rem; }
.caja-ficha dl { margin: 0; }
.caja-ficha dt { color: var(--azul-oscuro); font-weight: 700; }
.caja-ficha dd { margin-bottom: .6rem; }
.cta-bloque { background: linear-gradient(120deg, var(--azul-oscuro), var(--azul)); border-radius: 14px; padding: 2.2rem; color: #fff; text-align: center; margin: 2.5rem 0 1rem; }
.cta-bloque h3, .cta-bloque strong { color: #fff; margin-top: 0; }
.cta-bloque .btn-cta { background: #fff; color: var(--azul-oscuro); }
.cta-bloque .btn-cta:hover { background: var(--azul-claro); }
.iconos-ghs img { max-width: 90px; margin-right: .8rem; border-radius: 0 !important; }

/* Tablas */
.tabla-problemas { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(8, 50, 92, .1); }
.tabla-problemas thead th { background: var(--azul-oscuro); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 500; border: 0; }
.tabla-problemas tbody th { background: var(--azul-claro); color: var(--azul-oscuro); width: 38%; }
.tabla-problemas td, .tabla-problemas th { padding: .85rem 1rem; vertical-align: middle; }

/* FAQ */
.accordion-button { font-weight: 600; color: var(--azul-oscuro); }
.accordion-button:not(.collapsed) { background: var(--azul-claro); color: var(--azul-oscuro); box-shadow: none; }

/* Beneficios y especificaciones (sin imagen) */
.beneficio { display: flex; gap: .9rem; align-items: center; height: 100%; background: var(--gris); border-left: 4px solid var(--azul); border-radius: 10px; padding: .9rem 1rem; transition: .25s; }
.beneficio:hover { background: var(--azul-claro); }
.beneficio i { font-size: 1.6rem; color: var(--azul); flex: none; }
.espec { height: 100%; background: #fff; border: 1px solid #e3eaf1; border-radius: 10px; padding: .9rem 1.1rem; box-shadow: 0 3px 12px rgba(8, 50, 92, .06); }
.espec-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--azul); font-weight: 700; }
.espec-valor { display: block; font-weight: 600; color: var(--azul-oscuro); }
/* Pestañas SHMP */
.tabs-shmp { border-bottom: 2px solid var(--azul-claro); gap: .25rem; flex-wrap: wrap; }
.tabs-shmp .nav-link { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .92rem; color: var(--azul-oscuro); border: 0; border-radius: 10px 10px 0 0; background: var(--gris); }
.tabs-shmp .nav-link:hover { background: var(--azul-claro); }
.tabs-shmp .nav-link.active { background: var(--azul); color: #fff; }
.tabs-shmp-contenido { background: #fff; border: 1px solid #e3eaf1; border-top: 0; border-radius: 0 0 12px 12px; padding: 1.5rem; box-shadow: 0 4px 18px rgba(8, 50, 92, .08); }
/* Imágenes con modal */
.img-modal-link { display: inline-block; max-width: 100%; cursor: pointer; }
.card-app .img-modal-link { display: block; }
.btn-cta-primary { background: var(--azul); color: #fff; border: 0; border-radius: 50px; font-family: 'Poppins', sans-serif; font-weight: 500; padding: .6rem 1.5rem; transition: .25s; }
.btn-cta-primary:hover { background: var(--azul-oscuro); color: #fff; }
.modal-footer { justify-content: center; }
/* Aplicaciones (tarjetas de texto) */
.app-item { height: 100%; background: #fff; border: 1px solid #e3eaf1; border-top: 4px solid var(--azul); border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 18px rgba(8, 50, 92, .08); transition: .25s; }
.app-item:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(8, 50, 92, .16); }
.app-icono { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-size: 1.5rem; margin-bottom: .8rem; }
.app-item h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.app-item p { margin: 0; font-size: .95rem; }
.app-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; background: linear-gradient(135deg, var(--azul), var(--azul-oscuro)); border: 0; color: #fff; }
.app-cta i { font-size: 2rem; }
.app-cta p { font-weight: 600; font-size: 1.05rem; }
.app-cta .btn-cta { background: #fff; color: var(--azul-oscuro); }

/* Menú gráfico de secciones */
.menu-card { display: block; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(8, 50, 92, .15); text-decoration: none; aspect-ratio: 4/3; background: var(--azul-oscuro); }
.menu-card img { width: 100%; height: 100%; object-fit: cover; transition: .35s; border-radius: 0 !important; }
.menu-card:hover img { transform: scale(1.07); }
.menu-card-titulo small { display: block; font-weight: 400; font-size: .85rem; color: #cfe6f7; }
.menu-card-titulo { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; background: linear-gradient(0deg, rgba(8, 50, 92, .95), rgba(8, 50, 92, 0)); }
/* Lateral */
.sidebar { position: static; }
/* Formulario lateral compacto (es largo: no se deja sticky) */
.sidebar .side-card form .mb-3 { margin-bottom: .6rem !important; }
.sidebar .side-card .form-control, .sidebar .side-card .form-select { font-size: .88rem; padding: .4rem .65rem; }
.sidebar .side-card .form-label, .sidebar .side-card .form-check-label, .sidebar .side-card span.d-block { font-size: .85rem; }
.side-card { background: #fff; border: 1px solid #e3eaf1; border-radius: 12px; padding: 1.3rem; margin-bottom: 1.3rem; box-shadow: 0 4px 14px rgba(8, 50, 92, .07); }
.side-cta { background: linear-gradient(135deg, var(--azul), var(--azul-oscuro)); color: #fff; text-align: center; border: 0; }
.side-cta i { font-size: 2rem; }
.side-cta p { margin: .4rem 0 0; font-weight: 600; font-size: 1.05rem; }
.side-cta strong { color: #fff; }
.side-title { font-size: 1.15rem; font-weight: 600; margin: 0 0 .4rem; }
.side-text { font-size: .85rem; color: #5b6b79; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { padding: .5rem 0; border-bottom: 1px solid #edf1f5; line-height: 1.3; }
.side-links li:last-child { border: 0; }
.side-links a { font-weight: 600; text-decoration: none; }
.side-links small { display: block; color: #8896a3; word-break: break-all; font-size: .72rem; }
@media (max-width: 991.98px) { .sidebar { position: static; margin-top: 2rem; } }

/* Footer */
#footer { background: linear-gradient(120deg, var(--azul-oscuro), var(--azul)); color: #e8f2fb; padding: 3rem 0 1.2rem; margin-top: 3rem; }
#footer strong { color: #fff; }
#footer a { color: #8fd3f5; }
#footer a:hover { color: #6bbfe9; }
#footer a strong { color: inherit; }
.footer-logo { background: #fff; display: inline-block; padding: .7rem 1rem; border-radius: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }

.back-to-top { position: fixed; visibility: hidden; opacity: 0; right: 18px; bottom: 18px; z-index: 996; background: var(--azul); width: 42px; height: 42px; border-radius: 50%; transition: .3s; }
.back-to-top i { font-size: 26px; color: #fff; }
.back-to-top.active { visibility: visible; opacity: 1; }

/* Contacto / gracias / 404 */
.pagina-simple { padding: 3.5rem 0 1rem; min-height: 55vh; }
.breadcrumb-bar { background: var(--azul-claro); padding: 1rem 0; }
.breadcrumb-bar ol { list-style: none; display: flex; gap: .5rem; margin: 0; padding: 0; font-size: .9rem; }
.breadcrumb-bar ol li + li::before { content: "/"; margin-right: .5rem; color: #8896a3; }

/* Número sin flechas */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
