/* NiroCare AI — Landing Page */

:root {
  --color-primary: #0d6e6e;
  --color-primary-dark: #0a5252;
  --color-primary-light: #e8f5f5;
  --color-accent: #f0a030;
  --color-text: #1a2b2b;
  --color-text-muted: #5a6e6e;
  --color-bg: #fafcfc;
  --color-white: #ffffff;
  --color-border: #d0e0e0;
  --shadow: 0 4px 24px rgba(13, 110, 110, 0.12);
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #14a3a3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  display: flex;
  background: var(--color-primary-light);
  border-radius: 8px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #14a3a3);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(160deg, var(--color-primary-light) 0%, var(--color-bg) 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-item span {
  color: var(--color-primary);
}

.hero-visual {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.status-card {
  text-align: center;
}

.status-card h3 {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.status-lights {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.status-light {
  text-align: center;
}

.light {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

.light-green { background: #22c55e; box-shadow: 0 0 20px rgba(34,197,94,0.4); }
.light-yellow { background: #eab308; box-shadow: 0 0 20px rgba(234,179,8,0.3); }
.light-red { background: #ef4444; box-shadow: 0 0 20px rgba(239,68,68,0.3); }

.status-light small {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.phone-mock {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.mock-btn {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  flex: 1;
  max-width: 140px;
}

.mock-sos {
  background: #ef4444;
  color: white;
}

.mock-ok {
  background: #22c55e;
  color: white;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Pricing */
.pricing {
  background: var(--color-primary-light);
}

.pricing-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--color-primary);
}

.pricing-badge {
  background: var(--color-accent);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.price span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.price-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-section .btn-primary {
  background: white;
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background: var(--color-primary-light);
}

/* Footer */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-brand {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Language visibility */
[lang="en"] { display: none; }
body.lang-en [lang="es"] { display: none; }
body.lang-en [lang="en"] { display: revert; }
body.lang-en .feature-card [lang="en"],
body.lang-en .step [lang="en"],
body.lang-en .pricing-card [lang="en"] { display: block; }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .header-inner .btn-outline {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
