:root {
    --primary-blue: #0a1e42; /* Deep blue from the card */
    --secondary-red: #c71f2d; /* Red from the shield */
    --light-blue: #1e3a6e;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --dark-text: #333333;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a01823;
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* LANGUAGE SWITCHER STYLES */
/* When body has class 'lang-es', hide english content */
body.lang-es .en-content { display: none !important; }
/* When body has class 'lang-en', hide spanish content */
body.lang-en .es-content { display: none !important; }

.lang-switch button {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-weight: bold;
}
.lang-switch button.active {
    color: var(--secondary-red);
}

/* NAVIGATION */
.navbar {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-weight: bold;
    font-size: 1.2rem;
}

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

.nav-links li {
    margin-left: 20px;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-red);
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Internal Page Nav Fix */
.internal-nav {
    position: relative;
}


/* HERO SECTION (Homepage) */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px; /* Account for fixed nav */
    background: linear-gradient(135deg, var(--primary-blue) 0%, #051024 100%); /* Fallback if ThreeJS fails */
}

#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6; /* Subtlety is key */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #ddd;
}

.hero-btns .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

/* HOMEPAGE SERVICES PREVIEW */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.services-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--secondary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}


/* PAGE HEADERS (Internal Pages) */
.page-header {
    background: linear-gradient(rgba(10, 30, 66, 0.9), rgba(10, 30, 66, 0.9)), url('../assets/service-placeholder.jpg'); /* Use a generic business banner image here */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

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

.page-header h1 {
    font-size: 3rem;
}

/* SERVICES PAGE LIST STYLES */
.service-item-block {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.service-image {
    flex: 1;
    min-height: 300px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    flex: 2;
    padding: 40px;
}

.service-details h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* CONTACT PAGE STYLES */
.contact-layout {
    display: flex;
    gap: 50px;
}

.contact-info-box, .contact-form-box {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info-box h2, .contact-form-box h2 {
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    margin-top: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-red);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item a {
    color: var(--dark-text);
    text-decoration: none;
}

/* Modern Form Styles */
.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-blue);
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* FOOTER */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 50px 0 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-info p {
    margin: 10px 0;
}
.footer-info i {
    margin-right: 10px;
    color: var(--secondary-red);
}

.footer-qr img {
    max-width: 150px;
    border-radius: 10px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}


/* ===========================
   MOBILE RESPONSIVENESS (FIXED & FORCED)
   =========================== */
   @media (max-width: 768px) {

    /* 1. Ensure the Nav Container scrolls if menu is tall */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: var(--primary-blue);
        flex-direction: column;
        align-items: flex-start;
        width: 80%;
        padding: 40px 30px;
        transition: right 0.3s ease;
        overflow-y: auto; /* IMPORTANT: Allows scrolling */
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav-links.nav-active { right: 0; }

    /* 2. Spacing for main links */
    .nav-links > li { 
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator lines */
    }

    .nav-links > li > a, 
    .dropbtn { 
        display: block;
        padding: 20px 0;
        font-size: 1.1rem;
        color: var(--white);
        width: 100%;
    }

    /* 3. NUCLEAR FIX FOR THE DROPDOWN */
    .dropdown {
        display: block !important;
        width: 100% !important;
    }

    /* This forces the dropdown to sit IN THE FLOW, not float on top */
    .dropdown-content {
        position: relative !important; 
        top: auto !important;
        left: auto !important;
        transform: none !important;
        
        display: none; /* Hidden by default */
        width: 100% !important;
        background-color: rgba(0, 0, 0, 0.2) !important; /* Darker background */
        box-shadow: none !important;
        padding-left: 0 !important;
        border-top: none !important;
        margin-bottom: 10px;
    }

    /* When hovered or toggled, DISPLAY BLOCK so it pushes 'Contact' down */
    .dropdown:hover .dropdown-content,
    .dropdown-content.active {
        display: block !important;
    }

    .dropdown-content li {
        width: 100%;
        border: none; /* Remove separators for sub-items */
    }

    .dropdown-content a {
        padding: 15px 0 15px 30px !important; /* Indent sub-items */
        font-size: 0.95rem;
        color: #ddd !important;
    }

    /* 4. Ensure Hamburger is visible */
    .hamburger { display: block; }
}

/* ===========================
   DROPDOWN MENU STYLES 
   =========================== */

/* The Container for the dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* The arrow icon next to Services */
.dropbtn i {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* The Dropdown Menu (Hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-blue); /* Match navbar color */
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.3);
    z-index: 1001;
    top: 100%; /* Push exactly below the nav bar */
    left: 0;
    padding: 10px 0;
    list-style: none; /* Remove bullets */
    border-top: 3px solid var(--secondary-red); /* Nice red accent on top */
}

/* Show the menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Links inside the dropdown */
.dropdown-content li {
    margin-left: 0; /* Reset the standard nav margin */
    width: 100%;
}

.dropdown-content a {
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95rem;
    transition: background 0.2s;
}

/* Hover effect for dropdown items */
.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-red);
}

/* ===========================
   MOBILE DROPDOWN ADJUSTMENTS 
   =========================== */
@media (max-width: 768px) {
    .dropdown {
        width: 100%; /* Full width on mobile */
    }
    
    .dropdown-content {
        position: relative; /* Stack normally, don't float */
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2); /* Slightly darker background */
        width: 100%;
        border-top: none;
        padding-left: 20px; /* Indent items */
    }
    
    /* Make the dropdown trigger fill width */
    .dropbtn {
        display: flex; 
        justify-content: space-between;
        width: 100%;
    }
}

/* ===========================
   SOCIAL ICONS STYLES
   =========================== */

   .footer-social h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--secondary-red); /* Matches the shield red */
    text-align: center; /* Centers title above icons */
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle transparent white */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%; /* Makes them perfect circles */
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

/* Hover Effects - Brand Colors */
.social-btn:hover {
    transform: translateY(-3px); /* Little jump effect */
    color: var(--white);
    border-color: transparent;
}

.social-btn.facebook:hover {
    background-color: #1877F2; /* Official FB Blue */
}

.social-btn.instagram:hover {
    /* Instagram Gradient Background */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-btn.whatsapp:hover {
    background-color: #25D366; /* Official WhatsApp Green */
}