/* High-End Corporate Aesthetics - Global Styles */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Outfit:wght@300;400;600;700&display=swap");

:root {
  /* Color Palette - Deep Navy / Charcoal & Muted Gold/Copper */
  --bg-body: #0a0e14 !important; /* Casi negro, muy profundo */
  --bg-surface: #11161d !important; /* Ligeramente más claro para tarjetas */
  --bg-surface-2: #1c232e !important; /* Interacciones */

  --text-primary: #e0e6ed !important; /* Blanco roto, no puro */
  --text-secondary: #94a3b8 !important; /* Gris azulado para textos secundarios */
  --text-muted: #64748b !important; /* Gris más oscuro para detalles */

  --accent-primary: #d4a373 !important; /* Dorado cobrizo apagado - Elegancia */
  --accent-secondary: #3b82f6 !important; /* Azul eléctrico muy corporativo, usado con moderación */
  --accent-glow: rgba(
    212,
    163,
    115,
    0.15
  ) !important; /* Glow del acento primario */

  --border-subtle: rgba(255, 255, 255, 0.08) !important;
  --border-focus: rgba(212, 163, 115, 0.5) !important;

  /* Typography */
  --font-heading: "Outfit", sans-serif !important;
  --font-body: "Manrope", sans-serif !important;

  /* Spacing & Radius */
  --radius-sm: 8px !important;
  --radius-md: 16px !important;
  --radius-lg: 24px !important;
  --radius-xl: 32px !important;
}

/* Reset & Scaffolding */
body {
  background-color: var(--bg-body) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading) !important;
  font-weight: 600;
  letter-spacing: -0.02em; /* Tight tracking for modern look */
  color: var(--text-primary) !important;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary) !important;
  font-size: 1.05rem; /* Ligeramente más grande para legibilidad */
}

a {
  color: var(--accent-primary) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #e9c496 !important;
  text-decoration: none;
}

/* --- Utility Classes Overrides (Bootstrap patches) --- */

.bg-light {
  background-color: var(--bg-surface) !important;
}

.text-muted {
  color: var(--text-secondary) !important;
}

.text-dark {
  color: var(--text-primary) !important;
}

.card {
  background-color: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  border-color: var(--border-focus) !important;
}

/* --- Added Utilities --- */
.bg-surface {
  background-color: var(--bg-surface) !important;
}

.bg-surface-2 {
  background-color: var(--bg-surface-2) !important;
}

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

/* --- Global Component Fixes --- */
.accordion-button {
  background-color: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--bg-surface-2) !important;
  color: var(--accent-primary) !important;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(350deg);
}

/* --- Custom Components --- */

/* Buttons */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    var(--bg-surface-2) 0%,
    var(--bg-surface) 100%
  );
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
  background: linear-gradient(
    135deg,
    var(--bg-surface-2) 0%,
    var(--bg-surface-2) 100%
  );
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-premium-accent {
  background: var(--accent-primary) !important;
  color: #000 !important;
  border: none;
}

.btn-premium-accent:hover {
  background: #e9c496 !important;
  color: #000 !important;
  box-shadow: 0 0 20px rgba(212, 163, 115, 0.4);
}

/* Navbar */
.navbar {
  background-color: rgba(10, 14, 20, 0.95) !important; /* Semi-transparent */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle) !important;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.nav-link {
  font-family: var(--font-heading) !important;
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0.5rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent-primary) !important;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Footer */
footer {
  background-color: #05070a !important; /* Even darker */
  border-top: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
}

footer a {
  color: var(--text-secondary) !important;
}

footer a:hover {
  color: var(--accent-primary) !important;
}

/* Sections */
section {
  position: relative;
  overflow: hidden;
}

/* Hero Elements */
.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  color: #fff !important;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin-left: 0;
  color: var(--text-secondary) !important;
}

/* Decoration */
.glow-spot {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.08) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* Text highlights */
.highlight-gold {
  color: var(--accent-primary) !important;
}

.highlight-blue {
  color: var(--accent-secondary) !important;
}

/* From Layout.astro */
.hover-accent:hover {
  color: var(--accent-primary) !important;
}

::placeholder {
  font-size: 0.85em;
  opacity: 0.8;
}
