/* ============================================================
   SINAXIS — servicios.css
   ============================================================ */

/* ── NAV ACTIVE STATE ───────────────────────────────────────── */
.nav-active {
  color: var(--blue) !important;
  font-weight: 700 !important;
}

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 160px 2rem 100px;
  position: relative;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.22;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-actions {
  margin-top: 2.5rem;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 128, 112, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 1.5rem 0 1.2rem;
  max-width: 700px;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
}

/* ── SERVICES SECTION ───────────────────────────────────────── */
.srv-section {
  background: #fff;
  padding: 6rem 2rem;
}

.srv-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 4rem 0;
}

.srv-block--reverse {
  direction: rtl;
}

.srv-block--reverse > * {
  direction: ltr;
}

.srv-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.srv-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.2rem;
}

.srv-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}

.srv-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}

.srv-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.srv-features li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.srv-divider {
  height: 1px;
  background: rgba(13, 35, 64, 0.07);
}

/* ── SERVICE OUTCOME BADGE ──────────────────────────────────── */
.srv-outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ── MOCKUP VISUALS ─────────────────────────────────────────── */
.srv-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.srv-mockup {
  width: 100%;
  background: var(--navy);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 64px rgba(13, 35, 64, 0.18);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mockup-bar span:nth-child(1) { background: #C86F5E; }
.mockup-bar span:nth-child(2) { background: #FFBD2E; }
.mockup-bar span:nth-child(3) { background: #5D8070; }

.mockup-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Nav line */
.mockup-nav {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  width: 70%;
}

/* Hero block */
.mockup-hero-block {
  height: 80px;
  background: linear-gradient(135deg, rgba(26, 74, 140, 0.5), rgba(93, 128, 112, 0.15));
  border-radius: 8px;
}

/* Cards row */
.mockup-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mockup-card {
  height: 50px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ecommerce */
.mockup-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mockup-product {
  height: 60px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-cart-bar {
  height: 28px;
  background: rgba(93, 128, 112, 0.25);
  border-radius: 6px;
  border: 1px solid rgba(93, 128, 112, 0.3);
}

/* Landing */
.mockup-landing-hero {
  height: 70px;
  background: linear-gradient(135deg, rgba(26, 74, 140, 0.6), rgba(93, 128, 112, 0.2));
  border-radius: 8px;
}

.mockup-cta-block {
  height: 22px;
  background: rgba(93, 128, 112, 0.3);
  border-radius: 5px;
  width: 55%;
  align-self: center;
}

.mockup-features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mockup-feat {
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

/* Mantenimiento */
.mockup-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mockup-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
}

.status-dot--green {
  background: #5D8070;
  box-shadow: 0 0 6px rgba(40, 202, 65, 0.5);
}

.status-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.status-lines div {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.status-lines div:last-child {
  width: 60%;
}

.mockup-uptime-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  overflow: hidden;
}

.mockup-uptime-fill {
  height: 100%;
  width: 98%;
  background: linear-gradient(90deg, rgba(93, 128, 112, 0.6), rgba(93, 128, 112, 0.9));
  border-radius: 5px;
}

/* SEO */
.mockup-search-bar {
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.mockup-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-result {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-result--top {
  padding: 8px;
  background: rgba(93, 128, 112, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(93, 128, 112, 0.2);
}

.result-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.result-dot--accent {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(93, 128, 112, 0.5);
}

.result-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.result-lines div {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.result-lines div:last-child { width: 70%; }

/* ── BEFORE / AFTER (Rediseño) ──────────────────────────────── */
.srv-before-after {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.before-block, .after-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ba-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ba-label--after {
  color: var(--accent);
}

.ba-mockup {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(13, 35, 64, 0.1);
}

.ba-mockup--old {
  background: #e8eaed;
}

.ba-mockup--new {
  background: var(--navy);
  border-color: rgba(93, 128, 112, 0.25);
}

.ba-nav-old {
  height: 22px;
  background: #cdd0d5;
}

.ba-body-old {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ba-line {
  height: 7px;
  background: #c5c8cd;
  border-radius: 3px;
}

.ba-line--short { width: 60%; }

.ba-nav-new {
  height: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.ba-hero-new {
  height: 45px;
  background: linear-gradient(135deg, rgba(26, 74, 140, 0.6), rgba(93, 128, 112, 0.2));
  margin: 10px;
  border-radius: 5px;
}

.ba-cards-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 10px 10px;
}

.ba-card {
  height: 30px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}

.ba-arrow {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── CTA FINAL ──────────────────────────────────────────────── */
.srv-cta {
  background: var(--navy);
  padding: 6rem 2rem;
}

.srv-cta-inner {
  text-align: center;
}

.srv-cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.srv-cta h2 em {
  font-style: normal;
  color: var(--accent);
}

.srv-cta p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .srv-block {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 0;
  }

  .srv-block--reverse {
    direction: ltr;
  }

  .srv-visual {
    align-items: center;
  }

  .srv-mockup {
    max-width: 480px;
  }

  .srv-before-after {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 1.25rem 70px;
  }

  .srv-section {
    padding: 4rem 1.25rem;
  }

  .srv-cta {
    padding: 4rem 1.25rem;
  }
}
