/*
* FILE: style.css
* THEME: Negocios y Economía
* DESIGN: Brutalismo con Texturas Hiperrealistas
*/

/* ---------------------------------------------------------------------
 * 1. VARIABLES & RESET
 * --------------------------------------------------------------------- */

:root {
    /* Color Palette (Complementary: Deep Blue & Amber/Orange) */
    --primary-color: #0d3b66; /* Deep Blue */
    --accent-color: #f9a826; /* Bright Amber */
    --accent-color-dark: #e89815; /* Darker Amber for hover */
    
    --background-color: #fdfdfd;
    --light-background-color: #f4f4f9;
    --dark-background-color: #1a1a1a;

    --text-color: #333333;
    --text-color-light: #ffffff;
    --text-color-muted: #6c757d;
    --border-color: #e0e0e0;
    --brutalist-border: 2px solid var(--text-color);

    /* Typography */
    --font-family-headings: 'Poppins', sans-serif;
    --font-family-body: 'Work Sans', sans-serif;

    /* Spacing */
    --section-padding: 6rem 1.5rem;
    --container-max-width: 1140px;
    --header-height: 80px;
}

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

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

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

/* ---------------------------------------------------------------------
 * 2. TYPOGRAPHY & BASE ELEMENTS
 * --------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* ---------------------------------------------------------------------
 * 3. LAYOUT & HELPERS
 * --------------------------------------------------------------------- */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    font-weight: 900;
    position: relative;
    padding-bottom: 1rem;
}
.section-title.is-left {
    text-align: left;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}
.section-title.is-left::after {
    left: 0;
    transform: translateX(0);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 4rem auto;
    font-size: 1.1rem;
    color: var(--text-color-muted);
}

.columns {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.column {
    padding: 0.75rem;
    flex-grow: 1;
    flex-basis: 0;
}
.column.is-one-third { flex: 0 0 33.3333%; }
.column.is-two-thirds { flex: 0 0 66.6666%; }
.column.is-half { flex: 0 0 50%; }
.column.is-one-quarter { flex: 0 0 25%; }

.has-background-light { background-color: var(--light-background-color); }
.has-background-dark { background-color: var(--dark-background-color); }
.has-text-white { color: var(--text-color-light) !important; }
.has-text-white h1, .has-text-white h2, .has-text-white h3, .has-text-white h4 {
    color: var(--text-color-light) !important;
}
.has-text-centered { text-align: center; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* ---------------------------------------------------------------------
 * 4. GLOBAL COMPONENTS (BUTTONS, FORMS, CARDS)
 * --------------------------------------------------------------------- */

/* Buttons */
.button, button, input[type='submit'] {
    display: inline-block;
    font-family: var(--font-family-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    border: var(--brutalist-border);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
}

.button:hover, button:hover, input[type='submit']:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--text-color);
}

.button.is-primary, button.is-primary, input[type='submit'].is-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    border-color: var(--text-color);
}
.button.is-primary:hover {
    background-color: var(--accent-color-dark);
}

.button.is-large { padding: 1.2rem 3rem; font-size: 1.1rem; }
.button.is-fullwidth { display: block; width: 100%; }

/* Forms */
.input, .textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-family-body);
    font-size: 1rem;
    background-color: var(--background-color);
    border: var(--brutalist-border);
    color: var(--text-color);
    transition: all 0.3s ease;
}
.input:focus, .textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 4px 4px 0 var(--accent-color);
    transform: translate(-2px, -2px);
}
.field { margin-bottom: 1.5rem; }
.label { 
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-headings);
    font-weight: 700;
}

