/* ============================================================
   SERVICIOS FUSIÓN · PALETA DEPURADA (noviembre 2026)
   Cargar DESPUÉS de styles.css, theme.css y fusion-motion.css.
   Mantiene el fondo continuo y las animaciones V6 existentes.
   ============================================================ */

/* 1. Colores únicos para los tres modos. Claro por defecto. */
:root {
  --sf-ui-page: #f4fbfd;
  --sf-ui-card: #ffffff;
  --sf-ui-card-alt: #edf7fa;
  --sf-ui-ink: #0c3041;
  --sf-ui-muted: #466675;
  --sf-ui-border: rgba(16, 102, 131, .17);
  --sf-ui-accent: #068baa;
  --sf-ui-accent-bright: #14c9cd;
  --sf-ui-focus: #007d96;
  --sf-ui-shadow: 0 16px 38px rgba(7, 58, 82, .10);
  --sf-ui-control: #ffffff;
  --sf-ui-control-text: #123849;
  --sf-ui-header: rgba(250, 254, 255, .95);
  --sf-ui-halo-a: rgba(12, 188, 185, .20);
  --sf-ui-halo-b: rgba(40, 147, 214, .15);
  --sf-ui-text-gradient: linear-gradient(100deg, #078eaf, #0bb4a6);
  --sf-ui-bg: linear-gradient(180deg, #f7fcfe, #edf8fb 48%, #f7fcfe);
  --sf-ui-lights:
    radial-gradient(circle at 12% 18%, rgba(18,189,181,.10), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(7,142,175,.10), transparent 24%),
    radial-gradient(circle at 70% 72%, rgba(18,189,181,.08), transparent 26%),
    radial-gradient(circle at 24% 84%, rgba(0,163,196,.06), transparent 24%);
  --sf-ui-grid-line: rgba(7,55,82,.025);
  --sf-foot-title: #0b3045;
  --sf-foot-text: #466675;
  --sf-foot-hover: #078eaf;
  --sf-foot-show-light: block;
  --sf-foot-show-dark: none;
  color-scheme: light;
}

/* El modo manual gana. El atributo sf-motion resuelve Automático. */
html[data-theme="dark"],
html[data-theme="auto"][data-sf-motion-theme="dark"],
html:not([data-theme])[data-sf-motion-theme="dark"] {
  --sf-ui-page: #061d2b;
  --sf-ui-card: #103447;
  --sf-ui-card-alt: #123a4d;
  --sf-ui-ink: #e8f6fb;
  --sf-ui-muted: #b2cbd4;
  --sf-ui-border: rgba(104,202,218,.22);
  --sf-ui-accent: #4edbe5;
  --sf-ui-accent-bright: #36d9dc;
  --sf-ui-focus: #65e9ec;
  --sf-ui-shadow: 0 18px 40px rgba(0,0,0,.27);
  --sf-ui-control: #0c293a;
  --sf-ui-control-text: #e9f7fb;
  --sf-ui-header: rgba(5,27,41,.95);
  --sf-ui-halo-a: rgba(29,222,207,.19);
  --sf-ui-halo-b: rgba(35,134,210,.18);
  --sf-ui-text-gradient: linear-gradient(100deg, #54d3ef, #6bead7);
  --sf-ui-bg: linear-gradient(180deg, #051a27, #08273a 50%, #051a27);
  --sf-ui-lights:
    radial-gradient(circle at 12% 18%, rgba(16,190,196,.14), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(7,142,175,.16), transparent 24%),
    radial-gradient(circle at 68% 72%, rgba(18,189,181,.12), transparent 26%),
    radial-gradient(circle at 24% 82%, rgba(0,163,196,.10), transparent 24%);
  --sf-ui-grid-line: rgba(255,255,255,.018);
  --sf-foot-title: #effaff;
  --sf-foot-text: #b9d4df;
  --sf-foot-hover: #5ce8e1;
  --sf-foot-show-light: none;
  --sf-foot-show-dark: block;
  color-scheme: dark;
}

/* Respaldo para Automático si aún no se ha escrito el tema efectivo. */
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"]:not([data-sf-motion-theme]),
  html:not([data-theme]):not([data-sf-motion-theme]) {
    --sf-ui-page: #061d2b;
    --sf-ui-card: #103447;
    --sf-ui-card-alt: #123a4d;
    --sf-ui-ink: #e8f6fb;
    --sf-ui-muted: #b2cbd4;
    --sf-ui-border: rgba(104,202,218,.22);
    --sf-ui-accent: #4edbe5;
    --sf-ui-accent-bright: #36d9dc;
    --sf-ui-focus: #65e9ec;
    --sf-ui-shadow: 0 18px 40px rgba(0,0,0,.27);
    --sf-ui-control: #0c293a;
    --sf-ui-control-text: #e9f7fb;
    --sf-ui-header: rgba(5,27,41,.95);
    --sf-ui-halo-a: rgba(29,222,207,.19);
    --sf-ui-halo-b: rgba(35,134,210,.18);
    --sf-ui-text-gradient: linear-gradient(100deg, #54d3ef, #6bead7);
    --sf-ui-bg: linear-gradient(180deg, #051a27, #08273a 50%, #051a27);
    --sf-ui-lights:
      radial-gradient(circle at 12% 18%, rgba(16,190,196,.14), transparent 28%),
      radial-gradient(circle at 82% 24%, rgba(7,142,175,.16), transparent 24%),
      radial-gradient(circle at 68% 72%, rgba(18,189,181,.12), transparent 26%),
      radial-gradient(circle at 24% 82%, rgba(0,163,196,.10), transparent 24%);
    --sf-ui-grid-line: rgba(255,255,255,.018);
    --sf-foot-title: #effaff;
    --sf-foot-text: #b9d4df;
    --sf-foot-hover: #5ce8e1;
    --sf-foot-show-light: none;
    --sf-foot-show-dark: block;
    color-scheme: dark;
  }
}

/* 2. Fondo continuo: sin franjas al cambiar de sección. */
html { scroll-behavior: smooth; }
body {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--sf-ui-bg) !important;
  background-attachment: fixed !important;
  color: var(--sf-ui-ink);
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before {
  background: var(--sf-ui-lights);
  animation: sf-global-aurora 18s ease-in-out infinite alternate;
}
body::after {
  background-image:
    linear-gradient(90deg, var(--sf-ui-grid-line) 1px, transparent 1px),
    linear-gradient(0deg, var(--sf-ui-grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .0
}
main, .footer, .top-line { position: relative; z-index: 1; }

/* Mayor especificidad que los fondos antiguos, incluso en tema oscuro. */
:is(html[data-theme], html[data-sf-motion-theme], html)
:is(.hero, .trust-strip, .intro, .services-section, .products-section,
    .statement, .work-section, .identity-section, .brands-section,
    .contact-section, .footer) {
  background: transparent !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
:is(.trust-strip, .footer-bottom) { border-top: 0 !important; border-bottom: 0 !important; }
.hero-edge { display: none !important; }
main > section { margin-block: 0; }

/* Conservar el efecto de aurora V6 y poner las capas sobre el fondo. */
.sf-aurora {
  --sf-halo-a: var(--sf-ui-halo-a);
  --sf-halo-b: var(--sf-ui-halo-b);
}
@keyframes sf-global-aurora {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(1.5%,-1.5%,0) scale(1.035); }
}

/* 3. Textos, navegación y botones. */
:is(.intro, .services-section, .products-section, .statement,
    .work-section, .identity-section, .brands-section, .contact-section) {
  color: var(--sf-ui-ink);
}
:is(.intro-text, .section-head, .identity-grid, .contact-info, .sf-method-section)
:is(h2, h3, strong) {
  color: var(--sf-ui-ink);
}
:is(.intro-text, .section-head, .identity-grid, .contact-info, .sf-method-section) p {
  color: var(--sf-ui-muted);
}
.section-label, .brands-title { color: var(--sf-ui-accent) !important; }

/* ==========================================
   SERVICIOS FUSIÓN
   TEXTOS DESTACADOS Y ANIMACIÓN V6
========================================== */

/* Conservar degradado de las otras secciones */
:is(.statement, .work-section) h2 em {
    color: var(--sf-ui-accent);
    background-image: var(--sf-ui-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Corregir los dos títulos afectados */
.identity-section .identity-grid h2 em,
.contact-section .contact-info h2 em {
    color: var(--sf-ui-accent) !important;
    -webkit-text-fill-color: var(--sf-ui-accent) !important;
    background: none !important;
    background-image: none !important;
    font-style: normal;
}

/* Mantener visibles los colores de las palabras,
   sin interferir con su animación progresiva */
.identity-section .identity-grid h2 em .sf-v6-word,
.contact-section .contact-info h2 em .sf-v6-word {
    color: var(--sf-ui-accent) !important;
    -webkit-text-fill-color: var(--sf-ui-accent) !important;
    background: none !important;
}

/* Segunda frase debajo de la primera */
.identity-section .identity-grid h2 em {
    display: block;
    margin-top: 8px;
}
.site-header {
  background-color: var(--sf-ui-header);
  border-bottom: 1px solid var(--sf-ui-border);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.main-nav a:not(.nav-cta) { color: var(--sf-ui-ink); }
.main-nav a:not(.nav-cta):is(:hover, .nav-active, :focus-visible) { color: var(--sf-ui-accent); }
.theme-control label { color: var(--sf-ui-muted); }
.theme-control select {
  color: var(--sf-ui-control-text);
  background-color: var(--sf-ui-control);
  border-color: var(--sf-ui-border);
}
:is(.btn-primary, .form-submit, .main-nav .nav-cta, .whatsapp-fab) {
  background: linear-gradient(120deg, #0787ad, #0ba5b6 52%, #0bb79e 100%);
  color: #fff !important;
  border-color: rgba(255,255,255,.13);
}
:is(.btn-primary, .form-submit, .main-nav .nav-cta, .whatsapp-fab):hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 30px rgba(5,145,165,.22);
}
.hero .hero-actions .btn-outline {
  color: var(--sf-ui-ink);
  background: var(--sf-ui-card);
  border-color: var(--sf-ui-accent);
}
.hero .hero-actions .btn-outline:hover {
  color: #fff;
  background: linear-gradient(120deg,#0787ad,#0bb79e);
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--sf-ui-focus);
  outline-offset: 3px;
}

/* 4. Tarjetas y fotografías: no alterar el encuadre. */
:is(.service-card, .product-card, .identity-cards article) {
  background: var(--sf-ui-card);
  color: var(--sf-ui-ink);
  border-color: var(--sf-ui-border);
}
:is(.service-card, .product-card, .identity-cards article, .product-copy) h3 {
  color: var(--sf-ui-ink);
}
:is(.service-card, .product-card, .identity-cards article, .product-copy) p {
  color: var(--sf-ui-muted);
}
.product-copy { background: var(--sf-ui-card); border-color: var(--sf-ui-border); }
.service-icon { background: var(--sf-ui-card-alt); color: var(--sf-ui-accent); }
.product-image .foto-producto { object-fit: contain; object-position: center; }
.product-camera .foto-producto { mix-blend-mode: normal; }
.product-image-label { color: #17485b; background: rgba(255,255,255,.87); }
.catalog-filters .filter-btn, .catalog-search, .catalog-search input {
  color: var(--sf-ui-control-text);
  background: var(--sf-ui-control);
  border-color: var(--sf-ui-border);
}
.catalog-filters .filter-btn:is(.active, [aria-pressed="true"]) {
  background: linear-gradient(120deg,#077f9d,#08a99e);
  border-color: transparent;
  color: #fff;
}
.catalog-search input::placeholder { color: var(--sf-ui-muted); opacity: 1; }
.catalog-note, .catalog-empty { color: var(--sf-ui-muted); }
.work-section .work-card > h3 { color: var(--sf-ui-ink); }
.work-section .work-card > p { color: var(--sf-ui-muted); }
.work-section .work-card > span { color: var(--sf-ui-accent); }
.work-section .work-graphic { border: 1px solid var(--sf-ui-border); }

/* 5. Sección de método (entre Productos y Proyectos). */
.sf-method-section {
  height: auto !important;
  min-height: 0 !important;
  padding: clamp(54px, 6vw, 92px) 0 !important;
  color: var(--sf-ui-ink) !important;
}
.sf-method-section::before,
.sf-method-section::after { content: none !important; display: none !important; }
.sf-method-section .sf-aurora { display: none !important; }
.sf-method-section .sf-method-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr) !important;
  gap: clamp(26px, 5vw, 80px) !important;
  align-items: center !important;
  margin-block: 0 !important;
}
.sf-method-section .sf-method-grid > div { min-width: 0; }
.sf-method-section .sf-method-grid h2 {
  color: var(--sf-ui-ink) !important;
  font-size: clamp(2rem,3.4vw,3.5rem) !important;
  line-height: 1.16 !important;
  margin: 0 !important;
  text-wrap: balance;
}
.sf-method-section .sf-method-grid h2 em {
  color: var(--sf-ui-accent) !important;
  background: none !important;
  -webkit-text-fill-color: var(--sf-ui-accent) !important;
  font-style: normal;
}
.sf-method-section .sf-method-grid p { color: var(--sf-ui-muted) !important; line-height: 1.75; margin: 0; }
.sf-method-section .sf-method-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

/* 6. Valores y marcas, como los dejaste organizados. */
.identity-cards article.values { grid-column: 1 / -1; text-align: center; }
.identity-section .sf-values-title { text-align: center; color: var(--sf-ui-ink); }
.identity-section .sf-values-list {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-inline: auto;
  color: var(--sf-ui-muted); text-align: center;
}
.identity-section .sf-values-list span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.identity-section .sf-values-list span:not(:first-child)::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sf-ui-accent-bright); flex-shrink: 0;
}
.brands-section { padding: 35px 20px !important; }
.brands-section .brands-title { text-align: center; color: var(--sf-ui-muted) !important; }
.brands-section .container > .brand-list {
  display: flex !important; justify-content: center !important;
  align-items: center !important; flex-wrap: wrap !important;
  width: 100%; max-width: 900px; margin-inline: auto !important;
  gap: 10px 12px !important;
}
.brands-section .brand-list .brand-name { color: var(--sf-ui-ink); width: auto !important; }
.brands-section .brand-name:not(:last-child)::after {
  background: var(--sf-ui-accent-bright);
  margin-left: 15px;
}

/* 7. Formulario y footer: contraste correcto en ambos temas. */
.contact-form-wrap {
  background: var(--sf-ui-card);
  color: var(--sf-ui-ink);
  border: 1px solid var(--sf-ui-border);
  box-shadow: var(--sf-ui-shadow);
}
.contact-form-wrap :is(h3, label) { color: var(--sf-ui-ink); }
#quoteForm :is(input, select, textarea) {
  color: var(--sf-ui-control-text);
  background: var(--sf-ui-control);
  border: 1px solid var(--sf-ui-border);
}
#quoteForm :is(input, textarea)::placeholder { color: var(--sf-ui-muted); opacity: 1; }
#quoteForm :is(input, select, textarea):focus {
  border-color: var(--sf-ui-focus);
  box-shadow: 0 0 0 3px rgba(21,186,191,.14);
}
#quoteForm :is(.form-help, .form-result p) { color: var(--sf-ui-muted); }
.contact-details .detail-icon { color: var(--sf-ui-accent); border-color: var(--sf-ui-border); }
.contact-details .whatsapp-contact { color: var(--sf-ui-accent); }

.footer.footer { background: transparent !important; color: var(--sf-foot-text) !important; }
.footer.footer .footer-grid h4 { color: var(--sf-foot-title) !important; opacity: 1 !important; }
.footer.footer :is(.footer-grid p, .footer-grid a:not(.logo), .footer-grid span:not(.sf-v6-word),
                   .footer-bottom, .footer-bottom a, .footer-bottom span:not(.sf-v6-word)) {
  color: var(--sf-foot-text) !important;
  opacity: 1 !important;
}
.footer.footer :is(.footer-grid a:not(.logo), .footer-bottom a):hover { color: var(--sf-foot-hover) !important; }
.footer.footer .footer-bottom { background: transparent !important; border-top: 0 !important; }
.footer.footer .footer-logo { display: inline-block; width: min(280px,100%); line-height: 0; }
.footer.footer .footer-logo img { width: 100%; height: auto; object-fit: contain; filter: none !important; opacity: 1 !important; }
.footer.footer .footer-logo .sf-footer-logo-light { display: var(--sf-foot-show-light) !important; }
.footer.footer .footer-logo .sf-footer-logo-dark { display: var(--sf-foot-show-dark) !important; }

/* 8. Apariencia compacta: UNA sola regla, 112 × 32 px. */
.main-nav .theme-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.main-nav .theme-control label { margin: 0 !important; white-space: nowrap; }
.main-nav .theme-control select {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 112px !important;
  min-width: 112px !important;
  height: 32px !important;
  box-sizing: border-box !important;
  padding: 0 20px 0 7px !important;
  font-size: 11px !important;
  font-weight: 600;
  text-align: left !important;
  text-align-last: left !important;
  text-indent: 0 !important;
  border-radius: 7px !important;
  background-image: none !important;
  cursor: pointer;
}
.main-nav .theme-control::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--sf-ui-accent);
  border-bottom: 1.5px solid var(--sf-ui-accent);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* 9. Responsividad y accesibilidad. */
@media (max-width: 800px) {
  .sf-method-section .sf-method-grid { grid-template-columns: 1fr !important; gap: 26px !important; }
  .sf-method-section { padding: 60px 0 !important; }
  .sf-method-section .sf-method-grid h2 { font-size: clamp(2rem,7vw,2.85rem) !important; }
}
@media (max-width: 768px) {
  .brands-section .container > .brand-list { gap: 9px 10px !important; }
  .brands-section .brand-name:not(:last-child)::after { margin-left: 10px; }
  .whatsapp-fab { bottom: 18px; right: 14px; }
}
@media (max-width: 480px) {
  .brands-section .brand-list .brand-name { font-size: 14px; }
  .identity-section .sf-values-list { gap: 8px; }
  .whatsapp-fab { font-size: 12px; padding: 11px 14px; max-width: calc(100vw - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body::before, .sf-aurora, .hero::after { animation: none !important; }
  .work-photo, .foto-producto { transition: none !important; }
}

/* No desenfocar elementos al aparecer al desplazarse. */
html.sf-v6-active :is(.sf-v6-word, .sf-v6-card) { filter: none !important; }

/* ==========================================
   SERVICIOS FUSIÓN
   TÍTULO NUESTRO COMPROMISO
   CONSERVAR ANIMACIÓN ORIGINAL V6
========================================== */

.identity-section .identity-grid h2 {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
}

.identity-section .identity-grid h2 em {
    display: block !important;
    margin-top: 10px !important;

    color: var(--sf-ui-accent) !important;
    -webkit-text-fill-color: var(--sf-ui-accent) !important;

    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;

    font-style: normal;
    line-height: 1.2;
    white-space: normal;
}

/* Conservar el color de cada palabra animada */
.identity-section .identity-grid h2 em .sf-v6-word {
    color: var(--sf-ui-accent) !important;
    -webkit-text-fill-color: var(--sf-ui-accent) !important;
}

/* ==========================================
   SERVICIOS FUSIÓN
   FRANJA DE ÁREAS DE ATENCIÓN
========================================== */

.trust-strip .trust-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    gap: 30px !important;
}

/* Mensaje en una sola línea */
.trust-strip .trust-inner > p {
    white-space: nowrap !important;
    width: max-content !important;
    max-width: 100%;
    margin: 0 !important;
}

/* Hogares comienza cerca del centro */
.trust-strip .trust-inner > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    white-space: nowrap !important;
}

.trust-strip .trust-inner > div b {
    color: var(--sf-ui-accent);
}

/* Adaptación para celulares */
@media (max-width: 900px) {
    .trust-strip .trust-inner {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 12px !important;
    }

    .trust-strip .trust-inner > p {
        width: auto !important;
        max-width: 100%;
        white-space: normal !important;
        text-align: center !important;
    }

    .trust-strip .trust-inner > div {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
}

/* ===========================================================
   INFORMACIÓN LEGAL DEL FOOTER - INTEGRACIÓN COMPLETA
   Bloque propio, no cambia las 4 columnas anteriores.
   Se adapta automáticamente a Claro / Oscuro / Automático.
   =========================================================== */
.footer.footer .footer-legal {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
  margin-top: 12px;
  border-top: 1px solid var(--sf-ui-border) !important;
  background: transparent !important;
}
.footer.footer .footer-legal h4 {
  color: var(--sf-foot-title) !important;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  flex: 0 0 auto;
}
.footer.footer .footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  flex: 1;
  min-width: 220px;
}
.footer.footer .footer-legal-links a {
  color: var(--sf-foot-text) !important;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color .25s ease;
}
.footer.footer .footer-legal-links a:hover,
.footer.footer .footer-legal-links a:focus-visible {
  color: var(--sf-foot-hover) !important;
  text-decoration: underline;
}

/* ===========================================================
   FORMULARIO - AUTORIZACIÓN DE DATOS PERSONALES
   Los estilos del formulario existentes NO se modifican.
   =========================================================== */
#quoteForm .sf-privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  margin: 18px 0;
  background: var(--sf-ui-card-alt);
  border: 1px solid var(--sf-ui-border);
  border-radius: 12px;
}
#quoteForm .sf-privacy-consent input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: block;
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 3px 0 0 !important;
  border-radius: 3px;
  accent-color: var(--sf-ui-accent);
  background: var(--sf-ui-control);
  cursor: pointer;
}
#quoteForm .sf-privacy-text {
  flex: 1;
  min-width: 0;
}
#quoteForm .sf-privacy-text label {
  display: block;
  color: var(--sf-ui-ink) !important;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  cursor: pointer;
}
#quoteForm .sf-privacy-text a {
  display: inline-block;
  margin-top: 7px;
  color: var(--sf-ui-accent) !important;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#quoteForm .sf-privacy-text a:hover {
  color: var(--sf-ui-accent-bright) !important;
}
#quoteForm .sf-privacy-note {
  margin: 7px 0 0;
  color: var(--sf-ui-muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .footer.footer .footer-legal {
    flex-direction: column;
    gap: 10px;
  }
  .footer.footer .footer-legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  #quoteForm .sf-privacy-consent {
    padding: 13px;
    gap: 10px;
  }
  #quoteForm .sf-privacy-text label,
  #quoteForm .sf-privacy-text a { font-size: 12px; }
}

