/* ============================================================
   FERRIGO ESTUDIO CONTABLE — Stylesheet
   Forest Green + Warm Gold · Cormorant + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* --- Variables & Themes ----------------------------------- */

/* Non-color tokens (shared across all themes) */
:root {
  --r:    12px;
  --r-lg: 20px;
  /* Transition applied when switching themes */
  --theme-transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* ---- TEMA 1: Verde Forestal (default) ---- */
:root,
html[data-theme="verde"] {
  --deep:       #192F24;
  --primary:    #1E3B2D;
  --gold:       #BF9742;
  --gold-light: #D4AF60;
  --gold-pale:  #F0E0B0;
  --cream:      #F7F3EC;
  --cream-dark: #EDE8DF;
  --white:      #FFFFFF;
  --text:       #1A2015;
  --muted:      #6B7A6A;
  --border:     rgba(25,47,36,0.12);
  --shadow:     0 4px 24px rgba(25,47,36,0.08);
  --shadow-lg:  0 16px 64px rgba(25,47,36,0.12);
}

/* ---- TEMA 2: Azul Corporativo ---- */
/* Navy profundo + gold cálido. Clásico de finanzas premium. */
html[data-theme="azul"] {
  --deep:       #0B1F3A;
  --primary:    #112750;
  --gold:       #B8912E;
  --gold-light: #CFA848;
  --gold-pale:  #EBD598;
  --cream:      #EEF2F8;
  --cream-dark: #E0E8F2;
  --white:      #FFFFFF;
  --text:       #0B1830;
  --muted:      #4D6285;
  --border:     rgba(11,31,58,0.12);
  --shadow:     0 4px 24px rgba(11,31,58,0.09);
  --shadow-lg:  0 16px 64px rgba(11,31,58,0.14);
}

/* ---- TEMA 3: Tierra Arequipeña ---- */
/* Terracota + ámbar, inspirado en el sillar volcánico de Arequipa. */
html[data-theme="tierra"] {
  --deep:       #3C1A0C;
  --primary:    #541F0E;
  --gold:       #BF6E26;
  --gold-light: #D4883E;
  --gold-pale:  #ECC898;
  --cream:      #FBF4ED;
  --cream-dark: #F2E5D5;
  --white:      #FFFFFF;
  --text:       #2C1208;
  --muted:      #8A5840;
  --border:     rgba(60,26,12,0.13);
  --shadow:     0 4px 24px rgba(60,26,12,0.09);
  --shadow-lg:  0 16px 64px rgba(60,26,12,0.14);
}

/* ---- TEMA 4: Carbón Premium ---- */
/* Casi negro + gold brillante. Editorial de lujo, consultoría de alto nivel. */
html[data-theme="carbon"] {
  --deep:       #18181B;
  --primary:    #242428;
  --gold:       #D9A520;
  --gold-light: #EDBC38;
  --gold-pale:  #F8E090;
  --cream:      #F5F4F0;
  --cream-dark: #ECEAE3;
  --white:      #FFFFFF;
  --text:       #18181B;
  --muted:      #6C6B67;
  --border:     rgba(0,0,0,0.10);
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.13);
}

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

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.12;
  font-weight: 600;
}
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.875rem;
}
.eyebrow--light { color: var(--gold-pale); }
.eyebrow--dark  { color: var(--gold); }

/* --- Layout ----------------------------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.section--dark { background: var(--deep); }
.section--cream { background: var(--cream-dark); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--deep);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}
.section-header--light h2 { color: var(--white); }
.section-header--light p  { color: rgba(255,255,255,0.65); }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--deep);
  color: var(--white);
}
.btn--primary:hover {
  background: #0f1e16;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(25,47,36,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}
.btn--outline:hover {
  background: var(--deep);
  color: var(--white);
}
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.btn--gold {
  background: var(--gold);
  color: var(--deep);
  font-weight: 600;
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(191,151,66,0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--nav {
  background: var(--gold);
  color: var(--deep);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
}
.btn--full { width: 100%; justify-content: center; }

/* --- Navbar ----------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(247,243,236,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.75rem 0;
}
.nav__container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 46px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--deep);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a.active { opacity: 1; color: var(--gold); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--deep);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 199;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--deep);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:last-child { border-bottom: none; }

/* --- Page Hero (inner pages) ------------------------------ */
.page-hero {
  background: var(--deep);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 48px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero__inner {
  max-width: 720px;
}
.page-hero__breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero__breadcrumb a:hover { color: var(--gold-pale); }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero h1 em { color: var(--gold-pale); font-style: italic; }
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Grain overlay ---------------------------------------- */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
}

