/* =========================================
   CHROMIND — Landing Page Styles
   ========================================= */

/* ---------- 1. Variables & Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #4f46e5;
  --color-primary-light: #818cf8;
  --color-primary-dark: #3730a3;
  --color-secondary: #6c757d;
  --color-accent: #06b6d4;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-light: #f8fafc;
  --color-dark: #0f172a;
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  --gradient-hero: linear-gradient(160deg, #f0f4ff 0%, #e8f4f8 50%, #faf5ff 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ---------- 2. Base Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: var(--color-dark);
  overflow-x: hidden;
}

/* ---------- 3. Navbar ---------- */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  transition: all 0.35s ease;
  border-bottom: 1px solid rgba(0,0,0,.04);
  z-index: 1030;
}

.brand-icon {
  font-size: 1.6rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}

.brand-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar .nav-link {
  color: #475569;
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  transition: color 0.25s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-primary);
}

.navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2.5px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.btn-login-patient {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  font-size: 0.88rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-login-patient:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-login-psych {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  font-size: 0.88rem;
  transition: all 0.25s;
}
.btn-login-psych:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- 4. Hero Section ---------- */
.hero-section {
  padding-top: 120px;
  padding-bottom: 80px;
  background: var(--gradient-hero);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79,70,229,.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.text-primary-chromind {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-chromind-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-chromind-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.btn-chromind-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary-light);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.25s;
}
.btn-chromind-outline:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

/* Hero Carousel */
.custom-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.custom-carousel .carousel-item img {
  height: 420px;
  object-fit: cover;
}

/* ---------- 5. Section: El Proyecto ---------- */
.section-project {
  background-color: #fff;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.5px;
}

.line-decorator {
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

/* Info Cards */
.info-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.icon-box-blue   { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.icon-box-green  { background: linear-gradient(135deg, #10b981, #34d399); }
.icon-box-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.icon-box-orange { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.project-features li span {
  font-size: 0.95rem;
  color: #475569;
}

/* ---------- 6. Section: Herramientas ---------- */
.bg-light-soft {
  background-color: #f8fafc;
}

.tracking-wide {
  letter-spacing: 2px;
}

.tool-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.15);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.tool-header i {
  font-size: 1.4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tool-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-dark);
}

.tool-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---------- 7. Footer ---------- */
footer {
  background: var(--color-dark);
  padding: 3.5rem 0 2rem;
  color: #94a3b8;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #94a3b8;
  font-size: 0.9rem;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  text-decoration: none;
}
.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ---------- 8. Responsive ---------- */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: auto;
  }
  .custom-carousel .carousel-item img {
    height: 280px;
  }
  .navbar .collapse {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .custom-carousel .carousel-item img {
    height: 200px;
  }
  .section-title {
    font-size: 1.6rem;
  }
}