/* 
    KURGAS COLOMBIA - HYBRID DESIGN SYSTEM 
    Combines Corporate Branding with UX-High Conversion Layout
*/

:root {
    /* Color Palette */
    --primary-yellow: #FFD400;
    --secondary-green: #00A96B;
    --dark-green: #008f5a;
    --secondary-blue: #123B9A; /* Restoring for some contrast elements if needed */
    --text-black: #1a1a1a;
    --text-grey: #4a4a4a;
    --white: #ffffff;
    --light-bg: #F5F7FA;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 30px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Base Styles */
* { margin:0; padding:0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-black); overflow-x: hidden; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }
.w-100 { width: 100%; }

/* UTILITY BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn--primary {
    background-color: var(--secondary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 169, 107, 0.3);
}

.btn--primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

.btn--outline-white {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-yellow {
    background: var(--primary-yellow);
    color: var(--text-black);
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-green {
    background: var(--secondary-green);
    color: var(--white);
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    display: inline-block;
}

/* HEADER SYSTEM (GLOBAL) */
.top-info-bar { background: var(--primary-yellow); padding: 12px 0; }
.top-info-bar .container { display: flex; justify-content: flex-end; gap: 30px; align-items: center; }
.info-item { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; }
.info-item i { width: 32px; height: 32px; border: 2px solid var(--text-black); display: flex; align-items: center; justify-content: center; border-radius: 5px; }
.info-item-text span { display: block; color: var(--text-grey); font-weight: 400; font-size: 0.7rem; }

.nav-bar { background: var(--primary-yellow); border-top: 1px solid rgba(0,0,0,0.05); padding: 10px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-bar .container { display: flex; justify-content: space-between; align-items: center; }
.logo-main img { width: 130px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-black); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.nav-links a.active { color: var(--secondary-green); }
.social-header { display: flex; gap: 8px; }
.social-header a { width: 35px; height: 35px; background: var(--secondary-blue); color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 0.9rem; }

/* MOBILE MENU UI */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-black);
    cursor: pointer;
    z-index: 1001;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-logo {
    display: none;
    margin-bottom: 40px;
    text-align: center;
}

.mobile-logo img {
    width: 150px;
    margin: 0 auto;
}

/* RE-STYLE HERO BANNER (FOR SUBPAGES) */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagenes/equipo_kurgas.webp');
    background-size: cover; background-position: center;
    height: 350px; display: flex; align-items: center; justify-content: center; position: relative;
    border-bottom: 20px solid var(--white);
}

.hero-banner h1 {
    color: var(--primary-yellow);
    font-size: 3.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    text-align: center;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M0 0 c 150 100 850 100 1000 0 v 100 h -1000 z" fill="white"/></svg>');
    background-size: 100% 40px;
}

/* HOME HERO (Modern & Dynamic) */
.hero-home {
    background: linear-gradient(-45deg, var(--secondary-green), var(--dark-green), #004d31, var(--secondary-green));
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-home::before, .hero-home::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 212, 0, 0.1);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-home::before { top: -100px; right: -50px; animation: float 10s ease-in-out infinite; }
.hero-home::after { bottom: -100px; left: -50px; animation: float 12s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 40px); }
}

.hero-home .container { position: relative; z-index: 2; }

.hero-home__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-home__title { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; font-weight: 800; letter-spacing: -1px; }
.hero-home__subtitle { font-size: 1.3rem; opacity: 0.9; margin-bottom: 35px; max-width: 600px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 40px; }
.badge { background: rgba(255,255,255,0.15); padding: 7px 18px; border-radius: 30px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.25); font-weight: 600; backdrop-filter: blur(5px); display: flex; align-items: center; gap: 8px; }
.badge i { color: var(--primary-yellow); font-size: 0.9rem; }
.hero-actions { display: flex; gap: 20px; }

