/*
* File: style.css
* Description: Styles for 'Consejos para armar un presupuesto personal en Argentina' website.
* Design System: Minimalist with Hyperrealistic Textures
* Color Scheme: Triad
* Animation Style: Microanimations
*/

/* ---------------------------------- */
/*          1. VARIABLES            */
/* ---------------------------------- */
:root {
    /* Triadic Color Scheme */
    --color-primary: #2A4D69;      /* Deep Blue - For trust, stability */
    --color-secondary: #F4A261;    /* Sandy Orange - For action, warmth */
    --color-accent: #4E9A81;       /* Muted Teal/Green - For growth, finance */

    /* Neutral Colors */
    --color-text: #333333;
    --color-text-light: #555555;
    --color-headings: #222222;
    --color-background: #FFFFFF;
    --color-background-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-border: #DDDDDD;

    /* Fonts */
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing & Sizing */
    --header-height: 80px;
    --container-width: 1140px;
    --container-padding: 15px;
    --section-padding: 60px 0;
    --card-border-radius: 8px;
    --button-border-radius: 5px;
}

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

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

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

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

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; }

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

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

/* ---------------------------------- */
/*        3. UTILITY CLASSES          */
/* ---------------------------------- */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section {
    padding: var(--section-padding);
    overflow: hidden; /* For ScrollReveal */
}

.section-light {
    background-color: var(--color-background-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-headings);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

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

/* Grid Layouts */
.grid-2-col, .grid-3-col {
    display: grid;
    gap: 2rem;
}
.grid-2-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------------------------------- */
/*        4. COMPONENT STYLES         */
/* ---------------------------------- */

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav-logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-headings);
    color: var(--color-text);
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
}

/* --- Buttons (Global) --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--button-border-radius);
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #e38d45; /* Darken secondary */
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* --- Cards --- */
.card {
    background-color: var(--color-background);
    border-radius: var(--card-border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.75rem;
}

.card-content p {
    flex-grow: 1; /* Pushes button to bottom */
}

/* --- Forms --- */
.contact-form {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--button-border-radius);
    background-color: var(--color-background);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(42, 77, 105, 0.2);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--color-text-light);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-primary);
    background-color: var(--color-background-light);
    padding: 0 5px;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1rem;
}

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

.footer-col h4 {
    font-family: var(--font-headings);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* ---------------------------------- */
/*      5. SECTION-SPECIFIC STYLES    */
/* ---------------------------------- */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

/* --- Our Process --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.process-grid .card {
    border: none;
    box-shadow: none;
    background-color: transparent;
}
.animated-icon-placeholder {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* --- Success Stories --- */
.testimonial-card {
    background-color: var(--color-background-light);
    border-left: 5px solid var(--color-accent);
    padding: 2rem;
}
.testimonial-card .card-content {
    padding: 0;
}
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

blockquote {
    font-style: italic;
    color: var(--color-text-light);
    border: none;
    padding: 0;
}
blockquote footer {
    font-style: normal;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1rem;
    display: block;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--card-border-radius);
    transition: transform 0.3s, filter 0.3s;
}
.gallery-item img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* --- Partners --- */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.partner-logo img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- External Resources --- */
.resource-card h3 a {
    color: var(--color-primary);
}
.resource-card h3 a:hover {
    color: var(--color-secondary);
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--card-border-radius);
}
.contact-info p {
    color: var(--color-text-light);
}
.contact-info strong {
    color: var(--color-text);
}


/* --- Static Pages (Privacy, Terms) --- */
.static-page-content {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
    min-height: 80vh;
}
.static-page-content h1 {
    margin-bottom: 2rem;
}
.static-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- Success Page --- */
.success-page-body {
    background-color: var(--color-background-light);
}

.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.success-container h1 {
    color: var(--color-accent);
    font-size: 3rem;
}

.success-container p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}


/* ---------------------------------- */
/*       6. RESPONSIVE STYLES         */
/* ---------------------------------- */

@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .footer-grid {
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

}