/*
* File: style.css
* Description: Stylesheet for 'Invertir ARG' website.
* Design System: Glassmorphism, Eco-Minimalism
* Color Scheme: Analogous
* Animation Style: 3D Effects
*/

/* ------------------- */
/* CSS Variables       */
/* ------------------- */
:root {
    /* Analogous Color Palette (Blue-Green) */
    --primary-color: #00796B; /* Teal - Growth, Trust */
    --primary-darker: #004D40; /* Darker Teal for hover/active states */
    --secondary-color: #0288D1; /* Light Blue - Stability, Professionalism */
    --accent-color: #4CAF50; /* Green - Success, Eco */

    /* Neutral & Text Colors */
    --text-color-dark: #212121; /* For light backgrounds */
    --text-color-light: #F5F7FA; /* For dark backgrounds */
    --bg-color-light: #F5F7FA; /* Almost white, very light blue/grey */
    --bg-color-dark: #1a1a1a;
    --border-color: #e0e0e0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-light: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 10px;

    /* Typography */
    --font-header: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    
    /* UI Elements */
    --border-radius: 8px;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --transition-speed: 0.3s ease;
}

/* ------------------- */
/* Global Styles       */
/* ------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--bg-color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ------------------- */
/* Typography          */
/* ------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 800;
    color: var(--text-color-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-darker);
    text-decoration: underline;
}

/* ------------------- */
/* Layout & Containers */
/* ------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-light {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 40px;
    font-size: 1.1rem;
    color: #555;
}


/* ------------------- */
/* Header & Navigation */
/* ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-color-dark);
    text-decoration: none;
}
.header.scrolled .logo, .header.scrolled .nav-link {
    color: var(--text-color-dark);
}
.logo strong {
    color: var(--primary-color);
}
.hero-section .logo, .hero-section .nav-link {
     color: var(--text-color-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color-dark);
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-speed);
}

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

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color-dark);
    transition: all var(--transition-speed);
}
.hero-section .bar {
    background-color: var(--text-color-light);
}
.header.scrolled .bar {
    background-color: var(--text-color-dark);
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

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

.hero-title {
    color: var(--text-color-light);
    font-size: 4rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 20px auto 40px;
    line-height: 1.8;
}

/* ------------------- */
/* Buttons             */
/* ------------------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-speed);
    transform-style: preserve-3d;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-darker);
    color: var(--text-color-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 121, 107, 0.4);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ------------------- */
/* Cards               */
/* ------------------- */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a grid have same height */
    text-align: center;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.card-content {
    padding: 30px;
    flex-grow: 1; /* Allows content to fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-content h3 {
    margin-bottom: 15px;
}
.card-content p {
    flex-grow: 1; /* Pushes button to bottom */
}


/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 30px;
    color: var(--text-color-dark);
}

/* ------------------- */
/* Sections Styling    */
/* ------------------- */

/* Mission Section */
.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}
.mission-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services, Instructors, Team Grids */
.services-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.instructor-title, .team-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* Customer Stories */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.story-card {
    background-color: var(--glass-bg-light);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.story-quote {
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--accent-color);
}

/* Press Section */
.press-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.press-logos img {
    height: 40px;
    width: auto;
    filter: grayscale(100%) opacity(0.6);
    transition: filter var(--transition-speed);
}
.press-logos img:hover {
    filter: grayscale(0%) opacity(1);
}

/* External Resources */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.resource-card {
    transition: all var(--transition-speed);
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 121, 107, 0.2);
}
.resource-card h4 a {
    text-decoration: none;
    color: var(--primary-darker);
}
.resource-card h4 a:hover {
    color: var(--accent-color);
}

/* ------------------- */
/* Contact Form        */
/* ------------------- */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--bg-color-light);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ------------------- */
/* Footer              */
/* ------------------- */
.footer {
    background-color: var(--bg-color-dark);
    color: var(--text-color-light);
    padding: 60px 0 0;
}

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

.footer-title {
    color: var(--text-color-light);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer p, .footer a {
    color: #a0a0a0;
    font-size: 0.95rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a:hover {
    color: var(--text-color-light);
    text-decoration: none;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* ------------------- */
/* Special Pages       */
/* ------------------- */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background-color: var(--bg-color-light);
    padding: 40px;
}
.success-page-container .icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.legal-page-content {
    padding: 120px 0 60px; /* 100px for header + 20px extra */
    background-color: white;
}
.legal-page-content h1 {
    margin-bottom: 30px;
}
.legal-page-content h2 {
    margin-top: 40px;
}

/* ------------------- */
/* Animations          */
/* ------------------- */
.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------- */
/* Responsive Design   */
/* ------------------- */
@media (max-width: 992px) {
    h1, .hero-title { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    .mission-content { grid-template-columns: 1fr; }
    .mission-image { order: -1; margin-bottom: 30px; }
    .resources-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    h1, .hero-title { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .section { padding: 60px 0; }
    .section-title { margin-bottom: 40px; }
    .stories-grid { grid-template-columns: 1fr; }

    /* Hamburger Menu Logic */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        transition: left 0.4s ease-in-out;
        gap: 40px;
    }

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

    .nav-link {
        font-size: 1.5rem;
        color: var(--text-color-dark);
    }
    
    .hamburger {
        display: block;
        z-index: 1001; /* Above the menu */
    }

    .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);
    }
    .hamburger.active .bar {
        background-color: var(--text-color-dark);
    }
}