/* ==========================================================================
   FITZSIMONS ESTUDIO JURÍDICO - HUMAN EDITORIAL STYLES
   Minimalist Luxury Navy & Subtle Gold
   ========================================================================== */

/* Custom Variables */
:root {
  --navy-dark: #071120;
  --navy-main: #0b192c;
  --navy-light: #15253b;
  --navy-card: #112240;
  --gold-primary: #c5a059;
  --gold-light: #e6c88b;
  --gold-dark: #a37f37;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-light: #e2e8f0;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
}

/* Custom Selection */
::selection {
  background-color: var(--gold-primary);
  color: var(--navy-dark);
}

/* Fullscreen Hero Statue Background Cover */
.hero-statue-bg {
  position: relative;
  background-image: url('../images/hero_statue.jpg');
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

.hero-statue-overlay {
  background: linear-gradient(
    90deg,
    rgba(7, 17, 32, 0.96) 0%,
    rgba(7, 17, 32, 0.86) 42%,
    rgba(7, 17, 32, 0.45) 72%,
    rgba(7, 17, 32, 0.20) 100%
  );
}

@media (max-width: 768px) {
  .hero-statue-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 17, 32, 0.95) 0%,
      rgba(7, 17, 32, 0.88) 100%
    );
  }
}

/* Transparent Header Top, Glass on Scroll */
.header-transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-transparent.scrolled {
  background-color: rgba(7, 17, 32, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(197, 160, 89, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Hero Button Custom Styles */
.btn-hero-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(135deg, #e6c88b 0%, #c5a059 50%, #a37f37 100%);
  color: #071120;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.5);
  color: #071120;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(197, 160, 89, 0.4);
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.2);
}

/* Fixed Parallax Background Section */
.parallax-section {
  position: relative;
  background-image: url('../images/parallax_bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@supports (-webkit-touch-callout: none) {
  .parallax-section {
    background-attachment: scroll;
  }
}

.parallax-overlay {
  background: linear-gradient(180deg, rgba(7, 17, 32, 0.90) 0%, rgba(11, 25, 44, 0.94) 100%);
}

/* Editorial Area Card */
.area-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2.25rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px -10px rgba(11, 25, 44, 0.08), 0 0 1px rgba(197, 160, 89, 0.5);
  border-color: rgba(197, 160, 89, 0.5);
}

.area-icon-container {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(11, 25, 44, 0.04);
  color: var(--navy-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(11, 25, 44, 0.08);
}

.area-card:hover .area-icon-container {
  background: var(--navy-main);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: pulse-ring 2.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--navy-main);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(197, 160, 89, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 72px;
}

/* Developer Footer Link Styling (Strict User Constraint) */
.developer-credit {
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}

.developer-credit:hover {
  color: #ffffff;
  background: var(--gold-primary);
  transform: translateY(-1px);
}

.developer-credit:focus, .developer-credit:active {
  text-decoration: none !important;
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Menu Animation */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
