/*
* Santa Cecilia - Patrimonio Natural de Quinchía
* Estilos personalizados
* 2025 - SMART TRADE SAS
*/

:root {
    /* Paleta de colores */
    --primary-color: #2E7D32; /* Verde oscuro */
    --secondary-color: #1565C0; /* Azul */
    --accent-color: #D4AC0D; /* Tono tierra / amarillo */
    --light-green: #81C784; /* Verde claro */
    --dark-green: #1B5E20; /* Verde muy oscuro */
    --light-blue: #64B5F6; /* Azul claro */
    --earth-brown: #8D6E63; /* Marrón tierra */
    --light-brown: #D7CCC8; /* Marrón claro */

    /* Otros colores */
    --text-dark: #212121;
    --text-light: #FFFFFF;
    --text-muted: #757575;
    --bg-light: #F5F5F5;
    --bg-dark: #212121;
    --divider: #BDBDBD;
}

/* Estilos generales */
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-green);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.section-title {
    position: relative;
    margin-bottom: 30px;
}

.section-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.divider {
    height: 3px;
    width: 50px;
    background-color: var(--accent-color);
    margin: 15px auto;
}

/* Navegación */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 15px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 80vh;
    min-height: 500px;
    position: relative;
}

.carousel-item {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    bottom: 180px;
    padding-left: 100px;
    padding-right: 100px;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 1.25rem;
}

/* Accesos Rápidos */
.quick-card {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quick-card.aves-card {
    background-image: url('../img/1.png');
}

.quick-card.plantas-card {
    background-image: url('../img/calendula.jpg');
}

.quick-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    transition: all 0.3s ease;
}

.quick-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    width: 100%;
    color: var(--text-light);
    z-index: 1;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.quick-card:hover .quick-overlay {
    background: linear-gradient(to bottom, rgba(46, 125, 50, 0.4), rgba(46, 125, 50, 0.8));
}

/* Noticias y Eventos */
#news-events {
    background-color: var(--bg-light);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}

/* Datos Destacados */
.highlight-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.highlight-icon {
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(46, 125, 50, 0.1);
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.highlight-item:hover .highlight-icon {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1);
}

.highlight-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.highlight-item p {
    color: var(--text-muted);
    font-weight: 600;
}

/* Multimedia Destacada */
#featured-media {
    background-color: var(--bg-light);
}

/* Chatbot Flotante */
#chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#chatbot-container.chatbot-closed {
    height: 0;
    width: 0;
    opacity: 0;
}


#send-message {
    padding: 8px 15px;
    border-radius: 20px;
}

.chatbot-closed {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    pointer-events: none;
}

#chatbot-header {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

#chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    overflow: hidden;
}

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.bot-message, .user-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 15px;
}

.bot-message {
    background-color: #f1f1f1;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background-color: var(--light-green);
    color: var(--text-light);
    margin-left: auto;
    border-bottom-right-radius: 0;
}

#chatbot-input {
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid var(--divider);
    padding: 10px;
}

#chatbot-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

#user-message {
    flex: 1;
    border: 1px solid var(--divider);
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
    outline: none;
}

#chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

#chatbot-button button {
    width: 60px;
    height: 60px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#chatbot-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

footer h4 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

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

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    text-align: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

address p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .carousel-caption {
        bottom: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .carousel-caption h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .carousel-caption {
        bottom: 50px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    #chatbot-container {
        width: 300px;
    }
}

@media (max-width: 575px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .quick-card {
        height: 250px;
    }

    #chatbot-container {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}

/* Estilos para la página de Aves */
.aves-header {
    background-image: url('../img/aves-header.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.aves-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.aves-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.filter-section {
    background-color: var(--bg-light);
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-box {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.filter-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.ave-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.ave-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ave-card-img {
    height: 220px;
    object-fit: cover;
}

.ave-card-body {
    padding: 20px;
}

.ave-card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.ave-card-scientific {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ave-card-habitat {
    margin-bottom: 15px;
}

.ave-card-habitat span {
    font-weight: 600;
}

.ave-card-conservation {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.conservation-low-concern {
    background-color: #C8E6C9;
    color: #2E7D32;
}

.conservation-vulnerable {
    background-color: #FFF9C4;
    color: #F57F17;
}

.conservation-endangered {
    background-color: #FFCDD2;
    color: #D32F2F;
}

.ave-card-buttons {
    display: flex;
    gap: 10px;
}

.ave-card-buttons .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 8px 0;
    border-radius: 20px;
}

/* Estilos para el mapa interactivo */
#map-container {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-legend {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.map-legend-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.map-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.map-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.map-legend-text {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Estilos para la página de detalle de ave */
.ave-detail-header {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: var(--text-light);
}

.ave-detail-img {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ave-detail-title {
    margin-bottom: 5px;
}

.ave-detail-scientific {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 20px;
}

.ave-detail-conservation {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.ave-detail-section {
    margin-bottom: 40px;
}

.ave-detail-section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.ave-detail-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background-color: var(--accent-color);
}

.ave-audio-player {
    width: 100%;
    margin-bottom: 20px;
}

.ave-detail-map {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para la página de Plantas */
.plantas-header {
    background-image: url('../img/plantas-header.jpg');
    background-size: cover;
    background-position: center;
}

.planta-card {
    position: relative;
}

.planta-card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.planta-tag-medicinal {
    background-color: #C8E6C9;
    color: #2E7D32;
}

.planta-tag-ornamental {
    background-color: #BBDEFB;
    color: #1565C0;
}

.planta-tag-nativa {
    background-color: #FFE0B2;
    color: #E65100;
}

/* Estilos para la página de Biblioteca */
.media-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.media-filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.media-filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.podcast-card {
    position: relative;
}

.podcast-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.podcast-card:hover .podcast-play-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.pdf-card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 48px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.pdf-card:hover .pdf-card-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Estilos para la página de Comunidad */
.community-card {
    text-align: center;
    padding: 30px;
}

.community-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.community-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.upload-area {
    border: 2px dashed var(--divider);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.gallery-filter {
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-title {
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
}

.gallery-author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.forum-card {
    margin-bottom: 20px;
}

.forum-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.forum-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.forum-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-author {
    font-weight: 700;
}

.forum-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.forum-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.forum-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.forum-footer span {
    display: flex;
    align-items: center;
}

.forum-footer i {
    margin-right: 5px;
}

.bird-marker-container {
    background: transparent;
    border: none;
}

.bird-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.user-location-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #4285F4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    line-height: 1.5;
}

.legend h4 {
    margin: 0 0 5px;
    font-size: 14px;
}

.legend i {
    width: 16px;
    height: 16px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
    border-radius: 50%;
}

.no-results-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.bird-popup {
    min-width: 200px;
    max-width: 300px;
}

.logo {
    display: flex; /* Use flexbox to align items horizontally */
    align-items: center; /* Vertically align items in the center */
    justify-content: center; /* Horizontally align items in the center */
}

.logo img {
    width: 50px; /* Adjust the size as needed */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Add some spacing between the logo and the title */
}

.logo h1 {
    margin: 0; /* Remove default margins */
    font-size: 1.5em; /* Adjust the font size as needed */
}
