/* Elegant & Minimal Dark Theme CSS */
/* Spanish Argentina Site with Tailwind Integration */

/* CSS Variables for Consistent Theming */
:root {
  --primary-cyan: #00FFFF;
  --secondary-purple: #9D00FF;
  --bg-dark: #050505;
  --bg-darker: #0a0a0a;
  --bg-darkest: #111111;
  --footer-black: #000000;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --text-dim: #999999;
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Base HTML and Body Styling */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  font-size: var(--font-size-base);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Serif Headings with Elegance */
h1, h2, h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-6) 0;
  color: var(--text-light);
}

h1 {
  font-size: var(--font-size-6xl);
  font-size: clamp(2.5rem, 8vw, 6rem);
  margin-bottom: var(--space-8);
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: var(--font-size-4xl);
  font-size: clamp(2rem, 6vw, 4rem);
  margin-bottom: var(--space-6);
  color: var(--primary-cyan);
}

h3 {
  font-size: var(--font-size-3xl);
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: var(--space-4);
  color: var(--text-light);
}

h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--space-4) 0;
  color: var(--text-light);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

/* Paragraphs and Text Elements */
p {
  margin: 0 0 var(--space-6) 0;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 65ch;
}

.text-lead {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  margin-bottom: var(--space-8);
  font-weight: 300;
}

.text-muted {
  color: var(--text-muted);
}

.text-dim {
  color: var(--text-dim);
}

.text-accent {
  color: var(--primary-cyan);
}

.text-secondary {
  color: var(--secondary-purple);
}

/* Links */
a {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover {
  color: var(--text-light);
}

a:focus {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Underlined Link Style for Elegant Minimal Look */
.link-elegant {
  position: relative;
  padding-bottom: var(--space-1);
}

.link-elegant::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-purple));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.link-elegant:hover::after {
  transform: scaleX(1);
}

/* Section Background Variations */
.section-dark {
  background-color: var(--bg-dark);
}

.section-darker {
  background-color: var(--bg-darker);
}

.section-darkest {
  background-color: var(--bg-darkest);
}

.section-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(157, 0, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Header Styling */
.header {
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.98);
  border-bottom-color: rgba(0, 255, 255, 0.2);
}

/* Navigation */
.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  color: var(--primary-cyan);
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-cyan);
  background: rgba(0, 255, 255, 0.15);
}

/* Logo */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons - Pill Shaped Primary */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
  color: var(--bg-dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--bg-dark);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--primary-cyan);
  border: 1px solid var(--primary-cyan);
}

.btn-outline:hover {
  background: var(--primary-cyan);
  color: var(--bg-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(157, 0, 255, 0.1);
  color: var(--secondary-purple);
  border: 1px solid var(--secondary-purple);
}

.btn-secondary:hover {
  background: var(--secondary-purple);
  color: var(--text-light);
  transform: translateY(-1px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

/* Cards - Elegant Minimal Design */
.card {
  background: var(--bg-darker);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-cyan);
  margin: 0 0 var(--space-2) 0;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.card-body {
  color: var(--text-muted);
  line-height: 1.7;
}

.card-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(157, 0, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Grid and Layout */
.container-custom {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.grid-elegant {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-elegant-lg {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Flex Utilities */
.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Spacing Utilities */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }

.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-20) 0;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-12);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.form-input {
  width: 100%;
  padding: var(--space-4);
  background: var(--bg-darker);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  width: 100%;
  padding: var(--space-4);
  background: var(--bg-darker);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

/* Footer */
.footer {
  background: var(--footer-black);
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-24);
}

.footer-content {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.footer-section h4 {
  color: var(--primary-cyan);
  font-family: 'Playfair Display', serif;
  margin-bottom: var(--space-4);
}

.footer-section p,
.footer-section a {
  color: var(--text-dim);
  margin-bottom: var(--space-2);
}

.footer-section a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 255, 255, 0.1);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  text-align: center;
  color: var(--text-dim);
  font-size: var(--font-size-sm);
}

/* Animations and Micro-interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-glow {
  animation: glow 2s infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.border { border: 1px solid rgba(0, 255, 255, 0.2); }
.border-accent { border-color: var(--primary-cyan); }
.border-secondary { border-color: var(--secondary-purple); }

.bg-primary { background-color: var(--primary-cyan); }
.bg-secondary { background-color: var(--secondary-purple); }
.bg-dark { background-color: var(--bg-dark); }
.bg-darker { background-color: var(--bg-darker); }
.bg-darkest { background-color: var(--bg-darkest); }

.text-primary { color: var(--primary-cyan); }
.text-secondary { color: var(--secondary-purple); }
.text-white { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

.font-serif { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'Inter', sans-serif; }

/* Responsive Design */
@media (max-width: 1024px) {
  .container-custom {
    padding: 0 var(--space-6);
  }
  
  .hero {
    padding: var(--space-16) 0;
  }
  
  .card {
    padding: var(--space-6);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
  
  .container-custom,
  .container-wide {
    padding: 0 var(--space-4);
  }
  
  .hero {
    padding: var(--space-12) 0;
    text-align: center;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .grid-elegant {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.875rem;
  }
  
  .card {
    padding: var(--space-4);
  }
  
  .btn {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-sm);
  }
  
  .container-custom,
  .container-wide {
    padding: 0 var(--space-3);
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .header,
  .footer,
  .btn {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p, blockquote {
    orphans: 3;
    widows: 3;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-fade-in-up,
  .animate-fade-in,
  .animate-pulse,
  .animate-glow {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-muted: #ffffff;
    --text-dim: #ffffff;
  }
  
  .card {
    border-width: 2px;
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Focus visible for better keyboard navigation */
.btn:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 80px;
}

/* Selection styling */
::selection {
  background: var(--primary-cyan);
  color: var(--bg-dark);
}

::-moz-selection {
  background: var(--primary-cyan);
  color: var(--bg-dark);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}