/*
  STYLE.CSS
  Theme: Consultoría Financiera en Argentina
  Design System: Retro / Block Building
  Color Scheme: Analogous
  Animation: Scroll-triggered effects
*/

/* ------------------------------------------------------------------- */
/* 1. ROOT & GLOBAL STYLES
/* ------------------------------------------------------------------- */
:root {
  /* Analogous Color Scheme */
  --color-primary-dark: #0D1B2A; /* Almost Black Blue */
  --color-primary-mid: #1B263B;  /* Navy Blue */
  --color-primary-light: #415A77; /* Steel Blue */
  --color-accent: #778DA9;       /* Light Steel Blue */
  --color-text-light: #E0E1DD;   /* Off-White/Light Gray */
  --color-text-dark: #0D1B2A;    /* Same as primary dark for high contrast */
  --color-background-light: #f8f9fa;
  --color-white: #FFFFFF;
  --color-border: #ced4da;

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

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  /* Other */
  --border-radius: 5px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s ease;
}

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

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

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

/* ------------------------------------------------------------------- */
/* 2. UTILITY & LAYOUT CLASSES
/* ------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

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

.section-light {
  background-color: var(--color-background-light);
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-primary-mid);
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg) auto;
  font-size: 1.1rem;
  color: var(--color-primary-light);
}

/* ------------------------------------------------------------------- */
/* 3. HEADER & NAVIGATION
/* ------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background-color var(--transition-speed);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-lg);
}

.nav-list a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary-light);
  transition: color var(--transition-speed);
  position: relative;
  padding: var(--spacing-sm) 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-mid);
  transition: width var(--transition-speed);
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--color-primary-dark);
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  width: 100%;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary-dark);
  margin: 5px 0;
  transition: var(--transition-speed);
}


/* ------------------------------------------------------------------- */
/* 4. HERO SECTION
/* ------------------------------------------------------------------- */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90vh;
  padding: var(--spacing-xl) var(--spacing-lg);
  color: var(--color-white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* ------------------------------------------------------------------- */
/* 5. BUTTONS & FORMS
/* ------------------------------------------------------------------- */
.btn, button[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text-light);
  background-color: var(--color-primary-light);
  padding: 14px 28px;
  border-radius: var(--border-radius);
  border: 2px solid var(--color-primary-light);
  cursor: pointer;
  transition: all var(--transition-speed);
  font-size: 1rem;
}

.btn:hover, button[type="submit"]:hover {
  background-color: var(--color-primary-mid);
  border-color: var(--color-primary-mid);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-primary-mid);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(65, 90, 119, 0.25);
}

/* ------------------------------------------------------------------- */
/* 6. CARD COMPONENT
/* ------------------------------------------------------------------- */
.grid-container,
.team-grid {
  display: grid;
  gap: var(--spacing-lg);
}

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

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  overflow: hidden;
}

.team-grid .card-image {
  align-self: center;
  margin-top: var(--spacing-lg);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--color-accent);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content.text-center {
  text-align: center;
  align-items: center;
}

.card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin: 0 0 var(--spacing-md) 0;
}

.card-content p {
  margin: 0;
  flex-grow: 1;
}

.team-grid .card-content span {
    font-weight: bold;
    color: var(--color-primary-light);
    margin-bottom: var(--spacing-md);
    display: block;
}

/* ------------------------------------------------------------------- */
/* 7. SPECIFIC SECTIONS
/* ------------------------------------------------------------------- */
/* Success & Clientele / Press & Webinars */
.dual-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.story-block blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: var(--spacing-lg);
    margin: 0 0 var(--spacing-lg) 0;
    font-style: italic;
}

.story-block footer {
    font-weight: bold;
    color: var(--color-primary-mid);
    text-align: right;
}

.clientele-logos, .press-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: center;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.clientele-logos img, .press-logos img {
    opacity: 0.7;
    transition: opacity var(--transition-speed);
}

.clientele-logos img:hover, .press-logos img:hover {
    opacity: 1;
}

.webinar-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0 0 0;
}

.webinar-list li {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
}
.webinar-list li:last-child {
    border-bottom: none;
}

.webinar-list strong {
    color: var(--color-primary-dark);
    display: block;
}
.webinar-list span {
    display: block;
    margin: var(--spacing-sm) 0;
}
.webinar-list a {
    color: var(--color-primary-light);
    font-weight: bold;
    text-decoration: none;
    transition: color var(--transition-speed);
}
.webinar-list a:hover {
    color: var(--color-primary-dark);
}

/* Resources Section */
.resources-list {
    display: grid;
    gap: var(--spacing-lg);
}
.resource-item {
    padding: var(--spacing-lg);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
}
.resource-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--box-shadow);
}
.resource-item h3 a {
    font-family: var(--font-heading);
    color: var(--color-primary-mid);
    text-decoration: none;
}
.resource-item h3 a:hover {
    text-decoration: underline;
}
.resource-item p {
    margin: var(--spacing-sm) 0 0 0;
}

/* ------------------------------------------------------------------- */
/* 8. FOOTER
/* ------------------------------------------------------------------- */
.footer {
  background-color: var(--color-primary-mid);
  color: var(--color-text-light);
  padding-top: var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-white);
}

.footer-col p {
  margin: 0;
  opacity: 0.8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul a {
  color: var(--color-text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition-speed);
  line-height: 2;
}

.footer-col ul a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ------------------------------------------------------------------- */
/* 9. OTHER PAGES (Success, Privacy, Terms)
/* ------------------------------------------------------------------- */
.success-page,
.static-page {
  padding-top: 100px; /* Offset for fixed header */
}

.success-page .content-wrapper {
  min-height: calc(100vh - 100px); /* Full height minus header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success-icon {
  width: 100px;
  height: 100px;
  color: #28a745;
  margin-bottom: var(--spacing-lg);
}

.static-page .container {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.static-page h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-lg);
}

.static-page h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary-mid);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.static-page p, .static-page li {
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* ------------------------------------------------------------------- */
/* 10. ANIMATIONS
/* ------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------- */
/* 11. RESPONSIVENESS
/* ------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .dual-section-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
      --spacing-xl: 48px;
  }
  .section-title {
      font-size: 2rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
      font-size: 1.1rem;
  }

  /* Mobile Navigation */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
  }

  .nav-list a {
    font-size: 1.5rem;
  }

  .burger-menu {
    display: block;
  }
  
  .burger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger-menu.is-active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .footer-grid {
    text-align: center;
  }
}