/* DEZALAB sobre Helix Ultimate. Solo presentación. Misma familia cromática que la web original:
   azul #0345bf y cian #11a4de, con el verde del logotipo como acento y un azul noche para los fondos. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
  /* Valores de reserva. El plugin dzhelix los sustituye por los del panel de Helix. */
  --dz-azul: #0345bf; --dz-cian: #11a4de; --dz-noche: #0b2c66; --dz-noche-2: color-mix(in srgb, var(--dz-noche) 82%, #000); --dz-verde: #2f9e44;
  --dz-topbar-texto: #fff; --dz-cabecera: #fff; --dz-menu-activo: var(--dz-azul); --dz-pie: #0b2c66; --dz-pie-texto: #fff; --dz-pie-enlace: #fff; --dz-pie-enlace-hover: #fff;
  --dz-radio-boton: 999px; --dz-carrusel-alto: 560px; --dz-carrusel-movil: 220px; --dz-col-servicios: 4; --dz-col-noticias: 3; --dz-calidad-fondo: var(--dz-degradado);
  --dz-sombra-hover: 0 16px 40px color-mix(in srgb, var(--dz-noche) 16%, transparent); --dz-logo: url("/images/dezalablogobl.png");
  --dz-suave: #f3f7fb; --dz-borde: #dfe7f0; --dz-texto: #1d2733; --dz-gris: #566373; --dz-radio: 14px;
  --dz-sombra: 0 10px 30px color-mix(in srgb, var(--dz-noche) 10%, transparent); --dz-degradado: linear-gradient(120deg, var(--dz-noche) 0%, var(--dz-azul) 55%, var(--dz-cian) 100%);
}

