/*
================================================
  ArgOil Invest CSS
  Design System: Retro + Biomorphic
  Color Scheme: Complementary
  Animation Style: Bouncy/Elastic
================================================
*/

/* 
---------------------------------
0. CSS Variables (Root)
---------------------------------
*/
:root {
    /* Color Palette - Complementary (Dark Blue & Amber/Gold) */
    --primary-color: #0D1B2A; /* Rich Black/Dark Blue - Main Background */
    --secondary-color: #1B263B; /* Gunmetal Blue - Lighter Dark Shade */
    --accent-color: #E0A458; /* Dark Goldenrod/Amber - Main Accent */
    --accent-hover-color: #f0b56a; /* Lighter Amber for hover */
    
    /* Text Colors */
    --text-light: #F0F2F5; /* Light Grey/Off-White for dark backgrounds */
    --text-dark: #333333; /* Dark Grey for light backgrounds */
    --text-header-dark: #222222;

    /* Backgrounds */
    --background-light: #f9f9f9; /* Very light grey for contrast sections */
    
    /* Fonts */
    --font-header: 'Poppins', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    
    /* Biomorphic & Retro Elements */
    --border-radius-soft: 15px;
    --border-radius-pill: 50px;
    
    /* Animation & Transitions */
    --transition-speed-fast: 0.3s;
    --transition-speed-normal: 0.5s;
    --bouncy-ease: cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --smooth-ease: ease-in-out;
}

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

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

h1, h2, h3, h4, h5, h6, .title {
    font-family: var(--font-header);
    color: var(--text-header-dark);
    font-weight: 700;
}

.title.has-text-white {
    color: var(--text-light);
}

.section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-title {
    color: var(--text-header-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section.has-background-light .section-title {
    color: var(--text-header-dark);
}

.section:not(.has-background-light) .section-title,
.section:not(.has-background-light) .subtitle {
    color: var(--text-light);
}

/* 
---------------------------------
2. Reusable Components
---------------------------------
*/

/* --- Global Button Styles --- */
.button.is-primary {
    background-color: var(--accent-color);
    border-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    transition: transform var(--transition-speed-fast) var(--bouncy-ease), background-color var(--transition-speed-fast) var(--smooth-ease);
}

.button.is-primary:hover {
    background-color: var(--accent-hover-color);
    transform: scale(1.05);
}

.button.is-primary:focus {
    box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.5);
}

/* --- Global Card Styles --- */
.card {
    background-color: #ffffff;
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed-normal) var(--bouncy-ease), box-shadow var(--transition-speed-fast) var(--smooth-ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card .card-image {
    width: 100%;
    overflow: hidden; /* Ensure image doesn't bleed out */
}

.card .card-image img {
    width: 100%;
    height: 200px; /* Fixed height for uniformity */
    object-fit: cover;
    display: block;
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to fill space */
}
.card .card-content .content {
    font-size: 0.95rem;
    color: #555;
}


/* 
---------------------------------
3. Header & Navigation
---------------------------------
*/
.header.is-fixed-top .navbar {
    background: linear-gradient(180deg, rgba(13, 27, 42, 0.95), rgba(13, 27, 42, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    color: var(--text-light) !important;
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--transition-speed-fast) var(--smooth-ease), transform var(--transition-speed-fast) var(--smooth-ease);
}

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

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

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 1rem;
        border-radius: 0 0 var(--border-radius-soft) var(--border-radius-soft);
    }
}

/* 
---------------------------------
4. Section Styles
---------------------------------
*/

/* --- Hero Section --- */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#hero .title, #hero .subtitle {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    color: #FFFFFF !important;
}

/* --- Features Section (#oportunidades) --- */
#oportunidades {
    background-color: var(--background-light);
}
.feature-card .title {
    color: var(--accent-color);
}

/* --- Awards Section --- */
#awards .progress-container {
    margin-bottom: 2rem;
}
#awards .progress {
    height: 1.25rem;
    border-radius: var(--border-radius-pill);
}

#awards .progress.is-primary::-webkit-progress-value { background-color: var(--accent-color); }
#awards .progress.is-primary::-moz-progress-bar { background-color: var(--accent-color); }

/* --- Events Section (Accordion) --- */
#eventos {
    background-color: var(--primary-color);
}
.accordion-item {
    background-color: var(--secondary-color);
    margin-bottom: 1rem;
    border-radius: var(--border-radius-soft);
    overflow: hidden;
    border: 1px solid rgba(224, 164, 88, 0.2);
}
.accordion-button {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
}
.accordion-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 600;
}
.accordion-button .icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform var(--transition-speed-fast) var(--smooth-ease);
}
.accordion-button[aria-expanded="true"] .icon {
    transform: rotate(45deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}
.accordion-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* --- Experts Section (#expertos) --- */
#expertos {
    background-color: var(--background-light);
}
.expert-card .card-content {
    text-align: center;
}
.expert-card .card-image {
    padding: 1.5rem 1.5rem 0 1.5rem;
}
.expert-card img.is-rounded {
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- External Resources Section (#recursos) --- */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.resource-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-soft);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.resource-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}
.resource-item h4.title a {
    color: var(--text-header-dark);
    text-decoration: none;
}
.resource-item h4.title a:hover {
    color: var(--accent-color);
}
.resource-item .description {
    color: #666;
}

/* --- Contact Section --- */
#contacto {
    background-color: var(--background-light);
}
#contact-form .input, #contact-form .textarea {
    border-radius: var(--border-radius-soft);
    border: 2px solid #ddd;
    transition: border-color var(--transition-speed-fast) ease, box-shadow var(--transition-speed-fast) ease;
}
#contact-form .input:focus, #contact-form .textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.3);
}

/* 
---------------------------------
5. Footer
---------------------------------
*/
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 1.5rem 2rem;
}
.footer .title {
    color: var(--accent-color);
}
.footer p, .footer ul li {
    color: var(--text-light);
    opacity: 0.8;
}
.footer a {
    color: var(--text-light);
    transition: color var(--transition-speed-fast) ease, padding-left var(--transition-speed-fast) ease;
}
.footer a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}
.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
}
.footer .content p {
    font-size: 0.9rem;
}


/* 
---------------------------------
6. Special Page Styles
---------------------------------
*/

/* --- Success Page --- */
body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: var(--primary-color);
}
.success-container {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 3rem 4rem;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.success-container .title {
    color: var(--text-light);
}
.success-container a.button.is-primary {
    margin-top: 1.5rem;
}

/* --- Legal Pages (Privacy, Terms) --- */
body.legal-page main {
    padding-top: 100px; /* Offset for fixed header */
    padding-bottom: 4rem;
    background-color: white;
}
.legal-content {
    max-width: 800px;
}
.legal-content h1, .legal-content h2 {
    color: var(--text-header-dark);
}
.legal-content p, .legal-content li {
    color: var(--text-dark);
}

/* 
---------------------------------
7. Animations & Media Queries
---------------------------------
*/

/* --- Initial states for ScrollReveal --- */
.card, .progress-container, .accordion-item, .resource-item {
    visibility: hidden; /* Hide until revealed */
}

/* --- Media Queries for Responsiveness --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    #hero .title {
        font-size: 2.5rem;
    }
    #hero .subtitle {
        font-size: 1.25rem;
    }
    .columns.is-vcentered .column.is-half {
        text-align: center;
    }
}