/* 
   CP QUIMICA - REFINED ELITE DESIGN 2026
   Aesthetics: Fine / Elegant / High Performance
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Roboto+Slab:wght@300;400;700;900&display=swap');

:root {
    --primary: #002B64;
    --accent: #00AEEF;
    --text-dark: #212529;
    --text-muted: #64748b;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    
    --navbar-h: 72px;
    --section-pad: 70px;
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* --- Base --- */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Open Sans', sans-serif; 
    background: var(--white); 
    color: var(--text-dark); 
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--navbar-h);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-family: 'Roboto Slab', serif; font-weight: 700; color: var(--primary); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 3.5rem; position: relative; }
h2::after { 
    content: ''; display: block; width: 60px; height: 4px; background: var(--accent); 
    margin: 1rem auto 0; border-radius: 2px;
}
p { font-size: 1rem; }

/* --- Navigation --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--navbar-h);
    background: var(--primary); z-index: 1000; display: flex; align-items: center;
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,26,100,0.15); }

.nav-container { 
    max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 1.5rem; 
    display: flex; justify-content: space-between; align-items: center;
}

.logo img { height: 42px; width: auto; transition: var(--transition); }

.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-link { 
    text-decoration: none; color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.nav-link:hover { color: var(--accent); }

/* Burger */
.menu-toggle {
    display: none; background: transparent; border: 1px solid rgba(255,255,255,0.2); 
    width: 40px; height: 40px; border-radius: 8px; cursor: pointer; color: white;
}

@media (max-width: 991px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed; top: var(--navbar-h); right: -100%; width: 100%; height: calc(100vh - var(--navbar-h));
        background: var(--primary); flex-direction: column; align-items: center; padding-top: 4rem;
        transition: 0.4s ease;
    }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.4rem; }
}

/* --- Hero --- */
.hero {
    min-height: 80vh; display: flex; align-items: center; position: relative;
    background: #000 url('../images/hero-bg.jpg') no-repeat center center / cover;
    background-attachment: fixed; color: white; text-align: center;
}
.hero::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0, 26, 64, 0.82);
}
.hero-content { position: relative; z-index: 10; max-width: 850px; margin: 0 auto; padding: 0 1.5rem; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2.5rem; font-weight: 300; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 2.2rem; border-radius: 50px; font-weight: 700; text-decoration: none;
    font-size: 0.95rem; transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #33beff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,174,239,0.3); }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }

/* --- Cards & Grid --- */
section { padding: var(--section-pad) 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

.grid-refined { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.card-refined {
    background: white; padding: 2rem 1.5rem; border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition);
    border: 1px solid #f1f5f9; text-align: center;
}
.card-refined:hover { transform: translateY(-5px); border-color: var(--accent); }
.card-refined i { font-size: 2.2rem; color: var(--accent); margin-bottom: 1.2rem; }
.card-refined span { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

/* --- Product Cards --- */
.product-card {
    background: white; border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: var(--transition);
    border: 1px solid #e2e8f0; height: 100%; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); }
.product-img { height: 200px; width: 100%; object-fit: cover; }
.product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.product-body p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; }

/* --- Contact Area --- */
.contact-section { background: #F1F5F9; }
.contact-box {
    background: white; padding: 2rem; border-radius: var(--radius);
    border-top: 4px solid var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}
.contact-box h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-box p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* --- Footer --- */
.site-footer { background: #001A3D; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; }
.footer-col h5 { color: white; font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: inherit; text-decoration: none; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); padding-left: 5px; }

/* --- Cookie Banner (Refined Elite Design) --- */
.cookie-card-refined {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90%;
    max-width: 500px;
    background: #FFFFFF;
    padding: 2.5rem; 
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 999999;
    display: none; 
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-card-refined.show { 
    display: flex !important; 
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-title {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif; /* Más limpio para este aviso */
}

.cookie-text {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cookie-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.cookie-btn-text {
    background: none;
    border: none;
    color: #718096;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-blue-text {
    color: var(--accent);
}

.cookie-btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    background: #0098d1;
}

@media (max-width: 576px) {
    .cookie-card-refined {
        padding: 2rem 1.5rem;
        bottom: 20px;
    }
    .cookie-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    .cookie-btn-primary {
        width: 100%;
    }
}