/* =========================================
   SERVICIOS FUSIÓN
   AUTORIZACIÓN DE DATOS COMPACTA
========================================= */

#quoteForm .sf-privacy-consent {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;

    padding: 8px 12px !important;
    margin: 10px 0 !important;

    min-height: 0 !important;
    border: 1px solid var(--sf-ui-border) !important;
    border-radius: 8px !important;
    background: var(--sf-ui-card-alt) !important;
}

#quoteForm .sf-privacy-consent input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;

    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;

    flex: 0 0 16px !important;
    margin: 0 !important;
    padding: 0 !important;

    accent-color: var(--sf-ui-accent);
    box-shadow: none !important;
    cursor: pointer;
}

#quoteForm .sf-privacy-text {
    display: block !important;
    flex: 1 !important;
    min-width: 0 !important;
    line-height: 1.4 !important;
}

#quoteForm .sf-privacy-text label,
#quoteForm .sf-privacy-text a {
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;

    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

#quoteForm .sf-privacy-text label {
    color: var(--sf-ui-ink) !important;
    cursor: pointer;
}

#quoteForm .sf-privacy-text a {
    margin-left: 4px !important;
    color: var(--sf-ui-accent) !important;
    font-weight: 600 !important;
    text-decoration: underline;
}

/* ENLACES LEGALES COMPACTOS DEL FOOTER */

