* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

:root {
    --primary-color: #2E7D32;
    --secondary-color: #4CAF50;
    --accent-color: #81C784;
    --dark-color: #1B5E20;
    --light-color: #E8F5E8;
    --white: #ffffff;
    --gray: #6c757d;
    --nav-green: #388E3C;
}

.bg-primary {
    background-color: var(--nav-green) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: var(--nav-green) !important;
    z-index: 1050 !important;
}

.navbar.scrolled {
    background-color: rgba(56, 142, 60, 0.95) !important;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.brand-text {
    color: white !important;
    font-weight: 700;
}

.navbar-collapse {
    z-index: 1051 !important;
}

.navbar-nav {
    z-index: 1052 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 1rem 1.5rem !important;
    display: block;
    position: relative;
    z-index: 1000;
}

.navbar-nav .nav-link:hover {
    color: #C8E6C9 !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #FFFFFF !important;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 1rem 1rem !important;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.7),
        rgba(76, 175, 80, 0.6),
        rgba(56, 142, 60, 0.8)
    );
    z-index: 1;
}

.hero-content-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 2.5rem;
    color: #E8F5E8;
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.8;
    color: #F1F8E9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-hero-primary {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background-color: #F5F5F5;
    border-color: #F5F5F5;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-outline {
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background-color: #FFFFFF;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-hero-system {
    background-color: #1565C0;
    border-color: #1565C0;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-hero-system:hover {
    background-color: #0D47A1;
    border-color: #0D47A1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000 !important;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.25) !important;
    border: 3px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    cursor: pointer !important;
    opacity: 0.9 !important;
    pointer-events: auto !important;
}

.hero-control-prev {
    left: 30px !important;
}

.hero-control-next {
    right: 30px !important;
}

.hero-control:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
}

.hero-control:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5) !important;
}

.hero-control:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.hero-arrow {
    width: 30px !important;
    height: 30px !important;
    background-size: 30px 30px !important;
    filter: brightness(0) invert(1) drop-shadow(2px 2px 4px rgba(0,0,0,0.5)) !important;
    z-index: 1000 !important;
}

.hero-indicators {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    width: auto !important;
    pointer-events: auto !important;
}