/* --- Stats Band ------------------------------------------- */
.stats-band {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--deep);
  line-height: 1;
  display: block;
}
.stat-item__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
  display: block;
}
.stat-item__number span { color: var(--gold); }

/* --- Service Cards ---------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 48px; height: 48px;
  background: rgba(191,151,66,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 1.2rem;
  color: var(--deep);
  margin-bottom: 0.625rem;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-card__cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* --- CONTIFINE Teaser ------------------------------------- */
.contifine-band {
  background: var(--deep);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.contifine-band::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191,151,66,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.contifine-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contifine-band__text h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
}
.contifine-band__text h2 em { color: var(--gold-pale); font-style: italic; }
.contifine-band__text .lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.contifine-feat-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}
.contifine-feat-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.contifine-feat-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Dashboard Mockup */
.dashboard-mockup {
  background: #0D1F18;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(191,151,66,0.15);
  box-shadow: 0 32px 96px rgba(0,0,0,0.5);
}
.mockup-topbar {
  background: #111D16;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FEBC2E; }
.mockup-dot:nth-child(3) { background: #28C840; }
.mockup-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; }
.mockup-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.25rem;
}
.mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.mockup-row-label { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.mockup-row-value { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.mockup-row-value.up { color: #4ade80; }
.mockup-row-value.neutral { color: rgba(255,255,255,0.75); }
.mockup-chart-wrap { margin-top: 0.5rem; }
.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
}
.mockup-bar {
  flex: 1;
  background: rgba(191,151,66,0.2);
  border-radius: 3px 3px 0 0;
  transition: background 0.3s;
}
.mockup-bar.accent { background: var(--gold); }

/* --- Team Cards ------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-card__photo {
  height: 200px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.team-card__initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.team-card__body { padding: 1.5rem; }
.team-card__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.375rem;
  display: block;
}
.team-card__name {
  font-size: 1.15rem;
  color: var(--deep);
  margin-bottom: 0.75rem;
}
.team-card__bio {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Team full page cards */
.team-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.team-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.team-full-card:hover { box-shadow: var(--shadow-lg); }
.team-full-card__photo {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
}
.team-full-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.team-full-card__initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}
.team-full-card__body { padding: 2rem; }
.team-full-card__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.375rem;
}
.team-full-card__name { font-size: 1.25rem; color: var(--deep); margin-bottom: 1rem; }
.team-full-card__bio { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.team-full-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skill-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--deep);
  background: rgba(191,151,66,0.12);
  border: 1px solid rgba(191,151,66,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* Featured team member */
.team-featured {
  background: var(--deep);
  border-radius: var(--r-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}
.team-featured__photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(191,151,66,0.3);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.team-featured__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.team-featured__initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.2);
}
.team-featured__role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-pale);
  display: block;
  margin-bottom: 0.5rem;
}
.team-featured__name { font-size: 2rem; color: var(--white); margin-bottom: 1rem; }
.team-featured__bio { font-size: 1rem; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 1.5rem; }
.team-featured__skills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag--light {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-pale);
  background: rgba(191,151,66,0.15);
  border: 1px solid rgba(191,151,66,0.2);
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
}

/* --- Why Section ------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.why-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--deep);
  margin-bottom: 1rem;
}
.why-text p { color: var(--muted); line-height: 1.75; }
.why-benefits { display: flex; flex-direction: column; gap: 1.75rem; }
.benefit {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: box-shadow 0.3s;
}
.benefit:hover { box-shadow: var(--shadow); }
.benefit__check {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.benefit h4 {
  font-size: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 0.25rem;
}
.benefit p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* --- Contact ---------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.contact-info p { color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 2.5rem; }
.contact-channels { display: flex; flex-direction: column; gap: 1.5rem; }
.channel-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.channel-value { font-size: 0.925rem; color: rgba(255,255,255,0.75); }
.channel-value a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.channel-value a:hover { color: var(--gold-pale); }
.social-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold-pale); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 0.875rem 1rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.2); }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--gold); }
.field select option { background: var(--deep); color: var(--white); }

/* --- Footer ----------------------------------------------- */
.footer { background: #0D1F18; padding: 4rem 0 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.footer__brand p {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 240px;
}
.footer__brand img { filter: brightness(0.85); }
.footer__col h6 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer__col a:hover { color: rgba(255,255,255,0.8); }
.footer__bottom {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* --- Services Detail Page --------------------------------- */
.services-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 100;
}
.services-nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.services-nav__inner::-webkit-scrollbar { display: none; }
.services-nav__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding: 1rem 1.25rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.services-nav__link:hover { color: var(--deep); border-color: var(--gold); }
.services-nav__link.active { color: var(--deep); border-color: var(--gold); font-weight: 600; }

