:root {
  --color-navy: #0F1E36;
  --color-navy-dark: #070E1A;
  --color-blue-card: #1E6CB5;
  --color-blue-light: #EFF6FF;
  --color-orange: #FF5A1F;
  --color-orange-hover: #EA580C;
  --color-red-alert: #E02424;
  --color-bg-page: #F8FAFC;
  --color-white: #FFFFFF;
  --color-text-main: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(15, 30, 54, 0.12);
}

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

body {
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}

.site-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* =========================================================
   HEADER & NAVBAR
   ========================================================= */
.main-header {
  background-color: var(--color-navy);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge-white {
  background-color: var(--color-white);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

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

.header-brand-name {
  color: var(--color-white);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.header-brand-name span {
  color: var(--color-orange);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.desktop-nav a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--color-white);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  overflow: hidden;
  background-color: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-login {
  background-color: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-login:hover {
  background-color: #F1F5F9;
  transform: translateY(-1px);
}

/* =========================================================
   CONTENEDOR CENTRAL
   ========================================================= */
.content-wrapper {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
}

/* =========================================================
   HERO SHOWCASE (PRESENCIA PRINCIPAL)
   ========================================================= */
.hero-showcase {
  background: linear-gradient(135deg, var(--color-navy) 0%, #152A4A 100%);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
}

.hero-heading {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.highlight-bop {
  color: var(--color-orange);
}

.hero-tagline {
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.5;
  margin-top: 10px;
  max-width: 520px;
}

.hero-tagline strong {
  color: var(--color-white);
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-cta-hero {
  background-color: var(--color-orange);
  color: var(--color-white);
  font-weight: 800;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(255, 90, 31, 0.4);
  transition: all 0.2s ease;
}

.btn-cta-hero:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-1px);
}

.btn-ghost-hero {
  color: #CBD5E1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 16px;
}

.btn-ghost-hero:hover {
  color: var(--color-white);
}

.hero-visual-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-card-spotlight {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mascot-big-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.mascot-caption {
  text-align: center;
  font-size: 12px;
}

.mascot-caption strong {
  display: block;
  font-size: 14px;
  color: #FEF3C7;
}

.mascot-caption span {
  color: #94A3B8;
  font-size: 11px;
}

/* Carrusel solo móvil */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: -8px 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #CBD5E1;
}

.dot.active {
  background-color: var(--color-navy);
}

/* =========================================================
   SECCIÓN DE SERVICIOS
   ========================================================= */
.section-header {
  text-align: left;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-main);
}

.section-header p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.service-card.featured-service {
  border-color: #FCA5A5;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F5 100%);
}

.featured-ribbon {
  position: absolute;
  top: 10px;
  right: 12px;
  background-color: var(--color-red-alert);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
}

.bg-sensors { background-color: #EFF6FF; }
.bg-panic { background-color: #FEF2F2; }
.bg-seniors { background-color: #FFFBEB; }

.panic-btn-sphere {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #EF4444 60%, #B91C1C 100%);
  border: 2px solid #FECACA;
  box-shadow: 0 4px 8px rgba(185, 28, 28, 0.4);
}

.service-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.25;
}

.service-body p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.service-body .alert-text {
  color: #B91C1C;
  font-weight: 600;
}

.service-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  background-color: #F1F5F9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
}

.service-tag.tag-alert {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* =========================================================
   BANNER CTA INFERIOR
   ========================================================= */
.bottom-cta-banner {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.bottom-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bottom-cta-inner h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy);
}

.bottom-cta-inner p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.btn-cta {
  display: block;
  width: 100%;
  background-color: var(--color-orange);
  color: var(--color-white);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 8px 16px -2px rgba(255, 90, 31, 0.35);
  transition: all 0.2s ease;
}

.btn-cta:hover {
  background-color: var(--color-orange-hover);
}

/* Información de canales */
.info-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 10px 0;
}

.pwa-tag {
  font-size: 11px;
  font-weight: 800;
  background-color: #E2E8F0;
  padding: 3px 6px;
  border-radius: 4px;
}

.channels-copy {
  font-size: 12px;
  color: var(--color-text-muted);
  max-width: 380px;
  line-height: 1.35;
  text-align: center;
}

/* Navegación Móvil */
.mobile-nav {
  background-color: var(--color-navy);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #1E293B;
  z-index: 40;
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  gap: 2px;
  color: #94A3B8;
}

.mobile-tab.active {
  color: var(--color-orange);
  font-weight: 700;
}

.mobile-spacer {
  height: 65px;
}

.desktop-footer {
  display: none;
  background-color: var(--color-navy-dark);
  color: #94A3B8;
  padding: 24px 20px;
  margin-top: auto;
  border-top: 1px solid #1E293B;
}

.desktop-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-left strong {
  color: var(--color-white);
}

.footer-left span {
  display: block;
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}

/* =========================================================
   VISTA RESPONSIVA PARA ESCRITORIO (>= 768px)
   ========================================================= */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-nav,
  .mobile-spacer,
  .carousel-indicators {
    display: none;
  }

  .desktop-footer {
    display: block;
  }

  .content-wrapper {
    padding: 32px 20px;
    gap: 32px;
  }

  /* Hero amplio a 2 columnas */
  .hero-showcase {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    padding: 44px 50px;
    align-items: center;
    gap: 30px;
  }

  .hero-heading {
    font-size: 38px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .mascot-big-img {
    height: 180px;
  }

  .mascot-card-spotlight {
    padding: 24px 36px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .section-header p {
    font-size: 15px;
  }

  /* 3 Columnas para servicios */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .service-card {
    flex-direction: column;
    padding: 28px 24px;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .panic-btn-sphere {
    width: 44px;
    height: 44px;
  }

  .service-body h3 {
    font-size: 18px;
  }

  .bottom-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
  }

  .bottom-cta-inner h3 {
    font-size: 20px;
  }

  .bottom-cta-inner p {
    font-size: 14px;
  }

  .btn-cta {
    width: auto;
    min-width: 260px;
  }
}