/* Estilos premium para Iglesia Casa en la Roca */

:root {
  --primary: #0369a1;
  --primary-light: #e0f2fe;
  --primary-dark: #075985;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-glass: rgba(255, 255, 255, 0.5);
}

/* Base Styles */
body {
  min-height: 100vh;
  position: relative;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8fafc;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
  filter: brightness(0.95) contrast(1.05);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(240, 249, 255, 0.6) 100%);
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Premium Button Styles */
.btn-primary,
.btn-secondary,
.btn-accent {
  padding: 0.875rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(3, 105, 161, 0.2), 0 2px 4px -1px rgba(3, 105, 161, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(3, 105, 161, 0.3);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--primary);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: white;
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2);
}

.btn-accent:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(217, 119, 6, 0.3);
  filter: brightness(1.1);
}

/* Glass Card Styles */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 2rem;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2.5rem;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.85);
}

/* Navigation Links */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

/* Gradients */
.gradient-warm {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
}

.gradient-warm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(3, 105, 161, 0.15), transparent 60%);
  pointer-events: none;
}

.gradient-soft {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.6) 100%);
  backdrop-filter: blur(8px);
}

/* Section Containers */
.section-container {
  max-width: 85rem;
  margin: 0 auto;
  padding: 6rem 2rem;
}

@media (max-width: 768px) {
  .section-container {
    padding: 4rem 1.5rem;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}

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

/* Micro-interactions */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Utilities */
.text-balance {
  text-wrap: balance;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.5rem;
}

/* Footer Improvements */
footer {
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}