/* Silumina: ajustes aprobados en reunión. Compartido por el home y servicios. */
:root { --sil-granate: #4a0e1e; --sil-coral: #ff7f50; --sil-touch: 44px; --sil-gap: 8px; --sil-bar-base: 72px; --sil-bar-height: calc(var(--sil-bar-base) + env(safe-area-inset-bottom, 0px)); --sil-motion: 180ms; --sil-surface: #fff; --sil-border: #d7cdd0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
#servicios, #nosotros, #contacto, #proyectos { scroll-margin-top: 90px; }

/* Áreas institucionales oscuras; CTA coral y títulos sobre blanco negros. */
body:not(.installation-page) .topbar { background: var(--sil-granate); }
body:not(.installation-page) .hero .cta { display: inline-flex; align-items: center; justify-content: center; }
body:not(.installation-page) .hero-seal { left: clamp(24px, 6vw, 75px); top: clamp(145px, 18vh, 210px); width: clamp(108px, 10vw, 140px); }
.installation-page .nav, .installation-page .topbar { background: var(--sil-granate); }
.installation-page .topbar, .installation-page .topbar .tagline,
.installation-page .topbar .info-item, .installation-page .topbar .info-item .s { color: #fff; }
.installation-page .topbar .info-item .s { opacity: .83; }
.installation-page .content, .installation-page .content .service-card { background: var(--sil-granate); }
.installation-page .content .service-card { border-color: #7e4451; }
.installation-page .content .service-card p { color: #f5e9ec; }
.installation-page .sub-gallery { background: #f7f7f7; }

/* Llamadas a la acción del home y de todas las páginas de servicios. */
body:not(.installation-page) .leadform,
.installation-page .cta { background: var(--sil-coral); }
body:not(.installation-page) .leadform h2,
body:not(.installation-page) .leadform .lf-sub,
body:not(.installation-page) .leadform .eyebrow,
body:not(.installation-page) .leadform .guarantee,
.installation-page .cta h2,
.installation-page .cta p { color: var(--sil-granate); }
body:not(.installation-page) .leadform .guarantee svg { stroke: var(--sil-granate); }

/* Mayor legibilidad y menos peso visual en el home. */
body:not(.installation-page) .services .svc h3,
body:not(.installation-page) .svc-body h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.27; color: #000; }
body:not(.installation-page) .services .svc p,
body:not(.installation-page) .svc-body p { font-size: clamp(17px, 1.32vw, 19px); line-height: 1.55; color: #161616; }
body:not(.installation-page) .services .s-sub,
body:not(.installation-page) .section-title { color: #000; }
body:not(.installation-page) .como-text-card p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.58; }
body:not(.installation-page) .projects .card p { font-size: clamp(16px, 1.25vw, 18px); }
body:not(.installation-page) .badge[style*="#0e0ecc"] { background: #245374 !important; }

/* Servicios: títulos, subtítulos y lectura con tamaños consistentes. */
.installation-page .hero .eyebrow { font-size: 14px; }
.installation-page .hero h1 { font-size: clamp(33px, 3.4vw, 48px); line-height: 1.08; }
.installation-page .hero p { font-size: clamp(17px, 1.4vw, 20px); }
.installation-page .page-intro p,
.installation-page .service-panel .sub-copy p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.58; }
.installation-page .service-panel .sub-copy h2 { font-size: clamp(30px, 3.5vw, 46px); }
.installation-page .page-intro h2, .installation-page .section-title { color: #000; }
.installation-page .service-index strong { font-size: 16px; }
.installation-page .service-panel .sub-copy ul { font-size: 17px; }
.installation-page .service-panel .sub-gallery { border: 2px solid #e4e7e4; }
.installation-page .cta.cta-directa { min-height: 260px; padding: 62px 20px; }
.installation-page .cta.cta-directa .cta-inner { justify-content: center; }
.installation-page .cta.cta-directa .btn { font-size: clamp(19px,2vw,23px); padding: 20px 38px; }

/* Mismo footer en las siete páginas. Especificidad necesaria por estilos previos. */
.footer, .installation-page .footer {
  background: var(--sil-granate); color: #fff;
  padding: clamp(56px, 7vh, 90px) clamp(22px, 6vw, 101px) 30px;
}
.footer .wrap, .installation-page .footer .wrap { max-width: 1240px; margin: 0 auto; width: 100%; }
.footer .foot-grid, .installation-page .footer .foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 3.5vw, 58px); padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.footer .fb-logo { margin-bottom: 18px; }
.footer .fb-logo-svg { height: 54px; width: auto; display: block; }
.footer .fb-logo span { font-size: 13px; color: #41dd61; font-weight: 600; }
.footer .foot-brand p, .installation-page .footer .foot-brand p {
  color: #f5f5f5; font-size: clamp(19px,1.5vw,21px); line-height: 1.58;
  max-width: 340px; margin: 0 0 12px;
}
.footer .fb-seal, .installation-page .footer .fb-seal {
  display: block; width: 110px; height: 110px; object-fit: contain;
  margin: 4px 0 16px; opacity: .98; transform: rotate(-8deg);
}
.footer .foot-social { display: flex; gap: 12px; margin-top: 4px; }
.footer .foot-social a { width: 46px; height: 46px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer .foot-social svg { width: 21px; height: 21px; fill: #f5f5f5; }
.footer .foot-col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 20px; letter-spacing: 1.1px; text-transform: uppercase; }
.footer .foot-col ul { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer .foot-col ul a, .installation-page .footer .foot-col ul a { color: #fff; font-size: 18px; line-height: 1.35; text-decoration: none; }
.footer .foot-col ul a:hover, .footer .foot-contact a:hover { color: #41dd61; }
.footer .foot-contact li, .installation-page .footer .foot-contact li {
  display: flex; gap: 11px; color: #fff; font-size: 18px;
  line-height: 1.5; margin: 0 0 15px; list-style: none;
}
.footer .foot-contact ul { padding: 0; margin: 0; }
.footer .foot-contact a, .installation-page .footer .foot-contact a { color: inherit; text-decoration: none; }
.footer .foot-contact .tel-green, .footer .foot-contact .tel-green a { color: #41dd61; }
.footer .foot-contact li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 5px; fill: none; stroke: #41dd61; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer .foot-bottom, .installation-page .footer .foot-bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  color: #e8dce0; font-size: 16px; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 1024px) {
  .footer .foot-grid, .installation-page .footer .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .footer .foot-grid, .installation-page .footer .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer, .installation-page .footer { padding: 56px 22px 26px; }
  .installation-page .hero h1 { font-size: clamp(30px, 7.5vw, 38px); }
  .installation-page .service-panel .sub-copy h2 { font-size: clamp(29px, 7vw, 36px); }
}

/* Responsive compartido: navegación inferior y controles accesibles. */
.sil-bottom-bar { display: none; }
/* WhatsApp flotante en escritorio; en móvil se mantiene la barra inferior. */
:root { --sil-wa-green: #128c4a; --sil-wa-hover: #0d703b; --sil-wa-size: 64px; --sil-wa-offset: 24px; }
body:not(.installation-page) .wa, .sil-whatsapp-float { display: none; }
@media (min-width: 1025px) {
  body { padding-bottom: calc(var(--sil-wa-size) + 2 * var(--sil-wa-offset)); }
  .sil-whatsapp-float {
    position: fixed; right: var(--sil-wa-offset); bottom: var(--sil-wa-offset); z-index: 200;
    display: grid; place-items: center; width: var(--sil-wa-size); height: var(--sil-wa-size);
    border-radius: 50%; background: var(--sil-wa-green); color: #fff; text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.24); cursor: pointer;
    transition: transform var(--sil-motion) ease-out;
  }
  .sil-whatsapp-float svg { display: block; width: 32px; height: 32px; fill: currentColor; stroke: none; }
}
@media (min-width: 1025px) and (hover: hover) {
  .sil-whatsapp-float:hover { background: var(--sil-wa-hover); color: #fff; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .sil-whatsapp-float { transition: none; }
  .sil-whatsapp-float:hover { transform: none; }
}
:where(a, button, input, select, textarea):focus-visible,
.installation-page :where(a, button):focus-visible {
  outline: 3px solid var(--sil-granate); outline-offset: 4px;
  box-shadow: 0 0 0 6px #fff;
}
.hero-dots button, .como-dots button {
  display: grid; place-items: center; width: var(--sil-touch); height: var(--sil-touch);
  flex: none; border: 0; padding: 0; background: transparent; cursor: pointer;
}
.hero-dots button::before, .como-dots button::before {
  content: ''; display: block; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; opacity: .6;
}
.hero-dots button.on::before, .como-dots button.on::before { background: var(--green); opacity: 1; }
.hero-dots, .como-dots { gap: var(--sil-gap); max-width: calc(100% - 32px); flex-wrap: wrap; justify-content: center; }
.footer .foot-grid > *, .footer .foot-contact li > *, .leadform .wrap > *,
.installation-page .intro-grid > *, .installation-page .service-panel > * { min-width: 0; }
.footer .foot-contact a { overflow-wrap: anywhere; }
.lf-field input { min-width: 0; max-width: 100%; }
.lf-field label, .lf-note { font-size: 16px; }
.lf-note { color: #595959; }
.installation-page .mobile-toggle { min-width: var(--sil-touch); min-height: var(--sil-touch); }
.installation-page .mobile-services-toggle { min-height: var(--sil-touch); cursor: pointer; }

@media (max-width: 1024px) {
  html { scroll-padding-bottom: calc(var(--sil-bar-height) + 16px); }
  body { height: auto; min-height: 100%; padding-bottom: var(--sil-bar-height); }
  .sil-bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sil-gap);
    min-height: var(--sil-bar-base); box-sizing: border-box;
    padding: 8px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: var(--sil-surface); border-top: 1px solid var(--sil-border);
  }
  .sil-bottom-bar a {
    display: grid; justify-items: center; align-content: center; gap: 4px;
    min-height: 56px; min-width: 0; padding: 4px 0; border-radius: 8px;
    font-family: inherit; font-size: 16px; line-height: 1.5; font-weight: 600;
    color: var(--sil-granate); text-decoration: none; cursor: pointer;
  }
  .sil-bottom-bar a > span { display: block; white-space: nowrap; }
  .sil-bottom-bar svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .sil-bottom-bar a[aria-current] { background: var(--sil-coral); }
  .sil-bottom-bar svg.sil-whatsapp-icon { fill: currentColor; stroke: none; }
  .sil-bottom-bar a:focus-visible { outline-offset: -4px; box-shadow: none; }
  body.sil-input-focused .sil-bottom-bar { visibility: hidden; pointer-events: none; }
  body:not(.installation-page) .wa { display: none; }
  body:not(.installation-page) .hero { height: auto; min-height: max(560px, calc(100svh - var(--sil-bar-height))); overflow: visible; }
  body:not(.installation-page) .stage { flex: 1 0 auto; padding-block: 48px 96px; }
  body:not(.installation-page) .brand { min-width: 0; }
  body:not(.installation-page) .brand-tagline { display: none; }
  body:not(.installation-page) .nav { gap: 16px; }
  body:not(.installation-page) .nav-toggle { flex: none; }
  body:not(.installation-page) .m-panel { height: 100%; height: 100dvh; }
  body:not(.installation-page) .m-services-inner a { min-height: var(--sil-touch); font-size: 16px; }
  body:not(.installation-page) .como-grid,
  body:not(.installation-page) .leadform .wrap,
  body:not(.installation-page) .process .wrap { grid-template-columns: minmax(0,1fr); }
  body:not(.installation-page) .svc-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body:not(.installation-page) .como-slider { width: 100%; }
  body:not(.installation-page) .como-slider { display: grid; aspect-ratio: auto; min-height: 0; height: auto; }
  body:not(.installation-page) .como-track { display: grid; position: static; }
  /* Todas las fotos reservan la misma celda: la más alta fija el espacio.
     opacity/visibility cambian la foto sin colapsar el carrusel. */
  body:not(.installation-page) .como-slide { display: block; position: static; grid-area: 1 / 1; align-self: center; width: 100%; height: auto; visibility: hidden; pointer-events: none; }
  body:not(.installation-page) .como-slide.active { visibility: visible; pointer-events: auto; }
  body:not(.installation-page) .como-dots { position: static; transform: none; max-width: 100%; padding: 4px 8px; background: var(--sil-granate); }
  .installation-page .menu { display: none; }
  .installation-page .mobile-toggle { display: grid; place-items: center; }
  .installation-page .nav { gap: 16px; }
  .installation-page .mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30; display: none;
    padding: 16px 24px; background: var(--sil-granate);
    max-height: calc(100dvh - 76px - var(--sil-bar-height) - 16px); overflow-y: auto; overscroll-behavior: contain;
  }
  .installation-page .mobile-menu.open { display: block; }
  .installation-page .mobile-menu > a, .installation-page .mobile-menu button,
  .installation-page .mobile-services a {
    display: block; width: 100%; min-height: var(--sil-touch); padding: 12px 0;
    color: #fff; text-align: left; border: 0; background: none; font: inherit; line-height: 1.5;
  }
  .installation-page .mobile-services { display: none; padding-left: 16px; }
  .installation-page .mobile-services.open { display: block; }
  .installation-page .topbar { flex-wrap: wrap; gap: 16px; }
  .installation-page .info { flex-wrap: wrap; }
  .installation-page .intro-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .installation-page .service-index {
    display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 16px;
    scroll-snap-type: x proximity; scroll-padding-inline: 4px; max-width: 100%;
  }
  .installation-page .service-index button { flex: 0 0 216px; min-width: 0; min-height: 128px; scroll-snap-align: start; }
  .installation-page .service-panel { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .installation-page .service-panel .sub-copy { order: 1; }
  .installation-page .content .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .installation-page .service-panel .sub-gallery {
    order: 0; display: grid; grid-template-columns: var(--sil-touch) minmax(0,1fr) var(--sil-touch);
    gap: var(--sil-gap); aspect-ratio: auto; align-items: center;
  }
  .installation-page .service-panel .sub-gallery img { display: block !important; position: static; grid-column: 1 / -1; grid-row: 1; align-self: center; min-width: 0; width: 100%; height: auto; transform: none; pointer-events: none; }
  .installation-page .service-panel .sub-gallery img.active { pointer-events: auto; }
  .installation-page .service-panel .slider-dots {
    position: static; grid-column: 1 / -1; grid-row: 2; transform: none; display: flex;
    flex-wrap: wrap; justify-content: center; gap: var(--sil-gap); padding: 4px; border-radius: 0; background: transparent;
  }
  .installation-page .service-panel .sub-gallery:has(.slider-arrow) .slider-dots { grid-column: 2; }
  .installation-page .service-panel .slider-dots button { width: var(--sil-touch); height: var(--sil-touch); flex: none; }
  .installation-page .service-panel .slider-dots button::before { background: #777; }
  .installation-page .service-panel .slider-dots button.active::before { background: var(--sil-granate); }
  .installation-page .service-panel .slider-arrow { position: static; grid-row: 2; transform: none; width: var(--sil-touch); height: var(--sil-touch); border: 0; background: var(--sil-granate); color: #fff; }
  .installation-page .service-panel .slider-prev { grid-column: 1; }
  .installation-page .service-panel .slider-next { grid-column: 3; }
  .installation-page .cta .btn { max-width: 100%; font-size: 16px; padding: 16px 24px; }
  .installation-page .cta-inner { min-width: 0; }
  .footer .foot-grid, .installation-page .footer .foot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  .installation-page .topbar .info { display: none; }
  .installation-page .topbar { min-height: 0; padding: 12px 24px; }
  .installation-page .tagline { font-size: 16px; line-height: 1.5; }
  .installation-page .page-intro { padding-block: 48px 24px; }
  .installation-page .service-showcase { padding-block: 24px 48px; }
  .installation-page .service-panel { padding: 16px; gap: 24px; }
  .installation-page .content .service-grid { grid-template-columns: minmax(0,1fr); }
  .footer .foot-grid, .installation-page .footer .foot-grid { grid-template-columns: minmax(0,1fr); }
  .footer .foot-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  body:not(.installation-page) .copy h1 { font-size: clamp(28px,7vw,44px); }
  body:not(.installation-page) .svc-track { grid-template-columns: minmax(0,1fr); max-width: 480px; margin-inline: auto; }
  body:not(.installation-page) .services .s-header { flex-wrap: wrap; gap: 16px; }
  .lf-submit { font-size: 16px; padding-inline: 8px; }
  .installation-page .cta.cta-directa { padding-inline: 16px; }
  .installation-page .cta.cta-directa .wrap { width: 100%; }
}
@media (max-width: 375px) {
  .sil-bottom-bar { gap: 8px; padding-inline: 8px; }
  .sil-bottom-bar a { font-size: 16px; }
  .installation-page .service-index button { flex-basis: 200px; }
  .installation-page .service-panel { padding: 12px; }
  .installation-page .hero h1 { font-size: 30px; }
}
@media (hover: hover) {
  .sil-bottom-bar a:hover { background: var(--sil-coral); color: var(--sil-granate); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
