/* Global CSS System - Unified Components */

/* CSS Reset & Variables */
:root {
  /* Colors - Paleta actualizada */
  --primary-color: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary-color: #059669;
  --secondary-light: #10b981;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-gradient: linear-gradient(135deg, #1e40af 0%, #7c3aed 50%, #dc2626 100%);
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --error-color: #dc2626;
  --success-color: #059669;
  --warning-color: #f59e0b;
  
  /* Spacing - Valores aumentados */
  --space-xs: 0.375rem;
  --space-sm: 0.625rem;
  --space-md: 1.125rem;
  --space-lg: 1.75rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.5rem;
  --space-3xl: 4.5rem;
  --space-4xl: 5.5rem;
  --space-5xl: 7rem;
  
  /* Typography - Nuevas fuentes */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  --text-xs: 0.8rem;
  --text-sm: 0.925rem;
  --text-base: 1.05rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;
  --text-7xl: 5rem;
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.55;
  --leading-relaxed: 1.8;
  
  /* Shadows - Mejoradas */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 8px -1px rgb(0 0 0 / 0.12), 0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 12px 20px -3px rgb(0 0 0 / 0.15), 0 4px 8px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 24px 32px -5px rgb(0 0 0 / 0.18), 0 8px 12px -6px rgb(0 0 0 / 0.12);
  --shadow-2xl: 0 32px 64px -12px rgb(0 0 0 / 0.3);
  --shadow-colored: 0 8px 32px rgb(30 64 175 / 0.3);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-3xl: 2.25rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Container */
  --container-max-width: 1200px;
  --container-padding: 1rem;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--text-4xl); margin-bottom: var(--space-lg); }
h3 { font-size: var(--text-3xl); margin-bottom: var(--space-md); }
h4 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
h5 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
h6 { font-size: var(--text-lg); margin-bottom: var(--space-sm); }

p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary-light);
  color: var(--text-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
}

/* Cards */
.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-lg);
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Navigation */
.navbar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand-logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: var(--space-sm) 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.search-btn:hover {
  color: var(--primary-color);
  background-color: var(--bg-secondary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  gap: 3px;
}

.hamburger {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    flex-direction: column;
    gap: 0;
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Page Headers */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-white);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
  opacity: 0.3;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

.page-breadcrumb {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  opacity: 0.8;
}

.breadcrumb-link {
  color: var(--text-white);
  text-decoration: underline;
}

.breadcrumb-link:hover {
  opacity: 1;
}

/* Content Sections */
.content-section {
  padding: var(--space-4xl) 0;
}

.content-section.bg-secondary {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* Image Gallery */
.gallery {
  display: grid;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.gallery-2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.gallery-2x2 { grid-template-columns: repeat(2, 1fr); }
.gallery-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery-4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.gallery-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--text-white);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  font-size: var(--text-sm);
  text-align: center;
}

.gallery-caption h3,
.gallery-caption h4 {
  background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 50%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content Grid */
.content-grid {
  display: grid;
  gap: var(--space-2xl);
  margin: var(--space-2xl) 0;
}

.content-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.content-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Info Cards */
.info-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.info-card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.info-card-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Hero Section - Homepage Specific */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--text-white);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-5xl);
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-5xl) var(--container-padding);
}

