/*
  File: style.css
  Project: Inversiones en Petróleo Argentina
  Design System: Neomorphism, Asymmetric Balance
  Animation: Elastic
*/

/* ---------------------------------- */
/*          1. VARIABLES              */
/* ---------------------------------- */
:root {
  /* Analogous Color Scheme (Brown/Orange/Yellow) */
  --bg-color: #F0EAE6;
  --primary-color: #E49B5D; /* Warm Amber */
  --secondary-color: #D27D2D; /* Darker Amber/Orange */
  --accent-color: #FFAA00; /* Bright accent */
  
  /* Text & UI Colors */
  --text-color-dark: #3D352E;
  --text-color-light: #FFFFFF;
  --text-color-muted: #6e6358;
  --border-color: #d1c7bf;

  /* Neomorphism Shadows */
  --shadow-light: rgba(255, 255, 255, 0.8);
  --shadow-dark: rgba(186, 172, 160, 0.5);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Spacing & Sizing */
  --header-height: 80px;
  --section-padding: 5rem 0;
  --card-border-radius: 20px;
  --button-border-radius: 12px;

  /* Transitions */
  --transition-elastic: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-smooth: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/*          2. GLOBAL STYLES          */
/* ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #222222;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

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

ul {
  list-style: none;
}

/* ---------------------------------- */
/*        3. UTILITY CLASSES          */
/* ---------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: var(--section-padding);
}

.section-light {
  background-color: #F8F4F0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: -2rem auto 3rem auto;
  color: var(--text-color-muted);
}

/* ---------------------------------- */
/*       4. HEADER & NAVIGATION       */
/* ---------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(240, 234, 230, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-height);
  transition: var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color-dark);
}
.logo:hover {
  text-decoration: none;
}

.main-nav .nav-list {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-weight: 600;
  color: var(--text-color-dark);
  position: relative;
  padding: 5px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}
.main-nav a:hover {
  text-decoration: none;
}

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

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

/* ---------------------------------- */
/*        5. HERO SECTION             */
/* ---------------------------------- */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--text-color-light);
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  padding: 0 1rem;
}

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

.hero-title {
  font-size: 4rem;
  color: var(--text-color-light);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* ---------------------------------- */
/*          6. BUTTONS                */
/* ---------------------------------- */
.btn, button, input[type="submit"] {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--button-border-radius);
  cursor: pointer;
  transition: var(--transition-elastic);
  text-decoration: none;
}

.neumorphic-button {
  background: var(--bg-color);
  color: var(--text-color-dark);
  box-shadow: 
    5px 5px 10px var(--shadow-dark), 
    -5px -5px 10px var(--shadow-light);
}

.neumorphic-button:hover {
  box-shadow: 
    inset 5px 5px 10px var(--shadow-dark), 
    inset -5px -5px 10px var(--shadow-light);
  color: var(--secondary-color);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  box-shadow: 0 4px 15px rgba(228, 155, 93, 0.4);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(210, 125, 45, 0.5);
  color: var(--text-color-light);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
}