.hero-indicators button {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, 0.7) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    opacity: 0.9 !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.hero-indicators button.active {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: scale(1.4) !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.hero-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
    transform: scale(1.2) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
    z-index: 1000 !important;
    pointer-events: auto !important;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 3;
}
.hero-section .carousel-indicators {
    z-index: 1000 !important;
    pointer-events: auto !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content ul li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.about-image img, .about-image video {
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img:hover, .about-image video:hover {
    transform: scale(1.05);
}

.feature-highlight {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.feature-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.feature-image img {
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-image img:hover {
    transform: scale(1.05);
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

.gallery-navigation {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-gallery-nav {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    font-size: 1rem;
}

.btn-gallery-nav i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-gallery-nav:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-gallery-nav:hover i {
    transform: scale(1.1);
}

.btn-gallery-nav.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--dark-color);
    color: white;
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-gallery-nav.active i {
    color: #E8F5E8;
}

.btn-gallery-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-gallery-nav:hover::before {
    width: 300px;
    height: 300px;
}

.gallery-set {
    animation: fadeInUp 0.6s ease-out;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #fff;
    height: 280px;
    transform-origin: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) saturate(1.1);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8) saturate(1.3);
}

.gallery-item:active {
    transform: translateY(-4px) scale(1.01);
    transition: transform 0.1s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(46, 125, 50, 0.85),
        rgba(76, 175, 80, 0.75),
        rgba(129, 199, 132, 0.85)
    );
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.gallery-overlay-content p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.image-modal-content {
    background: #000;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-content .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-bottom: none;
    padding: 1.2rem 2rem;
    border-radius: 15px 15px 0 0;
}

.image-modal-content .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
}

.image-modal-content .btn-close-white {
    filter: brightness(0) invert(1);
    font-size: 1.2rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.image-modal-content .btn-close-white:hover {
    opacity: 1;
    transform: scale(1.1);
}

.image-modal-content .modal-body {
    padding: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    min-height: 60vh;
    max-height: 70vh;
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.modal-image:hover {
    transform: scale(1.02);
}

.image-info {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9),
        rgba(0, 0, 0, 0.7),
        transparent
    );
    color: white;
    padding: 2rem;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.image-info h6 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.image-info p {
    font-size: 1rem;
    margin-bottom: 0;
    color: #e0e0e0;
    line-height: 1.5;
}

.location-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 450px;
    display: flex;
    flex-direction: column;
}

.location-info h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.location-info-content {
    flex: 1;
    overflow-y: auto;
}

.location-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.location-item i {
    color: var(--secondary-color);
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.location-item .location-text {
    flex: 1;
}

.location-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 450px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: saturate(1.1) brightness(1.05);
}

.location-highlight {
    background: linear-gradient(135deg, var(--light-color), #F1F8E9);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 1.5rem;
}

.location-highlight p {
    margin: 0;
    color: var(--dark-color);
    font-weight: 500;
    line-height: 1.6;
}

.location-highlight i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.contact-info {
    color: white;
}

.contact-info h4 {
    margin-bottom: 2rem;
    color: #E8F5E8;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: #E8F5E8;
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.contact-form .form-control {
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(232, 245, 232, 0.25);
    border-color: #E8F5E8;
}

.contact-form textarea {
    resize: vertical;
}

.gallery-set {
    transition: all 0.5s ease-in-out;
}

.gallery-set[style*="none"] {
    opacity: 0;
    transform: translateY(20px);
}

.gallery-set[style*="block"] {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.loading {
    position: relative;
}

.gallery-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 2;
}

.gallery-item:hover::before {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .image-modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }

    .image-container {
        min-height: 50vh;
        max-height: 60vh;
    }

    .modal-image {
        max-height: 60vh;
    }

    .image-info {
        padding: 1.5rem;
    }

    .image-info h6 {
        font-size: 1.2rem;
    }

    .image-info p {
        font-size: 0.9rem;
    }

    .gallery-navigation {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    .btn-gallery-nav {
        min-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-gallery-nav i {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .image-modal-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 1rem);
        border-radius: 10px;
    }

    .image-modal-content .modal-header {
        padding: 1rem 1.5rem;
        border-radius: 10px 10px 0 0;
    }

    .image-modal-content .modal-title {
        font-size: 1.1rem;
    }

    .image-container {
        min-height: 40vh;
        max-height: 50vh;
    }

    .modal-image {
        max-height: 50vh;
    }

    .image-info {
        padding: 1rem;
    }

    .image-info h6 {
        font-size: 1.1rem
	}

   .image-info p {
       font-size: 0.85rem;
   }

   .gallery-navigation {
       margin-bottom: 1.5rem;
   }

   .btn-gallery-nav {
       min-width: 100%;
       max-width: 300px;
       padding: 0.7rem 1.2rem;
       font-size: 0.9rem;
   }

   .btn-gallery-nav i {
       font-size: 1rem;
   }
}

@media (max-width: 1400px) {
   .hero-control {
       width: 65px !important;
       height: 65px !important;
   }

   .hero-control-prev {
       left: 25px !important;
   }

   .hero-control-next {
       right: 25px !important;
   }

   .location-info,
   .map-container {
       height: 400px;
   }
}

@media (max-width: 992px) {
   .hero-title {
       font-size: 2.5rem;
   }

   .hero-subtitle {
       font-size: 2rem;
   }

   .hero-control {
       width: 60px !important;
       height: 60px !important;
   }

   .hero-control-prev {
       left: 20px !important;
   }

   .hero-control-next {
       right: 20px !important;
   }

   .hero-arrow {
       width: 24px !important;
       height: 24px !important;
       background-size: 24px 24px !important;
   }

   .hero-indicators {
       bottom: 25px !important;
   }

   .location-info,
   .map-container {
       height: 350px;
   }

   .map-container {
       margin-bottom: 2rem;
   }

   .gallery-item {
       height: 250px;
       margin-bottom: 2rem;
   }
}

@media (max-width: 768px) {
   .hero-title {
       font-size: 2rem;
   }

   .hero-subtitle {
       font-size: 1.5rem;
   }

   .hero-description {
       font-size: 1rem;
   }

   .hero-content {
       text-align: center;
   }

   .hero-control {
       width: 50px !important;
       height: 50px !important;
   }

   .hero-control-prev {
       left: 15px !important;
   }

   .hero-control-next {
       right: 15px !important;
   }

   .hero-arrow {
       width: 20px !important;
       height: 20px !important;
       background-size: 20px 20px !important;
   }

   .hero-buttons {
       display: flex;
       flex-direction: column;
       gap: 1rem;
   }

   .hero-buttons .btn {
       width: 100%;
       margin: 0 !important;
   }

   .feature-highlight {
       padding: 2rem;
   }

   .hero-indicators {
       bottom: 20px !important;
   }

   .hero-indicators button {
       width: 12px !important;
       height: 12px !important;
   }

   .location-info,
   .map-container {
       height: 300px;
   }

   .location-info {
       padding: 1.5rem;
       margin-bottom: 2rem;
   }

   .gallery-item {
       height: 220px;
       margin-bottom: 1.5rem;
   }

   .gallery-overlay-content i {
       font-size: 2.5rem;
   }

   .gallery-overlay-content p {
       font-size: 1rem;
   }
}

@media (max-width: 576px) {
   .hero-title {
       font-size: 1.5rem;
   }

   .hero-subtitle {
       font-size: 1.2rem;
   }

   .hero-control {
       width: 45px !important;
       height: 45px !important;
   }

   .hero-control-prev {
       left: 10px !important;
   }

   .hero-control-next {
       right: 10px !important;
   }

   .hero-arrow {
       width: 18px !important;
       height: 18px !important;
       background-size: 18px 18px !important;
   }

   .hero-indicators {
       bottom: 15px !important;
   }

   .hero-indicators button {
       width: 10px !important;
       height: 10px !important;
       border-width: 1px !important;
   }

   .location-info,
   .map-container {
       height: 250px;
   }

   .gallery-item {
       height: 200px;
       margin-bottom: 1rem;
   }

   .gallery-overlay-content i {
       font-size: 2rem;
       margin-bottom: 0.5rem;
   }

   .gallery-overlay-content p {
       font-size: 0.9rem;
   }
}

@media (min-width: 1920px) {
   .hero-control {
       width: 80px !important;
       height: 80px !important;
   }

   .hero-control-prev {
       left: 40px !important;
   }

   .hero-control-next {
       right: 40px !important;
   }

   .hero-arrow {
       width: 35px !important;
       height: 35px !important;
       background-size: 35px 35px !important;
   }

   .hero-indicators {
       bottom: 40px !important;
   }

   .hero-indicators button {
       width: 16px !important;
       height: 16px !important;
   }

   .location-info,
   .map-container {
       height: 500px;
   }

   .gallery-item {
       height: 320px;
   }
}

@keyframes fadeInUp {
   from {
       opacity: 0;
       transform: translateY(50px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

.hero-bg-image {
   animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
   from { opacity: 0; }
   to { opacity: 1; }
}

* {
   transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media print {
   .navbar, .hero-control, .hero-indicators, .gallery-overlay {
       display: none !important;
   }

   .hero-section {
       height: auto;
       page-break-inside: avoid;
   }

   .gallery-item img {
       filter: none !important;
       transform: none !important;
   }
}

section:not(#home) {
   scroll-margin-top: 80px;
}

.gallery-item img.lazy {
   opacity: 0;
   transition: opacity 0.3s;
}

.gallery-item img.lazy.loaded {
   opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
   * {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
   }
}

.gallery-item:focus {
   outline: 3px solid var(--secondary-color);
   outline-offset: 2px;
}

.image-modal-content .btn-close:focus {
   box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.5);
}

.btn-gallery-nav:focus {
   outline: 3px solid rgba(76, 175, 80, 0.5);
   outline-offset: 2px;
}

@keyframes heartbeat-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
        background-color: #28a745;
        border-color: #28a745;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(139, 195, 74, 0.7);
        background-color: #59c173;
        border-color: #59c173;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
        background-color: #28a745;
        border-color: #28a745;
    }
}

.nav-link-venta {
    animation: heartbeat-glow 2s infinite ease-in-out;
    border-radius: 8px !important;
}

@media (max-width: 768px) {
    .hero-content-container {
        pointer-events: none;
        z-index: 2;
    }
    .hero-content-container .container {
        max-width: 90%;
        margin: 0 auto;
    }
    .hero-content {
        pointer-events: auto;
        padding: 0 15px;
        max-width: calc(100% - 100px);
        margin: 0 auto;
    }
    .hero-control {
        z-index: 20 !important;
        pointer-events: auto !important;
    }
    .hero-buttons a {
        pointer-events: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-content {
        max-width: calc(100% - 80px);
        padding: 0 10px;
    }
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .hero-control {
        position: absolute !important;
        z-index: 30 !important;
        pointer-events: auto !important;
        opacity: 0.95 !important;
    }
    .hero-control-prev {
        left: 5px !important;
    }
    .hero-control-next {
        right: 5px !important;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .navbar {
        padding: 0.8rem 0 !important;
    }
    .navbar-brand {
        font-size: 1.2rem;
        max-width: 200px;
    }
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
    .navbar-collapse {
        background-color: var(--nav-green);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .navbar-nav {
        align-items: center;
    }
    .navbar-nav .nav-link {
        padding: 0.8rem 1.2rem !important;
        margin: 0.2rem 0;
    }
    .nav-link-venta {
        margin-top: 1rem !important;
        width: 100%;
        max-width: 300px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 344px) {
    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-brand img {
        width: 30px;
        height: 30px;
    }
    .brand-text {
        font-size: 0.9rem;
    }
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 280px) {
    .navbar-brand {
        font-size: 0.85rem;
    }
    .brand-text {
        display: inline-block;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .navbar-toggler {
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 991px) {
    .navbar-collapse.show {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--nav-green);
        z-index: 1060 !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    .navbar > .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    .navbar-nav .nav-link {
        border-radius: 8px;
        margin: 0.3rem 1rem;
        background-color: rgba(255,255,255,0.05);
        transition: all 0.3s ease;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background-color: rgba(255,255,255,0.15);
        transform: none;
    }
    .nav-link-venta {
        animation: heartbeat-glow 2s infinite ease-in-out;
        display: block !important;
        width: calc(100% - 2rem);
        margin: 1rem auto 0.5rem !important;
        text-align: center;
    }
}

@media (min-width: 540px) and (max-width: 720px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.9rem 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
    .navbar {
        padding: 1rem 0;
    }
    .navbar-collapse {
        margin-top: 1.5rem;
    }
    .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem !important;
    }
}

@media (max-width: 991px) {
    body.modal-open .navbar-collapse {
        max-height: none;
    }
    .navbar.fixed-top {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .hero-content {
        padding: 0 2rem;
        max-width: 100%;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }
    .hero-buttons {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    .hero-buttons .btn {
        flex: 1 1 calc(50% - 0.8rem);
        min-width: 200px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        height: auto;
    }
    .hero-content-container {
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    .hero-content {
        padding: 1rem;
    }
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        max-height: 2.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .hero-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .hero-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 140px;
    }
    .hero-control {
        width: 40px !important;
        height: 40px !important;
    }
    .hero-indicators {
        bottom: 10px !important;
    }
}

@media (max-height: 400px) and (orientation: landscape) {
    .hero-content-container {
        padding-top: 60px;
    }
    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .hero-description {
        display: none;
    }
    .hero-buttons {
        margin-top: 0.5rem;
    }
    .hero-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        overflow-y: auto;
        overflow-x: hidden;
    }
    .hero-content-container .row {
        min-height: auto;
        align-items: flex-start;
        padding-top: 2rem;
    }
}