#bdn-home {
    font-family: Arial, Helvetica, sans-serif;
    color: #18332f;
    background: #faf8f4;
}
#bdn-home * { box-sizing: border-box; }

#bdn-home .hero {
    position: relative;
    min-height: 680px;
    height: 85vh;
    max-height: 900px;
    overflow: hidden;
    background: #132b35;
    color: white;
}
#bdn-home .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
#bdn-home .slide.active { opacity: 1; }
#bdn-home .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,rgba(5,19,29,.82),rgba(5,19,29,.24)),
                linear-gradient(0deg,rgba(5,19,29,.4),transparent 45%);
    pointer-events: none;
}
#bdn-home .nav {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 6%;
    background: rgba(7,24,34,.35);
}
#bdn-home .brand {
    color: white;
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}
#bdn-home .brand b { color: #efb6a1; }
#bdn-home .links {
    display: flex;
    align-items: center;
    gap: 23px;
    flex-wrap: wrap;
}
#bdn-home .links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
#bdn-home .links a:hover { color: #ffc8b4; }
#bdn-home .links .nav-ident {
    background: #bc5144;
    padding: 12px 17px;
    border-radius: 30px;
}
#bdn-home .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 135px 6% 100px;
}
#bdn-home .eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #ffd0b5;
}
#bdn-home .hero-copy h1 {
    font-size: clamp(58px, 8vw, 115px);
    line-height: 1;
    letter-spacing: -4px;
    font-weight: 900;
    margin: 20px 0;
    color: white;
}
#bdn-home .hero-copy h1 span {
    display: block;
    color: #ffc4a8;
}
#bdn-home .hero-copy h2 {
    color: white;
    font-size: clamp(23px, 3vw, 36px);
    font-weight: 600;
    margin: 15px 0;
}
#bdn-home .hero-copy p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
    color: #f1eeee;
}
#bdn-home .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}
#bdn-home .btn {
    display: inline-block;
    padding: 16px 25px;
    border-radius: 6px;
    background: #c85648;
    color: white;
    text-decoration: none;
    font-weight: 700;
}
#bdn-home .btn.outline {
    background: transparent;
    border: 1px solid white;
}
#bdn-home .arrow {
    position: absolute;
    z-index: 4;
    top: 52%;
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(0,0,0,.2);
    color: white;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
}
#bdn-home .prev { left: 15px; }
#bdn-home .next { right: 15px; }
#bdn-home .dots {
    position: absolute;
    z-index: 4;
    bottom: 27px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
#bdn-home .dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
}
#bdn-home .dots button.active {
    background: #fff;
    width: 28px;
    border-radius: 8px;
}
#bdn-home main { padding: 65px 0 95px; }
#bdn-home .container {
    width: min(1250px, 90%);
    margin: auto;
}
#bdn-home .cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 17px;
}
#bdn-home .card {
    display: block;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #203c37;
    box-shadow: 0 8px 28px rgba(0,0,0,.07);
    transition: transform .2s;
}
#bdn-home .card:hover { transform: translateY(-5px); }
#bdn-home .card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}
#bdn-home .card .content { padding: 18px; }
#bdn-home .card h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 9px;
}
#bdn-home .card p {
    font-size: 13px;
    line-height: 1.6;
    color: #66756e;
    margin: 0;
}
#bdn-home .feature {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    margin: 60px 0;
    border-radius: 12px;
    background: #e8eee8;
}
#bdn-home .feature-icon { font-size: 48px; }
#bdn-home .feature h2 { font-size: 27px; margin: 0 0 10px; }
#bdn-home .feature p { margin: 0 0 12px; line-height: 1.6; }
#bdn-home .feature a {
    color: #a94237;
    font-weight: 700;
    text-decoration: none;
}
#bdn-home .section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
#bdn-home .section-head h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
}
#bdn-home .muted { color: #77817b; }
#bdn-home .agenda {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
}
#bdn-home .agenda article {
    background: white;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}
#bdn-home .agenda h3 { font-size: 21px; margin: 0 0 12px; }
#bdn-home .agenda p { line-height: 1.6; }

