/*
  File: style.css
  Project: Consultoría Financiera en Argentina
  Design System: Glassmorphism & Hyperrealistic Textures
  Color Scheme: Triad
  Animation Style: Morphing
*/

/* -------------------------------------------------- */
/* 1. CSS Variables & Root Configuration
/* -------------------------------------------------- */

:root {
  /* Triadic Color Palette */
  --color-primary: #0D47A1; /* Deep Blue */
  --color-primary-dark: #0b3b84;
  --color-secondary: #A10D47; /* Deep Magenta */
  --color-accent: #47A10D; /* Strong Green */

  /* Neutral & Text Colors */
  --color-dark: #1a1a1a;
  --color-dark-text: #222222;
  --color-light: #f5f5f5;
  --color-light-text: #f0f0f0;
  --color-body-text: #333;
  --color-muted-text: #6b7280;
  --color-white: #ffffff;
  --color-border: rgba(255, 255, 255, 0.2);

  /* Fonts (from Tailwind config) */
  --font-sans: 'Open Sans', sans-serif;
  --font-display: 'Raleway', sans-serif;

  /* UI Variables */
  --transition-fast: 0.2s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius-md: 0.75rem; /* 12px */
  --border-radius-lg: 1rem; /* 16px */
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* -------------------------------------------------- */
/* 2. Base & Typography Styles
/* -------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-light);
  color: var(--color-body-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-dark-text);
  letter-spacing: -0.025em;
}

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

p {
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

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

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

/* -------------------------------------------------- */
/* 3. Header & Navigation
/* -------------------------------------------------- */
.glass-nav {
  background: rgba(13, 71, 161, 0.1); /* Semi-transparent Primary */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.glass-nav.scrolled {
  background: rgba(10, 56, 128, 0.85); /* Darker Primary when scrolled */
  box-shadow: var(--shadow-md);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-white);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

#mobile-nav {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#mobile-nav.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
#mobile-nav a {
  opacity: 0;
  transform: translateY(20px);
}

/* -------------------------------------------------- */
/* 4. Global UI Components (Buttons, Forms, Cards)
/* -------------------------------------------------- */

/* General Button Styles */
.cta-button, .nav-link-button {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 9999px; /* pill shape */
  padding: 0.8rem 2.2rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform;
}
.cta-button:hover, .nav-link-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.cta-button:active, .nav-link-button:active {
  transform: scale(0.98);
}

/* Form Styles */
.form-input {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.5); /* Primary color glow */
}

/* Card Styles */
.card {
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards in a grid row are the same height */
  background-color: var(--color-white);
}
.card-image {
  height: 14rem; /* 224px fixed height for image containers */
  width: 100%;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-content {
  flex-grow: 1; /* Allow content to fill remaining space */
  text-align: left;
}

/* Glassmorphism Card Style */
.glassmorphism-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.glassmorphism-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.glassmorphism-form {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--color-border);
}


/* -------------------------------------------------- */
/* 5. Section Specific Styles
/* -------------------------------------------------- */

/* Hero Section */
#hero {
  background-color: var(--color-dark); /* Fallback color */
}
#hero h1, #hero p {
  color: var(--color-white);
}

/* Process Section */
#process .relative .grid::before {
    content: '';
    position: absolute;
    top: 2.5rem; /* Vertically center with the icons */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
    z-index: 0;
    display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) { /* Only show line on desktop */
  #process .relative .grid::before {
    display: block;
  }
}

/* Custom Slider */
.custom-slider-container {
    overflow: hidden;
    position: relative;
}
.slider-wrapper {
    /* JS will handle transform: translateX() */
    transition: transform var(--transition-smooth);
}
.slide {
    aspect-ratio: 3 / 2;
}

/* -------------------------------------------------- */
/* 6. Static Pages (Privacy, Terms, Success)
/* -------------------------------------------------- */

.static-page-content {
    padding-top: 10rem;
    padding-bottom: 5rem;
    min-height: 80vh;
}
.static-page-content h1 {
    margin-bottom: 2rem;
}
.static-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.static-page-content p, 
.static-page-content li {
    margin-bottom: 1rem;
}

.success-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  background-color: var(--color-light);
  padding: 2rem;
}
.success-page .success-card {
  max-width: 600px;
  width: 100%;
  padding: 3rem;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}
.success-page h1 {
    color: var(--color-accent);
}

/* -------------------------------------------------- */
/* 7. Animations & Transitions
/* -------------------------------------------------- */

/* Page Transition */
#page-transition-wrapper {
    opacity: 1;
    transition: opacity var(--transition-smooth);
}

/* GSAP Reveal Animation Initial State */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}