/*
  Theme: Uso de aplicaciones de banca móvil: seguro y conveniente en Argentina
  Design System: Neumorphism & Eco-minimalism
  Color Scheme: Neutral
  Animation Style: Morphing
*/

/* -------------------------------------------------- */
/*                  ROOT VARIABLES                    */
/* -------------------------------------------------- */

:root {
    /* Colors */
    --primary-bg: #e0e5ec;
    --secondary-bg: #d1d9e6;
    --text-color: #333333;
    --heading-color: #222222;
    --accent-color-1: #0077B6;
    --accent-color-2: #00B4D8;
    --white-color: #FFFFFF;
    
    /* Neumorphic Shadows */
    --light-shadow-color: rgba(255, 255, 255, 0.8);
    --dark-shadow-color: rgba(163, 177, 198, 0.6);
    --dark-shadow-color-strong: rgba(163, 177, 198, 1);
    
    /* Fonts */
    --font-header: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    /* Layout */
    --header-height: 80px;
}


/* -------------------------------------------------- */
/*                    BASE STYLES                     */
/* -------------------------------------------------- */

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

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


/* -------------------------------------------------- */
/*                    TYPOGRAPHY                      */
/* -------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-color);
    opacity: 0.9;
}

p {
    line-height: 1.8;
}

a {
    transition: color 0.3s ease;
}


/* -------------------------------------------------- */
/*               HEADER & NAVIGATION                  */
/* -------------------------------------------------- */

#main-header {
    background-color: transparent;
    height: var(--header-height);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(224, 229, 236, 0.85); /* --primary-bg with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    font-family: var(--font-header);
    font-size: 1.1rem;
    color: var(--heading-color);
    text-transform: uppercase;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color-1);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover {
    color: var(--accent-color-1);
}

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

.nav-link-mobile {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--heading-color);
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-link-mobile:hover {
    color: var(--accent-color-1);
    transform: scale(1.05);
}


/* -------------------------------------------------- */
/*                  HERO SECTION                      */
/* -------------------------------------------------- */

#hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: var(--white-color);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    transform: translateZ(-1px) scale(1.1);
}


/* -------------------------------------------------- */
/*            GLOBAL NEUMORPHIC COMPONENTS            */
/* -------------------------------------------------- */

/* --- Buttons --- */
.neumorphic-button-primary, .nav-link-button, input[type='submit'], button[type='submit'] {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--accent-color-1);
    border: none;
    border-radius: 12px;
    background-color: var(--primary-bg);
    box-shadow: 8px 8px 16px var(--dark-shadow-color), -8px -8px 16px var(--light-shadow-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.neumorphic-button-primary:hover, .nav-link-button:hover, input[type='submit']:hover, button[type='submit']:hover {
    color: var(--accent-color-2);
    box-shadow: 6px 6px 12px var(--dark-shadow-color), -6px -6px 12px var(--light-shadow-color);
}

.neumorphic-button-primary:active, .nav-link-button:active, input[type='submit']:active, button[type='submit']:active {
    color: var(--accent-color-2);
    box-shadow: inset 4px 4px 8px var(--dark-shadow-color), inset -4px -4px 8px var(--light-shadow-color);
    transform: translateY(2px);
}

.neumorphic-button-sm {
    border: none;
    border-radius: 50%;
    background-color: var(--primary-bg);
    box-shadow: 4px 4px 8px var(--dark-shadow-color), -4px -4px 8px var(--light-shadow-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.neumorphic-button-sm:active {
    box-shadow: inset 2px 2px 4px var(--dark-shadow-color), inset -2px -2px 4px var(--light-shadow-color);
}

/* --- Cards --- */
.neumorphic-card-flat {
    background: var(--primary-bg);
    border-radius: 20px;
    box-shadow: 12px 12px 24px var(--dark-shadow-color), -12px -12px 24px var(--light-shadow-color);
    transition: transform 0.3s ease;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1rem;
}
.card-image {
    width: 100%;
    margin-bottom: 1rem;
}
.card-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto;
}
.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
}
.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.neumorphic-card-inset {
    background: var(--primary-bg);
    border-radius: 20px;
    box-shadow: inset 8px 8px 16px var(--dark-shadow-color), inset -8px -8px 16px var(--light-shadow-color);
}
.neumorphic-card-flat-interactive {
    background: var(--primary-bg);
    border-radius: 15px;
    box-shadow: 8px 8px 16px var(--dark-shadow-color), -8px -8px 16px var(--light-shadow-color);
    transition: box-shadow 0.3s ease;
}
.neumorphic-card-flat-interactive:hover {
    box-shadow: inset 4px 4px 8px var(--dark-shadow-color), inset -4px -4px 8px var(--light-shadow-color);
}
.neumorphic-card-flat-interactive a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* --- Forms --- */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-bg);
    color: var(--text-color);
    box-shadow: inset 4px 4px 8px var(--dark-shadow-color), inset -4px -4px 8px var(--light-shadow-color);
    transition: box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: inset 6px 6px 12px var(--dark-shadow-color-strong), inset -6px -6px 12px var(--light-shadow-color);
}

/* --- Progress Bars --- */
.neumorphic-progress-bar-inset {
    box-shadow: inset 2px 2px 4px var(--dark-shadow-color), inset -2px -2px 4px var(--light-shadow-color);
}


/* -------------------------------------------------- */
/*            SPECIFIC COMPONENT STYLES               */
/* -------------------------------------------------- */

/* --- Testimonials --- */
.neumorphic-image-frame {
    padding: 5px;
    background-color: var(--primary-bg);
    box-shadow: 5px 5px 10px var(--dark-shadow-color), -5px -5px 10px var(--light-shadow-color);
}

/* --- FAQ Accordion --- */
.faq-question {
    cursor: pointer;
    background-color: transparent;
    border: none;
}
.faq-question svg {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.faq-question.active svg {
    transform: rotate(180deg);
}


/* -------------------------------------------------- */
/*                       FOOTER                       */
/* -------------------------------------------------- */

footer {
    border-top: 2px solid rgba(163, 177, 198, 0.3);
}

.footer-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    font-size: 1rem;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent-color-1);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color-1);
}
.footer-link:hover::after {
    width: 100%;
}


/* -------------------------------------------------- */
/*              PAGE-SPECIFIC STYLES                  */
/* -------------------------------------------------- */

/* --- For pages like Privacy, Terms --- */
.content-page-container {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    min-height: calc(100vh - 200px);
}
.content-page-container h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.content-page-container h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.content-page-container p, .content-page-container li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.content-page-container ul {
    list-style: disc;
    padding-left: 2rem;
}

/* --- For success.html page --- */
body.success-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.success-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.success-content {
    max-width: 600px;
}


/* -------------------------------------------------- */
/*              BARBA.JS TRANSITIONS                  */
/* -------------------------------------------------- */
.barba-leave-active,
.barba-enter-active {
    transition: opacity 0.5s ease;
}

.barba-leave-to,
.barba-enter-from {
    opacity: 0;
}


/* -------------------------------------------------- */
/*                 RESPONSIVE DESIGN                  */
/* -------------------------------------------------- */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    :root {
        --header-height: 70px;
    }
    .content-page-container {
        padding-top: calc(var(--header-height) + 20px);
    }
}