/* ============================================================
   SevenStar Theme v2 — main.css
   Manual de Marca: #FF6B00 · #0A0A0A · #F5F5F0 · #1A1A1A · #2A2A2A
   Responsivo: 640 · 768 · 1024 · 1440 (lineamientos web del manual)
   ============================================================ */

:root {
  --ss-orange:   #FF6B00;
  --ss-orange-h: #CC5200;
  --ss-black:    #0A0A0A;
  --ss-graphite: #1A1A1A;
  --ss-charcoal: #2A2A2A;
  --ss-cream:    #F5F5F0;
  --ss-border:   #E0E0DA;
  --ss-muted:    #666;
  --ss-radius:   4px;
  --ss-max:      1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--ss-cream);
  color: var(--ss-black);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.ss-container { max-width: var(--ss-max); margin: 0 auto; padding: 0 24px; }
.ss-section   { padding: 56px 0; }
.ss-section--alt  { background: #fff; }
.ss-section--dark { background: var(--ss-black); }

.ss-section-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ss-orange); margin-bottom: 8px; }
.ss-section-title { font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; margin-bottom: 6px; }
.ss-section-title span { color: var(--ss-orange); }
.ss-section-sub { font-size: 13px; color: var(--ss-muted); margin-bottom: 32px; }
.ss-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.ss-ver-todo { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ss-orange); border-bottom: 1px solid var(--ss-orange); padding-bottom: 1px; white-space: nowrap; }

.ss-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: var(--ss-radius); padding: 11px 22px; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.ss-btn--primary { background: var(--ss-orange); color: var(--ss-black); border-color: var(--ss-orange); }
.ss-btn--primary:hover { background: var(--ss-orange-h); border-color: var(--ss-orange-h); }
.ss-btn--outline { background: transparent; color: var(--ss-cream); border-color: var(--ss-cream); }
.ss-btn--outline:hover { background: var(--ss-cream); color: var(--ss-black); }
.ss-btn--outline-dark { background: transparent; color: var(--ss-black); border-color: var(--ss-black); }
.ss-btn--outline-dark:hover { background: var(--ss-black); color: var(--ss-cream); }

