/* =============================================================
   SERVICIOS FUSIÓN — Motion & Aurora / complemento visual V5
   Instalar DESPUÉS de styles.css y theme.css.
   No modifica el catálogo, el formulario ni el cotizador.
   ============================================================= */

:root {
  --sf-deep: #08283e;
  --sf-navy: #0c3450;
  --sf-azure: #178bb8;
  --sf-cyan: #43cfe0;
  --sf-teal: #14c7b8;
  --sf-mint: #7cf3de;
  --sf-white: #f8fdff;
  --sf-ease: cubic-bezier(.22, 1, .36, 1);
  --sf-shadow: 0 20px 55px rgba(10, 87, 118, .12);
  --sf-halo-a: rgba(39, 217, 202, .34);
  --sf-halo-b: rgba(53, 164, 225, .28);
}

/* Compatible con el tema auto / claro / oscuro sin sustituir theme.js. */
html[data-sf-motion-theme="dark"] {
  --sf-halo-a: rgba(31, 219, 200, .24);
  --sf-halo-b: rgba(16, 107, 178, .35);
  --sf-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

html { scroll-behavior: smooth; scroll-padding-top: clamp(86px, 10vh, 124px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
section[id] { scroll-margin-top: clamp(86px, 10vh, 124px); }

/* Capa de auroras en movimiento: una curva de luz giratoria, nunca un GIF pesado. */
:is(.hero, .statement, .services-section, .products-section, .work-section, .contact-section) {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
:is(.hero, .statement, .services-section, .products-section, .work-section, .contact-section) > .container {
  position: relative;
  z-index: 2;
}
.sf-aurora {
  position: absolute;
  z-index: 0;
  width: min(69vw, 850px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: .7;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--sf-halo-a) 32deg,
    transparent 92deg,
    var(--sf-halo-b) 145deg,
    transparent 210deg,
    var(--sf-halo-a) 282deg,
    transparent 346deg
  );
  -webkit-mask-image: radial-gradient(circle, transparent 12%, #000 36%, #000 54%, transparent 74%);
  mask-image: radial-gradient(circle, transparent 12%, #000 36%, #000 54%, transparent 74%);
  filter: blur(24px);
  will-change: transform;
  animation: sf-vortex 36s linear infinite;
}
.sf-aurora--one { top: -37%; right: -22%; }
.sf-aurora--two {
  width: min(52vw, 660px);
  bottom: -45%; left: -20%;
  opacity: .55;
  animation: sf-vortex-reverse 48s linear infinite;
}
.hero .sf-aurora { opacity: .9; filter: blur(18px); }
.hero .sf-aurora--two { opacity: .58; }

/* Portada: blanco luminoso en claro y azul profundo en oscuro. */
html[data-sf-motion-theme="light"] .hero {
  color: #13354d;
  background: linear-gradient(120deg, #fbfeff 0%, #e9f9fb 48%, #f5f9ff 100%);
}
html[data-sf-motion-theme="dark"] .hero {
  color: #f3ffff;
  background: linear-gradient(120deg, #061827 0%, #092b41 55%, #083e49 100%);
}
html[data-sf-motion-theme="light"] .hero-content h1 { color: #0a2c45; }
html[data-sf-motion-theme="dark"] .hero-content h1 { color: #f2feff; }
html[data-sf-motion-theme="light"] .hero-content > p { color: #436277; }
html[data-sf-motion-theme="dark"] .hero-content > p { color: #bdd4dd; }
.hero-content h1 span {
  background-image: linear-gradient(100deg, #009f9c 0%, #168fc0 58%, #17bca9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html[data-sf-motion-theme="dark"] .hero-content h1 span {
  background-image: linear-gradient(100deg, #79f4d8, #54c8f4 60%, #75f2e4);
}

/* Rayos de luz inclinados, discretos en vez de formas sólidas que tapen el contenido. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 55%; height: 180%;
  top: -40%; left: 45%;
  pointer-events: none;
  background: linear-gradient(95deg, transparent 22%, rgba(85, 217, 213, .08) 45%, transparent 62%);
  transform: rotate(-20deg);
  animation: sf-beam 15s ease-in-out infinite alternate;
}

/* Botones con luz, relieve moderado y movimiento al pasar el mouse. */
.btn-primary,
.form-submit,
.main-nav .nav-cta {
  background: linear-gradient(115deg, #118db5 0%, #0eb8ae 63%, #13c5b3 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 26px rgba(14, 159, 172, .20);
  transition: transform .45s var(--sf-ease), box-shadow .45s ease,
              filter .3s ease, background-position .45s ease;
  background-size: 150% 150%;
}
:is(.btn-primary, .form-submit, .main-nav .nav-cta):hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 36px rgba(14, 159, 172, .28);
  filter: saturate(1.12);
  background-position: 100% 50%;
}
:is(.btn, .filter-btn, .product-quote, .service-link, .quote-fab, .quote-close, .copy-btn):focus-visible,
.main-nav a:focus-visible {
  outline: 3px solid var(--sf-teal);
  outline-offset: 4px;
}

/* Navegación con indicador fluido. Mantiene el enlace activo del HTML original. */
.main-nav a:not(.nav-cta) { position: relative; transition: color .3s ease, opacity .3s ease; }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sf-azure), var(--sf-teal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s var(--sf-ease);
}
.main-nav a:not(.nav-cta):is(:hover, :focus-visible, .nav-active)::after { transform: scaleX(1); }
.site-header { transition: box-shadow .4s ease, background-color .4s ease, backdrop-filter .4s ease; }
.site-header.sf-scrolled {
  -webkit-backdrop-filter: saturate(1.25) blur(16px);
  backdrop-filter: saturate(1.25) blur(16px);
  box-shadow: 0 12px 42px rgba(7, 65, 88, .10);
}

/* Tarjetas: microinteracciones, sin tocar el contenido ni sus botones. */
:is(.service-card, .product-card, .work-card, .principle, .identity-cards article) {
  transition: transform .55s var(--sf-ease), box-shadow .55s var(--sf-ease),
              border-color .4s ease, background-color .4s ease;
}
@media (hover: hover) and (pointer: fine) {
  :is(.service-card, .product-card, .work-card, .identity-cards article):hover {
    transform: translateY(-8px);
    box-shadow: var(--sf-shadow);
    border-color: rgba(23, 183, 190, .3);
  }
  .product-card:hover .product-image svg,
  .work-card:hover .work-graphic svg {
    transform: translateY(-5px) scale(1.055) rotate(-1.5deg);
  }
}
.product-image svg, .work-graphic svg {
  transition: transform .6s var(--sf-ease);
  transform-origin: center;
}
:is(.filter-btn, .product-quote, .service-link, .text-link) {
  transition: color .3s ease, background-color .3s ease,
              border-color .3s ease, transform .4s var(--sf-ease);
}
@media (hover: hover) and (pointer: fine) {
  :is(.product-quote, .service-link, .text-link):hover { transform: translateX(3px); }
}

/* Pequeña ola luminosa al ir a otra sección (NO cambia la URL ni captura clicks). */
.sf-transition-wave {
  position: fixed;
  left: var(--sf-origin-x, 50vw);
  top: var(--sf-origin-y, 20vh);
  width: 44vmax; height: 44vmax;
  z-index: 9;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 230, 214, .13) 0%,
    rgba(57, 154, 226, .085) 38%, transparent 70%);
  transform: translate(-50%, -50%) scale(.08);
  animation: sf-wave .95s var(--sf-ease) forwards;
}

@keyframes sf-vortex { to { transform: rotate(360deg); } }
@keyframes sf-vortex-reverse { to { transform: rotate(-360deg); } }
@keyframes sf-beam {
  from { transform: translateX(-12%) rotate(-20deg); opacity: .5; }
  to { transform: translateX(12%) rotate(-20deg); opacity: 1; }
}
@keyframes sf-wave {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.08); }
  27% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); }
}

/* Compatible con Android y pantallas de escritorio. */
@media (max-width: 768px) {
  html { scroll-padding-top: 80px; }
  section[id] { scroll-margin-top: 80px; }
  .sf-aurora { width: 94vw; filter: blur(17px); opacity: .53; }
  .sf-aurora--one { right: -47%; top: -13%; }
  .sf-aurora--two { left: -47%; bottom: -18%; }
  .hero::after { width: 60%; left: 30%; }
  .main-nav a:not(.nav-cta)::after { bottom: 0; }
}

/* Accesibilidad: al solicitar menos movimiento, todo es inmediato y sin giro. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .sf-aurora, .hero::after, .sf-transition-wave { animation: none !important; }
  .sf-transition-wave { display: none; }
  
  :is(.btn-primary, .form-submit, .main-nav .nav-cta,
      .service-card, .product-card, .work-card, .principle, .identity-cards article,
      .product-image svg, .work-graphic svg) {
    transition-duration: .01ms !important;
  }
}




/* =============================================================
   V6 — REVELADO VERTICAL, SIN DESENFOQUE
   Cada LÍNEA de texto entra nítida desde abajo al desplazar.
   Compatible con el hover original (translate != transform).
   ============================================================= */
.sf-v6-sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.sf-v6-visual { display: contents; }
.sf-v6-word { display: inline-block; white-space: nowrap; vertical-align: baseline; }
html.sf-v6-active .sf-v6-word {
  opacity: var(--sf-v6-opacity, 1);
  translate: 0 var(--sf-v6-y, 0px);
  filter: none !important;
  transition: opacity 75ms linear, translate 75ms linear;
}
html.sf-v6-active .sf-v6-card {
  opacity: var(--sf-v6-opacity, 1);
  translate: 0 var(--sf-v6-y, 0px);
  filter: none !important;
  /* Se conserva transform para el hover de styles.css. */
  transition: opacity 85ms linear, translate 85ms linear,
              transform .45s var(--sf-ease), box-shadow .45s var(--sf-ease),
              border-color .4s ease;
}
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.sf-v6-active .sf-v6-word, html.sf-v6-active .sf-v6-card {
    opacity: 1 !important;
    translate: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* SERVICIOS FUSIÓN — Corrección de botones */

/* Tema claro */
.hero .hero-actions .btn-outline {
    color: #012d3f;
    border: 1px solid #0a91a7;
    background: rgba(255, 255, 255, 0.65);
    font-weight: 800;
}

.hero .hero-actions .btn-outline:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #0898b5, #08bfae);
    border-color: #08bfae;
    box-shadow: 0 10px 28px rgba(1, 211, 234, 0.25);
}

/* Tema oscuro */
html[data-theme="dark"] .hero .hero-actions .btn-outline {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: #62dce9;
}

html[data-theme="dark"] .hero .hero-actions .btn-outline:hover {
    color: #012d3f;
    background: #01d3ea;
    border-color: #01d3ea;
}

/* =====================================
   SERVICIOS FUSIÓN
   FOTOGRAFÍAS COMPLETAS DEL CATÁLOGO
===================================== */

.product-image .foto-producto {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;

    object-fit: contain !important;
    object-position: center;

    padding: 12px;
    box-sizing: border-box;
    display: block;
    position: relative;
    z-index: 1;

    transition: transform 0.4s ease;
}

/* Efecto elegante al pasar el mouse */
.product-card:hover .foto-producto {
    transform: scale(1.03);
}

/* Evitar que las etiquetas queden ocultas */
.product-image-label {
    position: absolute;
    z-index: 3;
}

/* Fondo de la fotografía de cámaras */
.product-camera {
    background: #f5fbfc;
}

/* INTEGRAR FOTOGRAFÍAS CON EL FONDO */

.product-camera {
    background: #f5fbfc !important;
}

.product-camera .foto-producto {
    mix-blend-mode: multiply;
    object-fit: contain !important;
    object-position: center;
}

/* Mantener la etiqueta por encima */
.product-camera .product-image-label {
    z-index: 5;
}

/* OCULTAR COTIZADOR ANTERIOR */

.catalog-instruction,
#quoteFab,
.product-quote,
.services-grid .service-link {
    display: none !important;
}

/* BOTÓN FLOTANTE WHATSAPP - SERVICIOS FUSIÓN */

.whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 20px;
    border-radius: 50px;

    background: linear-gradient(
        135deg,
        #0799b8,
        #08bcae
    );

    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;

    border: 1px solid rgba(255,255,255,0.2);

    box-shadow: 0 8px 28px rgba(0,0,0,0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.whatsapp-fab svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.whatsapp-fab:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,190,180,0.3);
}

/* ADAPTACIÓN PARA CELULARES */
@media (max-width: 600px) {
    .whatsapp-fab {
        bottom: 18px;
        right: 14px;
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* ======================================
   SERVICIOS FUSIÓN
   GALERÍA DE PROYECTOS REALES
====================================== */

/* Contenedor de cada fotografía */
.work-section .work-graphic {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 12px;
}

/* Fotografías */
.work-section .work-photo {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center;

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

/* Encuadre de cada proyecto */
.work-section .work-one .work-photo {
    object-position: center 40%;
}

.work-section .work-two .work-photo {
    object-position: center 45%;
}

.work-section .work-three .work-photo {
    object-position: center 65%;
}

/* Animación al pasar el cursor */
.work-section .work-card:hover .work-photo {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .work-section .work-photo {
        transition: none;
    }
}

/* ==========================================
   SERVICIOS FUSIÓN
   MARCAS ALIADAS CENTRADAS Y ORGANIZADAS
========================================== */

.brands-section {
    padding: 42px 0 !important;
}

/* Centrar el contenido general */
.brands-section .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Organizar las marcas */
.brands-section .container > :last-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 22px 38px !important;

    max-width: 950px;
    width: 100%;
    margin: 25px auto 0 !important;
}

/* Evitar que las marcas se estiren */
.brands-section .container > :last-child > * {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    text-align: center;
}

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

    .brands-section {
        padding: 35px 0 !important;
    }

    .brands-section .container > :last-child {
        gap: 18px 25px !important;
        max-width: 100%;
    }
}

/* ==========================================
   SERVICIOS FUSIÓN
   MARCAS CENTRADAS CON SEPARADORES TURQUESA
========================================== */

.brands-section {
    padding: 35px 20px !important;
}

/* Título centrado */
.brands-section .brands-title {
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 22px;
}

/* Marcas agrupadas y centradas */
.brands-section .container > .brand-list {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 12px !important;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto !important;
}

/* Nombres de las marcas */
.brands-section .brand-list > .brand-name {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    margin: 0 !important;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

/* Círculos separadores */
.brands-section .brand-name:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 18px;
    border-radius: 50%;
    background-color: #16d7dd;
    box-shadow: 0 0 6px rgba(22, 215, 221, 0.25);
    flex-shrink: 0;
}

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

    .brands-section .container > .brand-list {
        gap: 12px !important;
    }

    .brands-section .brand-list > .brand-name {
        font-size: 15px;
    }

    .brands-section .brand-name:not(:last-child)::after {
        margin-left: 12px;
        width: 5px;
        height: 5px;
    }
}

/* =====================================
   SERVICIOS FUSIÓN - VALORES CENTRADOS
===================================== */

/* Título centrado */
.identity-section .sf-values-title {
    text-align: center !important;
    width: 100%;
    margin-bottom: 20px;
}

/* Valores distribuidos en el centro */
.identity-section .sf-values-list {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Cada valor */
.identity-section .sf-values-list span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

/* Círculos turquesa */
.identity-section .sf-values-list span:not(:first-child)::before {
    content: "";
    display: inline-block;

    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: #16D7DD;
    flex-shrink: 0;
}

/* Ajuste en celulares */
@media (max-width: 600px) {
    .identity-section .sf-values-list {
        gap: 10px;
        font-size: 14px;
    }

    .identity-section .sf-values-list span {
        gap: 8px;
    }
}
