/* Variables */
:root {
    --primary-color: #0072bb; /* Azul corporativo */
    --secondary-color: #2ecc40; /* Verde corporativo */
    --accent-color: #0072bb; /* Azul para detalles */
    --text-color: #ffffff; /* Blanco para texto principal */
    --light-bg: #eaf6fb; /* Azul muy claro para fondos suaves */
    --dark-bg: #005a8c; /* Azul oscuro para fondo principal */
    --white: #ffffff;
    --gray: #6c757d;
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    padding: 0.75rem 0;
    transition: var(--transition);
    min-height: 90px;
    max-height: 90px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 80px;
    max-height: 80px;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    height: 100%;
}

.brand-text {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.contact-btn {
    background: transparent;
    border-radius: 0;
    padding: 0.5rem 1rem !important;
}

.contact-btn:hover {
    background: transparent;
    color: var(--secondary-color) !important;
}

/* Navbar collapse mobile menu background */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-collapse.show {
        background-color: var(--primary-color);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    padding-top: 90px;
    position: relative;
}

.hero .carousel {
    height: 100%;
}

.hero .carousel-inner {
    height: 100%;
}

.hero .carousel-item {
    height: 100vh;
}

.hero-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 114, 187, 0.85), rgba(0, 114, 187, 0.85));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--secondary-color);
    border: none;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero .btn:hover {
    background: #27ae60;
    color: var(--white);
}

/* Carousel Controls */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: var(--transition);
    z-index: 3;
}

.hero .carousel-control-prev {
    left: 30px;
}

.hero .carousel-control-next {
    right: 30px;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

/* Carousel Indicators */
.hero .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.hero .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
}

.hero .carousel-indicators button.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Carousel Fade Animation */
.hero .carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.hero .carousel-fade .carousel-item.active,
.hero .carousel-fade .carousel-item-next.carousel-item-start,
.hero .carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.hero .carousel-fade .active.carousel-item-start,
.hero .carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--light-bg);
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,114,187,0.2);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(46, 204, 64, 0.3));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover h3 {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.service-card p {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.service-card:hover p {
    transform: translateY(-5px);
}

/* Wiki Section */
.wiki {
    padding: 5rem 0;
    background: var(--light-bg);
}

.wiki-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    color: var(--primary-color);
}

.wiki-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,114,187,0.1);
}

.wiki-header {
    background: transparent;
    color: var(--primary-color);
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wiki-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.wiki-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.wiki-content {
    padding: 1.5rem;
}

.wiki-content h4 {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1.2rem 0 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wiki-content h4:first-child {
    margin-top: 0;
}

.wiki-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.2rem;
}

.wiki-content ul li {
    margin-bottom: 0.4rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.wiki-content ul li::before {
    content: '—';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: normal;
}

.wiki-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--dark-bg);
    color: var(--white);
}

.about .section-title {
    color: var(--white);
}

.about .section-title::after {
    background: var(--secondary-color);
}

.about-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.about-features li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--secondary-color);
    margin-right: 1rem;
}

.about-image img {
    width: 60%;
}

.about-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

/* Booking Section */
.booking {
    padding: 5rem 0;
    background: var(--light-bg);
}

.booking-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,114,187,0.1);
    color: var(--primary-color);
}

.booking-info {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
}

.booking-info h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.booking-info ul {
    list-style: none;
    padding: 0;
}

.booking-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.booking-info i {
    margin-right: 1rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 10rem 0;
    margin-bottom: 0.5rem;
    background: var(--dark-bg);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title::after {
    background: var(--secondary-color);
}

.contact-info {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,114,187,0.1);
    margin-bottom: 2rem;
    transition: var(--transition);
    color: var(--primary-color);
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-info i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.whatsapp-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.whatsapp-link:hover {
    text-decoration: none;
    color: inherit;
}

.whatsapp-link i {
    font-size: 2.5rem;
    color: #25D366;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-info:hover .whatsapp-link i {
    transform: scale(1.1);
    color: #128C7E;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.social-links {
    text-align: right;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero .carousel-control-prev,
    .hero .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero .carousel-control-prev {
        left: 15px;
    }
    
    .hero .carousel-control-next {
        right: 15px;
    }
    
    .hero .carousel-indicators {
        bottom: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .social-links {
        text-align: center;
        margin-top: 1rem;
    }
    
    .booking-info {
        margin-top: 2rem;
    }
}

/* Form Styles */
.form-control, .form-select {
    padding: 0.8rem;
    border: 1px solid #b2d8ef;
    border-radius: 5px;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: var(--white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 64, 0.15);
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.btn-primary:hover {
    background: #27ae60;
    transform: translateY(-2px);
    color: var(--white);
}

/* Logo en el header */
.header-logo {
    max-height: 32px;
    max-width: 80px;
    margin-right: 0.5rem;
    margin-left: 15px;
    vertical-align: middle;
    display: inline-block;
    background: #fff;
    border-radius: 6px;
    padding: 2px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: contain;
}

@media (max-width: 768px) {
    .header-logo {
        max-height: 24px;
        max-width: 60px;
        margin-right: 0.25rem;
        margin-left: 10px;
        padding: 1px 2px;
    }
} 

.logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
}

.navbar.scrolled .logo {
    max-height: 60px;
}

@media (max-width: 768px) {
    .logo {
        max-height: 50px;
    }
    
    .navbar.scrolled .logo {
        max-height: 45px;
    }
}

/* Modal Pop-up Styles */
.plaga-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.plaga-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plaga-modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.plaga-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--gray);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    line-height: 1;
}