.footer-bottom .sf-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  width: 100%;
  margin: 8px 0;
}

.footer-bottom .sf-footer-legal a {
  color: var(--sf-foot-text);
  font-size: 12px;
  text-decoration: none;
  transition: color .25s ease;
}

.footer-bottom .sf-footer-legal a:hover {
  color: var(--sf-foot-hover);
  text-decoration: underline;
}

/* ==========================================
   SERVICIOS FUSIÓN
   CORRECCIÓN DEL TÍTULO DE PROYECTOS
   CONSERVAR ANIMACIÓN V6
========================================== */

.work-section .section-head h2 {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Mostrar correctamente la frase destacada */
.work-section .section-head h2 em,
.work-section .section-head h2 em .sf-v6-word {
    color: var(--sf-ui-accent) !important;
    -webkit-text-fill-color: var(--sf-ui-accent) !important;

    background: none !important;
    background-image: none !important;

    font-style: normal;
}

/* ==========================================
   SERVICIOS FUSIÓN - BARRA SUPERIOR
========================================== */

.top-line {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 10px 30px !important;
}

/* Mensaje izquierdo */
.top-line .top-slogan {
    justify-self: start;
    white-space: nowrap;
}

/* Clientes perfectamente centrados */
.top-line .top-clientes {
    justify-self: center;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
}

/* Ubicación derecha */
.top-line .top-ubicacion {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

/* Adaptación a celulares */
@media (max-width: 1050px) {

    .top-line {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
        padding: 10px 15px !important;
    }

    .top-line .top-slogan,
    .top-line .top-clientes,
    .top-line .top-ubicacion {
        justify-self: center;
        text-align: center;
        white-space: normal;
    }
}

/* IMAGEN PRINCIPAL MÁS GRANDE */

.hero .hero-visual .sf-hero-productos {
    width: 125% !important;
    max-width: 780px !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain;
    flex-shrink: 0;
}

/* Mantener la imagen centrada */
.hero .hero-visual {
    overflow: visible !important;
}

/* Ajuste para Android */
@media (max-width: 900px) {
    .hero .hero-visual .sf-hero-productos {
        width: 110% !important;
        max-width: 540px !important;
    }
}

@media (max-width: 480px) {
    .hero .hero-visual .sf-hero-productos {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================
   SERVICIOS FUSIÓN
   ELIMINAR CUADRÍCULAS DE LA PORTADA
========================================== */

/* Quitar la cuadrícula global */
body::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Quitar la cuadrícula propia de la portada */
.hero .hero-pattern,
.hero .hero-pattern::before,
.hero .hero-pattern::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Conservar el fondo y las luces suaves */
.hero {
    background-image: none !important;
}

/* ==========================================
   SERVICIOS FUSIÓN
   LIMPIEZA DE LA PORTADA CON PRODUCTOS
========================================== */

/* Eliminar decoraciones del diseño anterior */
.hero .hero-pattern,
.hero .hero-visual .visual-orb,
.hero .hero-visual .device-panel,
.hero .hero-visual .float-card {
    display: none !important;
}

/* Quitar círculos y marcos del contenedor */
.hero .hero-visual::before,
.hero .hero-visual::after {
    content: none !important;
    display: none !important;
}

.hero .hero-visual {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Mostrar únicamente la imagen de productos */
.hero .hero-visual .sf-hero-productos {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Sin cuadrícula global */
body::after {
    display: none !important;
}

/* MENSAJE TEMPORAL DEL EQUIPO */

.intro-art .sf-equipo-proximamente {
    width: 100%;
    max-width: 520px;
    min-height: 330px;
    padding: 45px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;

    border: 1px solid var(--sf-ui-border);
    border-radius: 20px;
    background: var(--sf-ui-card);
    box-shadow: var(--sf-ui-shadow);
}

.sf-equipo-icono {
    font-size: 46px;
    color: var(--sf-ui-accent);
}

.sf-equipo-etiqueta {
    color: var(--sf-ui-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sf-equipo-proximamente h3 {
    color: var(--sf-ui-ink);
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.2;
}

.sf-equipo-proximamente p {
    color: var(--sf-ui-muted);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .intro-art .sf-equipo-proximamente {
        min-height: 280px;
        padding: 30px 20px;
    }
}

/* ==========================================
   SERVICIOS FUSIÓN
   CORRECCIÓN NOSOTROS EN ANDROID
========================================== */

@media (max-width: 768px) {

  /* Una columna y espacio real entre elementos */
  #nosotros .intro-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px !important;
    align-items: start !important;
  }

  /* Contenedor de la tarjeta */
  #nosotros .intro-art {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  /* Tarjeta de nuestro equipo */
  #nosotros .sf-equipo-proximamente {
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 26px 20px !important;
    gap: 12px !important;
    transform: none !important;
  }

  /* Texto debajo de la tarjeta */
  #nosotros .intro-text {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* ===============================================================
   SERVICIOS FUSIÓN · AURORAS AMBIENTALES UNIFICADAS
   Para Inicio, Nosotros, Servicios, Productos, Nuestra manera de
   trabajar, Proyectos, Compromiso, Marcas y Contacto.

   - Sin cambios en el HTML, JS ni en las transiciones V6.
   - Luces azul / turquesa que flotan y varían suavemente.
   - Android: degradados radiales sencillos, sin capas fijas,
     máscaras, blur ni gradientes angulares (evita la franja).
   - Los tres temas utilizan --sf-ui-halo-a y --sf-ui-halo-b.
   =============================================================== */

/* Desplazamientos cortos y lentos, sin rotaciones ni escalados
   bruscos: una luz no debe llamar más la atención que el texto. */
@keyframes sfLuzAmbienteA {
    0%, 100% { transform: translate3d(-19px, 15px, 0); opacity: .80; }
    50%      { transform: translate3d(47px, -30px, 0); opacity: 1; }
}
@keyframes sfLuzAmbienteB {
    0%, 100% { transform: translate3d(21px, -17px, 0); opacity: .78; }
    50%      { transform: translate3d(-39px, 32px, 0); opacity: 1; }
}

/* Usamos los nombres reales de las secciones: NO hace falta
   añadir section-glow ni modificar index.html. */
:is(.hero, .intro, .services-section, .products-section,
    .sf-method-section, .work-section, .identity-section,
    .brands-section, .contact-section) {
    position: relative;
    isolation: isolate;
    overflow: clip;
}

/* El texto y las tarjetas quedan por encima de los halos. */
:is(.hero, .intro, .services-section, .products-section,
    .sf-method-section, .work-section, .identity-section,
    .brands-section, .contact-section) > .container {
    position: relative;
    z-index: 2;
}

/* Dos halos por sección, con bordes que desaparecen en el fondo.
   No tienen máscaras, filtros ni sombras con borde duro. */
:is(.hero, .intro, .services-section, .products-section,
    .sf-method-section, .work-section, .identity-section,
    .brands-section, .contact-section)::before,
:is(.hero, .intro, .services-section, .products-section,
    .sf-method-section, .work-section, .identity-section,
    .brands-section, .contact-section)::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 0 !important;
    width: min(56vw, 720px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    filter: none !important;
    pointer-events: none !important;
    background: radial-gradient(
        circle at 50% 50%,
        var(--sf-ui-halo-a) 0%,
        var(--sf-ui-halo-b) 38%,
        transparent 74%
    ) !important;
    will-change: auto !important;
}

:is(.hero, .intro, .services-section, .products-section,
    .sf-method-section, .work-section, .identity-section,
    .brands-section, .contact-section)::before {
    top: 7% !important;
    right: -15% !important;
    bottom: auto !important;
    left: auto !important;
    animation: sfLuzAmbienteA 21s ease-in-out infinite !important;
}

:is(.hero, .intro, .services-section, .products-section,
    .sf-method-section, .work-section, .identity-section,
    .brands-section, .contact-section)::after {
    width: min(42vw, 520px) !important;
    top: auto !important;
    right: auto !important;
    bottom: -21% !important;
    left: -11% !important;
    animation: sfLuzAmbienteB 26s ease-in-out infinite !important;
}

/* La iluminación alterna de lado para que las secciones
   se sientan conectadas, pero no idénticas. */
:is(.intro, .products-section, .identity-section, .contact-section)::before {
    left: -15% !important;
    right: auto !important;
}
:is(.intro, .products-section, .identity-section, .contact-section)::after {
    left: auto !important;
    right: -11% !important;
}

/* Quitar halos antiguos de tipo cónico / enmascarado.
   Los nuevos sustituyen su iluminación sin dejar cortes. */
:is(.hero, .intro, .services-section, .products-section,
    .sf-method-section, .work-section, .identity-section,
    .brands-section, .contact-section) .sf-aurora {
    display: none !important;
}

/* Android: la capa global fija provocaba flashes al hacer scroll.
   Conservamos solo halos ligeros anclados a cada sección. */
@media (max-width: 900px) {
    html, body {
        background-attachment: scroll !important;
    }
    html {
        background: var(--sf-ui-bg) !important;
    }
    body::before,
    body::after {
        display: none !important;
        animation: none !important;
    }

    /* Una luz por sección reduce el coste de repintado en móviles. */
    :is(.hero, .intro, .services-section, .products-section,
        .sf-method-section, .work-section, .identity-section,
        .brands-section, .contact-section)::before {
        width: min(78vw, 390px) !important;
        top: 13% !important;
        bottom: auto !important;
        animation: sfLuzAmbienteA 18s ease-in-out infinite !important;
    }
    :is(.hero, .intro, .services-section, .products-section,
        .sf-method-section, .work-section, .identity-section,
        .brands-section, .contact-section)::after {
        display: none !important;
        animation: none !important;
    }
    /* Alternar el lado del halo sin tapar el contenido. */
    :is(.hero, .services-section, .sf-method-section,
        .work-section, .brands-section)::before {
        right: -23% !important;
        left: auto !important;
    }
    :is(.intro, .products-section, .identity-section,
        .contact-section)::before {
        left: -23% !important;
        right: auto !important;
        animation: sfLuzAmbienteB 22s ease-in-out infinite !important;
    }
}

/* Respeta la preferencia de accesibilidad, sin apagar las luces. */
@media (prefers-reduced-motion: reduce) {
    :is(.hero, .intro, .services-section, .products-section,
        .sf-method-section, .work-section, .identity-section,
        .brands-section, .contact-section)::before,
    :is(.hero, .intro, .services-section, .products-section,
        .sf-method-section, .work-section, .identity-section,
        .brands-section, .contact-section)::after {
        animation: none !important;
        transform: none !important;
    }
}

/* ===========================================================
   SERVICIOS FUSIÓN · BUSCADOR UNIFICADO (ANDROID / ESCRITORIO)
   Evita la caja oscura dentro del campo de búsqueda.
   =========================================================== */
.catalog-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--sf-ui-control) !important;
    border: 1px solid var(--sf-ui-border) !important;
    border-radius: 9px;
    padding: 0 15px;
    overflow: hidden;
}
.catalog-search input,
.catalog-search input:focus {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: var(--sf-ui-control-text) !important;
    padding: 10px 0;
}
.catalog-search svg {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    color: var(--sf-ui-muted);
}
.catalog-search:focus-within {
    border-color: var(--sf-ui-focus) !important;
    box-shadow: 0 0 0 3px rgba(20, 201, 205, .12);
}
