/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #7DBA05 0%, #5A8A2E 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(125, 186, 5, 0.3);
}

.btn-search {
    background: linear-gradient(135deg, #9EDB2E 0%, #7DBA05 100%);
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(158, 219, 46, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    height: 80px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #7DBA05;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7DBA05;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.admin-link {
    background: #7DBA05;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: none !important;
}

.admin-link:hover {
    background: #6BA004;
    transform: scale(1.05);
}

.admin-link::after {
    display: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    color: #7DBA05;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #7DBA05;
    color: white;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInUp 1s ease;
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease 0.2s both;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 3;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-btn-prev {
    left: 30px;
}

.slider-btn-next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
}

/* Buscador de Viajes */
.search-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #7DBA05 0%, #6BA004 100%);
    color: white;
}

.search-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.search-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: white;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

.form-group select:disabled {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

/* Viajes Frecuentes */
.frequent-trips {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    font-weight: 600;
}

.trips-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.trips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.trip-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.trip-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.trip-content {
    padding: 25px;
}

.trip-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.trip-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.trip-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.trip-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.trip-detail i {
    color: #7DBA05;
    width: 16px;
}

.trip-actions {
    display: flex;
    gap: 15px;
}

.trip-actions .btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 14px;
}

.trips-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    color: #7DBA05;
    font-size: 20px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.trips-btn:hover {
    background: #7DBA05;
    color: white;
}

.trips-btn-prev {
    left: -60px;
}

.trips-btn-next {
    right: -60px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #7DBA05 0%, #6BA004 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #e8f5e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-section p {
    color: #e8f5e8;
    margin-bottom: 10px;
}

.footer-section .social-icons {
    gap: 15px;
}

.footer-section .social-link {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.footer-section .social-link:hover {
    background: #ffffff;
    color: #7DBA05;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #e8f5e8;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding-top: 50px !important;
        transition: left 0.3s ease !important;
        z-index: 9999 !important;
        display: flex !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        color: #333 !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .social-icons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slider-btn {
        padding: 10px;
        font-size: 18px;
    }
    
    .slider-btn-prev {
        left: 15px;
    }
    
    .slider-btn-next {
        right: 15px;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .search-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .trips-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trips-btn {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .search-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .trip-actions {
        flex-direction: column;
    }
}

/* Estados de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #7DBA05;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Modal del Slider */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-content-text {
    padding: 30px;
}

.modal-content-text h1,
.modal-content-text h2,
.modal-content-text h3,
.modal-content-text h4,
.modal-content-text h5,
.modal-content-text h6 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #666;
}

.modal-content-text ul,
.modal-content-text ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-content-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-content-text a {
    color: #7DBA05;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-content-text a:hover {
    color: #5A8A2E;
}

.modal-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.modal-content-text blockquote {
    border-left: 4px solid #7DBA05;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 95vh;
    }
    
    .modal-image-container {
        height: 200px;
    }
    
    .modal-content-text {
        padding: 20px;
    }
    
    .close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* Modal de Resultados de Búsqueda */
.search-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.search-results-modal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.search-results-modal .modal-header {
    background: linear-gradient(135deg, #7DBA05 0%, #6BA004 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.search-results-modal .modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.search-results-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.search-results-modal .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-results-modal .modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Elementos de resultado de búsqueda */
.search-result-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    border-color: #7DBA05;
    box-shadow: 0 8px 25px rgba(125, 186, 5, 0.15);
    transform: translateY(-3px);
}

.search-result-item .result-image {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    border: 3px solid #e1e5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-item .result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-result-item .result-title {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.search-result-item .result-details {
    margin-bottom: 15px;
}

.search-result-item .detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    padding: 3px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item .detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.search-result-item .detail-row i {
    width: 18px;
    color: #7DBA05;
    font-size: 15px;
}

.search-result-item .detail-row span {
    color: #555;
    font-size: 14px;
    line-height: 1.3;
}

.search-result-item .detail-row strong {
    color: #333;
    font-weight: 600;
}

.search-result-item .result-actions {
    margin-top: 20px;
}

/* Tabla invisible para alinear botones */
.search-result-item .button-table {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 12px 0;
}

.search-result-item .button-cell {
    display: table-cell;
    width: 50%;
    vertical-align: baseline;
    height: 40px;
}

.search-result-item .result-actions .btn {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 40px;
    gap: 8px;
    box-sizing: border-box;
    line-height: 1;
}

.search-result-item .result-actions .btn-primary {
    background: linear-gradient(135deg, #7DBA05 0%, #6BA004 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(125, 186, 5, 0.3);
}

.search-result-item .result-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(125, 186, 5, 0.4);
}

.search-result-item .result-actions .btn-search {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.search-result-item .result-actions .btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Iconos en los botones */
.search-result-item .result-actions .btn i {
    font-size: 16px;
    flex-shrink: 0;
}

.search-result-item .result-actions .btn-primary i {
    color: #ffffff;
}

.search-result-item .result-actions .btn-search i {
    color: #ffffff;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive para el modal de resultados */
@media (max-width: 768px) {
    .search-results-modal .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }
    
    .search-results-modal .modal-header {
        padding: 15px 20px;
    }
    
    .search-results-modal .modal-header h3 {
        font-size: 20px;
    }
    
    .search-results-modal .modal-body {
        padding: 20px;
    }
    
    .search-result-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .search-result-item .result-image {
        width: 100%;
        height: 180px;
        align-self: center;
    }
    
    .search-result-item .result-title {
        font-size: 20px;
        text-align: center;
    }
    
    .search-result-item .result-details {
        margin-bottom: 25px;
    }
    
    .search-result-item .detail-row {
        justify-content: center;
        text-align: center;
    }
    
    .search-result-item .button-table {
        display: block;
    }
    
    .search-result-item .button-cell {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .search-result-item .button-cell:last-child {
        margin-bottom: 0;
    }
    
    .search-result-item .result-actions .btn {
        width: 100%;
        padding: 14px 20px;
        height: 48px;
    }
}

/* Estilos para la Galería */
.gallery-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Modal de Galería */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

.gallery-modal-content {
    position: relative;
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.gallery-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus {
    color: #000;
}

.gallery-modal-media {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-modal-media img,
.gallery-modal-media video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-modal-info {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.gallery-modal-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.gallery-modal-info p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.gallery-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.gallery-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7DBA05 0%, #6BA004 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(125, 186, 5, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
    
    .gallery-modal-media img,
    .gallery-modal-media video {
        max-height: 50vh;
    }
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: white;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.filter-btn.active {
    background: var(--categoria-color, #7DBA05);
    color: white;
    border-color: var(--categoria-color, #7DBA05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-media {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Reproductor de YouTube */
.gallery-youtube-player {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-youtube-iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Video local */
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-content {
    padding: 20px;
}

.gallery-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.gallery-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.gallery-categoria {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    background: var(--categoria-color, #86C542);
}

.gallery-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.gallery-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
}

.gallery-btn-primary {
    background: linear-gradient(135deg, #7DBA05 0%, #6BA004 100%);
    color: white;
}

.gallery-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(125, 186, 5, 0.3);
}

.gallery-btn-secondary {
    background: #28a745;
    color: white;
}

.gallery-btn-secondary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.gallery-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 12px;
    color: #666;
}

.gallery-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-stat i {
    color: #7DBA05;
}

/* Responsive para la galería */
@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 0;
    }
    
    .gallery-filters {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-media {
        height: 200px;
    }
    
    .gallery-content {
        padding: 15px;
    }
    
    .gallery-title {
        font-size: 1.2rem;
    }
    
    .gallery-actions {
        flex-direction: column;
    }
}

/* Slider de Categorías */
.categoria-slider-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 80px;
}

.categoria-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.categoria-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    padding: 10px 0;
}

.categoria-slide {
    min-width: 280px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.categoria-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.categoria-imagen {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.categoria-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.categoria-slide:hover .categoria-imagen img {
    transform: scale(1.1);
}

.categoria-imagen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7DBA05 0%, #6BA004 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.categoria-info {
    padding: 20px;
    text-align: center;
}

.categoria-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.categoria-info p {
    color: #7DBA05;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categoria-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.categoria-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.categoria-btn-prev {
    left: 10px;
}

.categoria-btn-next {
    right: 10px;
}

.categoria-btn i {
    color: #333;
    font-size: 1.2rem;
}

/* Responsive para el slider de categorías */
@media (max-width: 768px) {
    .categoria-slider-section {
        padding: 40px 0;
        margin-top: 80px;
    }
    
    .categoria-slide {
        min-width: 250px;
    }
    
    .categoria-imagen {
        height: 150px;
    }
    
    .categoria-info {
        padding: 15px;
    }
    
    .categoria-info h3 {
        font-size: 1.1rem;
    }
    
    .categoria-btn {
        width: 40px;
        height: 40px;
    }
    
    .categoria-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .categoria-slider-section {
        margin-top: 80px;
    }
    
    .categoria-slide {
        min-width: 220px;
    }
    
    .categoria-imagen {
        height: 120px;
    }
    
    .categoria-info h3 {
        font-size: 1rem;
    }
}
