/* Estilos generales del plugin Viajes WP */
.viajes-wp-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Grid de paquetes */
.viajes-wp-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.viajes-wp-grid[style*="grid-template-columns: repeat(1, 1fr)"] {
    grid-template-columns: 1fr;
}

.viajes-wp-grid[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: repeat(2, 1fr);
}

.viajes-wp-grid[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: repeat(3, 1fr);
}

.viajes-wp-grid[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Filtros móviles */
.filtros-mobile-toggle {
    text-align: left;
    margin-bottom: 20px;
}

.btn-ver-filtros {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ver-filtros:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.filtros-toggle-icon {
    transition: transform 0.3s ease;
}

.filtros-toggle-icon.rotated {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .viajes-wp-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Mostrar botón de filtros en móvil */
    .filtros-mobile-toggle {
        display: block !important;
    }
    
    /* Ocultar filtros por defecto en móvil */
    .viajes-wp-filtros {
        display: none;
    }
    
    /* Mostrar filtros cuando están activos */
    .viajes-wp-filtros.filtros-activos {
        display: block;
    }
    
    /* Ajustar layout de filtros en móvil */
    .filter-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .viajes-wp-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tarjetas de paquetes */
.viajes-wp-package-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.viajes-wp-package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.package-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.viajes-wp-package-card:hover .package-image img {
    transform: scale(1.05);
}

.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
}

.no-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.package-content {
    padding: 20px;
}

.package-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.package-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.package-title a:hover {
    color: #3498db;
}

.package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.package-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.package-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.package-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #495057;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.precio {
    font-size: 1.2rem;
    font-weight: 600;
    color: #27ae60;
}

.precio.consultar {
    color: #f39c12;
    font-style: italic;
}

.ver-mas {
    display: inline-block;
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.ver-mas:hover {
    background: #2980b9;
    color: #fff;
}

/* Filtros */
.viajes-wp-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.viajes-wp-filter-form {
    margin: 0;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-submit,
.filter-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.filter-submit {
    background: #3498db;
    color: #fff;
}

.filter-submit:hover {
    background: #2980b9;
}

.filter-reset {
    background: #6c757d;
    color: #fff;
}

.filter-reset:hover {
    background: #5a6268;
}

/* Paginación */
.viajes-wp-pagination {
    margin-top: 30px;
    text-align: center;
}

.viajes-wp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007cba;
    transition: all 0.3s ease;
}

.viajes-wp-pagination .page-numbers:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.viajes-wp-pagination .current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

/* Sin resultados */
.viajes-wp-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Formulario frontend */
.viajes-wp-frontend-form {
    max-width: 800px;
    margin: 0 auto;
}

.viajes-wp-frontend-form h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.viajes-wp-frontend-form p {
    color: #6c757d;
    margin-bottom: 30px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-control[type="file"] {
    padding: 8px 0;
    border: none;
}

.form-control[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-control[type="checkbox"] + label {
    display: inline;
    font-weight: normal;
}

.form-row small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.85rem;
}

.submit-button {
    background: #27ae60;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #229954;
}

.submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Mensajes del formulario */
#form-messages {
    margin-top: 20px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 16px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Campos personalizados */
.custom-fields-title {
    margin: 30px 0 20px 0;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    color: #2c3e50;
}

.custom-field-row {
    border-left: 3px solid #3498db;
    padding-left: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

/* Layouts específicos */
.viajes-wp-form-horizontal .form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    align-items: center;
}

.viajes-wp-form-horizontal .form-row label {
    margin-bottom: 0;
}

.viajes-wp-form-horizontal .form-row.form-submit {
    grid-column: 1 / -1;
    text-align: center;
}

.viajes-wp-form-grid .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.viajes-wp-form-grid .form-row:nth-child(odd) {
    grid-column: 1 / 2;
}

.viajes-wp-form-grid .form-row:nth-child(even) {
    grid-column: 2 / 3;
}

.viajes-wp-form-grid .form-row:last-child,
.viajes-wp-form-grid .form-row:nth-last-child(2):nth-child(odd) {
    grid-column: 1 / -1;
}

/* Responsive para formularios */
@media (max-width: 768px) {
    .viajes-wp-form-horizontal .form-row,
    .viajes-wp-form-grid .form-row {
        display: block;
    }
    
    .viajes-wp-form-horizontal .form-row label {
        margin-bottom: 5px;
    }
}

/* Filtros independientes */
.viajes-wp-filters-widget {
    margin-bottom: 30px;
}

.viajes-wp-filters-vertical .filter-row {
    grid-template-columns: 1fr;
}

.viajes-wp-filters-grid .filter-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Búsqueda */
.search-group {
    margin-bottom: 20px;
}

.search-group input {
    font-size: 1.1rem;
    padding: 12px 16px;
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Estilos para página individual de paquete */
.viajes-wp-single-package {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.viajes-wp-single-package .entry-header {
    margin-bottom: 30px;
    text-align: center;
}

.viajes-wp-single-package .entry-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.viajes-wp-single-package .package-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.viajes-wp-single-package .meta-item {
    text-align: center;
}

.viajes-wp-single-package .meta-item strong {
    display: block;
    color: #495057;
    margin-bottom: 5px;
}

.viajes-wp-single-package .package-image {
    margin-bottom: 30px;
    text-align: center;
}

.viajes-wp-single-package .package-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.viajes-wp-single-package .package-description {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Estilos para precios */
.viajes-wp-single-package .package-prices {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.viajes-wp-single-package .package-prices h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.viajes-wp-single-package .price-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.viajes-wp-single-package .price-label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.viajes-wp-single-package .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27ae60;
}

.viajes-wp-single-package .price-value.consultar {
    color: #f39c12;
    font-style: italic;
}

/* Botón de WhatsApp */
.whatsapp-contact {
    text-align: center;
    margin: 30px 0;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
    background: #128c7e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Información del paquete */
.viajes-wp-single-package .package-info {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.viajes-wp-single-package .package-info h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 15px 20px;
    color: #2c3e50;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.3rem;
}

.viajes-wp-single-package .info-content {
    padding: 20px;
    line-height: 1.6;
}

.viajes-wp-single-package .custom-field {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.viajes-wp-single-package .custom-field strong {
    color: #495057;
}

/* Responsive para página individual */
@media (max-width: 768px) {
    .viajes-wp-single-package {
        padding: 15px;
    }
    
    .viajes-wp-single-package .entry-title {
        font-size: 2rem;
    }
    
    .viajes-wp-single-package .package-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .whatsapp-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* ===== NUEVOS ESTILOS PARA SINGLE MODERNO ===== */

/* Layout principal */
.package-layout-modern {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0;
}

.package-content-modern {
    min-width: 0; /* Para evitar overflow */
}

.booking-sidebar-modern {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Tarjetas con diseño consistente */
.gallery-card-modern,
.description-card-modern,
.detail-card-modern,
.whatsapp-card-modern {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.gallery-card-modern:hover,
.description-card-modern:hover,
.detail-card-modern:hover,
.whatsapp-card-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Headers de las tarjetas */
.gallery-header-modern,
.description-header-modern,
.detail-header-modern,
.whatsapp-header-modern {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
}

.gallery-title-modern,
.description-title-modern,
.detail-title-modern,
.whatsapp-header-modern h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Contenido de las tarjetas */
.gallery-content-modern,
.description-content-modern,
.detail-content-modern,
.whatsapp-content-modern {
    padding: 20px;
}

/* Galería con scroll horizontal */
.gallery-scroll-modern {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.gallery-scroll-modern::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll-modern::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.gallery-scroll-modern::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.gallery-scroll-modern::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.gallery-item-modern {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item-modern:hover {
    transform: scale(1.05);
}

.gallery-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Grid de detalles */
.details-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Botón de WhatsApp */
.whatsapp-button-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.whatsapp-button-modern:hover {
    background: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-button-modern svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Botón de WhatsApp de ancho completo (sin caja) */
.whatsapp-button-full-width {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 16px;
}

.whatsapp-button-full-width:hover {
    background: #20ba5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-button-full-width svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Modal de galería mejorado */
.gallery-modal-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content-modern {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-modern {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-close-modern {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close-modern:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-navigation-modern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-prev-modern,
.modal-next-modern {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    pointer-events: all;
}

.modal-prev-modern:hover,
.modal-next-modern:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-prev-modern {
    margin-left: 20px;
}

.modal-next-modern {
    margin-right: 20px;
}

/* Responsive para single moderno */
@media (max-width: 1024px) {
    .package-layout-modern {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .booking-sidebar-modern {
        position: static;
        order: -1;
    }
    
    .details-grid-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 16px;
    }
    
    .package-layout-modern {
        gap: 20px;
        margin: 20px 0;
    }
    
    .gallery-item-modern {
        width: 100px;
        height: 100px;
    }
    
    .gallery-scroll-modern {
        gap: 8px;
    }
    
    .modal-prev-modern,
    .modal-next-modern {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .modal-close-modern {
        top: -30px;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }
}

/* Botón de WhatsApp pequeño en tarjetas */
.whatsapp-quick {
    margin-top: 15px;
    text-align: center;
}

.whatsapp-button-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #25d366;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-button-small:hover {
    background: #128c7e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-button-small .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Mejoras en las tarjetas de paquetes */
.viajes-wp-package-card {
    position: relative;
    overflow: hidden;
}

.viajes-wp-package-card .package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.viajes-wp-package-card .precio {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.viajes-wp-package-card .price-adult,
.viajes-wp-package-card .price-child,
.viajes-wp-package-card .price-general {
    font-size: 1.1rem;
    font-weight: 600;
    color: #27ae60;
}

.viajes-wp-package-card .price-consultar {
    font-size: 1rem;
    font-weight: 500;
    color: #f39c12;
    font-style: italic;
}

.viajes-wp-package-card .ver-mas {
    background: #3498db;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.viajes-wp-package-card .ver-mas:hover {
    background: #2980b9;
    color: #fff;
    transform: translateY(-1px);
}

/* Estilos para el formulario de registro de agencias */
.viajes-wp-agency-registration {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.viajes-wp-agency-registration .form-title {
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.viajes-wp-agency-registration .form-description {
    color: #6c757d;
    margin-bottom: 30px;
    text-align: center;
}

.viajes-wp-agency-registration .form-row {
    margin-bottom: 20px;
}

.viajes-wp-agency-registration .form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.viajes-wp-agency-registration .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.viajes-wp-agency-registration .form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.viajes-wp-agency-registration .submit-button {
    background: #27ae60;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.viajes-wp-agency-registration .submit-button:hover {
    background: #229954;
}

.viajes-wp-agency-registration .submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Mensajes del formulario de agencias */
#agency-form-messages {
    margin-top: 20px;
}

/* Estilos para el admin de agencias */
.agency-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}

.agency-status.approved {
    background: #d4edda;
    color: #155724;
}

.agency-status.pending {
    background: #fff3cd;
    color: #856404;
}

.agency-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   ESTILOS MODERNOS Y ELEGANTES
   ======================================== */

/* Contenedor principal de registro */
.viajes-wp-registration-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.registration-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Selección de tipo de usuario */
.user-type-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.user-type-option {
    position: relative;
}

.user-type-option input[type="radio"] {
    display: none;
}

.user-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.user-type-label:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.user-type-option input[type="radio"]:checked + .user-type-label {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.2);
}

.user-type-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.user-type-text {
    font-weight: 600;
    font-size: 1rem;
}

/* Secciones del formulario */
.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    margin-bottom: 20px;
}

.form-section-title h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Contenedor de login y registro */
.viajes-wp-login-register-widget {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Navegación de pestañas */
.tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #2c3e50;
    background: #e9ecef;
}

.tab-button.active {
    color: #667eea;
    background: #fff;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1a1a1a;
}

/* Contenido de pestañas */
.tabs-content {
    padding: 40px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Formularios */
.viajes-wp-form {
    max-width: 100%;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Checkboxes */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Botones */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    gap: 8px;
}

.btn-primary {
    background: #1a1a1a;
    color: #fff;
    border-radius: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.2);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 10px;
}

.btn-outline:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

.btn.rounded {
    border-radius: 25px;
}

.btn.square {
    border-radius: 5px;
}

.btn.pill {
    border-radius: 50px;
}

/* Enlaces del formulario */
.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Mensajes */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    margin-top: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin-top: 20px;
}

/* Grid de paquetes mejorado */
.viajes-wp-packages-grid-widget {
    margin: 40px 0;
}

.viajes-wp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.viajes-wp-package-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.viajes-wp-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.viajes-wp-package-card .package-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.viajes-wp-package-card .package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.viajes-wp-package-card:hover .package-image img {
    transform: scale(1.05);
}

.viajes-wp-package-card .no-image {
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}

.viajes-wp-package-card .package-content {
    padding: 25px;
}

.viajes-wp-package-card .package-title {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.viajes-wp-package-card .package-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.viajes-wp-package-card .package-title a:hover {
    color: #667eea;
}

.viajes-wp-package-card .package-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.viajes-wp-package-card .package-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 15px;
}

.viajes-wp-package-card .package-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.viajes-wp-package-card .package-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.viajes-wp-package-card .package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.viajes-wp-package-card .precio {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.viajes-wp-package-card .price-adult,
.viajes-wp-package-card .price-child,
.viajes-wp-package-card .price-general {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

.viajes-wp-package-card .price-consultar {
    font-size: 1rem;
    font-weight: 600;
    color: #ffc107;
    font-style: italic;
}

.viajes-wp-package-card .ver-mas {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.viajes-wp-package-card .ver-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: #fff;
}

/* Botón de carga más */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(26, 26, 26, 0.2);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Filtros mejorados */
.viajes-wp-filters {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.filter-submit {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.filter-reset {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-reset:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: #fff;
}

/* Sin resultados */
.viajes-wp-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.viajes-wp-no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
    .viajes-wp-registration-container,
    .viajes-wp-login-register-widget {
        margin: 20px;
        padding: 20px;
    }
    
    .registration-title {
        font-size: 2rem;
    }
    
    .user-type-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .user-type-label {
        min-width: 200px;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .viajes-wp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .viajes-wp-package-card .package-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .viajes-wp-package-card .ver-mas {
        text-align: center;
    }
}

/* Estilos para la galería de imágenes */
.package-gallery {
    margin: 30px 0;
}

.package-gallery h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

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

/* Modal para vista ampliada */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.gallery-modal-close:hover {
    color: #ff6b6b;
}

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

/* Responsive para galería */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .gallery-modal-content {
        width: 95%;
        padding: 10px;
    }
    
    .gallery-modal-close {
        font-size: 30px;
        top: 5px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .gallery-image {
        height: 120px;
    }
}

/* Estilos modernos y minimalistas para página individual de paquete */
.viajes-wp-single-package-modern {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
}

/* Container y Layout */
.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Section */
.package-header-modern {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 32px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.package-info {
    flex: 1;
}

.package-title-modern {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.package-meta-modern {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 14px;
}

.meta-icon {
    font-size: 16px;
}

.meta-text {
    font-weight: 500;
}

.agencia-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.agencia-link:hover {
    border-bottom-color: #1a1a1a;
    color: #1a1a1a;
}

/* Main Layout */
.package-layout-modern {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    margin: 48px 0;
}

/* Content Section */
.package-content-modern {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Image Section */
.image-section-modern {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-image-modern {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #f8f9fa;
    width: 100%;
}

.main-image-modern img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

/* Gallery */
.gallery-modern {
    margin-top: 24px;
}

.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.gallery-item-modern {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-modern:hover {
    transform: scale(1.05);
}

.gallery-image-modern {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
}

/* Section Titles */
.section-title-modern {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

/* Description Section */
.description-section-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e5e5;
}

.description-content-modern {
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
}

.description-content-modern h1,
.description-content-modern h2,
.description-content-modern h3 {
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 12px;
}

.description-content-modern p {
    margin-bottom: 16px;
}

/* Details Section */
.details-section-modern {
    margin-top: 32px;
}

.details-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.detail-block-modern {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s ease;
}

.detail-block-modern:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.detail-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-icon {
    font-size: 18px;
}

.detail-content-modern {
    font-size: 14px;
    line-height: 1.6;
    color: #4a4a4a;
}

.detail-content-modern p {
    margin-bottom: 12px;
}

.detail-content-modern ul,
.detail-content-modern ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.detail-content-modern li {
    margin-bottom: 4px;
}

/* Booking Sidebar */
.booking-sidebar-modern {
    position: sticky;
    top: 24px;
    height: fit-content;
}

/* Booking Card */
.booking-card-modern {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.booking-header-modern {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    text-align: left;
}

.booking-header-modern h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.booking-content-modern {
    padding: 24px;
}

/* Pricing */
.pricing-modern {
    margin-bottom: 24px;
}

.price-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-item-modern:last-child {
    border-bottom: none;
}

.price-label-modern {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.price-value-modern {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
}

.price-item-modern.no-price .price-value-modern {
    font-size: 1rem;
    color: #999999;
    font-style: italic;
}

/* Dates */
.dates-modern {
    margin-bottom: 24px;
}

.date-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.date-item-modern:last-child {
    border-bottom: none;
}

.date-label-modern {
    font-size: 13px;
    color: #666666;
    font-weight: 500;
}

.date-value-modern {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Availability */
.availability-modern {
    margin-bottom: 24px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.availability-text-modern {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}

/* Contact */
.contact-modern {
    margin-top: 16px;
}

.whatsapp-button-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.whatsapp-button-modern:hover {
    background: #128c7e;
    color: white;
}

.whatsapp-icon {
    font-size: 16px;
}

/* Gallery Modal */
.gallery-modal-modern {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.modal-content-modern {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
}

.modal-close-modern {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.modal-close-modern:hover {
    background: rgba(255,255,255,0.3);
}

.modal-image-container-modern {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-image-modern {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.modal-navigation-modern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-prev-modern,
.modal-next-modern {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    pointer-events: all;
}

.modal-prev-modern:hover,
.modal-next-modern:hover {
    background: rgba(255,255,255,0.3);
}

.modal-prev-modern {
    margin-left: -50px;
}

.modal-next-modern {
    margin-right: -50px;
}

/* Rich Text Editor Styles */
.rich-text-editor {
    margin-top: 5px;
}

.rich-text-editor .wp-editor-wrap {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rich-text-editor .wp-editor-tabs {
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
}

.rich-text-editor .wp-switch-editor {
    background: #f1f1f1;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}

.rich-text-editor .wp-switch-editor.switch-tmce {
    background: #0073aa;
    color: white;
}

.rich-text-editor .wp-editor-container {
    border: none;
}

.rich-text-editor .mce-toolbar {
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.rich-text-editor .mce-btn {
    background: transparent;
    border: none;
}

.rich-text-editor .mce-btn:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .package-layout-modern {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .booking-sidebar-modern {
        order: -1;
        position: static;
    }
    
    .container-wide {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .package-title-modern {
        font-size: 2rem;
    }
    
    .package-meta-modern {
        flex-direction: column;
        gap: 12px;
    }
    
    .gallery-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .gallery-item-modern {
        min-height: 120px;
    }
    
    .details-grid-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .main-image-modern img {
        height: auto;
    }
    
    .modal-prev-modern {
        margin-left: -30px;
    }
    
    .modal-next-modern {
        margin-right: -30px;
    }
}

@media (max-width: 480px) {
    .package-title-modern {
        font-size: 1.5rem;
    }
    
    .container-wide {
        padding: 0 16px;
    }
    
    .package-header-modern {
        padding: 24px 0;
    }
    
    .package-layout-modern {
        margin: 32px 0;
        gap: 24px;
    }
    
    .section-title-modern {
        font-size: 1.3rem;
    }
    
    .description-section-modern,
    .detail-block-modern {
        padding: 20px;
    }
    
    .booking-content-modern {
        padding: 20px;
    }
    
    .gallery-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .gallery-item-modern {
        min-height: 100px;
    }
}

.package-header {
    margin-bottom: 30px;
    text-align: center;
}

.package-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.package-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    font-size: 14px;
}

.meta-item strong {
    color: #2c3e50;
    margin-right: 8px;
}

.package-content {
    line-height: 1.6;
}

.package-image {
    margin-bottom: 30px;
    text-align: center;
}

.package-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.package-description {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
}

.package-prices {
    background: #1a1a1a;
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.package-prices h3 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    font-size: 16px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
}

.package-availability {
    background: #e8f5e8;
    border: 2px solid #4caf50;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.package-availability h3 {
    color: #2e7d32;
    margin: 0 0 15px 0;
}

.availability-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.availability-label {
    font-weight: 600;
    color: #2e7d32;
}

.availability-value {
    font-size: 20px;
    font-weight: 700;
    color: #1b5e20;
}

.package-details {
    margin-bottom: 40px;
}

.detail-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.detail-section h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: 600;
}

.detail-content {
    line-height: 1.7;
    color: #555;
}

.package-contact {
    background: #25d366;
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.package-contact h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.package-contact p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #25d366;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #128c7e;
}

.whatsapp-icon {
    font-size: 20px;
}

/* Estilos para información de transporte */
.transport-info-modern {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.transport-info-modern:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.transport-header-modern {
    background: #f8f9fa;
    padding: 16px 20px;
    border-bottom: 1px solid #e1e5e9;
}

.transport-header-modern h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transport-content-modern {
    padding: 20px;
}

.transport-item-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.transport-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.transport-text {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

/* Widget de Logos de Agencias */
.viajes-wp-logos-widget {
    text-align: center;
    margin: 20px 0;
}

.logos-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.logos-grid {
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.logos-columnas-1 {
    grid-template-columns: 1fr;
}

.logos-columnas-2 {
    grid-template-columns: repeat(2, 1fr);
}

.logos-columnas-3 {
    grid-template-columns: repeat(3, 1fr);
}

.logos-columnas-4 {
    grid-template-columns: repeat(4, 1fr);
}

.logos-columnas-5 {
    grid-template-columns: repeat(5, 1fr);
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Estilos para checkboxes de permisos */
.permisos-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.permiso-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.permiso-checkbox:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.permiso-input {
    margin: 0;
}

.permiso-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

/* Responsive para página individual */
@media (max-width: 768px) {
    .single-package {
        padding: 15px;
    }
    
    .package-title {
        font-size: 2em;
    }
    
    .package-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .meta-item {
        text-align: center;
    }
    
    .price-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .availability-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .whatsapp-button {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Responsive para logos */
    .logos-columnas-5,
    .logos-columnas-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .logos-columnas-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .permisos-checkboxes {
        grid-template-columns: 1fr;
    }
}

/* Estilos para logos dentro de tarjetas de agencia */
.logos-respaldo-agencia {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.logos-titulo-agencia {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.logos-grid-agencia {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.logo-item-agencia {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    max-width: 80px;
}

.logo-item-agencia img {
    width: 100%;
    height: 50px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.logo-item-agencia:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive para logos de agencia */
@media (max-width: 768px) {
    .logo-item-agencia {
        max-width: 60px;
    }
    
    .logo-item-agencia img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .package-title {
        font-size: 1.8em;
    }
    
    .package-prices,
    .package-contact {
        padding: 20px;
    }
    
    .detail-section {
        padding: 20px;
    }
}