html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--dz-texto); line-height: 1.65; font-size: 1.0625rem; }
h1, h2, h3, h4, h5, h6, .sp-megamenu-parent > li > a { font-family: inherit; }
h1, h2, h3, h4 { color: var(--dz-noche); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); } h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); } h3 { font-size: 1.25rem; }
a { color: var(--dz-azul); }
img { max-width: 100%; height: auto; }
.btn-primary, .dz-btn { background: var(--dz-azul); border: 0; color: #fff; border-radius: var(--dz-radio-boton); padding: .65rem 1.5rem; font-weight: 600; transition: background .2s, transform .2s; }
.btn-primary:hover, .dz-btn:hover { background: var(--dz-noche); color: #fff; transform: translateY(-1px); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--dz-cian); outline-offset: 2px; }

/* Cabecera */
#sp-top-bar { background: var(--dz-noche); padding: .35rem 0; font-size: .875rem; }
#sp-top-bar, #sp-top-bar a { color: var(--dz-topbar-texto); }
#sp-header { background: var(--dz-cabecera); box-shadow: 0 1px 0 var(--dz-borde), 0 6px 20px color-mix(in srgb, var(--dz-noche) 5%, transparent); }
.sp-megamenu-parent > li > a { font-weight: 600; font-size: .95rem; }
.sp-megamenu-parent > li.active > a { color: var(--dz-menu-activo); box-shadow: inset 0 -3px 0 var(--dz-cian); }
.sp-dropdown .sp-dropdown-inner { border-radius: 10px; box-shadow: var(--dz-sombra); border: 1px solid var(--dz-borde); }
@media (min-width: 992px) { #offcanvas-toggler { display: none !important; } }

/* Carrusel de portada, alimentado por artículos */
#sp-slider { padding: 0; }
#sp-slider .container-fluid, #sp-slider .row, #sp-slider .sp-column, #sp-slider .sp-module, #sp-slider .sp-module-content { margin: 0; padding: 0; max-width: none; }
.dz-carrusel { background: var(--dz-noche); overflow: hidden; }
.dz-carrusel .carousel-item img { display: block; width: 100%; height: clamp(300px, 42vw, var(--dz-carrusel-alto)); object-fit: cover; }
.dz-carrusel .carousel-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, color-mix(in srgb, var(--dz-azul) 40%, var(--dz-noche)) 88%, transparent) 0%, color-mix(in srgb, color-mix(in srgb, var(--dz-azul) 72%, var(--dz-noche)) 76%, transparent) 42%, color-mix(in srgb, var(--dz-cian) 12%, transparent) 82%); }
.dz-carrusel .carousel-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding: 0; text-align: left; color: #fff; }
.dz-carrusel .carousel-caption .container { padding-inline: 4.5rem; }
.dz-carrusel .carousel-caption h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 3.1rem); margin: 0 0 .6rem; max-width: 15em; }
.dz-carrusel .carousel-caption p, .dz-carrusel .carousel-caption span, .dz-carrusel .carousel-caption strong { color: #fff !important; font-size: clamp(1rem, 1.5vw, 1.2rem) !important; font-weight: 400; max-width: 36em; margin: 0; font-family: inherit !important; }
.dz-carrusel-cta { margin-top: 1.1rem !important; }
.dz-btn-claro { background: #fff; color: var(--dz-azul) !important; border-radius: var(--dz-radio-boton); padding: .65rem 1.5rem; font-weight: 700; border: 0; }
.dz-btn-claro:hover { background: var(--dz-cian); color: #fff !important; }
.dz-carrusel .carousel-indicators { z-index: 3; margin-bottom: .75rem; }
.dz-carrusel .carousel-control-prev, .dz-carrusel .carousel-control-next { z-index: 3; width: 4rem; }
@media (max-width: 767.98px) {
  .dz-carrusel .carousel-item img { height: var(--dz-carrusel-movil); }
  .dz-carrusel .carousel-item::after { display: none; }
  .dz-carrusel .carousel-caption { position: static; background: var(--dz-degradado); padding: 1.1rem 0 2.6rem; }
  .dz-carrusel .carousel-caption .container { padding-inline: 1.25rem; }
  .dz-carrusel .carousel-control-prev, .dz-carrusel .carousel-control-next { height: var(--dz-carrusel-movil); width: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .dz-carrusel .carousel-item { transition: none; } html { scroll-behavior: auto; } }

/* Secciones */
#sp-main-body { padding: 3rem 0; }
.sp-module-title, .sp-module .sp-module-title { color: var(--dz-noche); font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 700; border: 0; padding: 0; margin-bottom: 1.75rem; letter-spacing: -.015em; }
.sp-module-title::after { display: none; }
#sp-servicios, #sp-noticias { padding: 3.5rem 0; }
#sp-servicios { background: var(--dz-suave); }
#sp-calidad { padding: 3.5rem 0; background: var(--dz-calidad-fondo); color: #fff; }
#sp-localizacion { padding: 3.5rem 0; background: var(--dz-suave); }
#sp-servicios .sp-module-title, #sp-noticias .sp-module-title { text-align: center; }
#sp-servicios .sp-module-title::after, #sp-noticias .sp-module-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--dz-cian); margin: .7rem auto 0; }

/* Portada: presentación */
.dz-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.dz-intro img { border-radius: var(--dz-radio); box-shadow: var(--dz-sombra); width: 100%; }
@media (max-width: 767.98px) { .dz-intro { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Tarjetas de servicios */
.dz-servicios { display: grid; grid-template-columns: repeat(var(--dz-col-servicios), minmax(0, 1fr)); gap: 1.5rem; }
.dz-servicio { background: #fff; border-radius: var(--dz-radio); box-shadow: var(--dz-sombra); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.dz-servicio:hover { transform: translateY(-4px); box-shadow: var(--dz-sombra-hover); }
.dz-servicio-enlace { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.dz-servicio-enlace img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dz-servicio-cuerpo { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; flex: 1; }
.dz-servicio-titulo { font-size: 1.15rem; font-weight: 700; color: var(--dz-noche); }
.dz-servicio-texto { color: var(--dz-gris); font-size: .97rem; flex: 1; }
.dz-mas { color: var(--dz-azul); font-weight: 600; font-size: .95rem; }
.dz-mas::after { content: " →"; }
@media (max-width: 991.98px) { .dz-servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dz-servicios { grid-template-columns: 1fr; } }

/* Banda de calidad */
#sp-calidad h2, #sp-calidad h3, #sp-calidad .sp-module-title, #sp-calidad a:not(.btn) { color: #fff; }
#sp-calidad .dz-destacado { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
#sp-calidad .dz-destacado-imagen { background: #fff; border-radius: var(--dz-radio); padding: .5rem; width: 100%; }
#sp-calidad .dz-btn { background: #fff; color: var(--dz-azul); }
#sp-calidad .dz-btn:hover { background: var(--dz-cian); color: #fff; }
.dz-certificacion { background: #fff; color: var(--dz-texto); border-radius: var(--dz-radio); padding: 1.25rem; text-align: center; box-shadow: var(--dz-sombra); }
#sp-calidad .dz-certificacion a, #sp-calidad .dz-certificacion h3 { color: var(--dz-azul); }
.dz-certificacion img { max-height: 110px; width: auto; margin-bottom: .75rem; }
.dz-certificacion p { margin: .15rem 0; font-size: .95rem; }
@media (max-width: 767.98px) { #sp-calidad .dz-destacado { grid-template-columns: 1fr; } #sp-calidad .dz-destacado-imagen { max-width: 220px; } #sp-calidad .sp-column + .sp-column { margin-top: 1.5rem; } }

/* Noticias */
.dz-noticias { display: grid; grid-template-columns: repeat(var(--dz-col-noticias), minmax(0, 1fr)); gap: 1.5rem; }
.dz-noticia { background: #fff; border: 1px solid var(--dz-borde); border-radius: var(--dz-radio); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.dz-noticia:hover { transform: translateY(-4px); box-shadow: var(--dz-sombra); }
.dz-noticia-enlace { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.dz-noticia-imagen { display: block; aspect-ratio: 16 / 9; background: var(--dz-suave); overflow: hidden; }
.dz-noticia-imagen img { width: 100%; height: 100%; object-fit: cover; }
.dz-sin-imagen { background: #fff var(--dz-logo) center / 46% no-repeat; border-bottom: 1px solid var(--dz-borde); }
.dz-noticia-cuerpo { display: flex; flex-direction: column; gap: .4rem; padding: 1.15rem 1.25rem 1.35rem; }
.dz-fecha { color: var(--dz-azul); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.dz-noticia-titulo { font-weight: 700; color: var(--dz-noche); font-size: 1.08rem; line-height: 1.3; }
.dz-noticia-texto { color: var(--dz-gris); font-size: .95rem; }
.dz-ver-todas { text-align: center; margin: 2rem 0 0; }
@media (max-width: 991.98px) { .dz-noticias { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dz-noticias { grid-template-columns: 1fr; } }

/* Localización */
#sp-localizacion .dz-destacado h2 { margin-top: 0; }
.dz-mapa { border-radius: var(--dz-radio); overflow: hidden; box-shadow: var(--dz-sombra); line-height: 0; background: #e6edf4; }
.dz-mapa iframe { width: 100%; height: 400px; border: 0; }
@media (max-width: 991.98px) { #sp-position6 { margin-top: 1.5rem; } .dz-mapa iframe { height: 320px; } }

/* Cabecera de páginas interiores */
.sp-page-title { position: relative; background-color: var(--dz-noche); background-image: var(--dz-degradado); background-size: cover; background-position: center; padding: clamp(2.5rem, 7vw, 5rem) 0; isolation: isolate; }
.sp-page-title::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, color-mix(in srgb, var(--dz-azul) 45%, var(--dz-noche)) 78%, transparent), color-mix(in srgb, var(--dz-azul) 50%, transparent)); }
.sp-page-title .sp-page-title-heading { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 700; }
.sp-page-title .breadcrumb { background: none; padding: 0; margin: 0; font-size: .9rem; }
.sp-page-title .breadcrumb, .sp-page-title .breadcrumb a, .sp-page-title .breadcrumb-item, .sp-page-title .breadcrumb-item.active, .sp-page-title .breadcrumb-item::before, .sp-page-title .breadcrumb span { color: rgba(255, 255, 255, .88) !important; }

/* Páginas de servicios */
.dz-entradilla, .article-details .article-can-edit + .dz-entradilla { font-size: 1.2rem; color: var(--dz-gris); }
.dz-seccion { margin-bottom: 2rem; }
.dz-sectores > [class*="col-"] { margin-bottom: 1.5rem; }
.dz-sectores .dz-bloque { height: 100%; background: #fff; border: 1px solid var(--dz-borde); border-top: 4px solid var(--dz-cian); border-radius: var(--dz-radio); padding: 1.25rem; }
.dz-seccion-titulo { font-size: 1.15rem; font-weight: 500; color: var(--dz-gris); margin: 2.5rem 0 1.25rem; letter-spacing: 0; line-height: 1.5; }
details { border: 1px solid var(--dz-borde); border-radius: 10px; padding: .75rem 1rem; background: #fff; margin-bottom: .75rem; transition: box-shadow .2s; }
details[open] { box-shadow: var(--dz-sombra); border-color: transparent; }
summary { cursor: pointer; color: var(--dz-noche); list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--dz-azul); font-size: 1.35rem; line-height: 1; font-weight: 400; }
details[open] summary::after { content: "−"; }
details[open] summary { margin-bottom: .75rem; }

.dz-seccion img[src*="iso-9001"] { max-width: 170px; }

/* Noticias: tarjetas uniformes del blog */
.blog .article-introtext, .blog .article .article-body > .article-introtext { max-height: 9.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); margin-bottom: .75rem; font-size: .95rem; color: var(--dz-gris); }
.blog .article-introtext *, .blog .article .article-introtext * { text-align: left !important; font-weight: 400 !important; font-size: inherit !important; color: inherit !important; margin: 0 0 .4rem; }
.blog .article:not(:has(.article-intro-image))::before { content: ""; display: block; aspect-ratio: 16 / 9; background: #fff var(--dz-logo) center / 46% no-repeat; border-bottom: 1px solid var(--dz-borde); }
.blog .article { padding: 0 !important; }
.blog .article .article-intro-image { float: none !important; width: 100%; margin: 0 !important; padding: 0; }
.blog .article .article-intro-image a { display: block; height: 100%; }
.blog .article-list + *, .blog .pagination, .blog .articles-more { margin-top: 2rem; }
.blog .readmore, .blog .readmore a { display: inline-block !important; visibility: visible !important; }
.blog .readmore a::after { content: " →"; }

/* Noticias: blog y artículo */
.blog .blog-items, .com-content-category-blog .blog-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.blog .blog-items > *, .blog .article-list > * { min-width: 0; }
.blog .article-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.blog .article-list .row, .blog .article-list > [class*="col-"] { width: auto; max-width: none; padding: 0; margin: 0; }
.blog .article { background: #fff; border: 1px solid var(--dz-borde); border-radius: var(--dz-radio); overflow: hidden; height: 100%; display: flex; flex-direction: column; margin: 0; }
.blog .article .article-intro-image, .blog .article .item-image, .blog .article figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.blog .article .article-intro-image img, .blog .article .item-image img, .blog .article figure img { width: 100%; height: 100%; object-fit: cover; }
.blog .article .article-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.blog .article .article-header h2, .blog .article h2 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 .4rem; }
.blog .article .article-header h2 a, .blog .article h2 a { color: var(--dz-noche); text-decoration: none; }
.blog .article .article-info { font-size: .82rem; color: var(--dz-azul); font-weight: 600; margin-bottom: .5rem; }
.blog .article .readmore { margin-top: auto; }
.blog .article .readmore a { color: var(--dz-azul); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; }
.blog .article-introtext img, .blog .article .article-introtext img { display: none; }
@media (max-width: 991.98px) { .blog .blog-items, .blog .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .blog .blog-items, .blog .article-list { grid-template-columns: 1fr; } }
.pagination .page-link { border-radius: 8px; margin: 0 .15rem; }
.pagination .active .page-link, .pagination .page-item.active .page-link { background: var(--dz-azul); border-color: var(--dz-azul); }
.itemid-109 .view-article .article-details, .view-article.itemid-109 .article-details { max-width: 820px; margin-inline: auto; }
.view-article.itemid-109 .article-full-image img { border-radius: var(--dz-radio); width: 100%; max-height: 440px; object-fit: cover; margin-bottom: 1.5rem; }
.view-article.itemid-111 .article-details { max-width: 820px; margin-inline: auto; }

/* Mapa web */
.dz-mapa-web ul { list-style: none; padding-left: 0; }
.dz-mapa-web ul ul { padding-left: 1.25rem; border-left: 2px solid var(--dz-borde); margin: .35rem 0 .75rem; }

/* Pie */
#sp-bottom { background: var(--dz-pie); color: color-mix(in srgb, var(--dz-pie-texto) 90%, transparent); padding: 3rem 0 2rem; border-top: 4px solid var(--dz-cian); font-size: .97rem; }
#sp-bottom .sp-module-title { color: var(--dz-pie-texto); font-size: 1.1rem; margin-bottom: 1rem; }
#sp-bottom a { color: var(--dz-pie-enlace); }
#sp-bottom a:hover, #sp-footer a:hover { color: var(--dz-pie-enlace-hover); }
#sp-bottom ul { list-style: none; padding: 0; margin: 0; }
#sp-bottom li { margin-bottom: .4rem; }
#sp-bottom p { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
/* Contactar (first footer column): the icons and their texts sit in one paragraph; show one icon + text
   pair per row. The spaces between them are &nbsp; text, so they are shrunk to nothing rather than laid out. */
#sp-bottom1 .mod-custom p { display: flow-root; font-size: 0; }
#sp-bottom1 .mod-custom p > img { float: left; clear: left; margin: 0 .9rem .75rem 0; }
#sp-bottom1 .mod-custom p > span { display: flex; align-items: center; min-height: 34px; margin-bottom: .75rem; overflow-wrap: anywhere; }
#sp-bottom img { display: inline-block; background: #fff; border-radius: 8px; padding: 2px; width: 34px; height: 34px; object-fit: contain; }
#sp-bottom span, #sp-bottom strong { font-size: 1rem !important; }
#sp-footer { background: color-mix(in srgb, var(--dz-pie) 82%, #000); font-size: .875rem; padding: 1rem 0; }
#sp-footer, #sp-footer a { color: color-mix(in srgb, var(--dz-pie-texto) 86%, transparent); }
#sp-footer2 { text-align: right; }
@media (max-width: 767.98px) { #sp-footer2 { text-align: left; margin-top: .75rem; } #sp-bottom .sp-column + .sp-column { margin-top: 1.75rem; } }

/* Contenido antiguo con anchos fijos */
.article-details, .article-body, .sp-module-content { overflow-wrap: anywhere; }
table { max-width: 100%; }
