/* =============================================
   STYLE.CSS
   Theme: Consultoría Financiera en Argentina
   Design System: Futurista
   Trend: Dinámicos цветовые переходы
   Color Scheme: Neutral
   Animation Style: Morphing
   ============================================= */

/* =========== GOOGLE FONTS =========== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Rubik:wght@400;500&display=swap');

/* =========== CSS VARIABLES =========== */
:root {
    /* Colors */
    --bg-dark-primary: #0D1117;
    --bg-dark-secondary: #161B22;
    --bg-light-primary: #FFFFFF;
    --bg-light-secondary: #f0f2f5;
    
    --text-light: #F0F6FC;
    --text-dark: #333333;
    --text-muted: #8B949E;

    /* Accents & Gradients */
    --accent-primary: #3081F7;
    --accent-secondary: #A371F7;
    --accent-glow: rgba(48, 129, 247, 0.5);
    --dynamic-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --dynamic-gradient-hover: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);

    /* Fonts */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========== GLOBAL & RESET 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-light-primary);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

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

.section {
    padding: 6rem 0;
}

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

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

.section-description {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    color: #555;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.column {
    flex: 1;
    min-width: 300px;
}

.is-two-thirds {
    flex: 2;
}

.section-dark {
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
}
.section-dark h2, .section-dark p {
    color: var(--text-light);
}

.section-light-gradient {
    background: linear-gradient(180deg, var(--bg-light-secondary) 0%, var(--bg-light-primary) 100%);
}

/* =========== HEADER & NAVIGATION =========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 1rem 0;
}
.header.scrolled {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-light);
}
.header.scrolled .nav-logo {
    color: var(--text-light);
}

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

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dynamic-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

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

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

/* =========== HERO SECTION =========== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #FFFFFF;
    font-weight: 400;
}

/* =========== BUTTONS (GLOBAL) =========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--dynamic-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--dynamic-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-glow);
    text-decoration: none;
}

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

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

/* =========== CARD STYLES =========== */
.card {
    background: var(--bg-light-primary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-fast);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

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

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

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

.card-content p {
    flex-grow: 1;
    color: #555;
}

.card-content .btn {
    margin-top: 1.5rem;
}

/* =========== CUSTOM SLIDER (CASE STUDIES) =========== */
.custom-slider-container {
    position: relative;
}

.custom-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.custom-slider::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.custom-slider .slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    padding: 0 1rem;
}
@media (min-width: 768px) {
    .custom-slider .slide {
        flex: 0 0 50%;
    }
}
@media (min-width: 1024px) {
    .custom-slider .slide {
        flex: 0 0 33.333%;
    }
}


.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}
.slider-btn.prev { left: -25px; }
.slider-btn.next { right: -25px; }


/* =========== PROGRESS INDICATOR =========== */
.progress-indicator {
    width: 100%;
    margin-top: 1.5rem;
    text-align: left;
}
.progress-indicator span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: var(--bg-light-secondary);
    border-radius: 6px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--dynamic-gradient);
    border-radius: 6px;
    color: white;
    font-size: 0.7rem;
    line-height: 12px;
    text-align: center;
}

/* =========== COMMUNITY / GALLERY =========== */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.gallery-item {
    transition: var(--transition-fast);
    filter: grayscale(100%);
    opacity: 0.7;
}

.gallery-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* =========== EXTERNAL RESOURCES =========== */
.resources-list {
    max-width: 900px;
    margin: 0 auto;
}
.resource-item {
    background: var(--bg-light-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--accent-primary);
    transition: var(--transition-fast);
}
.resource-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}
.resource-title a {
    font-size: 1.2rem;
    font-weight: 700;
}
.resource-description {
    color: #555;
    margin-bottom: 0;
}

/* =========== CONTACT FORM & ACCORDION =========== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ccc;
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-light-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: var(--bg-light-primary);
    padding: 0 0.25rem;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.accordion-header:hover {
    background-color: var(--bg-light-secondary);
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.accordion-header.active::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}
.accordion-content p {
    padding: 0 1rem 1.5rem 1rem;
    margin-bottom: 0;
}

/* =========== FOOTER =========== */
.footer {
    background-color: var(--bg-dark-primary);
    color: var(--text-muted);
    padding: 4rem 0 2rem 0;
}

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

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.footer-col a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}
.footer-col a:hover {
    color: var(--accent-primary);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--bg-dark-secondary);
    padding-top: 2rem;
}

/* =========== OTHER PAGES (Success, Privacy, Terms) =========== */
.centered-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}
.centered-page .icon {
    font-size: 5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.legal-page {
    padding-top: 120px; /* Offset for fixed header */
}
.legal-page .container {
    max-width: 800px;
}
.legal-page h1 {
    margin-bottom: 2rem;
}
.legal-page h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* =========== RESPONSIVE STYLES =========== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-dark-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--bg-dark-secondary);
    }
    .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);
    }

    .columns {
        flex-direction: column;
    }

    .slider-btn { display: none; }
    
    .footer-grid {
        text-align: center;
    }
}