/*
  STYLE.CSS
  Theme: Cursos de Inversión en Argentina
  Design System: Retro / Eco-minimalism
  Author: AI Assistant
*/

/* 1. CSS VARIABLES
-------------------------------------------------- */
:root {
  /* TETRAD COLOR SCHEME */
  --color-primary-dark: #2F4F4F; /* Dark Slate Gray - For text, headers, footers */
  --color-primary-light: #F5F5DC; /* Beige - For main backgrounds */
  --color-accent-warm: #D2691E; /* Chocolate - For CTAs, buttons, primary accents */
  --color-accent-warm-darker: #b3591a; /* Darker Chocolate for hover */
  --color-accent-cool: #4682B4; /* Steel Blue - For links, secondary accents */

  /* NEUTRAL COLORS */
  --color-white: #FFFFFF;
  --color-text-dark: #222222;
  --color-text-light: #333333;
  --color-text-subtle: #6c757d;
  --color-border: #dee2e6;
  --color-card-bg: var(--color-white);
  --color-light-bg: #f8f9fa;

  /* TYPOGRAPHY */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;

  /* SIZING & SPACING */
  --header-height: 5rem; /* 80px */

  /* BORDERS & SHADOWS */
  --border-radius-sm: 0.25rem; /* 4px */
  --border-radius-md: 0.5rem; /* 8px */
  --border-radius-lg: 1rem; /* 16px */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

  /* TRANSITIONS */
  --transition-fast: all 0.2s ease-in-out;
  --transition-medium: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. GLOBAL & BASE STYLES
-------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

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

a:hover {
  color: var(--color-accent-warm);
  text-decoration: underline;
}

section {
  padding: 5rem 0;
  overflow: hidden; /* Prevents AOS animations from showing scrollbars */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Styles for separate content pages */
.content-page main {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
}

/* Styles for success page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

/* 3. COMPONENT STYLES
-------------------------------------------------- */

/* == Buttons (Global) == */
.btn, button, input[type='submit'] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  padding: 0.875rem 2rem;
  border-radius: var(--border-radius-md);
  border: 2px solid transparent;
  transition: var(--transition-medium);
  transform: scale(1);
  letter-spacing: 0.5px;
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn-primary,
button[type="submit"] {
  background-color: var(--color-accent-warm);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover,
button[type="submit"]:hover {
  background-color: var(--color-accent-warm-darker);
}

/* == Cards (Portfolio, Testimonials, etc.) == */
.card {
  background-color: var(--color-card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  /* STROGO: Card content centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.card .card-image {
  width: 100%;
  /* STROGO: Fixed height for image containers */
  height: 220px;
  overflow: hidden;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  /* STROGO: Ensure image covers the area without distortion */
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card .card-content {
  padding: 1.5rem;
  width: 100%;
}

/* For testimonial cards with small circular images */
.card .image-container img.rounded-full {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-md);
  margin-top: -50px; /* Pulls avatar up slightly */
  background: var(--color-primary-light);
}

/* == Accordion (FAQ) == */
.accordion-header svg {
  transition: transform var(--transition-medium);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1.25rem;
}

.accordion-header.active + .accordion-content {
  max-height: 500px; /* Arbitrary large value */
  padding: 1.25rem;
}

/* == Forms == */
input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font-body);
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  transition: var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent-warm);
  box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.2);
}

/* 4. SECTION-SPECIFIC STYLES
-------------------------------------------------- */

/* == Header == */
header.sticky {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* == Hero Section == */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* IMPORTANT: Background setup */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  color: var(--color-white);
}

/* IMPORTANT: Overlay for text readability */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  /* IMPORTANT: White text */
  color: var(--color-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* == Timeline (Filosofia Section) == */
#filosofia {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: rgba(47, 79, 79, 0.2);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 4rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 4rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  width: 20px;
  height: 20px;
  background-color: var(--color-primary-dark);
  border: 4px solid var(--color-primary-light);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
  transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
  transform: translateX(-50%);
}

.timeline-content {
  padding: 1.5rem;
  background: var(--color-card-bg);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}

/* == External Resources == */
.resource-card {
  transition: var(--transition-medium);
}
.resource-card:hover {
  border-color: var(--color-accent-warm) !important;
  transform: translateY(-5px);
}
.resource-card h3 {
  color: var(--color-accent-cool);
  transition: var(--transition-fast);
}
.resource-card:hover h3 {
  color: var(--color-accent-warm);
}

/* == Footer == */
footer a {
  color: var(--color-primary-light);
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
  color: var(--color-accent-warm);
  text-decoration: none;
}

footer h4 {
  color: var(--color-white);
}

/* 5. MEDIA QUERIES
-------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  section {
    padding: 3rem 0;
  }
  
  /* Responsive Timeline */
  .timeline-line {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 3rem;
    padding-right: 1rem;
    text-align: left !important;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .timeline-dot {
    left: 20px !important;
    transform: translateX(-50%) !important;
  }
}