.service-section { padding: 5rem 0; scroll-margin-top: 130px; }
.service-section + .service-section { border-top: 1px solid var(--border); }
.service-section--alt { background: var(--cream-dark); }

.service-section__header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}
.service-section__icon {
  width: 64px; height: 64px;
  background: var(--deep);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.service-section__title h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--deep);
  margin-bottom: 0.5rem;
}
.service-section__title p { font-size: 1rem; color: var(--muted); line-height: 1.7; }

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.service-detail-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
}
.service-detail-box h4 {
  font-size: 1.05rem;
  color: var(--deep);
  margin-bottom: 1rem;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-list li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}
.service-list li::before {
  content: '—';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.service-description {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}
.service-highlight {
  background: rgba(191,151,66,0.08);
  border: 1px solid rgba(191,151,66,0.2);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}
.service-highlight strong { color: var(--deep); }

/* --- CONTIFINE Page --------------------------------------- */
.contifine-hero {
  background: var(--deep);
  padding: 10rem 0 7rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contifine-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(191,151,66,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.contifine-hero__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(191,151,66,0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.contifine-hero h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.contifine-hero h1 span { color: var(--gold); }
.contifine-hero__sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 1.5rem auto 3rem;
  line-height: 1.7;
}
.contifine-hero__ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.feature-card__icon {
  width: 52px; height: 52px;
  background: rgba(191,151,66,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.1rem; color: var(--deep); margin-bottom: 0.625rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.module-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.module-item:hover {
  background: rgba(191,151,66,0.08);
  border-color: rgba(191,151,66,0.2);
}
.module-item__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.module-item h4 { font-size: 0.9rem; color: var(--white); margin-bottom: 0.375rem; }
.module-item p { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.use-case {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.use-case__icon {
  font-size: 2rem;
}
.use-case h3 { font-size: 1.1rem; color: var(--deep); }
.use-case p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; flex: 1; }
.use-case__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(191,151,66,0.1);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* Large dashboard mockup */
.large-mockup {
  background: #0D1F18;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(191,151,66,0.12);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  max-width: 900px;
  margin: 0 auto;
}
.large-mockup__topbar {
  background: #111D16;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.large-mockup__body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 360px;
}
.large-mockup__sidebar {
  background: #0A1A10;
  padding: 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-item {
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  cursor: default;
  transition: all 0.2s;
}
.sidebar-item.active {
  background: rgba(191,151,66,0.12);
  color: var(--gold-pale);
  border: 1px solid rgba(191,151,66,0.15);
}
.large-mockup__content { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}
.kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 1rem;
}
.kpi__label { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-bottom: 0.375rem; }
.kpi__value { font-size: 1.4rem; font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--white); }
.kpi__value.up { color: #4ade80; }
.kpi__trend { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 0.25rem; }
.mockup-big-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 1rem;
  flex: 1;
}
.big-bar {
  flex: 1;
  background: rgba(191,151,66,0.2);
  border-radius: 3px 3px 0 0;
}
.big-bar.hi { background: var(--gold); }

/* --- Scroll Animations ------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contifine-band__grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .team-full-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .large-mockup__body { grid-template-columns: 1fr; }
  .large-mockup__sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero-main { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-visual { display: none; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .team-featured { grid-template-columns: 1fr; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.75rem; }
  .page-hero h1 { font-size: 2.25rem; }
  .contifine-hero h1 { font-size: 3rem; }
  .mockup-kpis { grid-template-columns: 1fr; }
}

/* --- Theme Switcher --------------------------------------- */
.theme-switcher {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9000;
}

.ts-trigger {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 2px var(--gold-pale) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.ts-trigger:hover {
  transform: scale(1.1) rotate(30deg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3), 0 0 0 2px var(--gold) inset;
}
.theme-switcher.open .ts-trigger {
  background: var(--gold);
  color: var(--deep);
  transform: rotate(60deg);
}

.ts-panel {
  position: absolute;
  bottom: calc(100% + 0.875rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  width: 210px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s ease;
  transform-origin: bottom right;
}
.theme-switcher.open .ts-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.ts-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

.ts-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ts-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  text-align: left;
}
.ts-option:hover {
  background: var(--cream-dark);
}
.ts-option.active {
  background: var(--cream-dark);
  border-color: var(--gold);
}

.ts-swatch {
  width: 34px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
}
.ts-swatch-dark   { flex: 0 0 58%; height: 100%; }
.ts-swatch-accent { flex: 0 0 42%; height: 100%; }

.ts-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  line-height: 1.3;
}

.ts-check {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.18s;
  flex-shrink: 0;
}
.ts-option.active .ts-check { opacity: 1; }
