/* ═══════════════════════════════════════════════════════════════════════════
   CPG Soluciones Integrales — Main Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-deep:    #0B1F3A;
  --navy-mid:     #122952;
  --navy-light:   #1A3A6B;
  --gold:         #C9A84C;
  --gold-light:   #E0C06E;
  --gold-dark:    #A8872E;
  --white:        #FFFFFF;
  --off-white:    #F7F8FC;
  --gray-light:   #EAECF2;
  --gray-mid:     #8E96AB;
  --gray-dark:    #4A5268;
  --text-dark:    #1C1E2D;
  --text-body:    #3D4460;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;

  --shadow-sm:    0 2px 8px rgba(11,31,58,.08);
  --shadow-md:    0 8px 32px rgba(11,31,58,.12);
  --shadow-lg:    0 20px 60px rgba(11,31,58,.18);

  --transition:   .3s ease;
  --transition-slow: .6s ease;

  --container:    1200px;
  --section-py:   100px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
address { font-style: normal; }

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section-dark   { background: var(--navy-deep); }
.section-light-alt { background: var(--off-white); }

/* ── Typography Scale ─────────────────────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.18;
  margin-bottom: 20px;
}
.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-dark);
  max-width: 640px;
  line-height: 1.7;
}
.section-subtitle.light { color: var(--gray-light); }

.section-header.center {
  text-align: center;
  margin-bottom: 64px;
}
.section-header.center .section-subtitle { margin: 0 auto; }
.section-header { margin-bottom: 56px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}
.btn-ghost-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-ghost-gold:hover {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-lg { padding: 17px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--navy-deep);
  padding: 12px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -.02em;
}
.logo-text {
  font-size: .78rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 130px;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.main-nav a.nav-cta {
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 9px 20px;
}
.main-nav a.nav-cta:hover { background: var(--gold-light); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 999;
    padding: 80px 24px 40px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 14px;
  }
  .hamburger { z-index: 1001; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: grayscale(20%) brightness(.45);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 70% at 75% 40%, rgba(26,58,107,.55) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 5% 80%, rgba(201,168,76,.10) 0%, transparent 55%),
    linear-gradient(135deg, rgba(5,14,31,.72) 0%, rgba(11,31,58,.60) 50%, rgba(18,41,82,.55) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 3; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 100px;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Stats column */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.stat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  text-align: center;
  backdrop-filter: blur(8px);
  min-width: 160px;
}
.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 100px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-stats {
    flex-direction: row;
    justify-content: center;
  }
  .stat-card { padding: 18px 20px; min-width: 120px; }
  .stat-number { font-size: 2rem; }
}
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

/* Visual block */
.about-visual-inner {
  position: relative;
  height: 480px;
}

.about-img-block {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-1 {
  width: 72%;
  height: 340px;
  top: 0; left: 0;
  background: var(--navy-mid);
  box-shadow: var(--shadow-lg);
}
.about-img-1 img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-img-2 {
  width: 55%;
  height: 220px;
  bottom: 0; right: 0;
  background: var(--gold-dark);
  box-shadow: var(--shadow-lg);
}
.about-img-2 img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-badge {
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--navy-deep);
  border: 3px solid var(--gold);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.about-badge span {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  line-height: 1.2;
}

/* Content */
.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-body {
  color: var(--gray-dark);
  margin-bottom: 14px;
  line-height: 1.75;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dark);
}
.value-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  margin-top: 1px;
}

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual { display: none; }
}
@media (max-width: 600px) {
  .about-values { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tabs */
.service-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.3;
  transition: all var(--transition);
  flex: 1;
  min-width: 160px;
}
.tab-btn:hover {
  border-color: rgba(201,168,76,.4);
  color: var(--white);
}
.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}
.tab-icon {
  flex-shrink: 0;
  opacity: .8;
}
.tab-btn.active .tab-icon { opacity: 1; }

/* Panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-intro {
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.panel-intro p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.7;
}

/* Service Cards */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.legal-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .service-cards-grid,
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .service-cards-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(201,168,76,.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}
.service-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(201,168,76,.25);
  line-height: 1;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,.2);
}
.service-card ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Panel feature image (top of each tab panel) ──────────────────────── */
.panel-feature-img {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}
.panel-feature-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(.5) saturate(.8);
  transition: transform .8s ease;
}
.panel-feature-img:hover img { transform: scale(1.04); }

.panel-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,31,58,.85) 0%, rgba(11,31,58,.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
}
.panel-feature-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.panel-feature-overlay p {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  max-width: 480px;
}

/* Service card description */
.service-card-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-bottom: 12px;
}

/* Capital Humano grid — 2 cols (cards have a lot of content) */
.rh-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) { .rh-grid { grid-template-columns: 1fr; } }

/* ── Legal Accordion ──────────────────────────────────────────────────────── */
.legal-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-acc-item {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.legal-acc-item.open {
  border-color: rgba(201,168,76,.45);
}

.legal-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(255,255,255,.03);
  color: var(--white);
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.legal-acc-btn:hover {
  background: rgba(255,255,255,.07);
}
.legal-acc-item.open .legal-acc-btn {
  background: rgba(201,168,76,.08);
  color: var(--gold);
}

.legal-acc-num {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(201,168,76,.4);
  flex-shrink: 0;
  width: 28px;
  transition: color var(--transition);
}
.legal-acc-item.open .legal-acc-num { color: var(--gold); }

.legal-acc-title {
  font-size: .95rem;
  font-weight: 600;
  flex: 1;
}

.legal-acc-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  position: relative;
  transition: all var(--transition);
}
.legal-acc-arrow::before,
.legal-acc-arrow::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.legal-acc-arrow::before {
  width: 9px; height: 1.5px;
  transform: translate(-50%, -50%);
}
.legal-acc-arrow::after {
  width: 1.5px; height: 9px;
  transform: translate(-50%, -50%);
}
.legal-acc-item.open .legal-acc-arrow {
  border-color: var(--gold);
  color: var(--gold);
}
.legal-acc-item.open .legal-acc-arrow::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.legal-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.legal-acc-item.open .legal-acc-body { max-height: 600px; }

