/* ==========================================================================
   Prestige Horizon Design System - Stylesheet
   Project: DR Administramos
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  /* Colors */
  --bg-color: #131313;
  --text-color: #e5e2e1;
  --text-muted: #d0c5af;
  
  --primary: #f2ca50; /* Metallic Gold */
  --primary-rgb: 242, 202, 80;
  --primary-container: #d4af37;
  --on-primary: #3c2f00;
  
  --secondary: #d7c4a6; /* Champagne Gold / Borders */
  --secondary-rgb: 215, 196, 166;
  --secondary-container: #554730;
  --on-secondary: #3a2f19;
  
  --surface: #131313;
  --surface-dim: #131313;
  --surface-bright: #3a3939;
  --surface-container-lowest: #0e0e0e;
  --surface-container-low: #1c1b1b;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --surface-container-highest: #353534;
  
  --outline: #99907c;
  --outline-variant: rgba(77, 70, 53, 0.4);
  
  /* Font Family */
  --font-family: 'Hanken Grotesk', sans-serif;
  
  /* Border Radii */
  --radius-sm: 0.125rem;
  --radius-default: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
  
  /* Spacing & Layout */
  --spacing-unit: 8px;
  --container-max: 1280px;
}

/* ==========================================================================
   Base Elements & Overrides
   ========================================================================== */

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Compensación de espacio para cabecera más alta */
.pt-header-compensated {
  padding-top: 136px !important;
}

/* Sobrescribir colores de Bootstrap para evitar azul y textos oscuros */
.text-primary {
  color: var(--primary) !important;
}

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

.text-muted,
.text-body-secondary {
  color: rgba(229, 226, 225, 0.8) !important; /* Aclarado para mejorar contraste sobre fondo oscuro */
}

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

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

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

a:hover {
  color: var(--secondary);
}

/* Material Symbols Integration */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display-inline: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   Typography Classes (Prestige Horizon Specifications)
   ========================================================================== */

.font-display-lg {
  font-family: var(--font-family);
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.font-headline-lg {
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: 0.02em;
}

.font-headline-md {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.font-body-lg {
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.font-body-md {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.font-label-sm {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
  .font-display-lg {
    font-size: 34px;
    line-height: 42px;
  }
  .font-headline-lg {
    font-size: 26px;
    line-height: 32px;
  }
  .font-headline-md {
    font-size: 20px;
    line-height: 28px;
  }
}

/* ==========================================================================
   Premium UI Components (Prestige Horizon Theme)
   ========================================================================== */

/* Navigation Bar Glassmorphism */
.premium-navbar {
  background-color: rgba(19, 19, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline-variant);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-navbar.scrolled {
  background-color: rgba(14, 14, 14, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(242, 202, 80, 0.15);
}

.nav-link-premium {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  transition: all 0.25s ease;
  position: relative;
  padding: 0.5rem 0.75rem;
}

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

.nav-link-premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.nav-link-premium.active::after,
.nav-link-premium:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Premium Card Layouts */
.premium-card {
  background-color: var(--surface-container-low);
  border: 1px solid rgba(215, 196, 166, 0.15); /* Champagne gold at low opacity */
  border-radius: var(--radius-default);
  padding: 24px;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.premium-card:hover {
  border-color: rgba(242, 202, 80, 0.5); /* Primary Gold on hover */
  box-shadow: 0 10px 30px rgba(242, 202, 80, 0.05);
  transform: translateY(-4px);
}

/* Specific cards can have custom colors and borders */
.premium-card.accent-border {
  border-top: 2px solid var(--primary);
}

.premium-card-lowest {
  background-color: var(--surface-container-lowest);
}

/* Premium Buttons */
.btn-premium-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-default);
  padding: 12px 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(242, 202, 80, 0.15);
}

.btn-premium-primary:hover {
  background-color: var(--primary-container);
  color: var(--on-primary);
  box-shadow: 0 6px 20px rgba(242, 202, 80, 0.3);
  transform: translateY(-2px);
}

.btn-premium-primary:active {
  transform: translateY(0);
}

.btn-premium-secondary {
  background-color: transparent;
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--secondary);
  border-radius: var(--radius-default);
  padding: 12px 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-secondary:hover {
  background-color: rgba(215, 196, 166, 0.1);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* WhatsApp Button */
.btn-whatsapp {
  background-color: var(--surface-container-low); /* Mismo fondo que las tarjetas */
  color: var(--primary); /* Texto en dorado metálico */
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(215, 196, 166, 0.15); /* Mismo borde champagne que las tarjetas */
  border-radius: var(--radius-default);
  padding: 12px 24px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background-color: var(--surface-container-high);
  color: var(--primary);
  border-color: rgba(242, 202, 80, 0.5); /* Borde dorado al pasar el cursor */
  box-shadow: 0 4px 14px rgba(242, 202, 80, 0.05);
  transform: translateY(-2px);
}

/* Premium Inputs */
.premium-form-group {
  margin-bottom: 24px;
  position: relative;
}

.premium-form-label {
  display: block;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.premium-input,
.premium-select,
.premium-textarea {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--outline);
  color: var(--text-color);
  font-family: var(--font-family);
  font-size: 16px;
  padding: 8px 0;
  border-radius: 0;
  transition: border-bottom-color 0.25s ease;
}

.premium-input:focus,
.premium-select:focus,
.premium-textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.premium-input::placeholder,
.premium-textarea::placeholder {
  color: rgba(229, 226, 225, 0.4);
}

/* Select option Styling */
.premium-select option {
  background-color: var(--surface-container-lowest);
  color: var(--text-color);
}

/* Premium Decorative Elements */
.corner-border-container {
  position: relative;
}

.corner-border-t-l,
.corner-border-t-r,
.corner-border-b-r {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--primary);
  border-style: solid;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.corner-border-t-l {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}

.corner-border-t-r {
  top: 8px;
  right: 8px;
  border-width: 2px 2px 0 0;
}

.corner-border-b-r {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
}

.premium-card:hover .corner-border-t-l,
.premium-card:hover .corner-border-t-r,
.premium-card:hover .corner-border-b-r {
  opacity: 0.8;
}

/* Gold Glowing Hover Effect for Primary Sections */
.gold-glow-hover {
  transition: all 0.3s ease;
}

.gold-glow-hover:hover {
  box-shadow: 0 0 20px rgba(242, 202, 80, 0.1);
}

/* Footer Styles */
.premium-footer {
  background-color: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
  color: var(--text-muted);
}

.footer-title {
  color: var(--primary);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-link {
  font-family: var(--font-family);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--primary);
}

/* Responsive grid padding helper */
.px-margin-desktop {
  padding-left: 64px;
  padding-right: 64px;
}

@media (max-width: 768px) {
  .px-margin-desktop {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Mobile Navigation Hamburger Menu */
.navbar-toggler-premium {
  border: none;
  background: transparent;
  color: var(--primary);
  padding: 8px;
}

.navbar-toggler-premium:focus {
  outline: none;
  box-shadow: none;
}

/* Custom layout helpers */
.min-h-screen-layout {
  min-height: calc(100vh - 200px);
}