/* Cards */
.card {
    background-color: #fff;
    border: var(--brutalist-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 5px 5px 0 var(--primary-color);
}
.card-image {
    width: 100%;
    border-bottom: var(--brutalist-border);
}
.card-image .image-container {
    width: 100%;
    height: 200px; /* Fixed height for image containers */
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images cover the area without distortion */
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card-content h3, .card-content h4 {
    margin-top: 0;
}

/* ---------------------------------------------------------------------
 * 5. HEADER & NAVIGATION
 * --------------------------------------------------------------------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(253, 253, 253, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: var(--brutalist-border);
    height: var(--header-height);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}
.navbar-logo {
    font-family: var(--font-family-headings);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.navbar-menu {
    display: flex;
    align-items: center;
}
.navbar-end {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.navbar-item {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
}
.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}
.navbar-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.navbar-item.button-contact {
    border: var(--brutalist-border);
    padding: 0.5rem 1.5rem;
}
.navbar-item.button-contact:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--text-color);
}
.navbar-burger { display: none; }

/* ---------------------------------------------------------------------
 * 6. SECTION STYLES
 * --------------------------------------------------------------------- */

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    color: var(--text-color-light);
    min-height: 100vh;
}
.hero-body {
    padding: 2rem;
}
.hero-title {
    color: var(--text-color-light);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.8;
}

/* Our Process (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) .timeline-content {
    border: var(--brutalist-border);
    padding: 1.5rem;
}
.timeline-item:nth-child(even) .timeline-content {
    border: var(--brutalist-border);
    padding: 1.5rem;
}
.timeline-marker {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--accent-color);
    border: 4px solid var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}
.timeline-content .heading {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-color-muted);
}
progress.progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border: 1px solid var(--text-color);
}
progress.progress::-webkit-progress-bar {
    background-color: var(--border-color);
}
progress.progress::-webkit-progress-value {
    background-color: var(--primary-color);
}

/* Accolades */
#accolades {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
}
.stat-widget .stat-number {
    font-family: var(--font-family-headings);
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-color);
}
.stat-widget .stat-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* External Resources */
.resource-card {
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    background-color: #fff;
    height: 100%;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.resource-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.resource-card h3 a { color: var(--primary-color); }
.resource-card h3 a:hover { color: var(--accent-color); }

/* ---------------------------------------------------------------------
 * 7. FOOTER
 * --------------------------------------------------------------------- */

.footer {
    background-color: var(--dark-background-color);
    color: var(--text-color-light);
    padding: 4rem 1.5rem;
}
.footer-title {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer ul {
    list-style: none;
}
.footer ul li {
    margin-bottom: 0.75rem;
}
.footer a {
    color: var(--text-color-muted);
    transition: all 0.3s ease;
}
.footer a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.footer p {
    color: var(--text-color-muted);
}

/* ---------------------------------------------------------------------
 * 8. ANIMATIONS & TRANSITIONS
 * --------------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------------
 * 9. SPECIFIC PAGE STYLES
 * --------------------------------------------------------------------- */
.static-page-content {
    padding-top: calc(var(--header-height) + 4rem); /* Header height + extra space */
    padding-bottom: 4rem;
}
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    background-color: var(--light-background-color);
    padding: 2rem;
}
.success-page .success-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------
 * 10. RESPONSIVE DESIGN
 * --------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2, .section-title { font-size: 2rem; }

    .section {
        padding: 4rem 1rem;
    }

    /* Navbar Mobile */
    .navbar-burger {
        display: block;
        cursor: pointer;
        width: 3rem;
        height: 3rem;
        position: relative;
        background: none;
        border: none;
    }
    .navbar-burger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--primary-color);
        left: 0;
        transition: all 0.3s ease-in-out;
    }
    .navbar-burger span:nth-child(1) { top: 25%; }
    .navbar-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .navbar-burger span:nth-child(3) { top: 75%; }
    .navbar-burger.is-active span:nth-child(1) { top: 50%; transform: rotate(135deg); }
    .navbar-burger.is-active span:nth-child(2) { opacity: 0; }
    .navbar-burger.is-active span:nth-child(3) { top: 50%; transform: rotate(-135deg); }

    .navbar-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        border-bottom: var(--brutalist-border);
    }
    .navbar-menu.is-active { display: block; }
    .navbar-end {
        flex-direction: column;
        padding: 2rem;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* Columns */
    .columns {
        display: block;
        margin: 0;
    }
    .column { padding: 0; }
    .column.is-one-third, .column.is-two-thirds, .column.is-half, .column.is-one-quarter {
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Timeline Mobile */
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-marker, .timeline-item:nth-child(even) .timeline-marker {
        left: 21px;
    }

    /* Contact Form */
    #contact .columns { flex-direction: column; }
    #contact .column { width: 100%; }

    .footer .columns { flex-direction: column; }
    .footer .column { margin-bottom: 2rem; }
}