/* 
 * Style.css - Psicología del Dinero Argentina
 * Neumorphism design system with complementary color scheme
 */

:root {
  /* Color Palette - Complementary color scheme */
  --primary-color: #4e64b8; /* Base primary color - deep blue */
  --primary-dark: #354893; /* Darker shade for hover effects */
  --primary-light: #7984d1; /* Lighter shade for highlights */
  
  --complementary: #b8924e; /* Complementary to primary - warm gold */
  --complementary-dark: #8e6e35; /* Darker gold for hover effects */
  --complementary-light: #d1b37a; /* Lighter gold for highlights */
  
  --neutral-dark: #333333; /* For text */
  --neutral-mid: #666666; /* For secondary text */
  --neutral-light: #f0f2f5; /* For backgrounds */
  --neutral-white: #ffffff; /* For card backgrounds */
  
  --shadow-light: rgba(255, 255, 255, 0.8);
  --shadow-dark: rgba(174, 174, 192, 0.2);
  --shadow-inset-light: rgba(255, 255, 255, 0.5);
  --shadow-inset-dark: rgba(174, 174, 192, 0.4);
  
  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Sizes */
  --border-radius: 15px;
  --border-radius-sm: 8px;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;
  
  /* Transitions */
  --transition-speed: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--neutral-dark);
  background-color: var(--neutral-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 80px;
  height: 3px;
  background: var(--complementary);
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--neutral-dark);
}

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

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

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Neumorphic Elements */
.neumorph-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--neutral-light);
  position: relative;
}

.neumorph-card {
  background-color: var(--neutral-white);
  border-radius: var(--border-radius);
  box-shadow: 
    10px 10px 20px var(--shadow-dark),
    -10px -10px 20px var(--shadow-light);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  transition: transform var(--transition-speed) var(--transition-timing);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.neumorph-card:hover {
  transform: translateY(-5px);
}

.neumorph-card .card-image {
  width: 100%;
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: center;
}

.neumorph-card .card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  margin: 0 auto;
}

.neumorph-card .card-content {
  text-align: center;
  width: 100%;
}

.neumorph-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  box-shadow: 
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
  transition: all var(--transition-speed) var(--transition-timing);
  cursor: pointer;
  outline: none;
  text-align: center;
  text-decoration: none;
}

.neumorph-button:hover, .neumorph-button:focus {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    6px 6px 10px var(--shadow-dark),
    -6px -6px 10px var(--shadow-light);
}

.neumorph-button:active {
  background-color: var(--primary-dark);
  transform: translateY(0);
  box-shadow: 
    inset 4px 4px 8px var(--shadow-inset-dark),
    inset -4px -4px 8px var(--shadow-inset-light);
}

.neumorph-input, .neumorph-input.form-control, .neumorph-input.form-select {
  background-color: var(--neutral-light);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: 
    inset 4px 4px 8px var(--shadow-inset-dark),
    inset -4px -4px 8px var(--shadow-inset-light);
  transition: all var(--transition-speed) var(--transition-timing);
}

.neumorph-input:focus, .neumorph-input.form-control:focus, .neumorph-input.form-select:focus {
  outline: none;
  box-shadow: 
    inset 6px 6px 10px var(--shadow-inset-dark),
    inset -6px -6px 10px var(--shadow-inset-light);
  border-color: transparent;
}

.neumorph-header {
  background-color: var(--neutral-white);
  box-shadow: 0 4px 10px var(--shadow-dark);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.neumorph-footer {
  background-color: var(--neutral-white);
  box-shadow: 0 -4px 10px var(--shadow-dark);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.neumorph-modal .modal-content {
  background-color: var(--neutral-light);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 
    10px 10px 20px var(--shadow-dark),
    -10px -10px 20px var(--shadow-light);
}

/* Header & Navigation */
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--neutral-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed) var(--transition-timing);
}

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

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  height: auto;
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 76px; /* Adjust based on header height */
  text-align: left;
  padding: var(--spacing-xl) 0;
}

.hero-content {
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 2;
}

.hero-content h1, .hero-content p, .hero-content .btn {
  margin-bottom: var(--spacing-md);
}

.hero-content h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.intro-section {
  padding: var(--spacing-xl) 0;
}

.intro-section img {
  border-radius: var(--border-radius);
  box-shadow: 
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

/* History Section */
.history-section {
  padding: var(--spacing-xl) 0;
}

.timeline {
  position: relative;
  padding: var(--spacing-lg);
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--complementary);
  transform: translateX(-50%);
  display: none;
}

