@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --color-primary: #b80e00;
  --color-primary-container: #e31f0a;
  --color-on-primary: #ffffff;
  --color-secondary: #565e74;
  --color-surface: #f8f9fc;
  --color-background: #f8f9fc;
  --color-surface-lowest: #ffffff;
  --color-surface-variant: #e1e3e5;
  --color-on-surface: #191c1e;
  --color-on-surface-variant: #5e3f3a;
  --color-outline: #936e68;
  --color-outline-variant: #e8bdb5;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea {
  user-select: auto;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-background);
  color: var(--color-on-surface);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Ocultar barras de desplazamiento nativas en toda la app */
html, body, .app-view, * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.font-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Panels from Stitch */
.glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0px -10px 30px rgba(15, 23, 42, 0.06);
}

.glass-header {
  background: rgba(248, 249, 252, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

/* Ambient Background Blobs from Stitch */
.ambient-bg {
  background-color: var(--color-background);
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(184, 14, 0, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(227, 31, 10, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(86, 94, 116, 0.06) 0%, transparent 55%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-gradient {
  background: linear-gradient(to top, rgba(25, 28, 30, 0.92) 0%, rgba(25, 28, 30, 0.45) 50%, transparent 100%);
}

.premium-card {
  background-color: var(--color-surface-lowest);
  border: 1px solid rgba(225, 227, 229, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 12px 30px rgba(15, 23, 42, 0.06);
  border-color: rgba(184, 14, 0, 0.2);
}

/* Safe Area Insets for Mobile devices / notch */
.pt-safe {
  padding-top: max(env(safe-area-inset-top, 0px), 0.5rem);
}

.pb-safe {
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 1rem);
}

/* SPA View transitions */
.app-view {
  display: none !important;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-view.active {
  display: block !important;
  opacity: 1;
  animation: fadeInView 0.25s ease forwards;
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}

/* Material Symbols Outlined Icon Font */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}
