/* Corepack Hybrid Styles - Restored Structure + Modern Polish */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Source+Sans+Pro:wght@400;600;700;900&display=swap');

:root {
    /* Original Brand Colors (Recovered from 226-layout.css) */
    --primary-blue: #1d71b9;
    /* Corepack Official Blue */
    --secondary-blue: #00496c;
    /* Corepack Dark Navy */
    --accent-red: #cd2122;
    /* Corepack Red Accent */

    /* Modern Gradients (User Requested) */
    --brand-gradient: linear-gradient(135deg, #002a5c 0%, #1d71b9 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);

    /* Typography (Recovered) */
    --font-titles: 'Source Sans Pro', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* UI Variables */
    --text-color: #443f3f;
    /* Original Dark Grey */
    --text-light: #666666;
    --white: #ffffff;
    --header-height: 90px;
    --container-width: 1200px;

    /* Modern Polish */
    --radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-transform: translateY(-5px);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    /* Restored white background */
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* LAYOUT & GRID (Restoring proper spacing) */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

/* Typography Restoration */
h1,
h2,
h3,
h4 {
    font-family: var(--font-titles);
    color: var(--secondary-blue);
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* HEADER - Hybrid Design (Modern Gradient + Original Layout) */
header {
    background: var(--brand-gradient);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

header.sticky {
    height: 70px;
    background: rgba(0, 73, 108, 0.95);
    /* Original Dark Blue with transparency */
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo */
.logo img {
    height: 60px;
    /* Restored larger size */
    width: auto;
    filter: brightness(0) invert(1);
    transition: height 0.3s ease;
}

header.sticky .logo img {
    height: 45px;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-titles);
    font-weight: 600;
    font-size: 14px;
    /* Restored distinct size */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link::after {
    /* Underline effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-red);
    /* Original Red Accent */
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

/* Navigation Desktop Styling */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    /* Force hide on desktop */
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
}

/* Mobile Styling */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    /* Show on mobile */
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--secondary-blue);
        padding: 30px;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* HERO SLIDER */
.swiper-container {
    width: 100%;
    height: 550px;
    position: relative;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.swiper-slide::before {
    /* Dark overlay for text readability */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* CARDS & GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider cards */
    gap: 30px;
    margin: 50px auto;
}

.product-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    /* Subtle shadow initially */
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: var(--hover-transform);
    box-shadow: var(--shadow-md);
}

.product-card img {
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-red);
    /* Corepack Brand Touch */
}

.product-card h3 {
    margin: 20px 20px 10px;
    font-size: 1.4rem;
    color: var(--secondary-blue);
}

.separator {
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
    margin: 0 20px 15px;
}

.product-card p {
    padding: 0 20px 25px;
    font-size: 1rem;
    color: var(--text-light);
}

/* INFO SECTION */
.info-section {
    background-color: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* SECTORES CLAVES SECTION (Restored) */
.sectores-section {
    background-image: url('../img/SectoresClave_HomeCorepack.png');
    /* Original Image */
    background-color: var(--primary-blue);
    /* Fallback */
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
    color: var(--white);
    display: flex;
    align-items: center;
}

.sectores-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(29, 113, 185, 0.9) 0%, rgba(29, 113, 185, 0.4) 100%);
    /* Blue overlay */
    z-index: 1;
}

.setores-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    /* Text to the right as per original structure? No, original had text right-aligned but div was right aligned. Let's align left based on screenshot? Screenshot shows text LEFT aligned on a blue field. */
    /* Correction: The screenshot shows text on the LEFT, image features on the right. */
    justify-content: flex-start;
}

.sectores-text {
    max-width: 600px;
}

.sectores-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    text-align: left;
    /* Explicitly left */
}

.sectores-text p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline-white {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .sectores-section {
        padding: 60px 0;
    }

    .sectores-text h2 {
        font-size: 2.5rem;
    }

    .sectores-text p {
        font-size: 1rem;
    }
}

/* CLIENTS GRID (Restored 'Large Box' Layout) */
.clients-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--white);
}