.plaga-modal-close:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.plaga-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 15px 15px 0 0;
}

.plaga-modal-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.plaga-modal-header h2 {
    color: var(--white);
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.plaga-modal-body {
    padding: 2rem;
    color: var(--primary-color);
}

.plaga-modal-body h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plaga-modal-body h4:first-child {
    margin-top: 0;
}

.plaga-modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.plaga-modal-body ul li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
}

.plaga-modal-body ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.plaga-modal-body p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.service-card {
    cursor: pointer;
    position: relative;
}

.service-info-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--white);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.service-card:hover .service-info-icon {
    opacity: 1;
    transform: scale(1);
}

.service-info-icon:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* Gallery Section */
.gallery {
    padding: 7rem 0;
    background: var(--light-bg);
}

.gallery .carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-carousel-item {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-carousel-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 114, 187, 0.3);
}

.gallery-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-carousel-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    pointer-events: none;
}

.video-item-carousel {
    background: #000;
}

.gallery-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    text-align: center;
}

.gallery-carousel-caption h5 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Gallery Carousel Controls */
.gallery .carousel-control-prev,
.gallery .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 114, 187, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition);
}

.gallery .carousel-control-prev {
    left: 20px;
}

.gallery .carousel-control-next {
    right: 20px;
}

.gallery .carousel-control-prev:hover,
.gallery .carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-color);
}

/* Gallery Carousel Indicators */
.gallery .carousel-indicators {
    bottom: 20px;
}

.gallery .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
}

.gallery .carousel-indicators button.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Video Play Overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    cursor: pointer;
    transition: var(--transition);
}

.video-play-overlay i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(46, 204, 64, 0.5));
    display: block;
}

.video-item-carousel:hover .video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item-carousel:hover .video-play-overlay i {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 20px rgba(46, 204, 64, 0.8));
}

/* Gallery Fullscreen Modal */
.gallery-fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.gallery-fullscreen-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-fullscreen-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

.gallery-fullscreen-close:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
    background: rgba(0, 0, 0, 0.8);
}

.gallery-fullscreen-prev,
.gallery-fullscreen-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 114, 187, 0.8);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0.8;
}

.gallery-fullscreen-prev {
    left: 30px;
}

.gallery-fullscreen-next {
    right: 30px;
}

.gallery-fullscreen-prev:hover,
.gallery-fullscreen-next:hover {
    opacity: 1;
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-fullscreen-prev:active,
.gallery-fullscreen-next:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-fullscreen-content {
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.gallery-fullscreen-video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


.gallery-tab:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.gallery-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-content {
    display: none;
}

.gallery-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 114, 187, 0.2);
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}



.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 114, 187, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 3rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: transform 0.15s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
}




/* Responsive Modal */
@media (max-width: 768px) {
    .plaga-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .plaga-modal-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .plaga-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .plaga-modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .plaga-modal-body {
        padding: 1.5rem;
    }
    
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-tab {
        width: 200px;
    }
    
    .gallery-carousel-item {
        height: 400px;
    }
    
    .gallery-carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    .gallery .carousel-control-prev,
    .gallery .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .gallery .carousel-control-prev {
        left: 10px;
    }
    
    .gallery .carousel-control-next {
        right: 10px;
    }
    
    .gallery-fullscreen-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
        width: 40px;
        height: 40px;
    }
    
    .gallery-fullscreen-content {
        width: 95%;
        height: 85vh;
    }
    
    .video-play-overlay i {
        font-size: 4rem;
    }
    
    .gallery-fullscreen-prev,
    .gallery-fullscreen-next {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .gallery-fullscreen-prev {
        left: 15px;
    }
    
    .gallery-fullscreen-next {
        right: 15px;
    }
}