/* ==========================================================================
   CONTABILIUM PERÚ - PREMIUM DESIGN SYSTEM
   Firma de Auditoría, Consultoría Tributaria, Legal & Outsourcing Contable
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --primary: #BB3D8A;
  --primary-hover: #9E2B71;
  --primary-light: rgba(187, 61, 138, 0.08);
  --primary-glow: rgba(187, 61, 138, 0.35);
  
  --secondary: #309DA2;
  --secondary-hover: #268084;
  --secondary-light: rgba(48, 157, 162, 0.08);
  --secondary-glow: rgba(48, 157, 162, 0.35);

  --accent-gold: #E5A93C;
  --accent-emerald: #10B981;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sizing & Layout */
  --container-max: 1280px;
  --container-padding: clamp(1rem, 5vw, 2.5rem);
  --section-spacing: clamp(4.5rem, 8vw, 8rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Light Theme Default */
  --bg-body: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-elevated: #F1F5F9;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.04);
  --border-hover: rgba(187, 61, 138, 0.35);
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-border: rgba(15, 23, 42, 0.06);
  --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.07);
  --card-shadow-hover: 0 22px 45px -12px rgba(187, 61, 138, 0.14);
  --pill-bg: rgba(15, 23, 42, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --grid-dots: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
}

[data-theme="dark"] {
  --bg-body: #070C14;
  --bg-surface: #0C1422;
  --bg-card: #111D30;
  --bg-elevated: #172740;
  --text-main: #F8FAFC;
  --text-muted: #CBD5E1;
  --text-light: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(187, 61, 138, 0.5);
  --header-bg: rgba(7, 12, 20, 0.88);
  --header-border: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 25px 50px -10px rgba(187, 61, 138, 0.25);
  --pill-bg: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(17, 29, 48, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --grid-dots: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Section Common */
.section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(187, 61, 138, 0.2);
  margin-bottom: 1.25rem;
}

.section-tag.secondary {
  background: var(--secondary-light);
  color: var(--secondary);
  border-color: rgba(48, 157, 162, 0.2);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #BB3D8A 0%, #D84D9F 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 25px -5px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(187, 61, 138, 0.55);
}

.btn-secondary {
  background: linear-gradient(135deg, #309DA2 0%, #3DB8BD 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 25px -5px var(--secondary-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(48, 157, 162, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item-dropdown > a svg {
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover > a svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 0;
  box-shadow: var(--card-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  pointer-events: none;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--pill-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  padding: 0 10px;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 999;
  padding: 6rem 2rem 2.5rem 2rem;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
  margin-top: 0.5rem;
}

.mobile-accordion-content.open {
  max-height: 400px;
}

.mobile-sub-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: clamp(8rem, 13vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.hero-background-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-light) 0%, var(--secondary-light) 50%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--grid-dots);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  z-index: -2;
  opacity: 0.4;
}

.hero-content {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #BB3D8A 20%, #309DA2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-muted);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Video Placeholder / Interactive Showcase */
.hero-showcase-container {
  margin: 0 auto;
  max-width: 1080px;
  position: relative;
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.hero-media-wrapper:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* Reserved Video Card Placeholder */
.video-placeholder-card {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #0C1524 0%, #15243B 50%, #1D152B 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  padding: 2rem;
  overflow: hidden;
}

.video-placeholder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grid-dots);
  background-size: 24px 24px;
  opacity: 0.2;
}

.video-placeholder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.video-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #BB3D8A, #D84D9F);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px var(--primary-glow);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.video-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.video-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(187, 61, 138, 0.7);
}

.video-play-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(187, 61, 138, 0.4);
  animation: pulseRipple 2.5s infinite;
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.video-title {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: #FFFFFF;
  font-weight: 700;
  max-width: 650px;
  margin-bottom: 0.5rem;
  z-index: 2;
}

.video-subtitle {
  color: #94A3B8;
  font-size: 0.95rem;
  max-width: 500px;
  z-index: 2;
}

/* Trust Proof & Stats Counter Bar */
.stats-banner {
  margin-top: 3.5rem;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stat-number .stat-highlight {
  color: var(--primary);
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ==========================================================================
   PILLARS / VALORES: ¿POR QUÉ CONFIAR EN CONTABILIUM?
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.pillar-icon-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: var(--transition);
}

.pillar-card:hover .pillar-icon-box {
  background: var(--primary-light);
  border-color: rgba(187, 61, 138, 0.3);
  transform: scale(1.05);
}

.pillar-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.pillar-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SERVICES ECOSYSTEM (TABS & CARDS)
   ========================================================================== */
.services-section {
  background: var(--bg-surface);
}

.services-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.service-tab-btn {
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

.service-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 8px 20px -4px var(--primary-glow);
}

.services-tab-pane {
  display: none;
}

.services-tab-pane.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  animation: fadeIn 0.4s ease forwards;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-badge {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--pill-bg);
  color: var(--secondary);
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-main);
}

.service-feature-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.service-action-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-action-link:hover {
  color: var(--primary-hover);
  gap: 0.65rem;
}

/* ==========================================================================
   ABOUT US / QUIÉNES SOMOS & STRATEGIC FIRM
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-image-composition {
  position: relative;
  width: 100%;
  padding-bottom: 2rem;
}

.about-main-img {
  width: 88%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  object-fit: cover;
  transition: var(--transition-smooth);
}

.about-floating-card {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow-hover);
  backdrop-filter: blur(20px);
}

.about-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.about-floating-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.about-floating-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-box {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.highlight-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.highlight-box p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==========================================================================
   INTERACTIVE EVALUATOR / COTIZADOR RÁPIDO
   ========================================================================== */
.evaluator-section {
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
}

.evaluator-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.evaluator-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #BB3D8A, #309DA2);
}

.evaluator-step {
  margin-bottom: 2.5rem;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}

.step-title {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.selection-btn {
  padding: 1.15rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.selection-btn svg {
  color: var(--secondary);
  transition: var(--transition);
}

.selection-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.selection-btn.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.selection-btn.selected svg {
  color: var(--primary);
}

.evaluator-result-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.result-summary h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.result-summary p {
  font-size: 0.92rem;
}

/* ==========================================================================
   SUNAT & SUNAFIL COMPLIANCE BANNER
   ========================================================================== */
.compliance-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.compliance-card {
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.compliance-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.compliance-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(187, 61, 138, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-content h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.channel-content a, .channel-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.channel-content a:hover {
  color: var(--primary);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 0.35rem;
}

.social-links-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ==========================================================================
   FLOATING ACTION WIDGETS
   ========================================================================== */
.floating-widget-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 990;
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.7);
}

.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: pulseRipple 2s infinite;
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
}

.back-to-top-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .services-tab-pane.active {
    grid-template-columns: 1fr;
  }
  .compliance-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .stats-banner {
    grid-template-columns: 1fr;
  }
  .stat-item::after {
    display: none !important;
  }
}

@media (max-width: 580px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .about-highlights-list {
    grid-template-columns: 1fr;
  }
  .about-floating-card {
    position: relative;
    width: 100%;
    margin-top: 1.5rem;
  }
  .about-main-img {
    width: 100%;
  }
  .floating-widget-wrapper {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
