/* =============================================
   IMPORTS & BASE TYPOGRAPHY
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
/* =============================================
   HERO & LAYOUT SPACING
   ============================================= */
/* Reduce space between header/top and main content */
#body-wrapper {
    margin-top: -45px; /* Tune this value: -30px = larger gap, -70px = smaller gap */
    padding-top: 0;
}
.main {
    margin-top: -50px; /* Most common sweet spot seems -40…-60 px */
    padding-top: 0;
}
/* Fixed-height hero with center crop */
.hero,
.hero.hero-large,
.hero.hero-medium,
.hero.hero-small {
    height: 260px;
    min-height: 260px;
    padding: 0;
    background-position: center center;
    background-size: cover;
}
@media (max-width: 768px) {
    .hero,
    .hero.hero-large,
    .hero.hero-medium,
    .hero.hero-small {
        height: 200px;
        min-height: 200px;
    }
}
/* =============================================
   NAVBAR / NAVIGATION BAR
   ============================================= */
.navbar {
    position: relative;
    top: 0;
    z-index: 10;
    height: 60px;
    width: 100vw;
    margin: 0 calc(-50vw + 50%);
    padding: 0;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}
.navbar .container,
.navbar .container-fluid,
.navbar .navbar-collapse,
.navbar .navbar-nav,
.navbar .nav-item,
.navbar .nav-link,
.navbar .navbar-brand {
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
.navbar .nav-link,
.navbar .navbar-brand {
    line-height: 1;
}
.navbar .container,
.navbar .container-fluid {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2.5rem;
    width: 100%;
}
/* Dropdowns & toggler */
.navbar .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}
.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.5);
}
/* Language selector – shared base styles for both mobile and desktop */
.lang_selector a {
    font-weight: bold;
    color: #007bff; /* Matches your mobile accent color */
    padding: 0.5rem 1rem; /* Balanced padding; adjust if needed for navbar height */
}
/* Globe icon – identical to mobile version */
.lang_selector a::before {
    content: "\1F310"; /* Unicode globe emoji – same as mobile */
    margin-right: 0.5rem;
    font-size: 1.2rem; /* Consistent sizing */
}
/* Hover state – consistent with mobile */
.lang_selector a:hover,
.lang_selector a:focus {
    color: #0056b3; /* Darker hover variant */
}
/* Optional: If the language selector uses dropdown-toggle class, ensure icon alignment */
.navbar .lang_selector .dropdown-toggle::after {
    margin-left: 0.5rem; /* Standard Bootstrap caret spacing */
}
/* Optional refinement: Reduce vertical padding in navbar if icon appears misaligned */
.navbar .lang_selector,
.navbar .lang_selector a {
    height: 100%; /* Matches your existing navbar item centering */
    display: flex;
    align-items: center;
}
/* Language selector – high-specificity targeting for both desktop navbar and mobile overlay */
.dropmenu .lang_selector a,
.overlay-menu .lang_selector a,
.nav-item.lang_selector a {
    font-weight: bold !important;
    color: #007bff !important;
    display: inline-flex !important; /* Ensures icon + text align properly in line */
    align-items: center !important;
    padding: 0.5rem 1rem !important; /* Consistent padding; adjust if navbar height feels off */
}
/* Globe icon – identical appearance in both views */
.dropmenu .lang_selector a::before,
.overlay-menu .lang_selector a::before,
.nav-item.lang_selector a::before {
    content: "\1F310" !important; /* Globe emoji */
    margin-right: 0.5rem !important;
    font-size: 1.2rem !important;
    vertical-align: middle !important; /* Fine-tunes vertical positioning */
}
/* Hover/focus state – consistent across views */
.dropmenu .lang_selector a:hover,
.dropmenu .lang_selector a:focus,
.overlay-menu .lang_selector a:hover,
.overlay-menu .lang_selector a:focus,
.nav-item.lang_selector a:hover,
.nav-item.lang_selector a:focus {
    color: #0056b3 !important;
}
/* Ensure navbar/mobile item height & centering compatibility */
.dropmenu .lang_selector,
.overlay-menu .lang_selector,
.nav-item.lang_selector {
    height: 100% !important;
}
.dropmenu .lang_selector a,
.overlay-menu .lang_selector a,
.nav-item.lang_selector a {
    height: 100% !important;
}
/* =============================================
   HEADER & LOGO
   ============================================= */
