/* General Body and Font Styles */
body {
    margin: 0;
    font-family: Montserrat, sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    overflow: hidden; /* Hide scrollbars on homepage */
}

a {
    color: #fff;
    text-decoration: none;
}

.logo-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Video Background Styling */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

#player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 100/56.25 = 1.777 -> 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 100*1.777 -> 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
}

/* Header and Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: auto; /* Allow content to dictate width */
    height: 100%; /* Take full height for vertical navigation */
    padding: 30px 0 30px 50px; /* Aligned with footer's default left padding */
    box-sizing: border-box;
    z-index: 10;
    /*background-color: rgba(0, 0, 0, 0.7);*/ /* Transparent black background */
    display: flex; /* To align content */
    align-items: flex-start; /* Align items to the top */
}

.main-nav {
    display: flex;
    flex-direction: column; /* Stack logo and vertical nav vertically */
    justify-content: flex-start; /* Align content to the top */
    align-items: flex-start; /* Align content to the left */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
}

.nav-left {
    margin-bottom: 50px; /* Space between logo and vertical nav */
}

.nav-vertical-column {
    display: flex;
    flex-direction: column;
    /* gap: 20px; Removed direct gap for precise positioning */
    align-items: flex-start; /* Align text to the left */
}

/* New spacing for SERVICIOS and CONTACTO */
.nav-vertical-column .nav-item:nth-child(1) { /* SERVICIOS */
    margin-bottom: 20px; /* 30px above CONTACTO */
}

.nav-vertical-column .nav-item:nth-child(2) { /* CONTACTO */
    margin-bottom: 30px; /* 30px above MUESTRAS (conceptually) */
}


/* Styling for the logo image */
.header-logo {
    height: 60px; /* Set height */
    width: auto; /* Maintain aspect ratio */
    vertical-align: middle; /* Align with other nav items */
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 0; /* Align with the nav item */
    left: calc(100% + 15px); /* Position to the right of the nav item with a gap */
    background-color: #000; /* Solid Black for menus */
    padding: 20px;
    border-radius: 5px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: normal;
    white-space: nowrap;
    text-align: left; /* Ensure text is left-aligned in dropdowns */
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu p {
    margin: 0 0 15px 0;
}
.dropdown-menu p:last-child {
    margin-bottom: 0;
}
p.dropdown-description {
    font-weight: normal;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dropdown-menu li {
    margin-bottom: 10px;
}

/* Footer Navigation */
/* Footer Navigation (smaller height version) */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 70px; /* reduced padding */
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.8);
    height: auto;
    display: flex;
    align-items: center;
    z-index: 10;
}

/* Footer link hover color */
.footer-heading a:hover {
    color: #ffa500; /* orange hex */
}

.footer-column:not(.static-column) p:hover,
.footer-heading a:hover {
    color: #ffa500;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px; /* reduced gap between rows */
    width: 100%;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px; /* slightly smaller gap between columns */
}

.footer-column {
    flex: 1;
    cursor: pointer;
}

.footer-column.static-column {
    cursor: default;
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    margin: 0;
    line-height: 1.2; /* tighter */
}

.footer-column p {
    font-size: 14px;
    line-height: 1.2; /* tighter text */
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.indicator-bar {
    height: 2px;
    width: 70%;
    background-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px; /* reduced space under bar */
    transition: background-color 0.3s ease;
}

.footer-column.static-column .indicator-bar {
    display: none;
}

.footer-column.active .indicator-bar {
    background-color: orange;
}


.footer-column p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0; /* Reset margin on all footer column paragraphs */
    font-family: 'Montserrat', sans-serif;
}

.footer-contact-info {
    line-height: 1.5;
}

/* --- SERVICIOS PAGE STYLES --- */
body.servicios-page {
    overflow: auto; /* Allow scrolling on services page */
    background-color: #000;
}

/* Header styling for servicios page - only logo */
.servicios-page .main-header {
    position: static; /* Header is no longer fixed on services page */
    background-color: #000; /* Solid black background */
    padding: 30px 50px; /* Standard padding */
    height: auto; /* Auto height */
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically align items */
    justify-content: flex-start; /* Align logo to the start */
}

