/* ==========================================================================
   HG ASESORES - EXECUTIVE LIGHT DESIGN SYSTEM
   Clean White, Warm Logo Gold (#D3A30E), Light Slate Greys, Modern Typography
   Fully Responsive (Mobile, Tablet, Desktop)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Light Theme */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-alt: #F1F5F9;
  
  --gold-500: #D3A30E;
  --gold-600: #B88C07;
  --gold-400: #E5B82A;
  --gold-soft: rgba(211, 163, 14, 0.1);
  --gold-soft-hover: rgba(211, 163, 14, 0.18);
  --gold-border: rgba(211, 163, 14, 0.35);
  --gold-gradient: linear-gradient(135deg, #E5B82A 0%, #D3A30E 60%, #B88C07 100%);
  
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;
  
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(211, 163, 14, 0.15);
  --shadow-gold: 0 8px 25px rgba(211, 163, 14, 0.25);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  
  --max-width: 1240px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

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

body {
  background-color: var(--bg-light);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle background accent glow */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  left: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(211, 163, 14, 0.06) 0%, rgba(248, 250, 252, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

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

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

.text-gold {
  color: var(--gold-600);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-smooth);
}

.header-gold-stripe {
  height: 4px;
  background: var(--gold-gradient);
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-600);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-smooth);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-smooth);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(211, 163, 14, 0.4);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-white);
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-500);
  color: var(--gold-600);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold-500);
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 3px solid var(--gold-500);
  padding: 1.5rem 1.5rem 2rem;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.active {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  display: block;
  padding: 0.4rem 0;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-light) 100%);
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 50px;
  color: var(--gold-600);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Executive Card / Hero Visual */
.hero-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-quote {
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-heading);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

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

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold-600);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  color: var(--gold-600);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-heading);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Section Base */
.section-padding {
  padding: 85px 0;
}

/* Healthy Growth Philosophy */
.healthy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.pillar-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-md);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-lg);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  font-size: 1.3rem;
  margin-bottom: 1.3rem;
}

.pillar-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-heading);
}

.pillar-text {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Services Grid & Tabs */
.services-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--gold-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.service-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-lg);
}

.service-category {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.service-name {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--text-heading);
}

.service-body {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-subitems {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.subitem-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 0.5rem;
}

.subitem-btn:hover {
  background: var(--gold-soft);
  border-color: var(--gold-500);
  color: var(--gold-600);
}

/* Diagnostic / Calculator Tool */
.diagnostic-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.diagnostic-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.diag-step {
  display: none;
}

.diag-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.diag-question {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-heading);
}

.diag-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.diag-opt {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  color: var(--text-heading);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
}

.diag-opt:hover,
.diag-opt.selected {
  background: var(--gold-soft);
  border-color: var(--gold-500);
  color: var(--gold-600);
  font-weight: 600;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.info-item {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.8rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.info-text p {
  color: var(--text-body);
  font-size: 0.95rem;
}

.contact-form-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold-500);
  box-shadow: 0 0 10px rgba(211, 163, 14, 0.2);
}

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

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-white);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-heading);
}

/* Footer */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem;
  margin-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.8rem;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-links-title {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: var(--gold-600);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile Optimizations)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-subtitle {
    margin: 0 auto 2rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .healthy-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 868px) {
  .nav-links, .nav-cta {
    display: none;
  }

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

  .diag-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-section {
    padding: 130px 0 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-quote {
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

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

  .section-desc {
    font-size: 0.95rem;
  }

  .diagnostic-wrapper {
    padding: 1.5rem;
  }

  .contact-info-card, .contact-form-box {
    padding: 1.5rem;
  }

  .modal-box {
    padding: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }
}
