:root {
    --color-base: #111111; /* Foundation Black */
    --color-accent: #2CB3EB; /* Innova Cyan */
    --color-white: #FFFFFF;
    --color-support: #8C929D; /* Slate Gray */
    --color-bg: #E6F5FC; /* Light Tech Blue */
    --color-light: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

body {
    background-color: var(--color-white);
    color: var(--color-base);
    line-height: 1.6;
}

/* Accessibility Focus */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--color-base);
    color: var(--color-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
}

.logo img {
    height: 35px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-accent);
}

.btn-nav {
    background-color: var(--color-accent);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--color-base) !important;
    font-weight: bold;
}

/* Hero */
.hero {
    background-color: var(--color-base);
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-support);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.highlight-box {
    background-color: rgba(44, 179, 235, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
    color: var(--color-accent);
}

/* Services */
.services { padding: 80px 0; }
.bg-light { background-color: var(--color-light); }

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card {
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.card.featured {
    border: 2px solid var(--color-accent);
    background-color: rgba(44, 179, 235, 0.03);
}

.card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.card-header h3 { font-size: 1.5rem; margin-bottom: 5px; }
.price { font-size: 1.2rem; color: var(--color-accent); font-weight: bold; }

.card ul { margin: 20px 0; padding-left: 20px; }
.card ul li { margin-bottom: 10px; }

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-base);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover { background-color: #239dc0; }

.mt-4 { margin-top: 40px; }
.medida-box {
    background-color: var(--color-base);
    color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: var(--color-bg);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group input[type="text"], 
.form-group input[type="email"], 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-support);
    border-radius: 4px;
    font-family: inherit;
}

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
/* Ensure the checkbox behaves properly */
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px; /* Aligns the checkbox with the first line of text */
}

/* Ensure the label inside the checkbox group behaves inline */
.checkbox-group label {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
}

.btn-submit { width: 100%; font-size: 1.1rem; padding: 15px; }

/* Footer */
footer {
    background-color: var(--color-base);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 { color: var(--color-accent); margin-bottom: 20px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer a { color: var(--color-support); text-decoration: none; }
footer a:hover { color: var(--color-white); }
.social-link {
    display: inline-block;
    color: var(--color-white);
    border: 1px solid var(--color-accent);
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    margin-right: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: var(--color-support);
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: var(--color-base);
    color: var(--color-white);
    padding: 20px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    justify-content: center;
}
.cookie-content {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .cookie-content { flex-direction: row; text-align: left; }
}
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-outline { background: transparent; border: 1px solid var(--color-white); color: var(--color-white); }

/* 404 */
.error-404 { text-align: center; padding: 100px 20px; min-height: 60vh;}
.error-404 h1 { font-size: 5rem; color: var(--color-accent); margin-bottom:10px; line-height: 1;}
.error-404 p { font-size: 1.2rem; margin-bottom: 40px; color: #666;}

/* Mobile Hamburger Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    position: relative;
    transition: background-color 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    left: 0;
    transition: transform 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger Animation */
.mobile-menu-btn.open .hamburger { background-color: transparent; }
.mobile-menu-btn.open .hamburger::before { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.open .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Viewport Rules */
@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    nav#main-nav {
        display: none; /* Hidden by default on mobile */
        width: 100%;
        background-color: var(--color-base);
        padding: 20px 0;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    nav#main-nav.active {
        display: block;
    }

    nav#main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .btn-nav {
        margin-top: 10px;
        display: inline-block;
    }
}