/* Variables */
:root {
    --primary-color: #004d40; /* Deep Teal/Green for Credicoop/Trust */
    --secondary-color: #ffb300; /* Amber/Earthy Accent */
    --text-color: #333333;
    --background-light: #f4f7f6;
    --background-dark: #2c3e50; /* Dark blue/grey for footer */
    --container-width: 1200px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
    scroll-behavior: smooth;
}

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

a:hover {
    color: var(--secondary-color);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.text-center {
    text-align: center;
}

/* Header */
.main-header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: 700;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.main-nav .menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li a {
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9em;
}

.nav-list li a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('product_vision.png') no-repeat center center;
    background-size: cover;
    padding: 100px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* CTA Button Styling */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #e69900;
    transform: translateY(-2px);
}

.primary-button {
    background-color: var(--primary-color);
}

.primary-button:hover {
    background-color: #00332e;
}

/* Custom Button variations for Catalog */
.secondary-button {
    background-color: #e0e0e0; /* Light grey */
    color: var(--primary-color);
}
.secondary-button:hover {
    background-color: #ccc;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.small-button {
    padding: 8px 15px;
    font-size: 0.85em;
    font-weight: 600;
}


/* Content Sections (Misión & Visión) */
.content-section {
    padding: 80px 0;
}

.content-section h3 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.content-section h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 15px;
}

.content-section .lead {
    font-size: 1.25em;
    font-weight: 500;
    color: var(--text-color);
}

.content-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.text-content, .image-content {
    flex: 1;
    min-width: 300px;
}

.content-section ul, .content-section ol {
    margin: 20px 0 20px 20px;
    padding-left: 20px;
}

.content-section ul {
    list-style-type: disc;
}
.content-section ol {
    list-style-type: decimal;
}

.content-section li {
    margin-bottom: 8px;
}

/* Catalog Grid and Cards */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.product-card h4 {
    color: var(--primary-color);
    margin: 20px 10px 10px;
    font-size: 1.3em;
}

.product-description {
    padding: 0 20px 15px;
    flex-grow: 1;
    font-size: 0.95em;
    color: #555;
}

.product-tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 5px auto 15px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
}

.primary-tag {
    background-color: var(--primary-color);
    color: white;
}

.accent-tag {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.product-card .cta-button {
    margin: 0 20px 20px;
}


/* Reverse layout for Vision */
.reverse-layout {
    flex-direction: row-reverse;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: white;
}
.cta-section h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: white;
    border-bottom: none;
}
.cta-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
}
.cta-section .primary-button {
    background-color: var(--secondary-color);
}
.cta-section .primary-button:hover {
    background-color: #e69900;
}

/* Contact Section */
.contact-info {
    text-align: center;
}
.contact-details {
    margin: 30px 0;
    font-size: 1.1em;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid var(--background-light);
    border-radius: 8px;
    text-align: left;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.contact-form h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.contact-form button {
    width: 100%;
}


/* Footer */
footer {
    background-color: var(--background-dark);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}


/* --- Mobile Responsiveness (Max width 768px) --- */
@media (max-width: 900px) {
    .content-layout {
        flex-direction: column;
        gap: 30px;
    }
    .reverse-layout {
        flex-direction: column; /* Revert to column stacking on mobile */
    }
    /* Ensure image and text flow naturally, usually text first */
    .image-content {
        order: 0; 
    }
}

@media (max-width: 768px) {
    /* Header/Navigation adjustments for mobile */
    .header-content {
        padding: 10px;
    }
    
    .logo-link h1 {
        font-size: 1em;
    }
    
    .main-nav {
        position: relative;
    }
    .main-nav .menu-toggle {
        display: block; /* Show menu toggle on mobile */
    }

    .nav-list {
        display: none; /* Hide list initially */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on header height */
        right: 10px;
        background-color: white;
        width: 180px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
        z-index: 999;
        overflow: hidden;
        border: 1px solid #ddd;
    }
    
    .nav-list.active {
        display: flex; /* Show list when active */
    }

    .nav-list li a {
        padding: 10px 15px;
        border-bottom: 1px solid var(--background-light);
        text-align: right;
    }
    
    .nav-list li:last-child a {
        border-bottom: none;
    }
    
    /* Content scaling */
    .hero-section {
        padding: 60px 10px;
        min-height: 300px;
    }
    .hero-section h2 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 1em;
    }

    .content-section {
        padding: 40px 0;
    }
    .content-section h3 {
        font-size: 1.8em;
    }
    
    .content-section .lead {
        font-size: 1.1em;
    }
    
    .content-section ul, .content-section ol {
        padding-left: 15px;
        margin: 15px 0;
    }
}