/* Estilos propios de Grupo SINCO sobre la base de Webflow. Prefijo sx- para no chocar con clases del export. */

:root {
  --sx-navy: #132035;
  --sx-slate: #27323a;
  --sx-sand: #dcc5b7;
  --sx-brown: #897061;
  --sx-cream: #f6f1ee;
  --sx-ink: #1f1f1f;
  --sx-muted: #55606b;
  --sx-line: #e6ddd7;
  --sx-radius: 14px;
  --sx-max: 1230px;
}

html { scroll-behavior: smooth; }
body { background-color: #fff; }
:focus-visible { outline: 2px solid var(--sx-sand); outline-offset: 3px; }

/* ---------- Navegación ---------- */
.sx-nav-dropdown .dropdown-toggle { padding: 40px 20px; cursor: pointer; }
.sx-nav-dropdown .nav-arrow { margin-left: 2px; }
.sx-nav-dropdown .w-dropdown-list.w--open {
  background: #fff;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(19, 32, 53, .18);
}
.sx-nav-dropdown .w-dropdown-link {
  color: var(--sx-navy);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 22px;
}
.sx-nav-dropdown .w-dropdown-link:hover,
.sx-nav-dropdown .w-dropdown-link.w--current { color: var(--sx-brown); background: var(--sx-cream); }
.link-block-2.w--current .menu-font,
.sx-nav-dropdown .dropdown-toggle.w--current .menu-font { color: var(--sx-sand); }

@media screen and (max-width: 991px) {
  .sx-nav-dropdown { display: block; width: 100%; border-bottom: 1px solid #f0f0f0; }
  .sx-nav-dropdown .dropdown-toggle { justify-content: center; padding: 15px 20px !important; }
  .sx-nav-dropdown .dropdown-toggle .menu-font { color: var(--sx-navy) !important; font-size: 15px !important; }
  .sx-nav-dropdown .nav-arrow { filter: invert(1); }
  .sx-nav-dropdown .w-dropdown-list.w--open { position: static; box-shadow: none; background: var(--sx-cream); border-radius: 0; }
  .sx-nav-dropdown .w-dropdown-link { text-align: center; }
  .link-block-2.w--current .menu-font { color: var(--sx-brown) !important; }
}

/* ---------- Layout ---------- */
.sx-container { max-width: var(--sx-max); margin: 0 auto; padding: 0 20px; }
.sx-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.sx-section { padding: 100px 0; background: #fff; color: var(--sx-ink); }
.sx-section--cream { background: var(--sx-cream); }
.sx-section--dark { background: var(--sx-navy); color: #fff; }
.sx-section--slate { background: var(--sx-slate); color: #fff; }
.sx-section p, .sx-section li { color: var(--sx-muted); }
.sx-section--dark p, .sx-section--slate p, .sx-section--dark li, .sx-section--slate li { color: rgba(255, 255, 255, .78); }
.sx-section h2, .sx-section h3 { color: var(--sx-ink); }
.sx-section--dark h2, .sx-section--dark h3, .sx-section--slate h2, .sx-section--slate h3 { color: #fff; }
@media (max-width: 767px) { .sx-section { padding: 64px 0; } }

.sx-eyebrow {
  display: inline-block;
  color: var(--sx-brown);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.sx-section--dark .sx-eyebrow, .sx-section--slate .sx-eyebrow, .sx-hero .sx-eyebrow { color: var(--sx-sand); }
.sx-heading { margin: 0 0 18px; font-size: 40px; line-height: 1.15; letter-spacing: -1.2px; font-weight: 300; }
.sx-lead { font-size: 18px; line-height: 1.7; max-width: 680px; }
.sx-center { text-align: center; }
.sx-center .sx-lead { margin-left: auto; margin-right: auto; }
.sx-head { margin-bottom: 48px; }
@media (max-width: 767px) { .sx-heading { font-size: 30px; } }

.sx-grid { display: grid; gap: 28px; }
.sx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 991px) {
  .sx-grid--3, .sx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) { .sx-grid--2, .sx-grid--3, .sx-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Hero de páginas internas ---------- */
.sx-hero {
  position: relative;
  background: var(--sx-navy);
  color: #fff;
  padding: 200px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.sx-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sx-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(19, 32, 53, .96) 0%, rgba(19, 32, 53, .82) 55%, rgba(19, 32, 53, .55) 100%);
}
.sx-hero h1 { color: #fff; font-size: 54px; line-height: 1.08; letter-spacing: -2px; font-weight: 300; max-width: 900px; margin: 0 0 22px; }
.sx-hero p { color: rgba(255, 255, 255, .82); font-size: 19px; line-height: 1.65; max-width: 700px; }
.sx-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
@media (max-width: 991px) { .sx-hero { padding: 150px 0 64px; } }
@media (max-width: 767px) { .sx-hero h1 { font-size: 36px; letter-spacing: -1px; } .sx-hero p { font-size: 17px; } }

.sx-crumbs { margin-bottom: 26px; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; }
.sx-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sx-crumbs li { color: rgba(255, 255, 255, .6); }
.sx-crumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(255, 255, 255, .35); }
.sx-crumbs a { color: var(--sx-sand); }
.sx-crumbs a:hover { color: #fff; }

/* ---------- Botones ---------- */
.sx-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  border: 1px solid var(--sx-sand);
  background: var(--sx-sand); color: var(--sx-navy);
  border-radius: 999px;
  transition: background .2s, color .2s, transform .2s;
}
.sx-btn:hover { background: #fff; border-color: #fff; color: var(--sx-navy); transform: translateY(-1px); }
.sx-btn--ghost { background: transparent; color: #fff; border-color: rgba(220, 197, 183, .6); }
.sx-btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.sx-btn--dark { background: var(--sx-navy); border-color: var(--sx-navy); color: #fff; }
.sx-btn--dark:hover { background: var(--sx-slate); border-color: var(--sx-slate); color: #fff; }
.sx-link { color: var(--sx-brown); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }
.sx-link:hover { color: var(--sx-navy); }
.sx-link::after { content: ' →'; }

/* ---------- Tarjetas ---------- */
.sx-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius);
  overflow: hidden;
  color: inherit;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
a.sx-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(19, 32, 53, .12); }
.sx-card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--sx-cream); }
.sx-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sx-card__body h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--sx-ink); }
.sx-card__body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--sx-muted); }
.sx-card__body .sx-link { margin-top: auto; padding-top: 8px; }
.sx-card__meta { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; color: var(--sx-brown); }

.sx-feature { padding: 30px; border-radius: var(--sx-radius); background: #fff; border: 1px solid var(--sx-line); }
.sx-section--cream .sx-feature { border-color: transparent; }
.sx-feature__num { font-family: Outfit, sans-serif; font-size: 14px; font-weight: 700; color: var(--sx-brown); letter-spacing: 1.5px; }
.sx-feature h3 { font-size: 20px; line-height: 1.35; font-weight: 500; margin: 10px 0 8px; }
.sx-feature p { margin: 0; font-size: 15px; line-height: 1.65; }

.sx-checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.sx-checklist li { position: relative; padding-left: 30px; line-height: 1.6; }
.sx-checklist li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sx-sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23132035' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.sx-cols-2 { columns: 2; column-gap: 40px; }
.sx-cols-2 li { break-inside: avoid; }
@media (max-width: 600px) { .sx-cols-2 { columns: 1; } }

.sx-img-rounded { width: 100%; height: auto; border-radius: var(--sx-radius); object-fit: cover; aspect-ratio: 4 / 3; }
.sx-card__img, .sx-gallery img, .sx-post-cover img { height: auto; }

/* ---------- Logos de clientes ---------- */
.sx-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.sx-logos img { height: 54px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.sx-logos img:hover { filter: none; opacity: 1; }

/* ---------- Proceso ---------- */
.sx-steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sx-steps li { list-style: none; padding: 28px; border-top: 2px solid var(--sx-sand); }
.sx-steps li::before { counter-increment: step; content: '0' counter(step); display: block; font-family: Outfit, sans-serif; font-size: 34px; font-weight: 300; color: var(--sx-sand); margin-bottom: 10px; }
.sx-steps h3 { font-size: 19px; margin: 0 0 8px; font-weight: 500; }
.sx-steps p { margin: 0; font-size: 15px; line-height: 1.6; }
@media (max-width: 991px) { .sx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sx-steps { grid-template-columns: 1fr; } }
ol.sx-steps { padding: 0; margin: 0; }

/* ---------- FAQ ---------- */
.sx-faq { display: grid; gap: 12px; }
.sx-faq details { background: #fff; border: 1px solid var(--sx-line); border-radius: 12px; padding: 0 24px; }
.sx-faq summary { cursor: pointer; list-style: none; padding: 22px 30px 22px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--sx-ink); }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 26px; font-weight: 300; color: var(--sx-brown); transition: transform .2s; }
.sx-faq details[open] summary::after { transform: rotate(45deg); }
.sx-faq details p { margin: 0 0 22px; line-height: 1.7; }

/* ---------- CTA ---------- */
.sx-cta { background: var(--sx-slate); color: #fff; padding: 90px 0; position: relative; z-index: 12; }
.sx-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.sx-cta h2 { color: #fff; font-size: 38px; line-height: 1.15; font-weight: 300; letter-spacing: -1px; margin: 0 0 12px; max-width: 640px; }
.sx-cta p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 600px; font-size: 17px; line-height: 1.65; }
.sx-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 767px) { .sx-cta h2 { font-size: 30px; } }

/* ---------- Galería de proyectos ---------- */
.sx-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.sx-filters button {
  border: 1px solid var(--sx-line); background: #fff; color: var(--sx-navy);
  padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; cursor: pointer;
}
.sx-filters button[aria-pressed='true'] { background: var(--sx-navy); border-color: var(--sx-navy); color: #fff; }
.sx-gallery { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-gallery figure { margin: 0; position: relative; border-radius: var(--sx-radius); overflow: hidden; background: var(--sx-cream); }
.sx-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s; }
.sx-gallery figure:hover img { transform: scale(1.04); }
.sx-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px;
  background: linear-gradient(transparent, rgba(19, 32, 53, .92));
  color: #fff; font-size: 15px; line-height: 1.4; font-weight: 500;
}
.sx-gallery figcaption span { display: block; color: var(--sx-sand); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.sx-gallery [hidden] { display: none; }
@media (max-width: 991px) { .sx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sx-gallery { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.sx-contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 28px; border-radius: var(--sx-radius); background: #fff; border: 1px solid var(--sx-line); color: inherit; height: 100%; }
a.sx-contact-card:hover { border-color: var(--sx-sand); }
.sx-contact-card__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sx-navy); color: var(--sx-sand); display: grid; place-items: center; }
.sx-contact-card h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; color: var(--sx-brown); }
.sx-contact-card p { margin: 0; color: var(--sx-ink); font-size: 17px; line-height: 1.5; font-weight: 500; }
.sx-map { width: 100%; height: 420px; border: 0; border-radius: var(--sx-radius); filter: grayscale(.4); }

/* ---------- Blog ---------- */
.sx-post-hero { padding-bottom: 70px; }
.sx-post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255, 255, 255, .7); font-size: 14px; margin-top: 8px; }
.sx-post-meta a { color: var(--sx-sand); }
.sx-post-cover { max-width: 1060px; margin: -40px auto 0; padding: 0 20px; position: relative; z-index: 2; }
.sx-post-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--sx-radius); box-shadow: 0 30px 60px rgba(19, 32, 53, .2); }
.sx-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.sx-post-aside { position: sticky; top: 30px; align-self: start; display: grid; gap: 22px; }
.sx-toc { border-left: 2px solid var(--sx-sand); padding-left: 18px; }
.sx-toc strong { display: block; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--sx-brown); margin-bottom: 10px; }
.sx-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-toc a { color: var(--sx-muted); font-size: 14px; line-height: 1.45; }
.sx-toc a:hover { color: var(--sx-navy); }
.sx-aside-cta { background: var(--sx-navy); border-radius: var(--sx-radius); padding: 26px; color: #fff; }
.sx-aside-cta p { color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.sx-aside-cta strong { display: block; font-size: 19px; font-weight: 500; margin-bottom: 8px; }
@media (max-width: 991px) { .sx-post-layout { grid-template-columns: 1fr; } .sx-post-aside { position: static; } .sx-toc { display: none; } }

.sx-prose { font-size: 18px; line-height: 1.8; color: #333b44; }
.sx-prose > * + * { margin-top: 1.1em; }
.sx-prose p, .sx-prose li { color: #333b44; font-size: 18px; line-height: 1.8; letter-spacing: 0; font-weight: 400; }
.sx-prose h2 { font-size: 31px; line-height: 1.25; letter-spacing: -.8px; font-weight: 400; color: var(--sx-ink); margin: 2em 0 .6em; scroll-margin-top: 30px; }
.sx-prose h3 { font-size: 23px; line-height: 1.35; font-weight: 500; color: var(--sx-ink); margin: 1.6em 0 .5em; scroll-margin-top: 30px; }
.sx-prose a { color: var(--sx-brown); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.sx-prose a:hover { color: var(--sx-navy); }
.sx-prose ul, .sx-prose ol { padding-left: 1.3em; }
.sx-prose li + li { margin-top: .45em; }
.sx-prose li::marker { color: var(--sx-brown); }
.sx-prose strong { color: var(--sx-ink); }
.sx-prose ul.contains-task-list { list-style: none; padding-left: 0; }
.sx-prose .task-list-item { display: flex; gap: 12px; align-items: baseline; }
.sx-prose .task-list-item input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--sx-navy); transform: translateY(3px); }
.sx-prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--sx-sand); background: var(--sx-cream); border-radius: 0 10px 10px 0; font-size: 18px; }
.sx-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.sx-prose th, .sx-prose td { border-bottom: 1px solid var(--sx-line); padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.55; }
.sx-prose th { background: var(--sx-cream); color: var(--sx-ink); font-weight: 700; font-size: 14px; letter-spacing: .4px; }
.sx-prose img { border-radius: 12px; }
.sx-prose hr { border: 0; border-top: 1px solid var(--sx-line); margin: 2.5em 0; }
@media (max-width: 767px) { .sx-prose, .sx-prose p, .sx-prose li { font-size: 17px; } .sx-prose h2 { font-size: 26px; } }

.sx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.sx-chips a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--sx-line); font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--sx-navy); }
.sx-chips a:hover, .sx-chips a[aria-current='page'] { background: var(--sx-navy); border-color: var(--sx-navy); color: #fff; }

.sx-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.sx-pagination a, .sx-pagination span {
  min-width: 44px; padding: 10px 16px; border-radius: 999px; text-align: center;
  border: 1px solid var(--sx-line); font-size: 14px; font-weight: 600; color: var(--sx-navy);
}
.sx-pagination a:hover { border-color: var(--sx-navy); }
.sx-pagination span[aria-current='page'] { background: var(--sx-navy); border-color: var(--sx-navy); color: #fff; }

/* ---------- Footer ---------- */
.sx-footer-brand { font-size: 25px; line-height: 35px; color: #fff !important; margin: 20px 0 10px; font-weight: 400; }
.sx-address { font-style: normal; }
.sx-footer-contact { display: grid; gap: 6px; margin-top: 18px; }
.sx-footer-contact a { color: var(--sx-sand); font-size: 15px; }
.sx-footer-nav { display: grid !important; grid-template-columns: 1fr 1fr; align-items: start !important; justify-items: start; padding-left: 30px; padding-right: 30px; }
.sx-footer-nav > div { display: grid; gap: 10px; }
.sx-footer-nav .subheading-text { margin-bottom: 6px; color: var(--sx-sand); }
.sx-footer-nav a { color: #fff; font-size: 15px; line-height: 1.5; }
.sx-footer-nav a:hover { color: var(--sx-sand); }
@media (max-width: 767px) { .sx-footer-nav { border: 0 !important; padding-left: 0; padding-right: 0; } }

/* ---------- WhatsApp ---------- */
.sx-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 100000;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.sx-whatsapp:hover { transform: scale(1.07); color: #fff; }

.sx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