.servicios-page .main-nav {
    flex-direction: row; /* Nav items in a row */
    justify-content: flex-start; /* Align items to the start */
    align-items: center; /* Center items vertically */
    width: 100%; /* Take full width */
}

.servicios-page .nav-left {
    margin-bottom: 0; /* Reset margin for logo */
}

.servicios-page .nav-vertical-column {
    display: none; /* Hide all other nav items on servicios page header */
}

/* Ensure footer is visible and styled correctly on servicios page */
.servicios-page footer {
    position: fixed; /* Keep footer fixed at bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    z-index: 10;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* New: SERVICIOS link color when on servicios page */
.servicios-page .footer-column .footer-heading a[href="servicios.html"] {
    color: orange;
}

.servicios-content {
    padding-top: 60px; /* Top padding for the content area */
    padding-bottom: 300px; /* Adjusted for larger footer height */
    min-height: calc(100vh - 250px); /* Ensure content takes up available space above footer */
}

.text-container {
    max-width: 1000px; /* Max width to control text line length */
    margin: 0 auto; /* Center the text container */
    padding: 0 30px; /* Consistent padding */
    box-sizing: border-box; /* Include padding in element's total width */
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Thin */
    font-size: 14px;
    line-height: 1.8; /* Improve readability */
    color: #fff;

    display: grid; /* Use CSS Grid for two-column layout */
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    column-gap: 60px; /* keep wide spacing between left/right columns */
    row-gap: 20px;    /* reduce vertical spacing between top and bottom rows */
}

/* Adjust paragraph margins for closer vertical spacing */
.text-container p {
    margin-bottom: 1em; /* Add some margin for vertical spacing between paragraphs */
}

.text-container p:last-child {
    margin-bottom: 0; /* No margin after the last paragraph in a column */
}

.servicios-clients-image {
    display: block; /* Ensures it takes up full width and behaves like a block element */
    max-width: calc(100% - 100px); /* Adjust max-width based on 50px padding on each side for text container */
    height: auto;
    margin: 60px auto 0 auto; /* 60px top padding, auto left/right for centering */
    box-sizing: border-box; /* Include padding in total width */
}


/* Responsive Adjustments */
@media (max-width: 1200px) {
    .text-container {
        padding: 0 50px; /* Maintain 50px padding */
        gap: 40px; /* Slightly smaller gap */
    }
    .servicios-clients-image {
        max-width: calc(100% - 100px); /* Adjust max-width for new padding */
    }
}

@media (max-width: 992px) {
    .text-container {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        padding: 0 30px; /* Further reduce padding */
        gap: 20px;
    }
    .servicios-clients-image {
        max-width: calc(100% - 60px); /* Adjust max-width for new padding */
    }

    /* Footer adjustments for 3 rows on smaller screens */
    footer {
        padding: 30px;
    }
    .footer-nav {
        gap: 10px;
    }
    .footer-row {
        flex-direction: column; /* Stack columns within each row */
        gap: 10px;
        align-items: center;
    }
    .footer-column {
        width: 100%;
        text-align: center;
    }
    .footer-column .indicator-bar {
        margin: 0 auto 5px auto;
    }

    .servicios-content {
        padding-bottom: 350px; /* Adjust for larger footer on mobile */
        min-height: calc(100vh - 350px);
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 20px; /* Adjust header padding for smaller screens */
        padding-left: 20px; /* Less left padding for mobile */
    }

    .footer-row {
        gap: 8px; /* Even smaller gap on very small screens */
    }
    .servicios-content {
        padding-bottom: 380px; /* Further adjust for very large footer */
        min-height: calc(100vh - 380px);
    }
}


/* Mute/Unmute Button Styling */
#mute-button {
    position: fixed;
    bottom: 100px;
    right: 60px;
    z-index: 20;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

#mute-button .icon-unmuted {
    display: none;
}

#mute-button.unmuted .icon-muted {
    display: none;
}

#mute-button.unmuted .icon-unmuted {
    display: block;
}