/* ==========================================================================
   ROA OSCOS FIRMA LEGAL - HIGH-END LEGAL CORPORATE STYLESHEET
   Pure CSS Reset, Standalone Layout & Tailwind Fallback Protection
   ========================================================================== */

:root {
  --color-navy-950: #070e1c;
  --color-navy-900: #0c182e;
  --color-navy-800: #152442;
  --color-navy-700: #1f335b;
  --color-gold-300: #f5e4c6;
  --color-gold-400: #dfb77b;
  --color-gold-500: #c5a880;
  --color-gold-600: #9e7f55;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hard Reset & SVG Protection - PREVENTS GIGANTIC ICONS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-navy-950);
  color: #cbd5e1;
  overflow-x: hidden;
  line-height: 1.6;
}

/* CRITICAL: Never allow SVGs or images to overflow their containers */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Default colors for links */
a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  color: #ffffff;
}

.font-display {
  font-family: var(--font-display);
}

/* Custom Gradients & Accents */
.text-gradient-gold {
  background: linear-gradient(135deg, #fce8c5 0%, #dfb77b 50%, #b89158 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-gold {
  background: linear-gradient(135deg, #dfb77b 0%, #c5a880 50%, #ab8b5e 100%);
}

/* Fallback colors */
.bg-navy-950 { background-color: #070e1c !important; }
.bg-navy-900 { background-color: #0c182e !important; }
.bg-navy-800 { background-color: #152442 !important; }
.bg-navy-700 { background-color: #1f335b !important; }

.border-navy-800 { border-color: rgba(30, 49, 87, 0.8) !important; }
.border-navy-700 { border-color: rgba(43, 67, 114, 0.7) !important; }

.text-gold-300 { color: #f5e4c6 !important; }
.text-gold-400 { color: #dfb77b !important; }
.text-gold-500 { color: #c5a880 !important; }

.border-gold-500\/30 { border-color: rgba(197, 168, 128, 0.3) !important; }
.border-gold-500\/40 { border-color: rgba(197, 168, 128, 0.4) !important; }
.border-gold-500\/50 { border-color: rgba(197, 168, 128, 0.5) !important; }
.bg-gold-500\/10 { background-color: rgba(197, 168, 128, 0.1) !important; }
.bg-gold-500\/15 { background-color: rgba(197, 168, 128, 0.15) !important; }
.bg-gold-500\/20 { background-color: rgba(197, 168, 128, 0.2) !important; }

/* Navigation & Header */
#main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(7, 14, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 49, 87, 0.8);
}

#main-header.scrolled {
  background-color: rgba(7, 14, 28, 0.98);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(197, 168, 128, 0.3);
}

.nav-link {
  position: relative;
  padding-bottom: 0.25rem;
  transition: color 0.25s ease;
}

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

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

/* Hero Zoom Animation */
@keyframes subtleZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.animate-subtle-zoom {
  animation: subtleZoom 25s infinite alternate ease-in-out;
}

/* Feature Cards & Glassmorphism */
.feature-card {
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
}

.practice-card {
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(197, 168, 128, 0.15);
}

.client-logo-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(197, 168, 128, 0.4) !important;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.client-logo-card:hover {
  transform: translateY(-4px);
  border-color: #dfb77b !important;
  box-shadow: 0 8px 25px rgba(223, 183, 123, 0.35);
}

.client-logo-card img {
  filter: none !important;
  opacity: 0.95 !important;
}

/* Calculator / Cotizador Options */
.calc-option.selected {
  border-color: #dfb77b !important;
  background: rgba(197, 168, 128, 0.1) !important;
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.15);
}

.calc-urgency.selected {
  border-color: #dfb77b !important;
  background: rgba(197, 168, 128, 0.15) !important;
}

/* FAQ Accordion Transitions */
.faq-content {
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
}

/* Form Styles */
input, textarea, select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #dfb77b !important;
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

/* Floating WhatsApp Button constraints */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.5);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-wa-btn:hover {
  transform: scale(1.08);
  background-color: #059669;
}

.floating-wa-btn svg {
  width: 32px;
  height: 32px;
}

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

::-webkit-scrollbar-track {
  background: #070e1c;
}

::-webkit-scrollbar-thumb {
  background: #152442;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c5a880;
}
