/* ==============================================
   MINIMAL PROFESSIONAL WEBSITE STYLES
   Bootstrap 5 Complementary CSS
   Spanish Language | No Animations | Readability Focus
   ============================================== */

/* CSS Custom Properties */
:root {
  /* User-specified color palette */
  --primary-color: #2c5aa0;
  --secondary-color: #f8f9fa;
  --background-color: #ffffff;
  --footer-bg-color: #343a40;
  --button-color: #2c5aa0;
  --section-bg-1: #ffffff;
  --section-bg-2: #f8f9fa;
  --section-bg-3: #ffffff;
  --section-bg-4: #f8f9fa;
  
  /* Typography */
  --font-family-primary: 'Source Sans Pro', Arial, sans-serif;
  --font-size-base: 1.125rem;
  --line-height-base: 1.6;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Container */
  --max-container-width: 1200px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Border radius */
  --border-radius-sm: 0.125rem;
  --border-radius-md: 0.25rem;
  --border-radius-lg: 0.375rem;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-normal);
  background-color: var(--background-color);
  color: #333;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Enhancements (complementing Bootstrap) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  color: #2d3748;
  margin-bottom: var(--spacing-lg);
}

h1 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
}

h4 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
}

h5 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--spacing-lg);
  color: #4a5568;
  font-weight: var(--font-weight-normal);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}

/* Container Customizations */
.custom-container {
  max-width: var(--max-container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-fluid {
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Section Styling (complementing Bootstrap) */
.section-light {
  background-color: var(--section-bg-1);
  padding: var(--spacing-xxl) 0;
}

.section-dark {
  background-color: var(--section-bg-2);
  padding: var(--spacing-xxl) 0;
}

.section-white {
  background-color: var(--section-bg-3);
  padding: var(--spacing-xxl) 0;
}

.section-alt {
  background-color: var(--section-bg-4);
  padding: var(--spacing-xxl) 0;
}

/* Button Enhancements (complementing Bootstrap .btn) */
.btn-primary-custom {
  background-color: var(--button-color);
  border-color: var(--button-color);
  color: white;
  font-weight: var(--font-weight-medium);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-md);
  transition: all 0.15s ease-in-out;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: #1e3d6b;
  border-color: #1e3d6b;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Card Enhancements (complementing Bootstrap .card) */
.card-custom {
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease-in-out;
  background-color: white;
}

.card-custom:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header-custom {
  background-color: var(--secondary-color);
  border-bottom: 1px solid #e2e8f0;
  padding: var(--spacing-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--primary-color);
}

.card-body-custom {
  padding: var(--spacing-xl);
}

.card-footer-custom {
  background-color: #f7fafc;
  border-top: 1px solid #e2e8f0;
  padding: var(--spacing-lg);
  font-weight: var(--font-weight-medium);
}

/* Header Enhancements */
.navbar-custom {
  background-color: white;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) 0;
}

.navbar-brand-custom {
  font-weight: var(--font-weight-bold);
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

.nav-link-custom {
  font-weight: var(--font-weight-medium);
  color: #4a5568 !important;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  border-radius: var(--border-radius-sm);
  transition: all 0.15s ease-in-out;
}

.nav-link-custom:hover,
.nav-link-custom:focus {
  background-color: var(--secondary-color);
  color: var(--primary-color) !important;
}

/* Footer Styling */
.footer-custom {
  background-color: var(--footer-bg-color);
  color: white;
  padding: var(--spacing-xxl) 0 var(--spacing-xl) 0;
}

.footer-title {
  font-weight: var(--font-weight-semibold);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  color: white;
}

.footer-link {
  color: #cbd5e0;
  text-decoration: none;
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-normal);
}

.footer-link:hover {
  color: white;
  text-decoration: underline;
}

.footer-text {
  color: #a0aec0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Form Enhancements (complementing Bootstrap .form-control) */
.form-control-custom {
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  font-family: var(--font-family-primary);
  background-color: white;
  transition: border-color 0.15s ease-in-out;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.25);
  outline: none;
}

.form-label-custom {
  font-weight: var(--font-weight-medium);
  color: #374151;
  margin-bottom: var(--spacing-sm);
}

.form-group-custom {
  margin-bottom: var(--spacing-lg);
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-secondary-custom {
  color: #6b7280 !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

.bg-light-custom {
  background-color: var(--secondary-color) !important;
}

.bg-dark-custom {
  background-color: var(--footer-bg-color) !important;
}

.border-primary-custom {
  border-color: var(--primary-color) !important;
}

.shadow-custom {
  box-shadow: var(--shadow-md) !important;
}

.rounded-custom {
  border-radius: var(--border-radius-md) !important;
}

/* Layout Helpers */
.section-spacing {
  padding: var(--spacing-xxl) 0;
}

.content-spacing {
  margin-bottom: var(--spacing-xl);
}

.text-center-custom {
  text-align: center;
}

.text-left-custom {
  text-align: left;
}

.text-right-custom {
  text-align: right;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.375rem;
  }
  
  .custom-container {
    padding: 0 var(--spacing-md);
  }
  
  .container-fluid {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
  
  .section-light,
  .section-dark,
  .section-white,
  .section-alt {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  body {
    font-size: 1rem;
  }
  
  .card-body-custom {
    padding: var(--spacing-lg);
  }
}

/* Accessibility Improvements */
.sr-only-custom {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link-custom {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  z-index: 1000;
}

.skip-link-custom:focus {
  top: 6px;
}

/* Focus states for better accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar-custom,
  .footer-custom {
    display: none;
  }
  
  .section-light,
  .section-dark,
  .section-white,
  .section-alt {
    padding: var(--spacing-lg) 0;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .card-custom {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}


/* Cookie Banner Additional Styles for Bootstrap */
.cookie-banner-custom {
    z-index: 1060;
    backdrop-filter: blur(10px);
}

.cookie-banner-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}