#header .logo img,
#header .logo svg {
    display: block;
    margin: 0;
    vertical-align: top;
}
#header .logo {
    margin-left: 20px;
    padding-top: 0;
}
#header {
    padding-top: 0;
    align-items: flex-start;
}
.logo-header {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 2.5rem;
}
.logo-image {
    max-height: 115px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.header-text h1 {
    margin: 0 0 6px 0;
    line-height: 1.1;
}
.header-text h2 {
    margin: 0;
    line-height: 1.25;
}
/* =============================================
   VIDEO
   ============================================= */
video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #000;
}
@media (max-width: 767px) {
    video {
        max-height: none;
    }
}
/* =============================================
   MOBILE / FULLSCREEN MENU (Misión Zera Metán)
   ============================================= */
.mobile-menu .button_container span,
.mobile-menu .button_container.active span {
    background-color: #FFFFFF;
}
.overlay {
    background-color: #0F2C5E;
}
.treemenu {
    background-color: #0F2C5E;
}
.treemenu li a {
    color: #F8FAFC;
    font-size: 1.2rem;
}
.treemenu .toggler {
    font-size: 1.4rem;
}
.treemenu li a:hover,
.treemenu li a:focus,
.treemenu li a.active {
    color: #4ECDC4;
}
/* Language selector enhancements */
.treemenu .lang_selector {
    border-bottom: 1px solid #ddd;
}
.treemenu .lang_selector a {
    font-weight: bold;
    color: #007bff;
    padding: 1rem 0.5rem;
}
.treemenu .lang_selector a::before {
    content: "\1F310";
    margin-right: 0.5rem;
    font-size: 1.2rem;
}
.treemenu .lang_selector a:hover {
    color: #0056b3;
}
/* Hide unwanted elements */
#to-start {
    display: none;
}
/* =============================================
   FLOATING IMAGES
   ============================================= */
.image_dyn_right,
.image_dyn_left {
    width: 25%;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.image_dyn_right {
    float: right;
    margin-left: 10px;
}
.image_dyn_left {
    float: left;
    margin-right: 10px;
}

/* =============================================
   GALLERY (Photoswipe)
   ============================================= */
#photoswipe-gallery-id {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Hover-zoom effect */
#photoswipe-gallery-id .gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
}

#photoswipe-gallery-id .gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s ease-in-out;
    will-change: transform;
}

#photoswipe-gallery-id .gallery-item:hover img {
    transform: scale(1.12);
}

/* Navigation Indicator (bullets / teller) */
.pswp__counter {
    position: absolute !important;
    bottom: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.75) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 6px 20px !important;
    border-radius: 30px !important;
    z-index: 1200 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
    letter-spacing: 0.5px !important;
    min-width: 60px;
    text-align: center;
}

/* Optioneel: arrows iets prominenter */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
    top: 45% !important;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #ffffff;
}

figure {
    margin: 0 0 6rem 0;
    padding: 0;
    text-align: center;
}

figure a,
figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

figure a:hover {
    opacity: 0.98;
}

/* Hide unwanted Photoswipe captions if they leak */
.pswp__caption,
figure figcaption {
    display: none;
}


/* =============================================
   GOOGLE-FORMS-LIKE CONTACT FORM
   ============================================= */
form {
    font-family: 'Roboto', sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
    display: block;
}
.form-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #dadce0;
    border-radius: 0;
    font-size: 16px;
    transition: border-bottom-color 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-bottom-color: #4285f4;
}
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
}
.form-textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 1px #4285f4;
}
.btn-primary,
.btn-submit {
    background-color: #673ab7;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-primary:hover,
.btn-submit:hover {
    background-color: #512da8;
}
.form-message {
    color: #34a853;
    font-weight: 500;
    margin-top: 20px;
}
@media (max-width: 768px) {
    form {
        padding: 15px;
    }
}