.hero-text {
  max-width: 700px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badge i {
  color: #fbbf24;
  font-size: var(--text-md);
}

/* Hero Title */
.hero-title {
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.title-highlight {
  display: block;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  background: linear-gradient(135deg, #ffffff, #f1f5f9, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-sm);
}

.title-subtitle {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: #fbbf24;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Description */
.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: var(--space-2xl);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-description strong {
  color: #fbbf24;
  font-weight: 600;
}

/* Hero Features */
.hero-features {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.feature-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
}

.feature-badge i {
  color: #fbbf24;
  font-size: var(--text-sm);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 1s both;
}

.btn-hero {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-md);
  font-weight: 600;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary.btn-hero {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary.btn-hero:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary.btn-hero {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary.btn-hero:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Stats - Modernizadas */
.hero-stats {
  display: grid;
  gap: var(--space-lg);
  text-align: left;
  animation: fadeInRight 0.8s ease 0.6s both;
}

.stat-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 180px;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.02);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: white;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: var(--text-sm);
  opacity: 0.9;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-xs);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* About Section */
.about-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.about-text .section-title {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
}

.about-features {
  margin-bottom: var(--space-2xl);
}

.feature-grid {
  display: grid;
  gap: var(--space-xl);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

.about-image {
  text-align: center;
}

.location-map {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Mapa geográfico formal */
.location-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.peru-map-formal {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--border-color);
  overflow: hidden;
}

.formal-map-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  filter: sepia(10%) saturate(1.1) brightness(1.05);
}

.apurimac-highlight {
  position: absolute;
  top: 65%;
  left: 45%;
  transform: translate(-50%, -50%);
}

.highlight-dot {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #dc2626, #991b1b);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
  animation: pulse-highlight 2s infinite;
}

@keyframes pulse-highlight {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.1);
  }
}

.highlight-label {
  position: absolute;
  top: -40px;
  left: 20px;
  white-space: nowrap;
}

.label-box {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.label-box::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 15px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--primary-dark);
}

.label-box h4 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.label-box p {
  margin: 2px 0 0 0;
  font-size: var(--text-xs);
  opacity: 0.9;
}

/* Información geográfica académica */
.geographic-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.geo-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.geo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.geo-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
}

.geo-header i {
  color: var(--primary-color);
  font-size: var(--text-lg);
}

.geo-header h4 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
}

.geo-data {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border-light);
}

.data-item:last-child {
  border-bottom: none;
}

.data-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.data-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

/* Estadísticas geográficas */
.geographic-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-box {
  background: linear-gradient(135deg, var(--bg-primary), #f8fafc);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md) auto;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-md);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: var(--space-xs);
  line-height: 1.3;
}

/* Provinces Section */
.provinces-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-primary);
}

.provinces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.province-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.province-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.province-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.province-content {
  padding: var(--space-xl);
}

.province-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.province-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.province-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.province-stat {
  text-align: center;
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.province-stat-value {
  display: block;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary-color);
}

.province-stat-label {
  font-size: var(--text-xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.province-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.province-link:hover {
  color: var(--primary-dark);
  gap: var(--space-md);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: var(--text-white);
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="40" cy="40" r="3"/></g></svg>') repeat;
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cta-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-description {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  line-height: var(--leading-relaxed);
}

.cta-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn {
  background: var(--text-white);
  color: var(--primary-color);
  border: 2px solid var(--text-white);
}

.cta-actions .btn:hover {
  background: transparent;
  color: var(--text-white);
}

.cta-actions .btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.cta-actions .btn-outline:hover {
  background: var(--text-white);
  color: var(--primary-color);
}

/* News/Blog Section */
.news-section {
  padding: var(--space-5xl) 0;
  background-color: var(--bg-secondary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.news-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: var(--space-xl);
}

.news-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-light);
}

.news-date {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.news-category {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary-color);
  font-weight: 500;
}

.news-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-tight);
}

.news-excerpt {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
}

