:root {
  --color-primary: #3D4B36;
  --color-primary-hover: #2A3526;
  --color-secondary: #5A7051;
  --color-secondary-hover: #485A41;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-background: #f9fafb;
  --color-border: #e5e7eb;
  --color-white: #ffffff;
  --color-error: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Login Page Styles */
/* Splashscreen Styles */
.splashscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #2A3526, #3D4B36, #5A7051);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.splashscreen.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.splash-content {
  text-align: center;
  animation: splashFadeIn 1s ease-out;
}

.splash-logo {
  height: auto;
  width: auto;
  margin-bottom: 1.5rem;
  animation: logoFloat 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.splash-tagline {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: taglineGlow 2s ease-in-out infinite alternate;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloat {
  from {
    transform: translateY(0px) scale(1);
  }
  to {
    transform: translateY(-8px) scale(1.05);
  }
}

@keyframes taglineGlow {
  from {
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  to {
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  }
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.login-container {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #2A3526, #3D4B36, #5A7051);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container.show {
  opacity: 1;
  transform: scale(1);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  z-index: 10;
  transform: translateY(30px);
  opacity: 0;
  animation: cardMagicAppear 0.8s ease-out 0.3s forwards;
}

@keyframes cardMagicAppear {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95) rotateX(10deg);
    filter: blur(5px);
  }
  50% {
    opacity: 0.7;
    transform: translateY(15px) scale(0.98) rotateX(5deg);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0px);
  }
}

.aurora-effect {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 95vh;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
  background: 
    radial-gradient(ellipse 100% 70% at 20% 105%, rgba(161, 224, 127, 0.5) 0%, transparent 75%),
    radial-gradient(ellipse 80% 50% at 65% 95%, rgba(95, 124, 83, 0.4) 0%, transparent 80%),
    radial-gradient(ellipse 110% 60% at 85% 115%, rgba(48, 58, 43, 0.6) 0%, transparent 85%),
    radial-gradient(ellipse 90% 75% at 45% 125%, rgba(91, 141, 73, 0.8) 0%, transparent 80%),
    radial-gradient(ellipse 70% 45% at 30% 100%, rgba(61, 75, 56, 0.9) 0%, transparent 75%);
  filter: blur(45px) brightness(2) saturate(1.6);
  transform: translateY(8%) scale(1.8);
  animation: aurora-smooth 8s infinite ease-in-out;
}

.aurora-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 75% 55% at 55% 100%, rgba(105, 130, 95, 0.25) 0%, transparent 85%),
    radial-gradient(ellipse 60% 40% at 75% 110%, rgba(85, 105, 75, 0.8) 0%, transparent 80%);
  filter: blur(35px) brightness(1.2) saturate(1.3);
  animation: aurora-gentle 10s infinite ease-in-out reverse;
}

.aurora-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 85% 50% at 35% 105%, rgba(78, 98, 70, 0.2) 0%, transparent 90%),
    radial-gradient(ellipse 65% 35% at 70% 115%, rgba(65, 85, 58, 0.9) 0%, transparent 85%);
  filter: blur(40px) brightness(1.25) saturate(1.2);
  animation: aurora-subtle 12s infinite ease-in-out;
}

@keyframes aurora-smooth {
  0% {
    opacity: 0.8;
    filter: blur(45px) brightness(1.3) saturate(1.4);
    transform: translateY(8%) scale(1.2);
  }
  33% {
    opacity: 0.9;
    filter: blur(42px) brightness(1.35) saturate(1.5);
    transform: translateY(5%) scale(1.25);
  }
  66% {
    opacity: 0.85;
    filter: blur(48px) brightness(1.28) saturate(1.45);
    transform: translateY(6%) scale(1.22);
  }
  100% {
    opacity: 0.8;
    filter: blur(45px) brightness(1.3) saturate(1.4);
    transform: translateY(8%) scale(1.2);
  }
}

@keyframes aurora-gentle {
  0% {
    opacity: 0.4;
    filter: blur(35px) brightness(1.2) saturate(1.3);
    transform: translateX(-3%) scale(1.05);
  }
  50% {
    opacity: 0.6;
    filter: blur(32px) brightness(1.25) saturate(1.35);
    transform: translateX(2%) scale(1.1);
  }
  100% {
    opacity: 0.4;
    filter: blur(35px) brightness(1.2) saturate(1.3);
    transform: translateX(-3%) scale(1.05);
  }
}

