/* ==========================================================================
   ESTUDIO RAMÍREZ SILVESTRE & ASOCIADOS SAC
   Estudio Jurídico Contable – Jr. Garcilaso de la Vega 1547, Of. 203
   WhatsApp: +51 927 428 865
   Main Stylesheet - Design System, Splash Screen & Corporate UI
   ========================================================================== */

/* ------------------- CSS Variables & Color System ------------------- */
:root {
  /* Brand Luxury Palette */
  --color-navy: #0B1528;
  --color-navy-dark: #070D1A;
  --color-navy-deep: #040810;
  --color-navy-card: #101C33;
  --color-corporate: #132A52;
  --color-corporate-light: #1D3B73;

  /* Metallic Gold Palette */
  --color-gold: #C99726;
  --color-gold-hover: #DFBA53;
  --color-gold-light: #F3DE8A;
  --color-gold-dark: #8F6613;
  --color-gold-glow: rgba(201, 151, 38, 0.28);
  --color-gold-border: rgba(201, 151, 38, 0.35);

  /* WhatsApp Colors */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BA5A;
  --color-whatsapp-dark: #128C7E;

  /* Red & Warning Accents */
  --color-red: #B92B27;
  --color-red-hover: #9E221E;

  /* Neutrals & Tones */
  --color-white: #FFFFFF;
  --color-bg-light: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-bg-muted: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-dark: rgba(255, 255, 255, 0.12);

  --color-text-main: #1E293B;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;
  --color-text-white: #FFFFFF;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 21, 40, 0.06), 0 1px 2px rgba(11, 21, 40, 0.04);
  --shadow-md: 0 4px 14px rgba(11, 21, 40, 0.09), 0 2px 4px rgba(11, 21, 40, 0.04);
  --shadow-lg: 0 12px 30px rgba(11, 21, 40, 0.14), 0 4px 8px rgba(11, 21, 40, 0.06);
  --shadow-xl: 0 20px 45px rgba(7, 13, 26, 0.22), 0 8px 16px rgba(7, 13, 26, 0.08);
  --shadow-gold: 0 8px 24px rgba(201, 151, 38, 0.25);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ------------------- CSS Reset & Global Rules ------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ------------------- SPLASH SCREEN ------------------- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #12213F 0%, #070D1A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  user-select: none;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 440px;
  width: 100%;
  animation: splashFadeIn 0.8s ease-out forwards;
}

.splash-logo-wrap {
  width: 100%;
  max-width: 380px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 25px rgba(201, 151, 38, 0.35));
}

.splash-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.splash-progress-track {
  width: 180px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
}

.splash-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C99726, #F3DE8A, #C99726);
  border-radius: var(--radius-full);
  animation: splashLoading 1.4s ease-in-out infinite;
}

.splash-subtitle {
  font-size: 0.8125rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D6BD7A;
  font-weight: 600;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashLoading {
  0% { left: -100%; width: 100%; }
  100% { left: 100%; width: 100%; }
}

/* ------------------- Typography Helpers ------------------- */
.section {
  padding-top: 85px;
  padding-bottom: 85px;
  position: relative;
}

.section-header {
  margin-bottom: 52px;
}

.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  background-color: rgba(201, 151, 38, 0.12);
  border: 1px solid rgba(201, 151, 38, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-tag.light {
  color: #F3DE8A;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 151, 38, 0.3);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-title.text-white {
  color: var(--color-white);
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 14px;
  line-height: 1.6;
}

.section-description.text-light {
  color: #CBD5E1;
}

.accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-hover));
  border-radius: var(--radius-full);
  margin-top: 14px;
  margin-bottom: 18px;
}

.accent-line.center {
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Visibility Helpers */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: block;
}

span.desktop-only {
  display: inline;
}

span.mobile-only {
  display: none !important;
}