.news-link:hover {
  color: var(--primary-dark);
  gap: var(--space-md);
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    text-align: center;
    padding: var(--space-3xl) var(--container-padding);
  }
  
  .hero-text {
    max-width: none;
  }
  
  .title-highlight {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
  }
  
  .title-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }
  
  .hero-description {
    font-size: var(--text-base);
    margin-bottom: var(--space-xl);
  }
  
  .hero-features {
    justify-content: center;
    gap: var(--space-sm);
  }
  
  .feature-badge {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }
  
  .hero-actions {
    justify-content: center;
    gap: var(--space-md);
  }
  
  .btn-hero {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
  }
  
  .stat-item {
    padding: var(--space-md);
    min-width: auto;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-md);
  }
  
  .stat-number {
    font-size: var(--text-xl);
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  /* Mapa formal responsive */
  .geographic-info {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .geographic-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .peru-map-formal {
    padding: var(--space-md);
  }
  
  .formal-map-image {
    max-width: 350px;
  }
  
  .apurimac-highlight {
    top: 62%;
    left: 42%;
  }
  
  .highlight-label {
    left: 15px;
    top: -35px;
  }
  
  .provinces-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 90vh;
  }
  
  .hero-content {
    padding: var(--space-2xl) var(--container-padding);
    gap: var(--space-2xl);
  }
  
  .hero-badge {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-md);
  }
  
  .title-highlight {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }
  
  .title-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.5rem);
  }
  
  .hero-description {
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
  }
  
  .hero-features {
    gap: var(--space-xs);
  }
  
  .feature-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  
  .btn-hero {
    width: 100%;
    max-width: 280px;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .stat-item {
    padding: var(--space-sm);
    flex-direction: row;
    text-align: left;
  }
  
  .stat-icon {
    width: 35px;
    height: 35px;
    font-size: var(--text-sm);
  }
  
  .stat-number {
    font-size: var(--text-lg);
  }
  
  .stat-label {
    font-size: var(--text-xs);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .cta-title {
    font-size: var(--text-3xl);
  }
  
  /* Mapa formal en móvil */
  .geographic-stats {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
  
  .stat-box {
    padding: var(--space-md);
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-md);
  }
  
  .formal-map-image {
    max-width: 280px;
  }
  
  .apurimac-highlight {
    top: 60%;
    left: 40%;
  }
  
  .highlight-dot {
    width: 10px;
    height: 10px;
  }
  
  .label-box {
    padding: var(--space-xs) var(--space-sm);
  }
  
  .label-box h4 {
    font-size: var(--text-xs);
  }
}

/* ===== FOOTER ESTANDARIZADO ===== */
.footer {
  background: linear-gradient(135deg, #1a4c96, #2563eb);
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
}

/* Footer Brand */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  padding: 0;
}

.footer-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  position: absolute;
  left: -15px;
  transition: opacity 0.3s ease;
}