/* STEPS SECTION */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.step-card { 
    background: var(--white); 
    padding: 50px 30px; 
    border-radius: var(--radius-lg); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
    text-align: center; 
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    transition: var(--transition);
}
.step-card::after {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 5px;
    background: var(--primary-yellow);
    border-radius: 0 0 10px 10px;
}
.step-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.step-icon { font-size: 3.5rem; margin-bottom: 25px; display: block; filter: drop-shadow(0 5px 10px rgba(0,169,107,0.2)); }
.step-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--secondary-green); }
.step-card p { color: var(--text-grey); font-size: 1rem; }

/* PRODUCTS SECTION */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.product-card { 
    background: var(--white); 
    padding: 50px 30px; 
    border-radius: var(--radius-lg); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.04); 
    text-align: center; 
    transition: var(--transition); 
    border: 1px solid rgba(0,0,0,0.03); 
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,212,0,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover { transform: translateY(-12px); border-color: var(--primary-yellow); box-shadow: var(--shadow); }
.product-card:hover::before { opacity: 1; }

.product-img-wrapper { 
    height: 160px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 30px; 
    position: relative;
    z-index: 2;
}

.product-img-wrapper img { transition: var(--transition); }
.product-card:hover .product-img-wrapper img { transform: scale(1.1) rotate(5deg); }

.product-card h3 { font-size: 1.6rem; color: var(--text-black); z-index: 2; position: relative; }
.product-features { list-style: none; margin: 25px 0; text-align: left; position: relative; z-index: 2; }
.product-features li { margin-bottom: 12px; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.product-features li i { color: var(--secondary-green); font-size: 1.1rem; }

/* NOSOTROS SPECIFIC STYLES (Kept for nosotros.html) */
.split-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.section-tag { color: var(--secondary-green); font-weight: 800; font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }

.design-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.green-card { 
    background: var(--secondary-green); 
    color: var(--white); 
    padding: 30px; 
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.green-card:hover {
    transform: translateY(-5px);
    background: var(--dark-green);
    box-shadow: 0 10px 20px rgba(0, 169, 107, 0.2);
}

.green-card i { font-size: 2.2rem; color: var(--primary-yellow); margin-bottom: 20px; display: block; transition: var(--transition); }
.green-card:hover i { transform: scale(1.1); }
.green-card h4 { text-transform: uppercase; margin-bottom: 12px; font-size: 1.1rem; letter-spacing: 0.5px; }
.green-card p { font-size: 0.9rem; opacity: 0.9; line-height: 1.5; }

.pres-badge { border: 2px solid var(--primary-yellow); color: var(--primary-yellow); padding: 5px 15px; font-weight: 800; font-size: 0.7rem; display: inline-block; margin-bottom: 15px; }
.pres-title { color: var(--secondary-green); font-size: 2.2rem; margin-bottom: 20px; }
.pres-list li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 0.85rem; font-weight: 600; }
.pres-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 20px; height: 3px; background: var(--primary-yellow); }

.image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--primary-yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-placeholder img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

/* BLOG STYLES */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card__image {
    height: 220px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.1);
}

.blog-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__tag {
    display: inline-block;
    color: var(--secondary-green);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-black);
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 20px;
}

.blog-card__link {
    margin-top: auto;
    color: var(--secondary-green);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card__link i {
    transition: var(--transition);
}

.blog-card__link:hover i {
    transform: translateX(5px);
}

/* SINGLE BLOG POST STYLES */
.post-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('imagenes/equipo_kurgas.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.post-header h1 {
    font-size: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.post-content {
    max-width: 800px;
    margin: -50px auto 80px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 10;
}

.post-main-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 30px;
}

.post-text h2 { color: var(--secondary-green); margin: 30px 0 15px; }
.post-text p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-grey); }
.post-text ul { margin-bottom: 20px; padding-left: 20px; }
.post-text li { margin-bottom: 10px; color: var(--text-grey); font-weight: 500; }

.post-cta {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
    border: 2px dashed var(--secondary-green);
}

.post-cta h3 { margin-bottom: 15px; color: var(--text-black); }

/* CTA BANNER (Nosotros) */
.cta-banner {
    background: var(--primary-yellow);
    padding: 50px 0;
    text-align: center;
}

