/* Menú responsivo con submenús expandibles por CSS */
@media (max-width: 767px) {
    .custom-dropdown .dropdown-menu {
        display: none;
        position: static;
        float: none;
        background: #fff;
        box-shadow: none;
        margin: 0;
        border-radius: 0;
        width: 100%;
    }
    .custom-dropdown .menu-toggle:checked + .dropdown-toggle-label + .dropdown-menu {
        display: block;
    }
    .custom-dropdown .dropdown-toggle-label {
        display: block;
        cursor: pointer;
        padding: 15px 20px;
        font-weight: 500;
        color: #555;
        background: none;
    }
    .custom-dropdown .menu-toggle {
        display: none;
    }
}
/* General Body & Typography */
body { font-family: 'Poppins', sans-serif; color: #555; position: relative; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: #333; }
.section-title { color: #006A4E; margin-bottom: 50px; font-size: 36px; font-weight: 700; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f9f9f9; }

/* Navbar */
.navbar-default { background-color: rgba(255, 255, 255, 0.95); border-color: transparent; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.navbar-default .navbar-brand { color: #006A4E; font-weight: 700; font-size: 22px; height: auto; padding: 25px 15px; }
.navbar-default .navbar-nav > li > a { color: #555; font-weight: 500; padding-top: 25px; padding-bottom: 25px; transition: color 0.3s; }
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { color: #FFD700; background-color: transparent; }
.navbar-default .navbar-nav > .menu-button > a { background-color: #006A4E; color: #FFFFFF !important; border-radius: 5px; margin-top: 20px; margin-bottom: 20px; margin-left: 15px; padding: 5px 15px !important; line-height: 20px; }
.navbar-default .navbar-nav > .menu-button > a:hover { background-color: #FFD700; color: #000000 !important; }
.dropdown-menu > li > a:hover { background-color: #006A4E; color: #FFFFFF; }

/* Hero Carousel */
#inicio.carousel { height: 90vh; min-height: 500px; }
.carousel .item { height: 90vh; min-height: 500px; background-size: cover; background-position: center center; }
.carousel-caption { background: rgba(0, 0, 0, 0.55); border-radius: 5px; padding: 25px; bottom: 10%; }
.carousel-caption h1 { color: #FFFFFF; font-size: 48px; font-weight: 700; }
.carousel-caption p { font-size: 20px; font-weight: 400; }

/* Nosotros - Timeline */
.timeline {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}
.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 50%;
    margin-left: -1.5px;
}
.timeline > li {
    margin-bottom: 20px;
    position: relative;
}
.timeline > li:before, .timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline > li > .timeline-panel {
    width: 46%;
    float: left;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
}
.timeline > li > .timeline-panel:before {
    position: absolute;
    top: 26px;
    right: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-left: 15px solid #ccc;
    border-right: 0 solid #ccc;
    border-bottom: 15px solid transparent;
    content: " ";
}
.timeline > li > .timeline-panel:after {
    position: absolute;
    top: 27px;
    right: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-left: 14px solid #fff;
    border-right: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: " ";
}
.timeline > li.timeline-inverted > .timeline-panel {
    float: right;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
    border-left-width: 0;
    border-right-width: 15px;
    left: -15px;
    right: auto;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
    border-left-width: 0;
    border-right-width: 14px;
    left: -14px;
    right: auto;
}
.timeline > li > .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 50%;
    margin-left: -25px;
    background-color: #006A4E; /* Verde Navidad */
    z-index: 100;
    border-radius: 50%;
}
/* Card Styles */
.gestion-card, .symbol-link-card { display: block; background-color: #fff; padding: 25px; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 30px; transition: all 0.3s ease; color: #555; text-align: center; }
.gestion-card:hover, .symbol-link-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); text-decoration: none; color: #333; }
.gestion-icon { font-size: 48px; color: #006A4E; margin-bottom: 15px; }
.gestion-card h4 { color: #006A4E; font-weight: 700; }
.symbol-link-card img { margin-bottom: 15px; }
.symbol-link-card .btn { margin-top: 15px; background-color: #006A4E; border-color: #006A4E; }
.symbol-link-card .btn:hover { background-color: #FFD700; border-color: #FFD700; color: #000; }

/* Footer */
.footer { background-color: #333; color: #aaa; padding: 25px 0; }

/* Symbol Page */
.symbol-item { padding-top: 30px; padding-bottom: 30px; }
.himno-lyrics { white-space: pre-wrap; background-color: #f9f9f9; padding: 20px; border-radius: 5px; border-left: 4px solid #006A4E; }

/* Gallery Section */
.gallery-item { position: relative; overflow: hidden; margin-bottom: 30px; border-radius: 5px; display: block; }
.gallery-item img { transition: transform 0.3s ease; width: 100%; }
.gallery-item:hover img { transform: scale(1.1); }
    .gallery-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        text-align: center;
        padding: 10px;
        font-weight: 500;
        opacity: 0;
        transition: opacity 0.3s ease;
        word-break: break-word;
        font-size: 1em;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .gallery-item:hover .gallery-caption,
    .gallery-item:focus .gallery-caption {
        opacity: 1;
    }

    @media (max-width: 767px) {
        .gallery-caption {
            font-size: 0.95em;
            padding: 8px;
            white-space: normal;
            overflow-wrap: break-word;
            word-break: break-word;
            line-height: 1.2;
        }
    }
#modalCaption { margin-top: 15px; font-size: 16px; font-weight: 500; }
.betsabe-box { background-color: #e8f5e9; border-left: 4px solid #006A4E; padding: 20px; margin-top: 20px; }
/* Oferta - Igual a Gestión pero con íconos amarillos */
.oferta-card {
    display: block;
    background-color: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    color: #555;
    text-align: center;
    height: auto; /* Igual que gestión */
}

.oferta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #333;
}

.oferta-icon {
    font-size: 48px;
    color: #FFD700; /* Amarillo en lugar de verde */
    margin-bottom: 15px;
}

.oferta-card h4 {
    color: #006A4E; /* Mantener el verde institucional */
    font-weight: 700;
}
/* Estilo general para el footer de la home */
.footer {
    background-color: #333;
    color: #aaa;
    padding: 25px 0;
    text-align: center;
}

/* Para páginas secundarias: sticky al fondo */
html, body {
    height: 100%;
    margin: 0;
}

body.flex-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* empuja el footer2 al fondo */
}

.footer2 {
    background-color: #222;
    color: #ddd;
    padding: 25px 0;
    text-align: center;
    margin-top: auto;
}
