/* --- GENERAL BODY & TYPOGRAPHY --- */
body {
    background-image: linear-gradient(90deg, #dbe1e3, #d2d2d2);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #333;
    display: flex;
    flex-direction: column;
}

body > footer {
    margin-top: auto;
}

h1, h2 {
    scroll-margin-top: 100px; 
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

p {
    scroll-margin-top: 100px; 
    line-height: 1.6;
    color: #666;
}

/* --- NAVIGATION BAR (inventario-style nav items) --- */
.app-topbar {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.app-logo {
    width: clamp(8rem, 14vw, 11rem);
    height: auto;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    border: 0;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.nav-item:hover { background: #F8F9FA; color: #333; }
.nav-item.active { background: #0F4C81; color: #fff; }
.nav-item.active:hover { background: #0F4C81; color: #fff; }

/* Sub-nav row for section sub-pages (e.g., Promotores) */
.sub-nav {
    border-top: 1px solid #dee2e6;
}

/* Thin user bar below the nav row (same look as inventario) */
.user-bar {
    border-top: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .nav-item { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
}
/* Better version for icon alignment */
.contact-svg {
    height: 15px;     /* Be explicit: set height, not max-height */
    width: auto;      /* Tell Safari to calculate width based on the new height */
}
/* --- HERO SECTION (SIDE-BY-SIDE LAYOUT) --- */
#start {
    /* Use padding to create space around the hero content */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 80vh;       /* more height; try 100vh if you want full screen */
  padding: 0;             /* remove side/top/bottom padding */
  margin-bottom: 0.5rem;  /* tighten space before the next section */

  background-image: linear-gradient(rgba(12,3,51,0.3), rgba(12,3,51,0.3));
}
.overlay {
    /* This is now our Flexbox container */
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 2rem; /* The space between the image and the text box */
    width: 100%;
    max-width: none; /* Limit the max width on large screens */
    margin: 0;
    padding: 2rem; /* Center the container */
}

.landscape-img {
    /* The image column */
    flex: 1 1 100%; /* Takes up 50% of the space */
    width: 100%;
    height: auto; /* Let the height adjust to the content */
    max-height: 450px; /* Constrain the height */
    object-fit: cover;
    border-radius: 16px; /* Keep the rounded corners */
}

/* Renamed '.text-overlay' to '.hero-content-box' in spirit */
.text-overlay {
    /* The text box column */
    flex: 1 1 50%; /* Takes up 50% of the space */
    
    /* Center the content *inside* this box */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem; /* Add some internal padding */
}

.text-overlay .logo {
    /* --- MORE ROBUST STYLING --- */
    display: block;       /* Ensures it behaves predictably */     /* Set a FIXED width */
    max-height: 180px;      /* Safety: ensures it shrinks if the container is smaller */
    height: auto;         /* Maintain aspect ratio */
    margin-bottom: 1.5rem;
    mix-blend-mode: multiply; /* This removes the white background from the logo */
}
.hero-logo {
    max-width: 100%;
    max-height: 180px;
    height: auto;
    width: auto;
}

.text-overlay h1 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    line-height: 1.3;
    margin: 0;
}

.text-overlay p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-top: 0.5rem;
    margin-bottom: 0;
}


/* --- CONTENT SECTIONS --- */
#about, #services {
    scroll-margin-top: 100px;
}
#start{
    background-image: linear-gradient(rgba(12,3,51,0.3), rgba(12,3,51,0.3));
    position: relative;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensure the video is behind the content */
}

.list-group-item {
    border: none;
    padding: 15px 0;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.list-group-item:last-child {
    border-bottom: none;
}

#bar-images .client-logo {
    max-width: 180px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
    mix-blend-mode: multiply; /* This removes the white background from client logos */
}

#bar-images .client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- CONTACT & FOOTER --- */
#contact-info .social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

#contact-info .social-icon:hover {
    transform: scale(1.1);
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    padding: 20px;
    background-color: rgba(248, 249, 250, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* --- LIQUID GLASS EFFECT --- */
.liquid-glass {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
/* --- NAV ANALYTICS BUTTON --- */
.nav-analytics-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.35rem 0.85rem;
    border-radius: 999px;

    background-color: #e5e7eb;      /* light gray */
    color: #4b5563 !important;      /* gray text */
    font-weight: 500;
    text-decoration: none;
}

.nav-analytics-link:hover {
    background-color: #d1d5db;      /* darker gray on hover */
    color: #111827 !important;
}

.nav-analytics-link .nav-icon-analytics {
    height: 18px;
    width: auto;
    display: block;
}


/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .overlay {
        /* On mobile, stack them vertically */
        flex-direction: column;
    }

    .landscape-img, .text-overlay {
        /* Make both columns take up the full width on mobile */
        flex-basis: 100%;
        width: 100%;
    }
    
    #about, #services {
        padding: 40px 15px;
    }

    h2 {
        font-size: 1.8rem;
    }

    #bar-images .client-logo {
        max-width: 120px;
    }
    .contact-svg {
    height: 15px;     /* Be explicit: set height, not max-height */
    width: auto;      /* Tell Safari to calculate width based on the new height */
    }

}