.timeline-item {
  margin-bottom: var(--spacing-lg);
  position: relative;
  text-align: left;
}

.timeline-item h3 {
  color: var(--complementary);
  margin-bottom: var(--spacing-sm);
}

.timeline-item .image-container {
  margin-top: var(--spacing-md);
  display: flex;
  justify-content: center;
}

.timeline-item .image-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .timeline:before {
    display: block;
  }
  
  .timeline-item {
    width: 45%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .timeline .row:nth-child(odd) .timeline-item {
    margin-right: 10%;
  }
  
  .timeline .row:nth-child(even) .timeline-item {
    margin-left: 10%;
  }
}

/* Press Section */
.press-section {
  padding: var(--spacing-xl) 0;
}

.press-section .card {
  height: 100%;
  transition: transform var(--transition-speed) var(--transition-timing);
}

.press-section .card:hover {
  transform: translateY(-5px);
}

.press-section .card-image {
  height: 220px;
  overflow: hidden;
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.press-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) var(--transition-timing);
}

.press-section .card:hover .card-image img {
  transform: scale(1.05);
}

.press-section .card-content {
  padding: var(--spacing-md);
  text-align: left;
}

.press-section .card-content h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
}

.press-section .card-content a.btn {
  margin-top: var(--spacing-sm);
}

/* Resources Section */
.external-resources {
  padding: var(--spacing-xl) 0;
}

.resource-card {
  height: 100%;
  text-align: left;
}

.resource-card h3 {
  color: var(--complementary);
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.resource-list {
  list-style-type: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-md);
  position: relative;
}

.resource-list li:before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.resource-list a {
  color: var(--primary-color);
  transition: color var(--transition-speed) var(--transition-timing);
}

.resource-list a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Sustainability Section */
.sustainability-section {
  padding: var(--spacing-xl) 0;
}

.sustainability-section .neumorph-card {
  text-align: left;
  height: 100%;
}

.sustainability-section .image-container {
  margin-top: var(--spacing-md);
  width: 100%;
  display: flex;
  justify-content: center;
}

.sustainability-section .image-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  margin: 0 auto;
}

/* FAQ Section */
.faq-section {
  padding: var(--spacing-xl) 0;
}

.faq-card {
  text-align: left;
  height: 100%;
}

.faq-card h3 {
  color: var(--complementary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.3rem;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xl) 0;
}

.contact-section .neumorph-card {
  text-align: left;
  height: 100%;
}

.contact-info {
  list-style-type: none;
  padding: 0;
  margin-bottom: var(--spacing-lg);
}

.contact-info li {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-lg);
  position: relative;
}

.contact-info li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--primary-color);
}

.contact-section .image-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-section .image-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: 
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  margin: 0 auto;
}

/* Footer */
.footer {
  padding-top: var(--spacing-xl);
  background-color: var(--neutral-white);
}

.footer h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--neutral-dark);
  transition: color var(--transition-speed) var(--transition-timing);
}

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

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.social-links a {
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-speed) var(--transition-timing);
}

.social-links a:hover {
  color: var(--complementary);
  text-decoration: none;
}

.newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.copyright {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--neutral-light);
  font-size: 0.9rem;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--neutral-light);
}

.success-content {
  max-width: 600px;
  padding: var(--spacing-xl);
}

/* Privacy & Terms Pages */
.privacy-content, .terms-content {
  padding-top: 100px;
  min-height: 100vh;
}

/* Parallax Effects */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  
  .hero-section {
    min-height: 60vh;
  }
}

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  
  .neumorph-card {
    padding: var(--spacing-md);
  }
  
  .hero-section {
    min-height: 50vh;
  }
  
  .timeline-item .image-container img,
  .sustainability-section .image-container img {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  
  .hero-section {
    min-height: 40vh;
  }
  
  .timeline-item .image-container img,
  .sustainability-section .image-container img,
  .contact-section .image-container img {
    height: 200px;
  }
}

/* Icon Font (Placeholder - you'd normally use a proper icon font like Font Awesome) */
[class^="icon-"]:before {
  margin-right: var(--spacing-xs);
  font-family: serif;
}

.icon-location:before { content: '📍'; }
.icon-phone:before { content: '📞'; }
.icon-mail:before { content: '✉️'; }

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-complementary { color: var(--complementary) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-complementary { background-color: var(--complementary) !important; }
.bg-light { background-color: var(--neutral-light) !important; }
.bg-white { background-color: var(--neutral-white) !important; }