/* TOPBAR */
.ss-topbar { background: var(--ss-black); padding: 7px 0; border-bottom: 1px solid var(--ss-graphite); }
.ss-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ss-topbar__text { font-size: 11px; color: #888; letter-spacing: .02em; }
.ss-topbar__text span { color: var(--ss-orange); font-weight: 600; }
.ss-topbar__social { display: flex; gap: 14px; flex-shrink: 0; }
.ss-topbar__social a { color: #555; transition: color .15s; display: flex; align-items: center; }
.ss-topbar__social a:hover { color: var(--ss-orange); }

/* NAV */
.ss-nav { background: #fff; border-bottom: 1px solid var(--ss-border); position: sticky; top: 0; z-index: 200; transition: box-shadow .2s; }
.ss-nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.ss-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.ss-nav__logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.ss-nav__logo img { height: 36px; width: auto; }
.ss-nav__logo-name { font-size: 16px; font-weight: 900; letter-spacing: .03em; color: var(--ss-black); }
.ss-nav__logo-name span { color: var(--ss-orange); }
.ss-nav__links { display: flex; gap: 4px; }
.ss-nav__links a { font-size: 12px; font-weight: 600; color: #444; padding: 6px 12px; border-radius: var(--ss-radius); letter-spacing: .06em; text-transform: uppercase; transition: color .15s; white-space: nowrap; }
.ss-nav__links a:hover, .ss-nav__links a.current-menu-item { color: var(--ss-orange); }
.ss-nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ss-nav__search { width: 32px; height: 32px; border: 1px solid var(--ss-border); border-radius: var(--ss-radius); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #666; transition: border-color .15s, color .15s; }
.ss-nav__search:hover { border-color: var(--ss-orange); color: var(--ss-orange); }
.ss-nav__burger { display: none; flex-direction: column; gap: 5px; width: 32px; height: 32px; cursor: pointer; align-items: center; justify-content: center; border: 1px solid var(--ss-border); border-radius: var(--ss-radius); flex-shrink: 0; background: none; }
.ss-nav__burger span { display: block; width: 16px; height: 2px; background: var(--ss-black); border-radius: 2px; transition: transform .2s, opacity .2s; }
.ss-nav--open .ss-nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ss-nav--open .ss-nav__burger span:nth-child(2) { opacity: 0; }
.ss-nav--open .ss-nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ss-nav__mobile { display: none; flex-direction: column; background: #fff; border-top: 1px solid var(--ss-border); padding: 8px 0 16px; }
.ss-nav__mobile.is-open { display: flex; }
.ss-nav__mobile a { display: block; padding: 11px 24px; font-size: 13px; font-weight: 600; color: #333; letter-spacing: .06em; text-transform: uppercase; transition: color .15s; }
.ss-nav__mobile a:hover { color: var(--ss-orange); background: var(--ss-cream); }
.ss-nav__mobile .ss-btn { margin: 12px 24px 0; width: calc(100% - 48px); justify-content: center; }

/* HERO */
.ss-hero { background: var(--ss-black); position: relative; overflow: hidden; }
.ss-hero__bg-star { position: absolute; right: -80px; bottom: -80px; width: 500px; height: 500px; opacity: .05; pointer-events: none; }
.ss-hero__inner { display: flex; align-items: center; gap: 48px; padding: 64px 0 0; }
.ss-hero__left { flex: 1; z-index: 2; padding-bottom: 64px; min-width: 0; }
.ss-hero__right { flex: 0 0 310px; z-index: 2; align-self: flex-end; }
.ss-hero__badge { display: inline-block; background: var(--ss-orange); color: var(--ss-black); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 2px; margin-bottom: 20px; }
.ss-hero h1 { font-size: 48px; font-weight: 900; color: var(--ss-cream); text-transform: uppercase; line-height: 1.0; margin-bottom: 18px; }
.ss-hero h1 span { color: var(--ss-orange); }
.ss-hero__desc { font-size: 13px; color: #777; line-height: 1.8; margin-bottom: 30px; max-width: 420px; }
.ss-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ss-hero__card { background: var(--ss-graphite); border: 1px solid var(--ss-charcoal); border-top: 3px solid var(--ss-orange); border-radius: 6px; padding: 20px; }
.ss-hero__card-label { font-size: 9px; font-weight: 700; color: var(--ss-orange); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.ss-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ss-hero__stat { background: var(--ss-black); border-radius: 4px; padding: 12px 6px; text-align: center; }
.ss-hero__stat-n { font-size: 22px; font-weight: 900; color: var(--ss-orange); }
.ss-hero__stat-l { font-size: 8px; font-weight: 600; color: #444; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.ss-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-hero__tag { font-size: 10px; font-weight: 500; color: #888; background: var(--ss-black); border: 1px solid var(--ss-charcoal); border-radius: 3px; padding: 4px 9px; }
.ss-hero__img-wrap { width: 100%; background: var(--ss-charcoal); border-radius: 8px 8px 0 0; overflow: hidden; min-height: 200px; display: flex; align-items: flex-end; justify-content: center; }
.ss-hero__img-wrap img { object-fit: cover; width: 100%; height: 240px; }
.ss-hero__img-placeholder { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #333; letter-spacing: .06em; text-transform: uppercase; }

/* TRUST BAR */
.ss-trust { background: var(--ss-orange); padding: 13px 0; }
.ss-trust__inner { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 10px 20px; }
.ss-trust__item { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; color: var(--ss-black); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }

/* LOGO CAROUSEL */
.ss-logos { background: #fff; border-top: 1px solid var(--ss-border); border-bottom: 1px solid var(--ss-border); padding: 22px 0; overflow: hidden; }
.ss-logos__title { font-size: 10px; font-weight: 700; color: #bbb; letter-spacing: .1em; text-transform: uppercase; text-align: center; margin-bottom: 16px; }
.ss-logos__track-wrap { overflow: hidden; }
.ss-logos__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ss-scroll 30s linear infinite; }
.ss-logos__track:hover { animation-play-state: paused; }
@keyframes ss-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ss-logos__item { flex-shrink: 0; height: 56px; padding: 6px 18px; background: var(--ss-cream); border: 1px solid var(--ss-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.ss-logos__item:hover { border-color: var(--ss-orange); }
.ss-logos__item img { height: 38px; width: auto; object-fit: contain; max-width: 130px; }
.ss-logos__item span { font-size: 12px; font-weight: 700; color: #444; white-space: nowrap; }

/* WHY + SERVICES */
.ss-why { display: flex; border-top: 1px solid var(--ss-border); border-bottom: 1px solid var(--ss-border); }
.ss-why__left { flex: 0 0 260px; padding: 44px 32px; border-right: 1px solid var(--ss-border); }
.ss-why__left h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; line-height: 1.15; margin-bottom: 20px; }
.ss-why__left h2 span { color: var(--ss-orange); }
.ss-why__list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.ss-why__item { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; color: #333; }
.ss-why__item::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; background: var(--ss-orange); border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='%230A0A0A' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: contain; }
.ss-why__cta { width: 100%; justify-content: center; }
.ss-services { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); min-width: 0; }
.ss-service-card { padding: 28px 22px; border-right: 1px solid var(--ss-border); border-bottom: 1px solid var(--ss-border); transition: background .15s; }
.ss-service-card:hover { background: var(--ss-cream); }
.ss-service-card:nth-child(3n) { border-right: none; }
.ss-service-card:nth-last-child(-n+3) { border-bottom: none; }
.ss-service-card__icon { width: 44px; height: 44px; background: var(--ss-orange); border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ss-service-card__icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.ss-service-card h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.ss-service-card p { font-size: 12px; color: var(--ss-muted); line-height: 1.65; margin-bottom: 16px; }
.ss-service-card__arrow { width: 30px; height: 30px; background: var(--ss-black); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; border: none; }
.ss-service-card__arrow:hover { background: var(--ss-orange); }
.ss-service-card__arrow svg { width: 14px; height: 14px; stroke: var(--ss-orange); fill: none; stroke-width: 2.5; }
.ss-service-card__arrow:hover svg { stroke: #fff; }
.ss-tagline { background: #fff; padding: 16px 0; border-top: 1px solid var(--ss-border); border-bottom: 1px solid var(--ss-border); text-align: center; }
.ss-tagline p { font-size: 13px; color: #555; }
.ss-tagline a { color: var(--ss-orange); font-weight: 600; }

/* ALIADOS */
.ss-aliados { background: var(--ss-cream); }
.ss-aliados__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 16px; }
.ss-aliado { background: #fff; border: 1px solid var(--ss-border); border-radius: 8px; padding: 20px 14px; display: flex; align-items: center; justify-content: center; min-height: 80px; transition: border-color .15s; }
.ss-aliado:hover { border-color: var(--ss-orange); }
.ss-aliado img { max-height: 52px; max-width: 120px; width: auto; object-fit: contain; }
.ss-aliado span { font-size: 11px; font-weight: 700; color: #444; text-align: center; }
.ss-aliados__note { text-align: center; font-size: 12px; color: #666; margin-top: 8px; }
.ss-aliados__note strong { color: var(--ss-black); }

/* CONTACTO */
.ss-contact { background: #fff; }
.ss-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.ss-contact__info { display: flex; flex-direction: column; gap: 12px; }
.ss-contact__item { display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px; background: var(--ss-cream); border-left: 3px solid var(--ss-orange); border-radius: 0 4px 4px 0; }
.ss-contact__item svg { flex-shrink: 0; color: var(--ss-orange); margin-top: 1px; }
.ss-contact__item-label { font-size: 9px; font-weight: 700; color: #999; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 3px; }
.ss-contact__item-val { font-size: 13px; font-weight: 600; color: var(--ss-black); }
.ss-contact__item-val a { color: var(--ss-orange); }
.ss-form { display: flex; flex-direction: column; gap: 10px; }
.ss-form input, .ss-form textarea { background: var(--ss-cream); border: 1px solid var(--ss-border); border-radius: var(--ss-radius); padding: 11px 14px; font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--ss-black); width: 100%; outline: none; transition: border-color .15s; }
.ss-form input:focus, .ss-form textarea:focus { border-color: var(--ss-orange); }
.ss-form input::placeholder, .ss-form textarea::placeholder { color: #bbb; }
.ss-form textarea { resize: vertical; min-height: 100px; }
.ss-form__submit { width: 100%; justify-content: center; padding: 13px; }

/* FOOTER */
.ss-footer { background: var(--ss-black); border-top: 2px solid var(--ss-orange); }
.ss-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding: 44px 0 36px; border-bottom: 1px solid var(--ss-graphite); }
.ss-footer__col h4 { font-size: 11px; font-weight: 700; color: var(--ss-cream); letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.ss-footer__col p { font-size: 12px; color: #555; line-height: 1.7; margin-bottom: 14px; }
.ss-footer__logo-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.ss-footer__logo-name { font-size: 15px; font-weight: 900; color: var(--ss-cream); }
.ss-footer__logo-name span { color: var(--ss-orange); }
.ss-footer__social { display: flex; gap: 10px; margin-top: 6px; }
.ss-footer__social a { width: 32px; height: 32px; border-radius: 4px; background: var(--ss-graphite); border: 1px solid var(--ss-charcoal); display: flex; align-items: center; justify-content: center; color: #555; transition: color .15s, border-color .15s; }
.ss-footer__social a:hover { color: var(--ss-orange); border-color: var(--ss-orange); }
.ss-footer__links { display: flex; flex-direction: column; gap: 8px; }
.ss-footer__links a { font-size: 12px; color: #555; display: flex; align-items: center; gap: 8px; transition: color .15s; }
.ss-footer__links a:hover { color: var(--ss-orange); }
.ss-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.ss-footer__contact-item { display: flex; align-items: flex-start; gap: 9px; }
.ss-footer__contact-item svg { color: var(--ss-orange); margin-top: 1px; flex-shrink: 0; }
.ss-footer__contact-item span { font-size: 11px; color: #555; line-height: 1.55; }
.ss-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; flex-wrap: wrap; gap: 8px; }
.ss-footer__copy { font-size: 11px; color: #333; }
.ss-footer__copy a { color: var(--ss-orange); }
.ss-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.ss-footer__legal a { font-size: 11px; color: #333; transition: color .15s; }
.ss-footer__legal a:hover { color: var(--ss-orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ss-hero h1 { font-size: 38px; }
  .ss-hero__right { flex: 0 0 260px; }
  .ss-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .ss-footer__top > *:nth-child(1) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .ss-nav__links, .ss-nav__search { display: none; }
  .ss-nav__burger { display: flex; }
  .ss-topbar__text { font-size: 10px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ss-hero__inner { flex-direction: column; gap: 28px; padding: 40px 0 0; }
  .ss-hero__left { padding-bottom: 0; }
  .ss-hero__right { flex: none; width: 100%; align-self: auto; }
  .ss-hero h1 { font-size: 32px; }
  .ss-hero__desc { max-width: 100%; }
  .ss-why { flex-direction: column; }
  .ss-why__left { flex: none; border-right: none; border-bottom: 1px solid var(--ss-border); padding: 32px 24px; }
  .ss-services { grid-template-columns: 1fr 1fr; }
  .ss-service-card:nth-child(3n) { border-right: 1px solid var(--ss-border); }
  .ss-service-card:nth-child(2n) { border-right: none; }
  .ss-aliados__grid { grid-template-columns: repeat(3, 1fr); }
  .ss-contact__grid { grid-template-columns: 1fr; }
  .ss-footer__top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0 24px; }
  .ss-footer__top > *:nth-child(1) { grid-column: 1 / -1; }
  .ss-footer__top > *:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ss-container { padding: 0 16px; }
  .ss-section { padding: 40px 0; }
  .ss-section-title { font-size: 20px; }
  .ss-topbar__text { display: none; }
  .ss-hero h1 { font-size: 28px; }
  .ss-hero__btns { flex-direction: column; }
  .ss-hero__btns .ss-btn { width: 100%; justify-content: center; }
  .ss-trust__item { font-size: 9px; gap: 5px; }
  .ss-services { grid-template-columns: 1fr; }
  .ss-service-card { border-right: none !important; }
  .ss-service-card:not(:last-child) { border-bottom: 1px solid var(--ss-border) !important; }
  .ss-service-card:last-child { border-bottom: none !important; }
  .ss-aliados__grid { grid-template-columns: repeat(2, 1fr); }
  .ss-footer__top { grid-template-columns: 1fr; }
  .ss-footer__top > * { grid-column: auto !important; }
  .ss-footer__bottom { flex-direction: column; align-items: flex-start; }
  .ss-section-head { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1441px) {
  :root { --ss-max: 1320px; }
  .ss-hero h1 { font-size: 54px; }
}

/* ============================================================
   v3 FIXES
   ============================================================ */

/* ss-why ahora usa ss-container internamente */
.ss-why { display: block; border-top: 1px solid var(--ss-border); border-bottom: 1px solid var(--ss-border); }
.ss-why__wrap { display: flex; }
.ss-why__left { flex: 0 0 260px; padding: 44px 32px 44px 0; border-right: 1px solid var(--ss-border); }
.ss-services  { flex: 1; display: grid; grid-template-columns: repeat(3,1fr); min-width: 0; }

/* ── Preloader ── */
#ss-preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ss-black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
#ss-preloader.hide {
  animation: preloader-fade 0.5s ease forwards;
  pointer-events: none;
}
@keyframes preloader-fade {
  to { opacity: 0; visibility: hidden; }
}

/* Logo animado */
.ss-preloader__logo {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ss-preloader__star {
  width: 64px; height: 64px;
  animation: preloader-pulse 1.2s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.1); opacity: .8; }
}
.ss-preloader__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px; font-weight: 900; letter-spacing: .06em;
  color: var(--ss-cream);
}
.ss-preloader__name span { color: var(--ss-orange); }

/* Barra de progreso */
.ss-preloader__bar {
  width: 160px; height: 2px;
  background: var(--ss-charcoal); border-radius: 2px; overflow: hidden;
}
.ss-preloader__bar-fill {
  height: 100%; width: 0%; background: var(--ss-orange); border-radius: 2px;
  animation: preloader-bar 1.4s ease forwards;
}
@keyframes preloader-bar {
  0%   { width: 0%; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

/* Tagline debajo */
.ss-preloader__tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #444;
}

/* Responsive fixes v3 */
@media (max-width: 768px) {
  .ss-why__wrap { flex-direction: column; }
  .ss-why__left { flex: none; border-right: none; border-bottom: 1px solid var(--ss-border); padding: 32px 0; }
  .ss-services  { grid-template-columns: 1fr 1fr; }
  .ss-service-card:nth-child(3n)   { border-right: 1px solid var(--ss-border); }
  .ss-service-card:nth-child(2n)   { border-right: none; }
  .ss-service-card:nth-last-child(-n+2) { border-bottom: none; }
  .ss-service-card:nth-last-child(3)    { border-bottom: 1px solid var(--ss-border); }
}
@media (max-width: 640px) {
  .ss-services { grid-template-columns: 1fr; }
  .ss-service-card { border-right: none !important; }
  .ss-service-card:not(:last-child) { border-bottom: 1px solid var(--ss-border) !important; }
  .ss-service-card:last-child { border-bottom: none !important; }
}

/* ============================================================
   v3.1 responsive/container/layout fixes
   Autor del tema: Richard Zambrano
   ============================================================ */
html { min-height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.admin-bar .ss-nav { top: 32px; }
#main,
.ss-page,
.ss-page-content { flex: 1 0 auto; }
.ss-footer { margin-top: auto; width: 100%; }

/* Evita que bloques anchos de WordPress se salgan del ancho visual del tema. */
.entry-content,
.ss-page__content { max-width: 100%; }
.ss-page {
  width: 100%;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.ss-page__article {
  max-width: 920px;
  margin: 0 auto;
}
.ss-page__title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--ss-black);
  text-align: center;
}
.ss-page__content > * + * { margin-top: 1rem; }
.ss-page__content :where(.alignfull, .alignwide) {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Topbar y navegación nunca deben estirar el contenido más allá del container. */
.ss-topbar__inner,
.ss-nav__inner,
.ss-nav__mobile { width: 100%; }
.ss-nav__links { min-width: 0; justify-content: center; flex-wrap: wrap; }

/* Hero más parecido a la referencia: información centrada dentro del container. */
.ss-hero__inner {
  min-height: 360px;
  max-width: 100%;
}
.ss-hero__left { max-width: 540px; }
.ss-hero__right { max-width: 360px; }

/* Barra de confianza full width, contenido limitado. */
.ss-trust__inner {
  max-width: 980px;
  margin: 0 auto;
}

/* Carrusel dentro de un container visual, no pegado a todo el viewport. */
.ss-logos { padding: 24px 0 28px; }
.ss-logos__track-wrap {
  max-width: var(--ss-max);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}
.ss-logos__track {
  min-width: 100%;
  gap: 18px;
}
.ss-logos__item {
  min-width: 118px;
  height: 58px;
}

/* Sección servicios estrictamente dentro del container. */
.ss-why {
  width: 100%;
  overflow: hidden;
}
.ss-why__wrap {
  max-width: var(--ss-max);
  margin-left: auto;
  margin-right: auto;
  align-items: stretch;
}
.ss-why__left { min-width: 0; }
.ss-services { min-width: 0; }

/* Instituciones más centradas, como la referencia. */
#aliados .ss-container { max-width: 960px; }
.ss-aliados__grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  justify-content: center;
}

/* Footer contenido centrado y consistente en páginas cortas. */
.ss-footer .ss-container { max-width: var(--ss-max); }
.ss-footer__top { align-items: start; }
.ss-footer__bottom { width: 100%; }

@media (max-width: 1024px) {
  body.admin-bar .ss-nav { top: 32px; }
  .ss-container,
  .ss-logos__track-wrap { padding-left: 22px; padding-right: 22px; }
  .ss-hero__inner { gap: 32px; }
  .ss-nav__actions > .ss-btn { display: none; }
}

@media (max-width: 782px) {
  body.admin-bar .ss-nav { top: 46px; }
}

@media (max-width: 768px) {
  .ss-topbar__inner { justify-content: center; }
  .ss-topbar__social { display: none; }
  .ss-topbar__text {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-align: center;
    line-height: 1.4;
  }
  .ss-hero__inner {
    min-height: auto;
    text-align: left;
  }
  .ss-hero__left { max-width: none; width: 100%; }
  .ss-hero__right { max-width: 420px; margin: 0 auto; }
  .ss-why__wrap { padding-top: 0; padding-bottom: 0; }
  .ss-services { width: 100%; }
  .ss-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ss-container,
  .ss-logos__track-wrap { padding-left: 16px; padding-right: 16px; }
  .ss-nav__inner { height: 56px; }
  .ss-nav__logo-name { font-size: 14px; }
  .ss-nav__mobile { margin-left: -16px; margin-right: -16px; }
  .ss-hero__inner { padding-top: 36px; }
  .ss-hero h1 { font-size: clamp(30px, 11vw, 42px); }
  .ss-hero__badge { font-size: 9px; }
  .ss-hero__card { padding: 16px; }
  .ss-hero__stats { grid-template-columns: 1fr; }
  .ss-trust__inner { justify-content: center; }
  .ss-trust__item { width: calc(50% - 10px); justify-content: center; text-align: center; }
  .ss-logos__item { min-width: 116px; }
  .ss-why__left { padding: 32px 0; }
  .ss-service-card { padding: 24px 0; }
  .ss-service-card__icon { margin-bottom: 12px; }
  .ss-aliados__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ss-footer__top { grid-template-columns: 1fr; }
  .ss-footer__bottom { align-items: center; text-align: center; }
  .ss-footer__legal { justify-content: center; }
  .ss-page { padding-top: 40px; padding-bottom: 56px; }
  .ss-page__title { text-align: left; }
}

@media (max-width: 420px) {
  .ss-trust__item { width: 100%; }
  .ss-aliados__grid { grid-template-columns: 1fr; }
}