.clients-section h2 {
    color: var(--primary-blue);
    /* Corepack Blue */
    font-size: 3rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile: 2 columns */
    gap: 15px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Tablet: 4 columns */
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(6, 1fr);
        /* Desktop: 6 columns (Original Layout) */
        gap: 25px;
    }
}

/* GRID SYSTEM (Bootstrap-lite for Layout Restoration) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4,
.col-md-6,
.col-md-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Mobile First: Stacked by default (width 100% above) */

/* Tablet/Desktop Grid */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    /* Helper for alignment */
    .align-center {
        align-items: center;
    }
}


/* SECTORS SECTION (Flexbox Layout) */
.sectors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    /* Increased gap */
    margin-top: 40px;
}

.sector-item {
    flex: 0 1 280px;
    /* Increased width */
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.sector-item img {
    height: 130px;
    /* Significantly larger icons (Original size approx) */
    width: auto;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

.sector-item:hover img {
    transform: scale(1.15);
    /* Zoom effect on hover */
}

.sector-item h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    /* Larger Title */
    font-weight: 700;
    margin-bottom: 15px;
}

.sector-item p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Client Box - The 'Gray Box' Look */
.client-box {
    background-color: #f4f4f4;
    /* Original Light Gray */
    height: 160px;
    /* Fixed square-ish height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 4px;
    /* Slight rounding, not too much */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    /* Prepare for hover border */
    position: relative;
    overflow: hidden;
}

.client-box:hover {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #eee;
    transform: translateY(-5px);
    z-index: 2;
}

/* Logo Styling */
.client-box img {
    max-width: 80%;
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    mix-blend-mode: multiply;
    /* Blends nicely with gray bg */
}

.client-box:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
    mix-blend-mode: normal;
}

/* FOOTER (Restored 3-Column Layout) */
footer {
    background-color: var(--secondary-blue);
    /* Solid Dark Blue */
    color: var(--white);
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

@media (min-width: 992px) {
    .footer-content-grid {
        grid-template-columns: 4fr 4fr 3fr;
        /* 40% 40% 30% roughly */
        text-align: left;
        align-items: flex-start;
    }
}

/* Col 1: Brand */
.footer-logos {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

@media (min-width: 992px) {
    .footer-logos {
        justify-content: flex-start;
    }
}

.f-logo-corepack {
    height: 60px;
    filter: brightness(0) invert(1);
}

.f-logo-colombia {
    height: 60px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .footer-brand p {
        margin-left: 0;
    }
}


/* CONTACT FORM STYLES */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-blue);
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(29, 113, 185, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #a81a1b;
    /* Darker Red */
    transform: translateY(-2px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@media (min-width: 992px) {
    .social-icons {
        justify-content: flex-start;
    }
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent-red);
}

/* Col 2: Nav */
.footer-nav {
    display: flex;
    flex-direction: column;
    /* Vertical list on mobile */
    gap: 15px;
    align-items: center;
}

@media (min-width: 992px) {
    .footer-nav {
        flex-direction: row;
        /* Horizontal on desktop */
        justify-content: center;
        gap: 25px;
        margin-top: 20px;
        /* Align with top logos */
    }
}

.footer-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Col 3: Copyright */
.footer-copyright {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
}

@media (min-width: 992px) {
    .footer-copyright {
        text-align: right;
        margin-top: 40px;
        /* Push to bottom */
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logos {
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    /* Show on mobile */

    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--secondary-blue);
        padding: 30px;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Footer Logos Adjustment */
.footer-logos {
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

@media (min-width: 992px) {
    .footer-logos {
        align-items: flex-start;
        /* Left align on desktop */
    }
}

.f-logo-corepack {
    height: 60px;
    filter: brightness(0) invert(1);
    width: auto;
    object-fit: contain;
}

.f-logo-colombia {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Restored Typography Sizes */
.hero-content h1 {
    font-size: 3rem;
    color: #ffffff;
    /* Explicit White */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    /* Strong shadow for contrast */
    margin-bottom: 10px;
}

h2 {
    font-size: 2rem;
}

/* UTILS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
}

.whatsapp-float img {
    width: 35px;
}