/* ------------------- Buttons ------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-align: center;
  cursor: pointer;
}

.btn-primary-whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-primary-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #DFBA53 0%, #C99726 100%);
  color: #070D1A !important;
  font-weight: 800;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #F3DE8A 0%, #DFBA53 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 151, 38, 0.4);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.btn-outline-gold:hover {
  background-color: var(--color-gold);
  color: #0B1528 !important;
}

.btn-whatsapp-full {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-whatsapp);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-full:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}

.icon-whatsapp {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon-arrow {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

/* ------------------- HEADER & NAVBAR ------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(7, 13, 26, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 151, 38, 0.2);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background-color: rgba(7, 13, 26, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(201, 151, 38, 0.35);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--color-gold);
  box-shadow: 0 0 10px rgba(201, 151, 38, 0.35);
  flex-shrink: 0;
  background-color: #000000;
}

.brand-isotype-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #E2E8F0;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold-hover);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-hover));
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-chevron {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 280px;
  background-color: #0A1428;
  border: 1px solid rgba(201, 151, 38, 0.25);
  border-radius: var(--radius-md);
  padding: 8px 0;
  list-style: none;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #CBD5E1;
  transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
  background-color: rgba(201, 151, 38, 0.12);
  color: var(--color-gold-hover);
  padding-left: 22px;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-wsp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF !important;
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-header-wsp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  background-color: #070D1A;
  border-top: 1px solid rgba(201, 151, 38, 0.2);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  z-index: 999;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover {
  background-color: rgba(201, 151, 38, 0.1);
  color: var(--color-gold);
}

.mobile-accordion-item {
  display: flex;
  flex-direction: column;
}

.mobile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.mobile-accordion-chevron {
  transition: transform var(--transition-fast);
}

.mobile-accordion-item.active .mobile-accordion-chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  display: none;
  padding-left: 20px;
  margin-top: 4px;
  flex-direction: column;
  gap: 6px;
}

.mobile-accordion-item.active .mobile-submenu {
  display: flex;
}

.mobile-sublink {
  display: block;
  font-size: 0.9375rem;
  color: #94A3B8;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.mobile-sublink:hover {
  color: var(--color-gold-light);
  background-color: rgba(255, 255, 255, 0.05);
}

.mobile-drawer-cta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ------------------- 01 HERO SECTION ------------------- */
.hero-section {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;
  overflow: hidden;
  background-color: #070D1A;
}

/* Dual Background Images */
.hero-bg-desktop {
  display: block;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 76px);
  background-image: url('assets/images/hero-desktop.png');
  background-size: auto 100%;
  background-position: right top;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-bg-mobile {
  display: none;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 76px);
  background-image: url('assets/images/hero-mobile.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 1;
}

/* High contrast read layer without destroying photo */
.hero-overlay {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 76px);
  background: linear-gradient(90deg, rgba(6, 11, 23, 0.98) 0%, rgba(6, 11, 23, 0.90) 44%, rgba(6, 11, 23, 0.35) 72%, rgba(6, 11, 23, 0.04) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-content {
  max-width: 680px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gold-light);
  background-color: rgba(201, 151, 38, 0.16);
  border: 1px solid rgba(201, 151, 38, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-gold);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-title-highlight {
  background: linear-gradient(90deg, #F3DE8A 0%, #C99726 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #E2E8F0;
  font-weight: 500;
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* ------------------- 02 COMMERCIAL SERVICES (6 CATEGORIES) ------------------- */
.services-section {
  background-color: #F8FAFC;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(201, 151, 38, 0.4);
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #070D1A;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-img-wrapper .service-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(7, 13, 26, 0.88);
  color: var(--color-gold-light);
  border: 1px solid rgba(201, 151, 38, 0.45);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.service-checklist {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-checklist li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  color: var(--color-text-main);
  line-height: 1.45;
}

.service-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-weight: 800;
}

.service-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}

.btn-card-details {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-navy);
  background-color: #F8FAFC;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  transition: all var(--transition-fast);
}

.btn-card-details:hover {
  background-color: var(--color-navy);
  color: #FFFFFF !important;
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 21, 40, 0.15);
}

.btn-card-details .icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-card-details:hover .icon-arrow {
  transform: translateX(4px);
}

/* ------------------- 03 CASOS DE ÉXITO (HISTORIAS REALES) ------------------- */
.cases-section {
  background-color: #FFFFFF;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 151, 38, 0.4);
  box-shadow: var(--shadow-lg);
}

