/* ============================================
   COGNITIVA INTEGRAL - Custom Styles
   Pure CSS (no Tailwind build required)
   ============================================ */

:root {
  --navy: #0F172A;
  --teal: #0EA5E9;
  --teal-dark: #0284C7;
  --accent: #10B981;
  --accent-dark: #059669;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --slate: #64748B;
  --slate-light: #94A3B8;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #334155;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  color: white;
  background-color: var(--accent);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  color: white;
  background-color: var(--teal);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover {
  color: white;
  background-color: var(--teal);
  transform: translateY(-2px);
}

/* Card */
.card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Section helpers */
.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 48rem;
}

/* Top bar */
.top-bar {
  font-size: 0.875rem;
  padding: 0.5rem 0;
  background-color: var(--navy);
  color: white;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A5F 50%, #164E63 100%);
}

/* Service icon */
.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(6, 182, 212, 0.1));
  color: var(--teal);
}

/* Process step */
.process-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.process-step::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 3.5rem;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--teal), transparent);
}
.process-step:last-child::before {
  display: none;
}

/* Testimonial card */
.testimonial-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Blog card */
.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.blog-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Form input */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  outline: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}
.form-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(14, 165, 233, 0.1);
  color: var(--teal);
}

/* Footer */
.footer {
  padding: 3rem 0;
  background-color: var(--navy);
  color: white;
}

/* ============================================
   MOBILE MENU - Works without Tailwind build
   ============================================ */

/* Mobile menu overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile menu panel (slides from right) */
.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 320px;
  max-width: 85vw;
  background: white;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-panel.active {
  transform: translateX(0);
}

/* Text color helpers */
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal); }
.text-accent { color: var(--accent); }
.bg-navy { background-color: var(--navy); }
.bg-teal { background-color: var(--teal); }
.bg-accent { background-color: var(--accent); }
.bg-light { background-color: var(--bg-light); }
.border-teal { border-color: var(--teal); }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Validation error */
.field-error {
  border-color: #f87171 !important;
}
