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

body {
    font-family: 'Roboto', sans-serif;
    background: #3A2F2E; /* Page background */
    color: #F5E8C7; /* Beige text */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Disable horizontal scrolling */
}

/* Border Wrapper */
.border-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 0 20px; /* Adjust based on the width of border images */
    box-sizing: border-box;
}

/* Border Sides (Left and Right) */
.border-wrapper::before {
    content: '';
    position: absolute; /* Scrolls with the page */
    top: 0;
    left: 0;
    width: 20px; /* Thinner border */
    bottom: 60px; /* Stop at the top of the footer (footer height + padding) */
    background: url('boki.png') repeat-y top center;
    background-size: 20px auto; /* Scale the image to increase repetition frequency */
    z-index: 1001;
}

.border-wrapper::after {
    content: '';
    position: absolute; /* Scrolls with the page */
    top: 0;
    right: 0;
    width: 20px; /* Thinner border */
    bottom: 60px; /* Stop at the top of the footer (footer height + padding) */
    background: url('boki.png') repeat-y top center;
    background-size: 20px auto; /* Scale the image to increase repetition frequency */
    z-index: 1001;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%; /* Full width to overlap borders */
    left: 0; /* Align to the left edge */
    background: #2A201F; /* Solid logo background */
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002; /* Above the border */
    border-bottom: 2px solid #D4A017; /* Gold border */
    box-shadow: 0 2px 5px rgba(212, 160, 23, 0.3); /* Subtle gold shadow */
    transition: transform 0.3s ease; /* Smooth transition for hiding/showing */
}

/* Class to hide the navbar on scroll down */
.navbar.hidden {
    transform: translateY(-100%);
}

.logo img {
    height: 60px;
    margin-left: 20px;
    width: auto; /* Ensure logo scales properly */
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 20px;
}

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

.nav-links a {
    color: #D4A017; /* Gold accent */
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #F5E8C7; /* Beige hover effect */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #D4A017; /* Gold */
    margin: 2px 0;
    transition: all 0.3s ease; /* Smooth transition for hamburger animation */
}

/* Hamburger animation when menu is active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sections */
.section {
    padding: 100px 0; /* Default padding for sections */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3A2F2E; /* Section background */
}

/* Reduced padding for sections starting from "O nas" */
#about,
#gallery,
#contact {
    padding: 80px 0; /* Increased from 60px to 80px for a slightly larger gap */
    min-height: auto; /* Allow sections to shrink based on content */
}

/* Gold Divider Between Parallax and "O nas" */
.gold-divider {
    width: 100%;
    height: 2px;
    background: #D4A017; /* Gold color */
    margin: 0;
}

/* Hero Section */
.hero {
    background: url('image.jpg') no-repeat center center/cover; /* Parallax image */
    position: relative;
    height: 100vh; /* Full viewport height for parallax */
    width: 100vw; /* Full viewport width to extend to edges */
    margin-left: calc(-20px); /* Offset the padding of .border-wrapper */
    margin-right: calc(-20px); /* Offset the padding of .border-wrapper */
    overflow: hidden;
    z-index: 0; /* Below the borders */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 32, 31, 0.7); /* Dark overlay */
}

.hero-content {
    text-align: center;
    z-index: 1;
    position: relative; /* Ensure content stays above parallax */
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 20px;
    color: #D4A017; /* Gold */
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 30px;
    color: #F5E8C7; /* Beige */
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Apply parallax to hero */
.hero {
    background-attachment: fixed; /* Parallax effect */
}

/* Ensure content is above the parallax background */
.hero-content {
    position: relative;
    z-index: 2;
}

.cta-button {
    background: transparent;
    border: 2px solid #D4A017; /* Gold border */
    color: #D4A017; /* Gold text */
    padding: 10px 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #D4A017; /* Gold background */
    color: #2A201F; /* Dark text */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1; /* Ensure content is above the border */
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 40px;
    color: #D4A017; /* Gold */
}

.about img {
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    border-radius: 10px;
}

/* Employees Section Styles */
.employees {
    margin-top: 40px;
}

.employees h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #D4A017; /* Gold */
    margin-bottom: 30px;
    text-transform: uppercase;
}