.cta-banner h2 { color: var(--secondary-green); font-size: 2.2rem; margin-bottom: 10px; }
.cta-banner p { font-weight: 600; color: var(--text-grey); margin-bottom: 25px; }

/* FOOTER (GLOBAL) */
.footer-new { background: linear-gradient(to right, #FFD400 30%, #44C192 100%); padding: 60px 0; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; }
.footer-logo img { width: 160px; }
.footer-col h4 { margin-bottom: 20px; font-size: 0.95rem; color: var(--text-black); }
.footer-col p, .footer-col a { display: block; margin-bottom: 10px; font-size: 0.85rem; color: var(--text-black); font-weight: 500; }

/* STICKY BAR */
.sticky-action-bar { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.action-btn { background: var(--secondary-green); color: white; padding: 12px 25px; border-radius: 50px; font-weight: 700; box-shadow: 0 5px 20px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; }

/* TESTIMONIALS REDESIGN (Dynamic & Photo-less) */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, var(--light-bg));
    overflow: hidden;
}

.testimonials-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* Marquee Logic */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 30px;
    padding: 40px 0;
}

.marquee-content {
    display: flex;
    gap: 30px;
    animation: scroll 40s linear infinite;
    flex-shrink: 0;
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 30px)); }
}

/* Card Styling */
.testimonial-card-v2 {
    background: var(--white);
    min-width: 380px;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card-v2:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,169,107,0.1);
    border-color: var(--secondary-green);
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: var(--secondary-green);
    opacity: 0.1;
}

.rating-stars {
    color: var(--primary-yellow);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-grey);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.user-avatar-circle {
    width: 50px;
    height: 50px;
    background: var(--secondary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,169,107,0.2);
}

.user-info h4 {
    font-size: 1rem;
    color: var(--text-black);
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.8rem;
    color: var(--text-grey);
    font-weight: 600;
}

/* Responsive Refactor & Premium Polish */
@media (max-width: 1200px) {
    .container { max-width: 960px; }
    .hero-home__title { font-size: 3.2rem; }
}

@media (max-width: 992px) {
    .container { max-width: 100%; padding: 0 25px; }
    
    .top-info-bar { display: none; } /* Hide complicated bar on mobile */
    
    .nav-bar { padding: 15px 0; }
    
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--secondary-green);
        flex-direction: column;
        padding: 80px 40px;
        z-index: 1001;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links a {
        color: var(--white);
        font-size: 1.1rem;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
        width: 100%;
    }
    
    .nav-links a.active { color: var(--primary-yellow); border-bottom-color: var(--primary-yellow); }
    
    .mobile-logo { display: block; }
    
    .mobile-contact-btn {
        background: var(--primary-yellow);
        color: var(--text-black) !important;
        padding: 15px;
        border-radius: var(--radius-sm);
        text-align: center;
        font-weight: 800;
        margin-top: 20px;
    }

    .social-header { display: none; } /* Hide in bar, show in menu bottom if needed */

    /* HERO HOME */
    .hero-home { padding: 80px 0 120px; text-align: center; }
    .hero-home__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-home__title { font-size: 2.8rem; }
    .hero-home__subtitle { margin: 0 auto 30px; }
    .trust-badges { justify-content: center; }
    .hero-actions { justify-content: center; flex-direction: column; }
    .hero-home__image { max-width: 300px; margin: 0 auto; }

    /* GRIDS */
    .steps-grid, .products-grid, .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-logo img { margin: 0 auto; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .hero-home__title { font-size: 2.22rem; }
    .split-section { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .design-cards { grid-template-columns: 1fr; }
    .image-placeholder { height: 300px; }
    
    .testimonial-card-v2 { min-width: 300px; padding: 30px; }
    
    .hero-banner h1 { font-size: 2.5rem; }
}

/* Premium Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.sticky-action-bar {
    width: auto;
    left: auto;
    right: 20px;
}

@media (max-width: 576px) {
    .hero-actions .btn { width: 100%; }
    .sticky-action-bar { 
        bottom: 20px; 
        right: 20px;
        left: 20px;
    }
    .action-btn { justify-content: center; width: 100%; }
}