/* ---------------------------------- */
/*       7. CARDS & NEUMORPHISM       */
/* ---------------------------------- */
.card {
  background-color: var(--bg-color);
  border-radius: var(--card-border-radius);
  padding: 2rem;
  box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
  transition: var(--transition-smooth);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-image {
  margin-bottom: 1.5rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  width: 100%;
}

.card-image img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.card-content {
  width: 100%;
}

/* ---------------------------------- */
/*        8. SECTION STYLES           */
/* ---------------------------------- */

/* Vision Section */
.vision-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.vision-image-container img {
  border-radius: var(--card-border-radius);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}
.progress-indicator {
  margin-top: 1.5rem;
}
.progress-indicator label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.progress-indicator progress {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  appearance: none;
}
progress::-webkit-progress-bar {
  background-color: #e0d9d3;
  border-radius: 6px;
  box-shadow: inset 2px 2px 4px var(--shadow-dark);
}
progress::-webkit-progress-value {
  background-color: var(--primary-color);
  border-radius: 6px;
}
.progress-indicator span {
  font-weight: bold;
  color: var(--secondary-color);
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.feature-item {
  /* Uses .card styles */
}

/* Services Section */
.content-carousel-container {
  position: relative;
}
.services-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.services-carousel::-webkit-scrollbar { display: none; } /* Chrome, Safari */
.service-card {
  flex: 0 0 100%;
  max-width: 48%; /* Asymmetric balance */
  margin: 1rem;
  scroll-snap-align: center;
}
@media (min-width: 768px) {
    .service-card {
        flex: 0 0 45%;
    }
}
@media (min-width: 1024px) {
    .service-card {
        flex: 0 0 31%;
    }
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
  transition: var(--transition-elastic);
}
.carousel-nav:hover {
  box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
  color: var(--secondary-color);
}
.carousel-nav.prev { left: -25px; }
.carousel-nav.next { right: -25px; }

/* Workshops Section */
.workshop-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Asymmetric */
    gap: 3rem;
    align-items: center;
    background: #F8F4F0;
    padding: 3rem;
    border-radius: var(--card-border-radius);
}
.workshop-date {
    font-weight: 600;
    color: var(--secondary-color);
}
.workshop-image img {
    border-radius: 15px;
}

/* Events Calendar Section */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.event-card {
  padding: 2rem;
  border-left: 5px solid var(--primary-color);
  background: #F8F4F0;
  border-radius: 0 var(--button-border-radius) var(--button-border-radius) 0;
}
.event-date, .event-location {
  font-weight: 600;
  color: var(--text-color-muted);
}

/* External Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.resource-card {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--card-border-radius);
  box-shadow: 7px 7px 14px var(--shadow-dark), -7px -7px 14px var(--shadow-light);
  transition: var(--transition-smooth);
}
.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
}
.resource-card h4 a {
  color: var(--text-color-dark);
}
.resource-card h4 a:hover {
  color: var(--secondary-color);
}

/* Partners Section */
.partners-carousel {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}
.partner-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-smooth);
}
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Contact Section */
.neumorphic-form {
  max-width: 700px;
  margin: auto;
  padding: 3rem;
  background: var(--bg-color);
  border-radius: var(--card-border-radius);
  box-shadow: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
}
.form-group {
  margin-bottom: 2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.neumorphic-input {
  width: 100%;
  padding: 1rem;
  border: none;
  background-color: var(--bg-color);
  border-radius: var(--button-border-radius);
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color-dark);
  transition: var(--transition-smooth);
}
.neumorphic-input:focus {
  outline: none;
  box-shadow: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light), 0 0 0 2px var(--primary-color);
}
textarea.neumorphic-input {
    resize: vertical;
    min-height: 120px;
}

/* ---------------------------------- */
/*          9. FOOTER                 */
/* ---------------------------------- */
.main-footer {
  background-color: #3D352E;
  color: #c9c3bd;
  padding: 4rem 0 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-column h4 {
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
}
.footer-column ul li {
  margin-bottom: 0.75rem;
}
.footer-column ul a {
  color: #c9c3bd;
}
.footer-column ul a:hover {
  color: var(--primary-color);
  text-decoration: none;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #5a4f45;
  padding-top: 2rem;
}

/* ---------------------------------- */
/*      10. SPECIFIC PAGE STYLES      */
/* ---------------------------------- */
/* For About, Terms, Privacy pages */
.page-container {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 80vh;
}
.page-container .section-title {
    margin-bottom: 2rem;
}
.page-container .card {
    text-align: left;
    align-items: flex-start;
}

/* For Success Page */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.success-page .page-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-page .neumorphic-form {
    text-align: center;
}


/* ---------------------------------- */
/*      11. RESPONSIVE DESIGN         */
/* ---------------------------------- */
@media (max-width: 1024px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  .hero-title { font-size: 3rem; }
  .vision-content, .workshop-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
  }
  h1 { font-size: 2.2rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease-in-out;
    display: flex;
  }
  .main-nav.active {
    left: 0;
  }
  .main-nav .nav-list {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  .main-nav a {
    font-size: 1.5rem;
  }
  .burger-menu {
    display: block;
  }
  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  .service-card {
    max-width: 100%;
    flex: 0 0 90%;
  }
  .carousel-nav {
      display: none;
  }
  .footer-grid {
    text-align: center;
  }
}