.employee-grid {
    display: flex;
    justify-content: center;
    gap: 40px; /* Space between employees */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.employee {
    text-align: center;
}

.employee img {
    width: 20vw; /* Adjusted to scale with viewport width */
    height: 20vw; /* Ensure height matches width for a perfect circle */
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Match min-width */
    max-width: 250px; /* Maximum size */
    max-height: 250px; /* Match max-width */
    border-radius: 50%; /* Circular images */
    object-fit: cover; /* Ensure the image fills the circle */
    border: 2px solid #D4A017; /* Gold border around images */
}

.employee p {
    margin-top: 20px; /* Adjusted to make space */
    font-size: 18px;
    color: #F5E8C7; /* Beige */
    font-weight: 700;
}

/* Gallery Slider Styles */
.gallery-slider {
    position: relative;
    max-width: 50vw; /* Scale with viewport width */
    min-width: 600px; /* Minimum width */
    max-width: 800px; /* Maximum width */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px; /* Rounded corners for the slider container */
    padding-bottom: 80px; /* Add more space for buttons and dots at the bottom */
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* Ensure the container takes full width */
}

.slide {
    min-width: 100%;
    width: 100%; /* Take the full width of the gallery-slider */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure the image doesn't overflow the slide */
    height: auto; /* Allow natural height */
    max-height: 533px; /* Maximum height to prevent overly tall images */
}

.slide img {
    max-width: 100%; /* Ensure the image scales down to fit the container */
    max-height: 533px; /* Match the max-height of the slide */
    width: auto; /* Allow the image to maintain its natural width */
    height: auto; /* Allow the image to maintain its natural height */
    border-radius: 20px; /* Rounded corners for gallery images */
    display: block; /* Remove any inline spacing */
    object-fit: contain; /* Ensure the entire image is visible without cropping */
}

/* Navigation Buttons */
.prev-btn,
.next-btn {
    position: absolute;
    bottom: 10px; /* Lowered buttons */
    transform: none; /* Remove vertical centering */
    background: rgba(0, 0, 0, 0.5); /* Bootstrap's semi-transparent black */
    color: #fff; /* White icon */
    border: none;
    width: 48px; /* Bootstrap default size */
    height: 48px;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
    border-radius: 50%; /* Circular buttons */
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.8); /* Darker on hover, like Bootstrap */
}

.prev-btn {
    left: calc(50% - 110px); /* Position to the left of the dots */
}

.next-btn {
    right: calc(50% - 110px); /* Position to the right of the dots */
}

.prev-btn i,
.next-btn i {
    font-size: 24px; /* Bootstrap icon size */
}

/* Pagination Dots Styles */
.pagination-dots {
    position: absolute;
    bottom: 29px; /* Vertically centered between buttons */
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Fixed width to show 5 dots (5 dots * 12px width + 4 gaps * 8px = 92px, rounded up) */
    overflow: hidden;
    z-index: 2;
}

.dots-container {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease; /* Smooth scrolling effect for dots */
}

.dot {
    flex: 0 0 12px; /* Fixed width for each dot */
    height: 12px;
    background: #F5E8C7; /* Beige */
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #D4A017; /* Gold for the active dot */
}

/* Contact Section */
.contact-info {
    margin-bottom: 40px;
    color: #F5E8C7; /* Beige */
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    margin: 0 10px;
}

.social-links img {
    width: 40px; /* Increased from 30px to 40px */
    height: 40px; /* Increased from 30px to 40px */
    object-fit: contain; /* Ensure social icons scale properly */
}

.map {
    margin-top: 40px; /* Space between contact info and map */
}