@keyframes aurora-subtle {
  0% {
    opacity: 0.3;
    filter: blur(40px) brightness(1.25) saturate(1.2);
    transform: translateY(4%) translateX(1%) scale(1.03);
  }
  40% {
    opacity: 0.45;
    filter: blur(38px) brightness(1.28) saturate(1.25);
    transform: translateY(2%) translateX(-2%) scale(1.08);
  }
  80% {
    opacity: 0.35;
    filter: blur(42px) brightness(1.26) saturate(1.22);
    transform: translateY(3%) translateX(1.5%) scale(1.05);
  }
  100% {
    opacity: 0.3;
    filter: blur(40px) brightness(1.25) saturate(1.2);
    transform: translateY(4%) translateX(1%) scale(1.03);
  }
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.logo {
  height: auto;
  width: auto;
  margin-bottom: 0.75rem;
}

.tagline {
  background: linear-gradient(to right, #3D4B36, #5A7051);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.login-header .icon {
  width: 1rem;
  height: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.password-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.forgot-password {
  font-size: 0.75rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

.input-container {
  position: relative;
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-user-select: text;
}

input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(61, 75, 54, 0.1);
}

.input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
}

.error-message {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 3px solid var(--color-error);
  color: var(--color-error);
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.login-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(to right, #991F26, #B22A32);
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-button:hover {
  opacity: 0.9;
}

/* Dashboard Styles */
.dashboard {
  display: flex;
  height: 100vh;
  background-color: var(--color-background);
  position: relative;
}

.sidebar {
  width: 280px;
  background-color: white;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 40;
}

.sidebar-header {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-logo {
  height: 2rem;
  width: auto;
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav-item.active, .nav-item:hover {
  background-color: rgba(61, 75, 54, 0.1);
  color: var(--color-primary);
}

.nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  padding: 0;
  height: 100vh;
}

.main-content > * {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.main-content > .header {
  padding: 1rem 1.5rem;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.main-content > .welcome-card,
.main-content > .section-title,
.main-content > .promotion-slider,
.main-content > .card-grid,
.main-content > .quick-access,
.main-content > .text-center {
  margin-bottom: 1.5rem;
}

.main-content > .welcome-card:first-of-type {
  margin-top: 1.5rem;
}

.main-content > .quick-access:last-child {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  margin-right: 0.5rem;
  position: relative;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-button:hover {
  background: rgba(61, 75, 54, 0.1);
}

.menu-button svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

/* Ocultar el botón hamburguesa cuando el menú está activo */
.menu-button.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.header-actions {
  display: flex;
  align-items: center;
}

.notification-button {
  background: none;
  border: none;
  padding: 0.5rem;
  margin-right: 0.5rem;
  position: relative;
  cursor: pointer;
}

.notification-indicator {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--color-error);
  border-radius: 50%;
}

.notification-button svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text);
}

.user-dropdown {
  position: relative;
  cursor: pointer;
}

.user-dropdown-button {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
}

.user-dropdown-button svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.25rem;
  color: var(--color-text);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  display: none;
  z-index: 50;
}

.user-dropdown-menu.active {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: rgba(61, 75, 54, 0.1);
}

.welcome-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.welcome-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.welcome-subtitle {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.property-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
}

.property-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.property-card:hover::before {
  opacity: 1;
}

.property-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.property-card.bg-blue-50 {
  background: linear-gradient(145deg, 
    rgba(240, 247, 255, 0.9) 0%, 
    rgba(219, 234, 254, 0.6) 50%,
    rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.property-card.bg-green-50 {
  background: linear-gradient(145deg, 
    rgba(240, 255, 244, 0.9) 0%, 
    rgba(220, 252, 231, 0.6) 50%,
    rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.property-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.property-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.1) 50%, 
    transparent 100%);
}

.property-title {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  line-height: 1.3;
  flex: 1;
  margin-right: 1rem;
}

.property-title svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  color: var(--color-primary);
  background: rgba(61, 75, 54, 0.1);
  padding: 0.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.property-card:hover .property-title svg {
  background: var(--color-primary);
  color: white;
  transform: rotate(5deg) scale(1.1);
}

.property-tag {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(61, 75, 54, 0.3);
  position: relative;
  overflow: hidden;
}

.property-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  transition: left 0.5s ease;
}

.property-card:hover .property-tag::before {
  left: 100%;
}

.property-body {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.property-detail {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.75rem;
  position: relative;
}

.property-detail:hover {
  background: rgba(61, 75, 54, 0.05);
  transform: translateX(4px);
}

.property-detail svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  color: var(--color-primary);
  background: rgba(61, 75, 54, 0.1);
  padding: 0.25rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.property-detail:hover svg {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.property-detail strong {
  font-weight: 700;
  color: var(--color-text);
  margin-left: 0.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.warning-message {
  background: linear-gradient(135deg, 
    rgba(239, 68, 68, 0.1) 0%, 
    rgba(254, 202, 202, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 4px solid var(--color-error);
  color: var(--color-error);
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  margin: 1.5rem 0;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.warning-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 0%, 
    rgba(239, 68, 68, 0.05) 50%, 
    transparent 100%);
  animation: warning-pulse 2s infinite;
}

@keyframes warning-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.warning-message svg {
  margin-right: 0.5rem;
  filter: drop-shadow(0 1px 2px rgba(239, 68, 68, 0.3));
}

.property-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.action-button {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  transition: left 0.5s ease;
}

.action-button:hover::before {
  left: 100%;
}

.action-button.primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  flex: 1;
  box-shadow: 
    0 4px 12px rgba(61, 75, 54, 0.3),
    0 2px 4px rgba(61, 75, 54, 0.2);
}

.action-button.primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-secondary-hover));
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(61, 75, 54, 0.4),
    0 4px 8px rgba(61, 75, 54, 0.3);
}

.action-button.secondary {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  color: var(--color-text);
  border: 1px solid rgba(61, 75, 54, 0.2);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.action-button.secondary:hover {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: var(--color-primary);
}

.action-button svg {
  width: 1.125rem;
  height: 1.125rem;
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.action-button:hover svg {
  transform: scale(1.1);
}

/* Animación de entrada para las tarjetas */
@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.property-card {
  animation: cardSlideIn 0.6s ease-out;
  animation-fill-mode: both;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }

/* Indicadores de puntos para el slider */
.slide-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 30;
}

.slide-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator.active {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

.slide-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Efecto de overlay gradiente para mejor legibilidad */
.promotion-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.1) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Animación de entrada para el slider completo */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promotion-slider {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  height: 500px;
  animation: slideIn 0.6s ease-out;
}

.promotion-slides-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.promotion-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.promotion-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.promotion-slide.prev {
  transform: translateX(-100%);
  opacity: 0;
}

.promotion-slide.next {
  transform: translateX(100%);
  opacity: 0;
}

.promotion-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.promotion-slide:hover .promotion-image {
  transform: scale(1.02);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.8;
}

.slide-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.slide-arrow.prev {
  left: 1.5rem;
}

.slide-arrow.next {
  right: 1.5rem;
}

.slide-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.slide-arrow:hover svg {
  color: var(--color-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .menu-button {
    display: block;
  }
  
  /* Botón de cerrar cuando el menú está activo */
  .close-menu-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .close-menu-button.active {
    display: flex;
    animation: slideInFromRight 0.3s ease-out;
  }
  
  .close-menu-button:hover {
    background: rgba(255, 255, 255, 1);
  }
  
  .close-menu-button svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-text);
  }
  
  .close-menu-button:hover svg {
    color: var(--color-primary);
  }
  
  @keyframes slideInFromRight {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Overlay para oscurecer y difuminar el fondo */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .property-card {
    margin-bottom: 1rem;
  }
  
  .property-header {
    padding: 1rem;
  }
  
  .property-body {
    padding: 0 1rem;
  }
  
  .property-title {
    font-size: 1rem;
  }
  
  .property-actions {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .action-button.secondary {
    padding: 0.5rem 1rem;
  }
  
  .action-button.primary {
    padding: 0.5rem 1rem;
  }
  
  .quick-access {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0 -0.5rem;
  }
  
  .quick-access-item {
    padding: 1rem 0.75rem;
  }
  
  .quick-access-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .promotion-slider {
    height: 320px;
    margin: 0 -0.5rem 2rem -0.5rem;
  }
  
  .slide-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .slide-arrow.prev {
    left: 1rem;
  }
  
  .slide-arrow.next {
    right: 1rem;
  }
  
  .slide-indicators {
    bottom: 1rem;
  }
}

.quick-access-item {
  background: linear-gradient(145deg, #f9f4ed88 0%, #f8f2e998 100%);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  box-shadow: 
    0 4px 5px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quick-access-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.quick-access-item:hover::before {
  left: 100%;
}

.quick-access-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08);
}

.quick-access-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quick-access-item:hover .quick-access-icon {
  transform: scale(1.1) rotate(5deg);
}

.quick-access-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-access-item:hover .quick-access-icon::after {
  opacity: 1;
}

.quick-access-label {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-access-item:hover .quick-access-label {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.quick-access-icon.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.quick-access-icon.green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.quick-access-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.quick-access-icon.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.quick-access-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

.quick-access-item:hover .quick-access-icon svg {
  transform: scale(1.1);
}

/* Lot Details Page */
.details-container {
  max-width: 900px;
  margin: 0 auto;
}

.lot-selector {
  margin-bottom: 1.5rem;
}

.selector-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.select-wrapper {
  position: relative;
}

.lot-select {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-right: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  appearance: none;
  font-size: 0.875rem;
  color: var(--color-text);
  background-color: white;
}

.select-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.select-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-text-light);
}

.selected-lot {
  background-color: rgba(61, 75, 54, 0.1);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.account-statement {
  margin-bottom: 2rem;
}

.statement-header {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.payment-list {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.payment-item {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-info {
  flex: 1;
}

.payment-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.payment-status.overdue {
  color: var(--color-error);
}

.payment-status.pending {
  color: #8a9077;
}

.payment-status svg {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.25rem;
}

.payment-amount {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.payment-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

.upload-button {
  background-color: #3D4B36;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}

.upload-button:hover {
  background-color: #2A3526;
}

.upload-button svg {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.375rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
}

.section-title svg {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

/* Deshabilitar scroll elástico/bounce en iOS para comportamiento nativo */
html, body {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

/* Contenedor principal con scroll controlado */
.app-container {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

/* Prevenir zoom en inputs en iOS */
input, textarea, select {
  font-size: 16px;
  -webkit-user-select: text;
}

/* Permitir selección en inputs y elementos de texto */
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Estilos para promociones sin imagen en el slider */
.promotion-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.promotion-no-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.promotion-content-centered {
  text-align: center;
  color: white;
  z-index: 2;
  position: relative;
  padding: 2rem;
}

.promotion-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.promotion-content-centered .promotion-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promotion-content-centered .promotion-description {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  line-height: 1.4;
}

.promotion-content-centered .promotion-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mejorar la imagen de promociones con imagen */
.promotion-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Mejorar el overlay de promociones con imagen */
.promotion-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 0 0 12px 12px;
}

.promotion-content .promotion-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.promotion-content .promotion-description {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  line-height: 1.4;
}

.promotion-content .promotion-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

/* Mejorar la transición del slider */
.promotion-slide {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.promotion-slide:hover {
  transform: scale(1.02);
}

/* Responsive para el contenido de promociones */
@media (max-width: 768px) {
  .promotion-content-centered {
    padding: 1.5rem;
  }
  
  .promotion-icon {
    font-size: 2.5rem;
  }
  
  .promotion-content-centered .promotion-title {
    font-size: 1.3rem;
  }
  
  .promotion-content-centered .promotion-description {
    font-size: 0.9rem;
  }
  
  .promotion-overlay {
    padding: 1.5rem 1rem 1rem;
  }
  
  .promotion-content .promotion-title {
    font-size: 1.1rem;
  }
  
  .promotion-content .promotion-description {
    font-size: 0.8rem;
  }
}

/* Placeholder de carga para promociones */
.promotion-loading-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.promotion-loading-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.promotion-loading-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.promotion-loading-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.promotion-loading-text {
  color: #64748b;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.promotion-loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.promotion-loading-dots .dot {
  width: 8px;
  height: 8px;
  background: #64748b;
  border-radius: 50%;
  animation: dotPulse 1.4s infinite ease-in-out both;
}

.promotion-loading-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.promotion-loading-dots .dot:nth-child(2) { animation-delay: -0.16s; }
.promotion-loading-dots .dot:nth-child(3) { animation-delay: 0s; }

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive para el placeholder */
@media (max-width: 768px) {
  .promotion-loading-placeholder {
    min-height: 160px;
  }
  
  .promotion-loading-icon {
    font-size: 2.5rem;
  }
  
  .promotion-loading-text {
    font-size: 1rem;
  }
} 