.case-header-bar {
  padding: 18px 24px 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F1F5F9;
}

.case-tag-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-gold);
  background-color: rgba(201, 151, 38, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.case-time-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
}

.case-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.case-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.case-title a:hover {
  color: var(--color-gold);
}

.case-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.case-metrics-box {
  background-color: #F8FAFC;
  border-left: 3px solid var(--color-gold);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 22px;
}

.case-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748B;
  font-weight: 700;
  display: block;
}

.case-metric-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
}

.case-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.case-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-corporate);
  transition: all var(--transition-fast);
}

.case-link-btn:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

/* ------------------- 03 3 SPECIALIZED AREAS (FULL FLYER BREAKDOWN) ------------------- */
.areas-section {
  background-color: #FFFFFF;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.area-box {
  background-color: #F8FAFC;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.area-box:hover {
  border-color: rgba(201, 151, 38, 0.35);
  box-shadow: var(--shadow-md);
}

.area-box-num {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.area-box-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.area-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.area-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.area-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--color-gold);
  font-size: 1.25rem;
}

/* ------------------- 04 DIFFERENTIATION / POR QUÉ ELEGIRNOS ------------------- */
.diff-section {
  background: radial-gradient(circle at top center, #101F3B 0%, #070D1A 100%);
  color: #FFFFFF;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.diff-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 151, 38, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.diff-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 151, 38, 0.45);
  box-shadow: var(--shadow-lg);
}

.diff-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201, 151, 38, 0.25) 0%, rgba(201, 151, 38, 0.08) 100%);
  border: 1px solid rgba(201, 151, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  margin-bottom: 20px;
}

.diff-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.diff-card-desc {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.6;
}

/* ------------------- 05 CLIENT PROFILES ------------------- */
.profiles-section {
  background-color: #F8FAFC;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.profile-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 26px 20px;
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 151, 38, 0.35);
  box-shadow: var(--shadow-md);
}

.profile-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(19, 42, 82, 0.06);
  border: 1px solid rgba(19, 42, 82, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-corporate);
  margin-bottom: 16px;
}

.profile-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.profile-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ------------------- 06 STRATEGIC LOCATION SPOTLIGHT ------------------- */
.location-spotlight-section {
  background-color: #FFFFFF;
}

.spotlight-card {
  background: linear-gradient(135deg, #070D1A 0%, #12213F 100%);
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(201, 151, 38, 0.3);
  padding: 48px;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-xl);
}

.spotlight-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.25;
}

.spotlight-content p {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.65;
  margin-bottom: 24px;
}

.spotlight-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.spotlight-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #F1F5F9;
}

.spotlight-points svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.spotlight-map-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 151, 38, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.spotlight-address-badge {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold-light);
}

.spotlight-ref-text {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.5;
}

/* ------------------- 07 FAQ SECTION ------------------- */
.faq-section {
  background-color: #F8FAFC;
}

.faq-container {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item.active {
  border-color: rgba(201, 151, 38, 0.4);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  transition: color var(--transition-fast);
}

.accordion-header:hover {
  color: var(--color-gold-dark);
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 22px;
}

.accordion-item.active .accordion-body {
  max-height: 400px;
  padding-bottom: 20px;
}

.accordion-body p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ------------------- 08 CONTACT & WHATSAPP FORM ------------------- */
.contact-section {
  background-color: #FFFFFF;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background-color: #070D1A;
  border: 1px solid rgba(201, 151, 38, 0.25);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.contact-info-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.contact-info-subtitle {
  font-size: 1rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 28px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(201, 151, 38, 0.12);
  border: 1px solid rgba(201, 151, 38, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-light);
  flex-shrink: 0;
}

.channel-text-wrap {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
}

.channel-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.channel-val a:hover {
  color: var(--color-gold-hover);
}

.channel-note {
  font-size: 0.8125rem;
  color: var(--color-gold-light);
  margin-top: 2px;
}

/* Quick Form */
.contact-form-card {
  background-color: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: #FFFFFF;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 38, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-form-submit {
  width: 100%;
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
}

.btn-form-submit:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
}

/* ------------------- 09 MODAL POPUP SYSTEM ------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(4, 8, 16, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-window {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 151, 38, 0.35);
  box-shadow: var(--shadow-xl);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  z-index: 2;
}

.modal-close-btn:hover {
  background-color: #CBD5E1;
  color: var(--color-navy);
}

.modal-body-wrap {
  padding: 32px 30px;
}

.modal-header-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-gold);
  background-color: rgba(201, 151, 38, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.modal-lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-section-h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.modal-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.925rem;
  color: var(--color-text-main);
  line-height: 1.45;
}

.modal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-weight: 800;
}

.modal-cta-box {
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ------------------- 10 FLOATING WHATSAPP ------------------- */
.floating-whatsapp-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-whatsapp-tooltip {
  background-color: #070D1A;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201, 151, 38, 0.35);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  animation: floatTooltip 3s ease-in-out infinite;
}

.floating-whatsapp-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-base), filter var(--transition-base);
  position: relative;
}

