/* ============================================
   CampoSanto.online — Custom Styles
   Premium memorial platform
   ============================================ */

/* CSS Variables */
:root {
  --gold-primary: #C8A03E;
  --gold-light: #E8C95A;
  --gold-dark: #9A7B2F;
  --gold-gradient-start: #E8C95A;
  --gold-gradient-end: #9A7B2F;
  --bg-dark: #1A1A2E;
  --bg-darker: #12121F;
  --bg-card: #222238;
  --bg-light: #FAFAF8;
  --bg-cream: #F5F0E8;
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8CC;
  --text-dark: #2D2D3A;
  --text-muted: #8888AA;
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  --info: #2196F3;
  --shadow-gold: 0 0 20px rgba(200, 160, 62, 0.3);
  --glow-candle: 0 0 30px rgba(255, 180, 50, 0.6);
}

/* Base */
body {
  font-family: 'Inter', 'Source Sans Pro', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Playfair Display', 'Georgia', serif;
}

.font-accent {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

/* Gold gradient text */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-gradient-start), var(--gold-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold gradient backgrounds */
.bg-gold-gradient {
  background: linear-gradient(135deg, var(--gold-gradient-start), var(--gold-gradient-end));
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn-gold-outline {
  border: 2px solid var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.btn-gold-outline:hover {
  background: var(--gold-primary);
  color: #fff;
}

/* Cards */
.card-dark {
  background-color: var(--bg-card);
  border: 1px solid rgba(200, 160, 62, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.card-dark:hover {
  border-color: rgba(200, 160, 62, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Pricing card highlighted */
/* pricing-featured moved to Tailwind classes */

/* Badge Popular se maneja en HTML, no en CSS */

/* Candle animation */
@keyframes flicker {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  25% { opacity: 0.9; transform: scaleY(1.02) rotate(0.5deg); }
  50% { opacity: 1; transform: scaleY(0.98) rotate(-0.5deg); }
  75% { opacity: 0.95; transform: scaleY(1.01) rotate(0.3deg); }
}

.candle-flame {
  width: 12px;
  height: 20px;
  background: radial-gradient(ellipse at bottom, #FFD700 0%, #FF8C00 40%, #FF4500 70%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 2s ease-in-out infinite;
  filter: blur(0.5px);
  position: relative;
}

.candle-flame::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 180, 50, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  animation: flicker 3s ease-in-out infinite reverse;
  filter: blur(8px);
}

.candle-glow {
  box-shadow: var(--glow-candle);
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { box-shadow: 0 0 20px rgba(255, 180, 50, 0.4); }
  100% { box-shadow: 0 0 40px rgba(255, 180, 50, 0.7); }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Section transitions */
.section-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative divider */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  border: none;
  margin: 3rem auto;
  max-width: 200px;
}

/* FAQ Accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding-top: 1rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Responsive fixes */
@media (max-width: 768px) {
  /* pricing-featured removed */
}

/* Gold line animation */
.gold-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  border-radius: 2px;
  margin: 1rem auto;
}

/* Number step circle */
.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #fff;
  font-family: 'Playfair Display', serif;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid rgba(200, 160, 62, 0.2);
  padding: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

/* Particle effect container */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Loading animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(200, 160, 62, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ============================================
   Navbar — Liquid Glass (Apple-style)
   ============================================ */
#navbar {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}

.navbar-scrolled {
    background: rgba(10, 10, 20, 0.55) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(200, 160, 62, 0.08) !important;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.03) inset,
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Subtle gold shimmer on the bottom edge */
.navbar-scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 160, 62, 0.15) 20%,
        rgba(200, 160, 62, 0.3) 50%,
        rgba(200, 160, 62, 0.15) 80%,
        transparent 100%
    );
    pointer-events: none;
}