.footer-links a:hover::before {
  opacity: 1;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-item i {
  color: #60a5fa;
  font-size: 1.1rem;
  margin-top: 0.1rem;
  min-width: 16px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copyright p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.footer-project {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-section h3 {
    font-size: 1.2rem;
  }
}

.social-link {
  color: var(--text-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Form Components */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  transition: var(--transition-fast);
  background-color: var(--bg-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error {
  border-color: var(--error-color);
}

.form-error {
  color: var(--error-color);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

.form-success {
  color: var(--success-color);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-white { color: var(--text-white); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.p-0 { padding: 0; }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.m-0 { margin: 0; }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Responsive Utilities */
@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .page-title {
    font-size: var(--text-4xl);
  }
  
  .page-subtitle {
    font-size: var(--text-lg);
  }
  
  .content-section {
    padding: var(--space-2xl) 0;
  }
  
  .gallery-image {
    height: 200px;
  }
  
  .gallery-2x2 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
  }
  
  .page-header {
    padding: var(--space-2xl) 0;
  }
  
  .page-title {
    font-size: var(--text-3xl);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .content-grid-2,
  .content-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .nav-actions {
    display: none;
  }
  
  .page-header {
    background: none;
    color: var(--text-primary);
    padding: var(--space-md) 0;
  }
}

/* =================== LEGACY SECTIONS =================== */

/* Card Banner Sections */
.cards-banner-one,
.cards-banner-two {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: var(--space-5xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cards-banner-one::before,
.cards-banner-two::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.cards-banner-one .content,
.cards-banner-two .content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cards-banner-one h2,
.cards-banner-two h2 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: white;
}

.cards-banner-one p,
.cards-banner-two p {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  color: rgba(255, 255, 255, 0.9);
}

.cards-banner-one .btn,
.cards-banner-two .btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
  transition: var(--transition-fast);
}

.cards-banner-one .btn:hover,
.cards-banner-two .btn:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Provincias title */
.provincias {
  text-align: center;
  padding: var(--space-2xl) var(--container-padding);
  background: var(--bg-secondary);
}

.provincias h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--primary-color);
  margin: 0;
  font-weight: 600;
}

/* News Cards */
.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-3xl) var(--container-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
  background: var(--bg-primary);
}

.news-cards > div {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  padding-bottom: var(--space-lg);
}

.news-cards > div:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-cards img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--primary-color);
}

.news-cards h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--primary-color);
  margin: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.news-cards p {
  padding: 0 var(--space-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

/* Contenedor centrado para badges dentro de cards */
.news-cards .info-badges {
  margin: var(--space-lg);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: rgba(248, 250, 252, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.news-cards .location-badge {
  margin: 0 var(--space-lg) var(--space-sm);
  display: inline-flex;
}

/* Legacy styles responsive */
@media (max-width: 768px) {
  .cards-banner-one h2,
  .cards-banner-two h2 {
    font-size: var(--text-3xl);
  }
  
  .cards-banner-one p,
  .cards-banner-two p {
    font-size: var(--text-base);
  }
  
  .provincias h3 {
    font-size: var(--text-2xl);
  }
  
  .news-cards {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--container-padding);
  }
}

@media (max-width: 480px) {
  .cards-banner-one,
  .cards-banner-two {
    padding: var(--space-2xl) 0;
  }
  
  .cards-banner-one h2,
  .cards-banner-two h2 {
    font-size: var(--text-2xl);
  }
  
  .content-section {
    padding: var(--space-md) 0;
  }
}

/* ===== FORMULARIO STYLES ===== */
.form-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  padding: var(--space-lg) 0;
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.back-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-2px);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0;
}

.form-main {
  min-height: calc(100vh - 120px);
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.form-info {
  padding: var(--space-2xl);
}

.info-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.info-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.benefit-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.benefit-text p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-section {
  padding: var(--space-lg);
}

.form-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-header-content {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.form-header-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.form-header-content p {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: var(--space-md);
  color: var(--text-secondary);
  z-index: 1;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 24px);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-body);
  transition: var(--transition-fast);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-sm);
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  line-height: 1.5;
  font-size: var(--text-sm);
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: '\2713';
  color: var(--text-white);
  font-weight: bold;
  font-size: 12px;
}

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

.checkbox-text .link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-text .link:hover {
  text-decoration: underline;
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  border: none;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.form-footer {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.form-footer p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.form-footer .link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.form-footer .link:hover {
  text-decoration: underline;
}

/* Responsive Design para Formulario */
@media (max-width: 1024px) {
  .form-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .form-info {
    padding: var(--space-lg);
  }
  
  .info-content h2 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .form-main {
    padding: var(--space-xl) 0;
  }
  
  .form-card {
    padding: var(--space-lg);
  }
  
  .info-content h2 {
    font-size: var(--text-2xl);
  }
  
  .benefit-item {
    padding: var(--space-md);
  }
  
  .benefit-icon {
    width: 50px;
    height: 50px;
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .form-header {
    padding: var(--space-md) 0;
  }
  
  .logo h1 {
    font-size: var(--text-xl);
  }
  
  .logo-img {
    height: 40px;
  }
  
  .form-card {
    padding: var(--space-md);
    margin: 0 var(--space-sm);
  }
  
  .benefits {
    gap: var(--space-md);
  }
  
  .checkbox-container {
    font-size: var(--text-xs);
  }
}

/* ===== INFO BADGES ===== */
.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-lg) 0;
  padding: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(30, 64, 175, 0.08);
  border: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.badge:hover {
  background: rgba(30, 64, 175, 0.12);
  transform: translateY(-1px);
}

.badge i {
  font-size: 10px;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.badge-content {
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.badge-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Badge específicos con colores */
.badge.mobility {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.badge.mobility i {
  color: #3b82f6;
}

.badge.walking {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge.walking i {
  color: #10b981;
}

.badge.altitude {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
}

.badge.altitude i {
  color: #8b5cf6;
}

.badge.season {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.badge.season i {
  color: #f59e0b;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.location-badge i {
  font-size: 10px;
}

/* Responsive para badges */
@media (max-width: 768px) {
  .info-badges {
    gap: 4px;
    margin: var(--space-md) 0;
  }
  
  .badge {
    padding: 4px var(--space-xs);
    font-size: 10px;
  }
  
  .badge i {
    font-size: 8px;
    width: 10px;
  }
}

@media (max-width: 480px) {
  .info-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  
  .badge {
    justify-content: center;
    padding: 6px 4px;
    font-size: 9px;
  }
  
  .badge-content {
    flex-direction: column;
    gap: 1px;
    text-align: center;
  }
  
  .badge-label {
    font-size: 8px;
  }
  
  .badge-value {
    font-size: 10px;
  }
}