/* Estilos Generales y Phone Frame Simulator */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #E5252A;
  --primary-dark: #C61A1E;
  --primary-light: #FF5A5F;
  --secondary: #FFB703;
  --secondary-dark: #FB8500;
  --dark-bg: #121316;
  --dark-card: #1B1D22;
  --dark-border: #2A2E37;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Teléfono iPhone Mockup */
.iphone-frame {
  width: 390px;
  height: 844px;
  background: #000000;
  border-radius: 52px;
  padding: 12px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 3px #2d3036,
    inset 0 0 0 5px #151618;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.iphone-screen {
  flex: 1;
  background: #FFFFFF;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.iphone-screen.dark {
  background: var(--dark-bg);
  color: #FFFFFF;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #000000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.island-camera {
  width: 10px;
  height: 10px;
  background: #0a0e1a;
  border-radius: 50%;
  border: 1px solid #1a2238;
}

.island-sensor {
  width: 8px;
  height: 8px;
  background: #0d1117;
  border-radius: 50%;
}

/* Barra de estado superior de iPhone */
.phone-status-bar {
  height: 48px;
  padding: 12px 24px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  z-index: 90;
  letter-spacing: -0.2px;
}

/* Home Indicator */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 135px;
  height: 5px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  z-index: 100;
  pointer-events: none;
}

.dark .home-indicator {
  background: rgba(255, 255, 255, 0.35);
}

/* Hide scrollbars */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Pulse animation */
@keyframes pulse-subtle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Badge glow */
.badge-glow-red {
  box-shadow: 0 0 15px rgba(229, 37, 42, 0.45);
}

/* Leaflet container */
.leaflet-container {
  font-family: inherit !important;
}

/* Screen transition */
.screen-fade {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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