.map img {
    width: 100%;
    max-width: 600px;
    height: 450px; /* Match the previous iframe height */
    border-radius: 10px;
    object-fit: contain; /* Ensure the image scales properly */
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #2A201F; /* Logo background */
    color: #F5E8C7; /* Beige */
    position: relative;
    z-index: 1002; /* Above the border */
    width: 100vw; /* Full viewport width */
    left: 50%; /* Center the footer */
    transform: translateX(-50%); /* Offset the left: 50% to center */
    border-top: 2px solid #D4A017; /* Gold line to separate footer */
}
#mapa{
    margin:0px;
    height: 500px;
}
/* Responsive Design */
@media (max-width: 768px) {
    .border-wrapper {
        padding: 0 10px; /* Adjust padding for smaller screens */
    }

    .border-wrapper::before,
    .border-wrapper::after {
        width: 10px; /* Thinner border for mobile */
        bottom: 60px; /* Adjust for footer height on mobile */
        background-size: 10px auto; /* Reduce background-size to increase repeat frequency */
    }

    .container {
        margin-left: 20px; /* Add margin to offset content from the left edge */
        margin-right: 20px; /* Add margin to offset content from the right edge */
    }

    .navbar {
        padding: 10px 0; /* Reduced from 20px to 10px to decrease height */
    }

    .logo img {
        height: 40px; /* Reduced from 60px to match the smaller navbar height */
        margin-left: 15px; /* Slightly reduced margin */
    }

    .hero {
        margin-left: calc(-10px); /* Offset the smaller padding on mobile */
        margin-right: calc(-10px); /* Offset the smaller padding on mobile */
    }

    .nav-links {
        display: flex; /* Always flex, but hidden by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjusted from 80px to match the smaller navbar height */
        left: 0;
        width: 100%;
        background: #2A201F; /* Logo background */
        padding: 0; /* Start with 0 padding */
        border-top: 2px solid #D4A017; /* Gold separator */
        z-index: 1001; /* Ensure it appears above other content */
        max-height: 0; /* Start collapsed */
        overflow: hidden; /* Hide content when collapsed */
        opacity: 0; /* Start invisible */
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease; /* Smooth transition for height, opacity, and padding */
    }

    .nav-links.active {
        max-height: 200px; /* Adjust based on content height */
        opacity: 1; /* Fully visible */
        padding: 20px 0; /* Add padding when expanded */
    }

    .nav-links li {
        margin: 10px 0;
        margin-left: 20px; /* Added left margin for offset from screen edge */
        text-align: left; /* Align text to the left */
    }

    .hamburger {
        display: flex;
        margin-right: 15px; /* Slightly reduced margin */
    }

    .hamburger span {
        width: 20px; /* Reduced from 25px to match the smaller navbar */
        height: 2px; /* Reduced from 3px */
        margin: 2px 0;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    /* Disable parallax on mobile for performance */
    .hero {
        background-attachment: scroll;
    }

    /* Reduced padding for mobile */
    #about,
    #gallery,
    #contact {
        padding: 50px 0; /* Increased from 40px to 50px for a slightly larger gap */
    }

    .gallery-slider {
        max-width: 100%; /* Allow the slider to take full width on mobile */
        min-width: 0; /* Remove minimum width on mobile */
        padding-bottom: 70px; /* Increased to accommodate buttons and dots */
        border-radius: 15px; /* Slightly smaller rounding on mobile */
    }

    .slide {
        width: 100%; /* Full width on mobile */
        height: 400px; /* Fixed height to ensure all slides are the same height */
        max-height: 400px; /* Match the fixed height */
    }

    .slide img {
        max-width: 100%; /* Ensure the image scales down on mobile */
        max-height: 400px; /* Match the fixed height of the slide on mobile */
        width: auto; /* Maintain natural width */
        height: auto; /* Maintain natural height */
        border-radius: 15px; /* Slightly smaller rounding on mobile */
        object-fit: contain; /* Ensure the entire image is visible */
    }

    .prev-btn,
    .next-btn {
        width: 40px; /* Smaller buttons on mobile */
        height: 40px;
        line-height: 40px;
        border-radius: 50%; /* Keep buttons circular on mobile */
        bottom: 5px; /* Lowered buttons on mobile */
        background: rgba(0, 0, 0, 0.7); /* Slightly darker background */
    }

    .prev-btn i,
    .next-btn i {
        font-size: 20px; /* Smaller icons on mobile */
    }

    .prev-btn {
        left: calc(50% - 110px); /* Increased distance from dots */
    }

    .next-btn {
        right: calc(50% - 110px); /* Position to the right of the dots */
    }

    .pagination-dots {
        bottom: 22.5px; /* Vertically centered between buttons (5px + (40px/2)) */
        width: 100px; /* Match desktop width (5 dots * 12px width + 4 gaps * 8px = 92px, rounded up) */
    }

    .dots-container {
        gap: 8px; /* Match desktop gap */
    }

    .dot {
        flex: 0 0 12px; /* Match desktop size */
        height: 12px; /* Match desktop size */
    }

    .employee-grid {
        flex-direction: column; /* Stack employees vertically on mobile */
        align-items: center;
        gap: 20px; /* Reduce gap on mobile */
    }

    .employee img {
        width: 150px; /* Fixed size for mobile */
        height: 150px; /* Ensure height matches width for a perfect circle */
        min-width: 150px;
        min-height: 150px;
        max-width: 150px;
        max-height: 150px;
        object-fit: cover; /* Ensure the image fills the circle */
    }

    .employee p {
        margin-top: 15px; /* Adjusted for mobile */
    }

    .social-links img {
        width: 50px; /* Increased from 40px to 50px for mobile */
        height: 50px; /* Increased from 40px to 50px for mobile */
    }

    .map {
        margin-top: 30px;
        margin-bottom: 20px; /* Reduced from 40px to bring the map closer to social links on mobile */
    }
    #map1{
        margin: 0px;

    }
    #mapa{
        margin:0px;
        height: 250px;
    }
}