/* Base variables */
:root {
  --bg-base: #050505;
  --bg-surface: rgba(20, 20, 20, 0.4);
  --bg-surface-hover: rgba(30, 30, 30, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  
  /* Base Ocean Blue */
  --accent-rgb: 0, 142, 204;
  --accent: rgb(var(--accent-rgb));
  --accent-glow: rgba(var(--accent-rgb), 0.15);
  --accent-secondary: #06b6d4; /* Cyan */
  
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.8s ease;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3Cfilter id='shadow' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='0' dy='2' stdDeviation='1.5' flood-color='rgba(0,0,0,0.4)'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M4.5 2.5 L4.5 21.5 L9.5 17 L13.5 25 L16.5 23.5 L12.5 15.5 L18.5 15.5 Z' fill='black' stroke='white' stroke-width='1.5' stroke-linejoin='round' filter='url(%23shadow)'/%3E%3C/svg%3E") 4 2, auto;
}

/* Page specific backgrounds (Sober, low contrast) */
body.page-index {
  --bg-base: #03080c;
  background-color: var(--bg-base);
}

body.page-auditoria {
  /* Subtle dark emerald/teal atmosphere */
  --bg-base: #020b08; 
  --accent-rgb: 16, 185, 129; /* Emerald Green */
  --accent-secondary: #0ea5e9; /* Sky Blue */
  background-color: var(--bg-base);
}

body.page-adopcion {
  /* Subtle dark purple atmosphere */
  --bg-base: #051010;
  --accent-rgb: 168, 125, 247; /* Purple */
  --accent-secondary: #ec4899; /* Pink */
  background-color: var(--bg-base);
}

body.page-about {
  /* Subtle dark amber atmosphere */
  --bg-base: #08040f;
  --accent-rgb: 234, 79, 138; /* Gold / Amber */
  --accent-secondary: #9e16f9; /* Orange */
  background-color: var(--bg-base);
}

p {
  text-align: justify;
}

/* Background Cartographic Grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  z-index: 0;
  pointer-events: none;
}



.content-wrapper {
  z-index: 1;
}

/* Typography Utilities */
.font-mono { font-family: 'JetBrains Mono', monospace; }
.tracking-wide { letter-spacing: 0.05em; }
.text-accent { color: var(--accent) !important; }
.text-white { color: var(--text-main) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Custom Badge */
.custom-badge {
  background: rgba(var(--accent-rgb), 0.05);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

/* Card Icons */
.glass-card i {
  background: -webkit-linear-gradient(45deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Primary Button */
.btn-primary-custom {
  background: rgba(var(--accent-rgb), 0.05);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.btn-primary-custom:hover {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
}

.btn-primary-custom i {
  transition: transform 0.3s ease;
}

.btn-primary-custom:hover i {
  transform: translateX(5px);
}

/* Feature Lists */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.feature-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Sections */
.section-divider {
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, transparent 100%);
  position: relative;
  z-index: 1;
}

/* Stat Typography */
.stat-value {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-value.accent {
  background: linear-gradient(to right, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-value.danger {
  background: linear-gradient(to right, #ff4d4d, #ff9999);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hover-accent:hover {
  color: var(--accent) !important;
}

.active-link {
  color: var(--accent) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Placeholder de Imágenes Estándar (4:3), la imagen debe de estar contenida en este div y tener la propiedad object-fit-cover*/
.img-placeholder-4-3 {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.img-placeholder-4-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  background: rgba(var(--accent-rgb), 0.15);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2);
  transform: translateY(-5px);
  color: var(--text-main);
}
