:root {
    --primary-color: #2c5530;
    --secondary-color: #73a942;
    --accent-color: #f8c630;
    --light-color: #f9f7f3;
    --dark-color: #1a1f16;
}

body {
    font-family: "Century Gothic", 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    color: #333;
    padding-top: 76px;
    /* Para compensar el navbar fijo */
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url("../img/hero.webp");
    background-size: cover;
    background-position: center;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-content {
    z-index: 2;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: "Century Gothic", 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.3rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.section-title {
    font-family: "Century Gothic", 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 700;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-label {
    background: rgba(115, 169, 66, 0.9);
}


.contact-form {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

footer {
    background-color: var(--dark-color);
    color: white;
}

footer h4 {
    font-family: "Century Gothic", 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-weight: 700;
}

.footer-link {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.badge-aventura {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 10px;
    position: relative;
    animation: slideIn 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-description {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.modal-gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s;
}

.modal-gallery-img:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Dynamic Styles moved from modalP.js */
.product-card-carousel:hover .card-overlay {
    opacity: 1 !important;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Navbar Dropdown Hover */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item {
    font-family: "Century Gothic", 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    padding: 10px 20px;
    color: var(--dark-color);
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}