.floating-whatsapp-btn .icon-whatsapp {
  width: 34px;
  height: 34px;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 10px 28px rgba(37, 211, 102, 0.7));
}

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--color-whatsapp);
  opacity: 0.6;
  animation: pulseWsp 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  z-index: -1;
}

@keyframes pulseWsp {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes floatTooltip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ------------------- 11 FOOTER ------------------- */
.site-footer {
  background: #040810;
  color: #FFFFFF;
  padding-top: 70px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(201, 151, 38, 0.25);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.footer-brand-subtitle {
  font-size: 0.8125rem;
  color: var(--color-gold-light);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.875rem;
  color: #94A3B8;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--color-gold);
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 0.875rem;
  color: #CBD5E1;
  transition: color var(--transition-fast);
}

.footer-nav-list a:hover {
  color: var(--color-gold-hover);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #CBD5E1;
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: #64748B;
}

/* ------------------- SUBPAGE SPECIFIC STYLES (servicios/*.html) ------------------- */
.subpage-hero {
  background: radial-gradient(circle at center, #101F3B 0%, #070D1A 100%);
  padding-top: 130px;
  padding-bottom: 60px;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(201, 151, 38, 0.25);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #94A3B8;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: #CBD5E1;
}

.breadcrumbs a:hover {
  color: var(--color-gold);
}

.subpage-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.subpage-lead {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.subpage-content-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.subpage-main-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.subpage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-cta-card {
  background: linear-gradient(135deg, #070D1A 0%, #12213F 100%);
  border: 1px solid rgba(201, 151, 38, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  color: #FFFFFF;
  text-align: center;
}

.sidebar-cta-card h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.sidebar-cta-card p {
  font-size: 0.9rem;
  color: #CBD5E1;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ------------------- EDITORIAL CASE CARDS & HOMEPAGE IMAGERY ------------------- */
.case-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #070D1A;
}

.case-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card-img {
  transform: scale(1.05);
}

/* ------------------- CLEAN EXECUTIVE METRICS RIBBON ------------------- */
.metrics-ribbon {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  padding: 24px 30px;
  margin-top: -35px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--color-border);
}

.metrics-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.metric-item {
  padding: 8px 16px;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--color-border);
}

.metric-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.metric-number.accent-gold {
  color: var(--color-gold);
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.metric-sub {
  font-size: 0.775rem;
  color: var(--color-text-muted);
}

/* ------------------- FEATURED EDITORIAL IMAGERY IN ARTICLES ------------------- */
.featured-editorial-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.featured-editorial-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-editorial-wrap:hover .featured-editorial-img {
  transform: scale(1.02);
}

/* ------------------- STEP-BY-STEP EDITORIAL PROCESS (JULIO CANO STYLE) ------------------- */
.process-step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.step-card-item {
  display: flex;
  gap: 18px;
  background-color: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(201, 151, 38, 0.4);
}

.step-num-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text-wrap h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.step-text-wrap p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-main);
  line-height: 1.55;
}

/* ------------------- QUOTE HIGHLIGHT BOX (EDITORIAL AUTHORITY) ------------------- */
.quote-highlight-box {
  background-color: #FEF9EE;
  border-left: 4px solid var(--color-gold);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-style: italic;
  color: #78350F;
  font-size: 1rem;
  line-height: 1.6;
}

/* ------------------- SERVICE DETAIL CARDS ------------------- */
.service-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px 0;
}

.feature-card {
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: rgba(201, 151, 38, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(201, 151, 38, 0.12);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Requirements Box --- */
.requirements-box {
  background: #F8FAFC;
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px;
  margin: 28px 0;
}

.requirements-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.requirements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.requirements-list li {
  font-size: 0.9rem;
  color: var(--color-text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.requirements-list li svg {
  width: 16px;
  height: 16px;
  color: var(--color-whatsapp-dark);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Related Case Study Banner --- */
.related-case-banner {
  background: linear-gradient(135deg, #070D1A 0%, #15274D 100%);
  border: 1px solid rgba(201, 151, 38, 0.4);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
}

.related-case-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.related-case-content p {
  font-size: 0.85rem;
  color: #E2E8F0;
  margin: 0;
  line-height: 1.45;
}

.related-case-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gold);
  color: var(--color-navy) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.related-case-btn:hover {
  background: var(--color-gold-hover);
  transform: translateX(3px);
}

/* ------------------- RESPONSIVE BREAKPOINTS ------------------- */
@media (max-width: 1024px) {
  .services-grid,
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diff-grid,
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spotlight-card {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

@media (max-width: 900px) {
  .desktop-only,
  span.desktop-only {
    display: none !important;
  }

  .mobile-only,
  span.mobile-only {
    display: block !important;
  }

  span.mobile-only {
    display: inline !important;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  /* Dual Background Switch */
  .hero-bg-desktop {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
    top: 76px;
    height: calc(100% - 76px);
    background-size: cover;
    background-position: center bottom;
  }

  .hero-overlay {
    top: 76px;
    height: calc(100% - 76px);
    background: linear-gradient(180deg, rgba(7, 13, 26, 0.98) 0%, rgba(7, 13, 26, 0.90) 36%, rgba(7, 13, 26, 0.25) 54%, transparent 100%);
  }

  .hero-section {
    min-height: 82vh;
    padding-top: 86px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-container {
    padding-top: 18px;
  }

  .hero-content {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 1.65rem;
    line-height: 1.22;
    margin-bottom: 10px;
    text-align: center;
  }

  .hero-description {
    font-size: 0.925rem;
    line-height: 1.45;
    margin-bottom: 18px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #E2E8F0;
  }

  .hero-cta-group {
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
  }

  .hero-cta-group .btn {
    width: auto !important;
    display: inline-flex !important;
    padding: 10px 22px;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
  }

  .contact-layout,
  .subpage-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .services-grid,
  .areas-grid,
  .cases-grid,
  .diff-grid,
  .profiles-grid,
  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .hero-description {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 16px;
    max-width: 320px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: auto !important;
    max-width: max-content;
    padding: 10px 24px;
  }

  .floating-whatsapp-tooltip {
    display: none;
  }

  .floating-whatsapp-btn {
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp-btn .icon-whatsapp {
    width: 28px;
    height: 28px;
  }

  .floating-whatsapp-container {
    bottom: 20px;
    right: 20px;
  }

  .process-stepper {
    grid-template-columns: 1fr;
  }

  .impact-matrix {
    grid-template-columns: 1fr;
  }

  .metrics-ribbon {
    padding: 20px 16px;
    margin-top: -20px;
  }

  .metrics-grid-3,
  .metrics-grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .metric-item:not(:last-child)::after {
    display: none;
  }

  .metric-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
  }

  .featured-editorial-img {
    height: 220px;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
  }

  /* Subpage Mobile Optimization */
  .subpage-hero {
    padding-top: 95px;
    padding-bottom: 45px;
  }

  .subpage-title {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .subpage-lead {
    font-size: 0.925rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    max-width: 100%;
  }

  .subpage-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }

  .subpage-main-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .subpage-sidebar {
    gap: 20px;
  }

  .sidebar-cta-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
}