.legal-acc-body ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  padding: 16px 24px 20px 68px;
}
.legal-acc-body ul li {
  position: relative;
  padding-left: 14px;
  font-size: .84rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.legal-acc-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .legal-acc-body ul { grid-template-columns: 1fr; padding-left: 44px; }
}

@media (max-width: 768px) {
  .service-tabs { flex-direction: column; }
  .tab-btn { justify-content: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DIFFERENTIATORS
   ═══════════════════════════════════════════════════════════════════════════ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .diff-grid { grid-template-columns: 1fr; } }

.diff-card {
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  background: var(--white);
  transition: all var(--transition);
}
.diff-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 48px rgba(201,168,76,.12);
  transform: translateY(-4px);
}
.diff-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #F7F0E0, #FDF4DE);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-dark);
  transition: background var(--transition);
}
.diff-card:hover .diff-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
}
.diff-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.diff-card p {
  font-size: .88rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
  opacity: .3;
}

.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--navy-deep);
  border: 2.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.process-step:hover .step-number {
  background: var(--gold);
  color: var(--navy-deep);
}

.step-content h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.step-content p {
  font-size: .85rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .process-steps::before { display: none; }
}
@media (max-width: 540px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTORS
   ═══════════════════════════════════════════════════════════════════════════ */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }

.sector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  background: var(--white);
  transition: all var(--transition);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
}
.sector-item:hover {
  border-color: var(--gold);
  background: #FDFAF2;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.sector-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-mid);
  transition: all var(--transition);
}
.sector-item:hover .sector-icon {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */
.faq { position: relative; overflow: hidden; }

.faq-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.faq-section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  filter: grayscale(30%) brightness(.28);
}
.faq-section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(11,31,58,.85) 0%, transparent 70%),
    linear-gradient(135deg, rgba(5,14,31,.80) 0%, rgba(11,31,58,.65) 100%);
}
.faq-container {
  position: relative;
  z-index: 1;
}
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(201,168,76,.4); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  transition: color var(--transition), background var(--transition);
  background: transparent;
}
.faq-question:hover { color: var(--gold); }
.faq-item.open .faq-question { color: var(--gold); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 10px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item.open .faq-icon { border-color: var(--gold); color: var(--gold); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 300px; }

@media (max-width: 900px) {
  .faq-container { grid-template-columns: 1fr; gap: 48px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════════════════════ */
.cta-banner {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cta-banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .12;
  filter: grayscale(40%);
}
.cta-banner-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 50% 100% at 100% 50%, rgba(201,168,76,.18) 0%, transparent 70%),
    linear-gradient(135deg, rgba(11,31,58,.96) 0%, rgba(18,41,82,.90) 100%);
}
.cta-banner-inner { position: relative; z-index: 2; }

.cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  max-width: 540px;
}
.cta-content p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: #060F1E;
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.8fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact-form { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-contact-form { grid-column: 1; }
}

.logo-light .logo-text { color: rgba(255,255,255,.75); }

.footer-tagline {
  color: var(--gray-mid);
  font-size: .88rem;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 300px;
}

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--gray-mid);
}
.contact-row svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.contact-row a:hover { color: var(--gold); }

.footer-links h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
  font-size: .88rem;
  color: var(--gray-mid);
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--gold); }

/* Contact Form */
.footer-contact-form h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.form-group { display: flex; flex-direction: column; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 11px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font: inherit;
  font-size: .88rem;
  transition: border-color var(--transition), background var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-form select { color: rgba(255,255,255,.7); }
.contact-form select option { background: var(--navy-deep); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.09);
}
.contact-form textarea { resize: vertical; min-height: 80px; }

.form-note {
  font-size: .82rem;
  color: var(--gold-light);
  margin-top: 4px;
  min-height: 20px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: .82rem;
  color: var(--gray-mid);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201,168,76,.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,.5);
}

/* ═══════════════════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal]:nth-child(2) { transition-delay: .1s; }
[data-reveal]:nth-child(3) { transition-delay: .2s; }
[data-reveal]:nth-child(4) { transition-delay: .3s; }
[data-reveal]:nth-child(5) { transition-delay: .4s; }
[data-reveal]:nth-child(6) { transition-delay: .1s; }

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}
@media (max-width: 480px) {
  :root { --section-py: 48px; }
  .btn-lg { padding: 14px 24px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLIENTS
   ═══════════════════════════════════════════════════════════════════════════ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

.client-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  background: var(--white);
  text-align: center;
  transition: all var(--transition);
}
.client-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.client-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  transition: all var(--transition);
  filter: grayscale(100%);
}
.client-card:hover .client-icon {
  background: var(--off-white);
  color: var(--gray-dark);
  filter: grayscale(0%);
}
.client-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-dark);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 90px;
  right: 32px;
  z-index: 900;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: all var(--transition);
}
.wa-float:hover {
  background: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
.wa-float::before {
  content: 'WhatsApp';
  position: absolute;
  right: 60px;
  background: #25D366;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}
.wa-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ── Service card highlight variant ─────────────────────────────────────── */
.service-card--highlight {
  border-color: rgba(201,168,76,.35);
  background: rgba(201,168,76,.04);
}
.service-card--highlight h3 { color: var(--gold-light); }
