/*
* style.css
* Theme: 'Cómo procesar cartas y notificaciones financieras sin errores en Argentina'
* Design System: Neumorphism + Eco-minimalism
* Color Scheme: Bright
* Animation Style: Non-linear movements
*/

/* -------------------------------------------------- */
/* 1. CSS Variables & Root Configuration
/* -------------------------------------------------- */
:root {
    /* Bright Color Palette */
    --primary-color: #00A99D; /* Vibrant Teal */
    --primary-color-dark: #007A72;
    --accent-color: #FFC400; /* Bright Yellow */
    --background-color: #ECF0F3;
    --white-color: #FFFFFF;
    --text-color-dark: #363636;
    --text-color-light: #F0F0F0;
    --grey-color: #7a7a7a;

    /* Neumorphism Shadows */
    --neumorphic-shadow-light: #ffffff;
    --neumorphic-shadow-dark: #d1d9e6;
    --neumorphic-shadow: 10px 10px 20px var(--neumorphic-shadow-dark), -10px -10px 20px var(--neumorphic-shadow-light);
    --neumorphic-shadow-inset: inset 7px 7px 15px var(--neumorphic-shadow-dark), inset -7px -7px 15px var(--neumorphic-shadow-light);

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

    /* UI Elements */
    --border-radius: 20px;
    --transition-speed: 0.4s;
    --transition-timing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -------------------------------------------------- */
/* 2. Global Styles & Resets
/* -------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
}

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

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-header);
    color: #222222;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section {
    padding: 6rem 1.5rem;
}

.section-light-accent {
    background-color: #f5f8fa;
}

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

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

/* -------------------------------------------------- */
/* 3. Header & Navigation
/* -------------------------------------------------- */
.navbar.is-fixed-top {
    background-color: rgba(236, 240, 243, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.logo-text {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-item {
    font-family: var(--font-header);
    font-weight: 700;
    transition: all var(--transition-speed) var(--transition-timing);
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.navbar-burger {
    color: var(--text-color-dark);
}

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

/* Global Button Styles */
.button, button, input[type='submit'] {
    font-family: var(--font-header);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--neumorphic-shadow);
    background-color: var(--background-color);
    transition: all var(--transition-speed) var(--transition-timing);
    color: var(--text-color-dark);
    font-weight: 700;
}

.button:hover, button:hover, input[type='submit']:hover {
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--primary-color);
    transform: translateY(2px);
}

.button:active, button:active, input[type='submit']:active {
    box-shadow: var(--neumorphic-shadow-inset);
    transform: scale(0.98);
}

/* Primary Button Override */
.button.is-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: 5px 5px 10px #008f85, -5px -5px 10px #00c3b5;
}

.button.is-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--white-color);
    box-shadow: inset 3px 3px 6px #006b64, inset -3px -3px 6px #00a99c;
}

/* Form Styles */
.input, .textarea {
    background-color: var(--background-color);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow-inset);
    color: var(--text-color-dark);
    transition: all var(--transition-speed) var(--transition-timing);
}

.input::placeholder, .textarea::placeholder {
    color: var(--grey-color);
}

.input:focus, .textarea:focus {
    outline: none;
    box-shadow: var(--neumorphic-shadow-inset), 0 0 0 2px var(--primary-color);
    border-color: transparent !important;
}

/* Card Styles */
.card {
    border-radius: var(--border-radius);
    background: var(--background-color);
    box-shadow: var(--neumorphic-shadow);
    border: none;
    transition: all var(--transition-speed) var(--transition-timing);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 30px var(--neumorphic-shadow-dark), -15px -15px 30px var(--neumorphic-shadow-light);
}

.card .card-image {
    padding: 1.5rem 1.5rem 0;
    text-align: center;
}

.card .card-image img {
    border-radius: calc(var(--border-radius) - 5px);
    object-fit: cover;
    height: 250px; /* Fixed height for image containers */
    width: 100%;
}

.card .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 2rem;
}

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

/* Hero Section */
#hero.hero {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax Effect */
}

#hero .title {
    color: var(--white-color);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

#hero .subtitle, #hero p {
    color: var(--text-color-light);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Methodology Section */
#methodology .card {
    text-align: left;
}

#methodology .progress {
    height: 12px;
    border-radius: 12px;
    background-color: #d1d9e6;
}

#methodology .progress::-webkit-progress-bar {
    background-color: #d1d9e6;
    border-radius: 12px;
}

#methodology .progress::-webkit-progress-value {
    background-color: var(--primary-color);
    border-radius: 12px;
    transition: width 1s ease-in-out;
}

/* Webinars Section */
.webinar-card {
    text-align: left;
}
.webinar-card .media-left .image-container {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: var(--neumorphic-shadow);
}
.webinar-card .media-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials Section */
.gallery-container {
    position: relative;
    overflow: hidden;
}
.testimonial-card {
    padding: 2rem;
}
.gallery-controls .button {
    width: 50px;
    height: 50px;
    margin: 0 0.5rem;
}

/* Pricing Section */
#pricing .card {
    padding: 2rem 1rem;
}

#pricing .card.is-featured {
    transform: scale(1.05);
    box-shadow: 20px 20px 40px var(--neumorphic-shadow-dark), -20px -20px 40px var(--neumorphic-shadow-light);
    position: relative;
    z-index: 10;
}
#pricing .card ul {
    list-style: none;
    margin: 1.5rem auto;
    text-align: center;
    padding: 0;
}
#pricing .card li {
    padding: 0.5rem 0;
}

/* Blog Section */
.blog-card .button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}
.blog-card .button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    box-shadow: none;
}

/* External Resources Section */
.resource-list ul {
    list-style: none;
    margin-left: 0;
}
.resource-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    box-shadow: var(--neumorphic-shadow);
    transition: all var(--transition-speed) var(--transition-timing);
}
.resource-list li:hover {
    transform: translateX(10px);
    box-shadow: 10px 10px 20px var(--neumorphic-shadow-dark), -10px -10px 20px var(--neumorphic-shadow-light);
}

/* -------------------------------------------------- */
/* 6. Footer
/* -------------------------------------------------- */
.footer {
    background-color: #2c3e50;
    color: var(--text-color-light);
    padding: 4rem 1.5rem;
}

.footer .title {
    color: var(--white-color);
}

.footer .logo-text {
    color: var(--accent-color) !important;
}

.footer a {
    color: var(--text-color-light);
    font-weight: normal;
}

.footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

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

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------- */
/* 7. Animations & Utility Classes
/* -------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s var(--transition-timing), transform 0.8s var(--transition-timing);
}

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

/* -------------------------------------------------- */
/* 8. Additional & Legal Pages
/* -------------------------------------------------- */
.legal-page-content, .about-page-content, .contact-page-content {
    padding-top: 100px;
}

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

.success-card {
    max-width: 600px;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--neumorphic-shadow);
}

/* -------------------------------------------------- */
/* 9. Responsiveness
/* -------------------------------------------------- */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-color);
        box-shadow: var(--neumorphic-shadow);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }
    
    body {
        font-size: 1rem;
    }

    h1.title {
        font-size: 2rem;
    }

    h2.title {
        font-size: 1.75rem;
    }
}