/* ============================================
   UbiGuia Landing - styles
   Paleta: azul #0175C2 (del manifest.json)
   ============================================ */

:root {
  --color-primary: #0175C2;
  --color-primary-dark: #025a96;
  --color-primary-light: #e6f2fa;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fb;
  --color-border: #e5e8eb;
  --color-footer-bg: #0f1b2d;
  --color-footer-text: #c9d2dc;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(1, 117, 194, 0.15);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand:hover {
  color: var(--color-primary);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-name {
  letter-spacing: -0.01em;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background: linear-gradient(135deg, #0175C2 0%, #025a96 100%);
  color: #fff;
  padding: 96px 0 112px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  margin: 0;
  opacity: 0.95;
}

/* ============================================
   Features
   ============================================ */

.features {
  padding: 88px 0;
  background: var(--color-bg-alt);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  text-align: center;
  margin: 0 0 56px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-title {
  font-size: 1.15rem;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--color-text);
}

.feature-text {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-text {
  margin: 0;
  font-size: 0.95rem;
}

.footer-text strong {
  color: #fff;
}

.site-footer a {
  color: #7fbef0;
}

.site-footer a:hover {
  color: #b5dbf5;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 80px;
  }

  .features {
    padding: 64px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .feature-card {
    padding: 26px 20px;
  }

  .brand-name {
    font-size: 1.05rem;
  }
}

/* Respetar usuarios con reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
