/* CGSA SpA v4 — estilo inspirado en la página /servicios/ de referencia (solo estilo, no contenido) */
:root {
  --bg: #f5f5f5;
  --white: #ffffff;
  --ink: #131515;
  --muted: #131515;
  --yellow: #fcee35;
  --pink: #f2a8f1;
  --blue: #0065f6;
  --mint: #56e5b4;
  --footer: #131515;
  --line: #e4e4e4;
  --max: 1160px;
  --font: "Poppins", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

.draft-banner {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: #131515;
  background: #fff6a8;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid rgba(19,21,21,0.08);
}

.wrap {
  width: min(var(--max), calc(100% - 100px));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-bar {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-shrink: 0;
}
.brand-mark {
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.brand-legal {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  padding: 10px 0;
}
.nav a:hover,
.nav a.is-active { color: var(--blue); }
.nav .nav-cta {
  border: 3px solid var(--blue);
  color: var(--blue);
  border-radius: 32px;
  padding: 12px 24px;
  letter-spacing: 3.2px;
  font-weight: 500;
  font-size: 10px;
}
.nav .nav-cta:hover { background: var(--blue); color: #fff; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font: 700 18px/1 var(--font);
}

/* White rounded cap + yellow title bar */
.page-title {
  background: var(--white);
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  padding: 30px 0 35px;
}
.title-bar {
  width: min(1180px, calc(100% - 100px));
  margin-inline: auto;
  background: var(--yellow);
  border-radius: 20px;
  min-height: 102px;
  display: flex;
  align-items: center;
  padding: 10px 35px;
}
.title-bar h1 {
  margin: 0;
  font-weight: 500;
  font-size: 32px;
  line-height: 32px;
  color: #fff;
}

/* Numbered blocks */
.block {
  background: var(--bg);
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
.block:first-of-type { border-top: 0; padding-top: 100px; }
.block-grid {
  width: min(var(--max), calc(100% - 100px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.block.is-reverse .block-grid { direction: rtl; }
.block.is-reverse .block-grid > * { direction: ltr; }

.num {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 32px;
  line-height: 32px;
}
.num-01 { color: var(--pink); }
.num-02 { color: var(--blue); }
.num-03 { color: var(--mint); }
.num-04 { color: var(--yellow); }

.block h2 {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 45px;
  line-height: 45px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.prose p {
  margin: 0 0 14.4px;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
  font-weight: 400;
}
.prose p:last-child { margin-bottom: 0; }

.visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual svg, .visual img {
  width: min(100%, 480px);
  height: auto;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 1.2rem;
}
.logo-row img { height: 22px; width: auto; object-fit: contain; }
.logo-row .logo-mercusys { height: 14px; }
.logo-row .logo-philips { height: 16px; }

.cats { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.cats li { margin: 0 0 10px; }
.cats strong { font-weight: 600; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 32px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 3px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #003af1; color: #fff; }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; }

.marker {
  display: inline-block;
  background: #fff3b0;
  color: #6a4a08;
  font-weight: 600;
  font-size: 13px;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(106,74,8,0.2);
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 64px 0 36px;
}
.footer-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 13px;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
}
.footer-title {
  margin: 0 0 28px;
  font-size: 43px;
  line-height: 43px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer-title:hover { color: #fff; }
.arrow { color: var(--pink); font-size: 40px; line-height: 1; }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 36px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.7px;
  color: #fff;
}
.contact-row a { color: #fff; text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
.contact-row span, .contact-row a { display: inline-flex; align-items: center; gap: 8px; }

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 16px;
  margin-bottom: 40px;
}
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  padding: 1rem;
  text-align: center;
}
.tile-yellow { background: var(--yellow); color: var(--ink); }
.tile-pink { background: var(--pink); color: var(--ink); }
.tile-blue { background: var(--blue); color: #fff; }
.tile:hover { filter: brightness(0.96); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
  line-height: 13px;
  color: #fff;
}
.footer-bottom strong { font-weight: 600; }

@media (max-width: 860px) {
  .wrap,
  .nav-bar,
  .title-bar,
  .block-grid { width: min(var(--max), calc(100% - 36px)); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 0.5rem 1.2rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav .nav-cta { align-self: flex-start; margin-top: 0.5rem; }
  .page-title { padding: 18px 0 24px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
  .title-bar { min-height: 88px; padding: 16px 22px; border-radius: 20px; }
  .title-bar h1 { font-size: 28px; line-height: 28px; }
  .block, .block:first-of-type { padding: 56px 0; }
  .block-grid,
  .block.is-reverse .block-grid {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }
  .block h2 { font-size: 36px; line-height: 38px; }
  .visual { min-height: 0; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 88px; border-radius: 24px; }
  .footer-title { font-size: 34px; line-height: 36px; flex-wrap: wrap; }
  .contact-row { flex-direction: column; gap: 14px; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding: 48px 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Animaciones (equivalentes a Elementor fadeIn/fadeInUp/fadeInLeft/fadeInRight + Motion FX + hovers) */
.visual {
  overflow: visible;
}
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.deco-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  top: 8%;
  right: 4%;
  opacity: 0.85;
  animation: floatY 5s ease-in-out infinite alternate;
}
.deco-arc {
  width: 160px;
  height: 80px;
  border-radius: 0 0 160px 160px;
  bottom: 6%;
  left: 4%;
  opacity: 0.9;
  animation: floatY 6.5s ease-in-out infinite alternate-reverse;
}
#quienes-somos .deco { background: var(--pink); }
#que-vendemos .deco { background: var(--blue); }
#donde-comprar .deco { background: var(--mint); }
#empresas .deco { background: var(--yellow); }
#que-vendemos .deco-circle { left: 2%; right: auto; top: 10%; }
#empresas .deco-circle { left: 4%; right: auto; }
.illu {
  position: relative;
  z-index: 1;
  will-change: transform;
}
.float-illu img {
  animation: floatY 7s ease-in-out infinite alternate;
}
@keyframes floatY {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -14px, 0); }
}
.mouse-track {
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
}
.float-illu.mouse-track,
.deco.mouse-track {
  transform: translate3d(var(--mx), var(--my), 0);
}
/* float + mouse: apply mouse on wrapper already; float is on same element - combine in JS or nest.
   JS writes --mx/--my; float animation would overwrite transform. So float is on inner img, mouse on wrapper. */

.js-ready [data-reveal] {
  opacity: 0;
}
.js-ready [data-reveal].is-in {
  opacity: 1;
  animation-duration: 0.9s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.js-ready [data-reveal="fade"].is-in { animation-name: fadeIn; }
.js-ready [data-reveal="up"].is-in { animation-name: fadeInUp; }
.js-ready [data-reveal="left"].is-in { animation-name: fadeInLeft; }
.js-ready [data-reveal="right"].is-in { animation-name: fadeInRight; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-50px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(50px, 0, 0); }
  to { opacity: 1; transform: none; }
}

/* Hovers: shrink (tiles) y un leve sesgo en la flecha, como en la referencia */
.tile {
  transition: transform 0.25s ease, filter 0.25s ease;
}
.tile:hover { transform: scale(0.96); filter: none; }
.footer-title .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.footer-title:hover .arrow { transform: skewX(-12deg) translateX(6px); }
.btn, .nav .nav-cta {
  transition: transform 0.25s ease, background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover, .nav .nav-cta:hover { transform: translateY(-1px); }
.logo-row img { transition: transform 0.3s ease; }
.logo-row img:hover { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
