﻿:root {
    --primary-color: #8d6e63; /* Cafe color */
    --secondary-color: #4caf50; /* Verde color */
    --accent-color: #9c27b0; /* Purple accent */
}

.btn-verde {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

    .btn-verde:hover {
        background-color: #3d8b40;
        color: white;
    }

.btn-cafe {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

    .btn-cafe:hover {
        background-color: #795548;
        color: white;
    }

.card-header-custom {
    min-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.img-banner {
    width: 100%;
    object-fit: cover;
}

.carousel-inner {
    width: 100%;
    max-height: 280px !important;
}

.centrar-imagen {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.card-title {
    margin-bottom: 0rem;
}

.footer {
    margin-left: 0px !important;
}

.alto-fijo {
    overflow-y: auto;
}

.main-wrapper {
    height: 100vh;
}

/* Mobile menu styles */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    color: white;
    font-size: 16px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* Changed shadow direction */
    transition: left 0.3s ease; /* Changed from right to left */
    padding: 20px;
    overflow-y: auto;
}

    .mobile-menu.active {
        left: 0;
    }

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
}
.mobile-menu-overlay.active {
        display: block;
}
.mobile-menu.active {
    left: 0;
    display: block; /* Show when active */
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .mobile-menu-btn {
        display: block;
    }

    .desktop-menu {
        display: none;
    }

    .carousel-inner {
        max-height: 200px !important;
    }

    .card-header-custom {
        min-height: 60px;
        font-size: 1rem;
    }

    .img-banner {
        height: 200px;
    }

    .col-md-4.text-center.col-sm-12 img,
    .col-md-4.text-center.col-sm-12 img {
        max-width: 150px;
    }
}

@media (max-width: 767.98px) {
    .carousel-inner {
        max-height: 150px !important;
    }

    .img-banner {
        height: 150px;
    }

    .col-md-4.text-center.col-sm-12 img,
    .col-md-4.text-center.col-sm-12 img {
        max-width: 120px;
    }

    .card-header-custom {
        min-height: 50px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-inner {
        max-height: 120px !important;
    }

    .img-banner {
        height: 120px;
    }

    .col-md-4.text-center.col-sm-12 img,
    .col-md-4.text-center.col-sm-12 img {
        max-width: 100px;
    }

    .card-header-custom {
        min-height: 40px;
        font-size: 0.8rem;
    }
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    text-align: center;
}

.loader__figure {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.loader__label {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-consent-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-message {
    flex: 1;
    margin-right: 20px;
    color: #495057;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-message {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .cookie-buttons {
        justify-content: center;
    }
}

/* Animation for smooth appearance */
.cookie-consent-banner {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-consent-banner.show {
        transform: translateY(0);
}
