/* ==========================================================================
   FinFactor - Recursos Humanos B2B (finfactor.com.mx)
   Design System: Warm Corporate Navy & Terracotta
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-navy: #0F2C59;
  --primary-navy-dark: #081B38;
  --primary-navy-light: #1E4079;
  
  --warm-terracotta: #D95D39;
  --warm-terracotta-hover: #BF4926;
  --warm-amber: #F0A04B;
  
  --accent-gold: #D4AF37;
  --accent-gold-light: #FFF8E7;
  
  --bg-main: #FFFFFF;
  --bg-warm-light: #FDFBF7;
  --bg-card: #FFFFFF;
  --bg-subtle: #F4F1EA;
  
  --text-main: #1C2833;
  --text-muted: #566573;
  --text-light: #85929E;
  --text-white: #FFFFFF;
  
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5B;
  --whatsapp-dark: #128C7E;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 44, 89, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 44, 89, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 44, 89, 0.12);
  --shadow-warm: 0 12px 30px rgba(217, 93, 57, 0.15);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s ease-in-out;
  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-primary);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-navy-dark);
  line-height: 1.25;
  font-weight: 700;
}

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

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

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

/* Badge Styles */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background-color: var(--accent-gold-light);
  color: var(--primary-navy);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  background-color: var(--warm-terracotta);
  border-radius: 50%;
  display: inline-block;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--primary-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-info-item svg {
  width: 16px;
  height: 16px;
  fill: var(--warm-amber);
}

.top-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-social a {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.top-social a:hover {
  color: var(--warm-amber);
}

/* Header & Sticky Nav */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

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

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

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

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

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-navy);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--warm-terracotta);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--warm-terracotta);
}

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

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

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

.btn-primary {
  background-color: var(--warm-terracotta);
  color: var(--text-white);
  box-shadow: var(--shadow-warm);
}

.btn-primary:hover {
  background-color: var(--warm-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(217, 93, 57, 0.3);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline-navy:hover {
  background-color: var(--primary-navy);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(160deg, #FFFDF9 0%, #F5F0E8 100%);
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--primary-navy-dark);
  margin: 20px 0;
  letter-spacing: -0.02em;
}

.hero-title span.highlight {
  color: var(--warm-terracotta);
  position: relative;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 620px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust-bar {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(15, 44, 89, 0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.trust-item h4 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 8px solid rgba(255, 255, 255, 0.8);
}

.hero-image-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--bg-card);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid var(--warm-terracotta);
}

.badge-icon {
  width: 44px;
  height: 44px;
  background-color: #FFF2EE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-terracotta);
}

.badge-text strong {
  display: block;
  font-size: 1rem;
  color: var(--primary-navy);
}

.badge-text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-header .section-tag {
  color: var(--warm-terracotta);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-navy-dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Sectors Section (Staffing) */
.sectors-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.sector-card {
  background-color: var(--bg-warm-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 44, 89, 0.08);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 93, 57, 0.3);
}

.sector-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.sector-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.sector-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--primary-navy);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sector-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.sector-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary-navy);
}

.sector-content p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.sector-roles-list {
  list-style: none;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sector-roles-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--primary-navy-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.sector-roles-list li svg {
  width: 18px;
  height: 18px;
  fill: var(--warm-terracotta);
  flex-shrink: 0;
}

/* Services Section (Diagnosis & Evaluation) */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-subtle);
}

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

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 44, 89, 0.06);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--warm-amber);
}

.service-icon-header {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--primary-navy-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(15, 44, 89, 0.1);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.service-features li::before {
  content: '✓';
  color: var(--warm-terracotta);
  font-weight: 800;
}

/* Why FinFactor Section */
.why-section {
  padding: 100px 0;
  background-color: var(--primary-navy-dark);
  color: var(--text-white);
  position: relative;
}

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

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.why-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition-normal);
}

.why-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  border-color: var(--warm-amber);
}

.why-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--warm-amber);
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.why-card h3 {
  color: var(--text-white);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.why-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact & WhatsApp Form Section */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-warm-light);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--primary-navy);
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--bg-main);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 44, 89, 0.06);
  box-shadow: var(--shadow-sm);
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #FFF2EE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-terracotta);
  flex-shrink: 0;
}

.detail-text h4 {
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.detail-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Form Container */
.form-card {
  background-color: var(--bg-main);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 44, 89, 0.08);
}

.form-header {
  margin-bottom: 28px;
}

.form-header h3 {
  font-size: 1.6rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-navy-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E2E8F0;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--text-main);
  background-color: #FAFAFA;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--warm-terracotta);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(217, 93, 57, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: var(--whatsapp-green);
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-hover);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Footer */
.footer {
  background-color: var(--primary-navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  background-color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-title {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--warm-amber);
  padding-left: 4px;
}

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

/* Mobile Responsive */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-navy);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .hero-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sectors-grid, .services-grid, .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

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

  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

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