/* ==========================================================================
   CSS Reset & Variables
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --primary: #4E7A5C;
  --primary-dark: #33503E;
  --primary-light: #E3EBE4;
  --secondary: #6E6B64;
  --bg-dark: #21201C;
  --bg-light: #F7F6F2;
  --bg-white: #FFFFFF;
  --text-primary: #21201C;
  --text-secondary: #6E6B64;
  --success: #4E7A5C;
  --warning: #B8914A;
  --danger: #A85B46;
  --border: rgba(33,32,28,.08);
  --sidebar-bg: #21201C;
  --sidebar-text: #9A958C;
  --sidebar-active: #FFFFFF;
  --shadow: 0 1px 2px rgba(33,32,28,.04), 0 12px 32px rgba(33,32,28,.07);
  --shadow-hover: 0 2px 4px rgba(33,32,28,.05), 0 24px 56px rgba(33,32,28,.13);
  --radius: 16px;
  --radius-sm: 10px;
  --font-family: 'Manrope', sans-serif;
  --transition: all 0.22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--font-family);
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection */
::selection {
  background-color: var(--primary-light);
  color: var(--bg-white);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-dark);
}

/* ==========================================================================
   Grid System
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}

.row > * {
  padding: 0.5rem;
}

/* 12-column Grid */
.col-1 { width: 8.333333%; }
.col-2 { width: 16.666667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.333333%; }
.col-5 { width: 41.666667%; }
.col-6 { width: 50%; }
.col-7 { width: 58.333333%; }
.col-8 { width: 66.666667%; }
.col-9 { width: 75%; }
.col-10 { width: 83.333333%; }
.col-11 { width: 91.666667%; }
.col-12 { width: 100%; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Spacing Margins */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

/* Flexbox utilities */
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Sizing */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Text & Colors */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.text-primary { color: var(--text-primary) !important; }
.text-muted, .text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-white { color: var(--bg-white) !important; }
.text-accent { color: var(--primary) !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-normal { font-weight: 400 !important; }

.fs-xs { font-size: 0.75rem !important; }
.fs-sm { font-size: 0.875rem !important; }
.fs-md { font-size: 1rem !important; }
.fs-lg { font-size: 1.125rem !important; }
.fs-xl { font-size: 1.25rem !important; }

/* Backgrounds */
.bg-white { background-color: var(--bg-white) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }

/* Borders & Radius */
.rounded { border-radius: var(--radius-sm) !important; }
.rounded-lg { border-radius: var(--radius) !important; }
.rounded-circle { border-radius: 50% !important; }
.overflow-hidden { overflow: hidden !important; }
.shadow-sm { box-shadow: var(--shadow) !important; }

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
  .col-lg-12 { width: 100%; }
}

@media (max-width: 992px) {
  .col-md-6 { width: 50%; }
  .col-md-12 { width: 100%; }
}

@media (max-width: 768px) {
  .col-sm-12 { width: 100%; }
}

@media (max-width: 576px) {
  .container, .container-fluid {
    padding: 0 0.5rem;
  }
}
/* ==========================================================================
   Landing Page Layout (index.html)
   ========================================================================== */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--primary);
}
.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Section */
.hero-section {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-dark));
  color: var(--bg-white);
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 800px;
  z-index: 2;
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}
.hero-search {
  max-width: 600px;
  margin: 0 auto 2rem;
  display: flex;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.hero-search input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  outline: none;
  font-size: 1rem;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 5rem 2rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.step-card {
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.step-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Categories Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}
.category-card:hover {
  background: var(--primary);
  color: white;
}
.category-card span {
  font-size: 1.5rem;
}

/* Stats / Trust Grid */
.stats-grid-landing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-box h3 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.stat-box p {
  color: var(--text-secondary);
}

/* Featured Workers */
.workers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
}
.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--bg-white);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary-light);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

/* ==========================================================================
   ChambaYa — Responsive fixes (móvil: evitar recorte lateral)
   ========================================================================== */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
  .nav-container { padding: 0 1rem; gap: 0.5rem; }
  .nav-links { display: none; }
  .nav-actions { gap: 0.5rem; }
  .nav-actions a { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
  .hero-section { padding: 6rem 1rem 3rem; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-search { flex-direction: column; padding: 0.75rem; }
  .hero-search input { width: 100%; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { width: 100%; text-align: center; }
  .section { padding: 3rem 1rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .workers-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer { padding: 3rem 1rem 2rem; }
  .stats-grid-landing { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-content { width: 100%; }
}

@media (max-width: 576px) {
  .stats-grid-landing { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }
  .step-card { padding: 1.5rem; }
}