@media (max-width: 1050px) {
    #bdn-home .cards { grid-template-columns: repeat(3,1fr); }
    #bdn-home .links { gap: 12px; }
}
@media (max-width: 700px) {
    #bdn-home .hero { height: auto; min-height: 680px; }
    #bdn-home .nav { padding: 20px 5%; flex-direction: column; align-items: flex-start; }
    #bdn-home .brand { font-size: 22px; }
    #bdn-home .links { gap: 12px 16px; }
    #bdn-home .links a { font-size: 12px; }
    #bdn-home .hero-copy { padding: 85px 7% 110px; }
    #bdn-home .hero-copy h1 { font-size: 60px; letter-spacing: -2px; }
    #bdn-home .hero-copy p { font-size: 16px; }
    #bdn-home .arrow { top: auto; bottom: 18px; }
    #bdn-home .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
    #bdn-home .card img { height: 150px; }
    #bdn-home .agenda { grid-template-columns: 1fr; }
    #bdn-home .feature { align-items: flex-start; }
}
@media (max-width: 420px) {
    #bdn-home .cards { grid-template-columns: 1fr; }
    #bdn-home .hero-copy h1 { font-size: 48px; }
    #bdn-home .feature { flex-direction: column; }
}
/* Ocultar cabecera y pie de Odoo solo en la portada BDN FESTIVA */
body:has(#bdn-home) #wrapwrap > header,
body:has(#bdn-home) #wrapwrap > footer,
body:has(#bdn-home) #wrapwrap > #bottom {
    display: none !important;
}


/* BDN Festiva: selector de idioma */
#bdn-home .bdn-language-selector {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
}
#bdn-home .bdn-language-globe {
    font-size: 18px;
    line-height: 1;
}
#bdn-home .bdn-language-selector .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 24px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
#bdn-home .bdn-language-selector .dropdown-toggle:hover,
#bdn-home .bdn-language-selector .dropdown-toggle:focus {
    background: rgba(255,255,255,.24);
    color: #fff;
}
#bdn-home .bdn-language-selector .dropdown-menu {
    z-index: 1060;
    min-width: 190px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(128,0,0,.15);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
#bdn-home .bdn-language-selector .dropdown-item {
    padding: 9px 12px;
    border-radius: 7px;
    color: #333;
    font-size: 14px;
}
#bdn-home .bdn-language-selector .dropdown-item:hover,
#bdn-home .bdn-language-selector .dropdown-item:focus {
    background: #f7e9e6;
    color: #800000;
}
@media (max-width: 700px) {
    #bdn-home .bdn-language-selector {
        margin-top: 4px;
    }
}


/* BDN Festiva: ajuste fino de navegación e idiomas */
#bdn-home .links {
    align-items: center;
    gap: 18px;
}

#bdn-home .links .nav-ident {
    padding: 10px 15px;
    font-size: 12.6px;
    white-space: nowrap;
}

#bdn-home .bdn-language-selector {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 0;
    flex-shrink: 0;
}

#bdn-home .bdn-language-globe {
    font-size: 17px;
    line-height: 1;
}

#bdn-home .bdn-language-selector .js_language_selector {
    display: inline-flex;
    align-items: center;
}

#bdn-home .bdn-language-selector .dropdown-toggle {
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 24px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

#bdn-home .bdn-language-selector .dropdown-toggle:hover,
#bdn-home .bdn-language-selector .dropdown-toggle:focus {
    background: rgba(255,255,255,.24);
    color: #fff;
}

#bdn-home .bdn-language-selector .dropdown-menu {
    z-index: 1060;
}

@media (max-width: 1050px) {
    #bdn-home .links {
        gap: 12px;
    }
}

@media (max-width: 700px) {
    #bdn-home .bdn-language-selector {
        margin-top: 4px;
    }
}

/* BDN Festiva: selector compacto definitivo */
@media (min-width: 1051px) {
    #bdn-home .nav {
        padding-right: 2%;
    }

    #bdn-home .links {
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 18px;
    }
}

#bdn-home .bdn-language-selector {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

#bdn-home .bdn-language-globe {
    font-size: 17px;
    line-height: 1;
}

#bdn-home .bdn-language-selector .dropdown-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    padding: 4px 2px !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 600;
    white-space: nowrap;
}

#bdn-home .bdn-language-selector .dropdown-toggle:hover,
#bdn-home .bdn-language-selector .dropdown-toggle:focus,
#bdn-home .bdn-language-selector .dropdown-toggle.show {
    background: transparent !important;
    color: #ffd0b5 !important;
    box-shadow: none !important;
}

#bdn-home .bdn-language-selector .dropdown-menu {
    z-index: 1060;
}

/* BDN_LANGUAGE_MENU_COMPACT_V1 */
.bdn-language-selector .dropdown-menu {
    min-width: 190px !important;
    padding: 4px !important;
    max-height: 70vh;
    overflow-y: auto;
}

.bdn-language-selector .dropdown-menu .dropdown-item {
    padding: 5px 9px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    white-space: nowrap;
}


/* BDN_LANGUAGE_MENU_COMPACT_V2 */
#bdn-home .bdn-language-selector .dropdown-menu {
    min-width: 175px !important;
    padding: 3px !important;
}

#bdn-home .bdn-language-selector .dropdown-menu .dropdown-item {
    padding: 4px 7px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}
