/* Kayak-specific styles (scoped). Global resets and body styles are handled by style.css */

/* Header */
        .header {
            background: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .logo {
            font-size: 28px;
            font-weight: 700;
            color: #2c3e50;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo span {
            color: #e74c3c;
        }

        /* Header search styles moved to global `style.css` to ensure consistent appearance across pages */

        .back-home {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 20px;
            background: #2c3e50;
            color: white;
            text-decoration: none;
            border-radius: 25px;
            transition: 0.3s;
        }

        .back-home:hover {
            background: #e74c3c;
        }

        /* Page Hero */
        .page-hero {
            background: linear-gradient(135deg, #1e5799 0%, #207cca 100%);
            color: white;
            padding: 60px 20px;
            text-align: center;
        }

        .page-hero h1 {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .page-hero p {
            font-size: 18px;
            opacity: 0.9;
        }

        /* Container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        /* Sidebar and Content Layout */
        .catalog-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 40px;
        }

        /* Sidebar Filters */
        .sidebar {
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .filter-section {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .filter-section h3 {
            font-size: 18px;
            color: #2c3e50;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .filter-group {
            margin-bottom: 15px;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: 0.3s;
        }

        .filter-option:hover {
            background: #f8f9fa;
        }

        .filter-option input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .filter-option label {
            flex: 1;
            cursor: pointer;
            font-size: 14px;
            color: #555;
        }

        /* Price Filter */
        .price-range {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .price-inputs {
            display: flex;
            gap: 10px;
        }

        .price-inputs input {
            flex: 1;
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
        }

        /* Sliders para precio */
        .price-slider-container {
            position: relative;
            height: 40px;
            margin: 15px 0;
        }

        .price-slider-track {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 6px;
            background: #e0e0e0;
            border-radius: 3px;
            transform: translateY(-50%);
        }

        .price-slider-fill {
            position: absolute;
            height: 6px;
            background: #e74c3c;
            border-radius: 3px;
        }

        .price-slider {
            position: absolute;
            top: 50%;
            width: 100%;
            height: 6px;
            margin: 0;
            transform: translateY(-50%);
            -webkit-appearance: none;
            background: transparent;
            pointer-events: none;
            z-index: 2;
        }

        .price-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #e74c3c;
            cursor: pointer;
            pointer-events: auto;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        .price-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #e74c3c;
            cursor: pointer;
            pointer-events: auto;
            border: 3px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        /* Presets de precio */
        .price-presets {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin: 15px 0;
        }

        .price-preset {
            padding: 10px;
            background-color: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            text-align: center;
            cursor: pointer;
            font-size: 13px;
            transition: 0.3s;
            font-weight: 500;
        }

        .price-preset:hover {
            background-color: #e9ecef;
        }

        .price-preset.active {
            background-color: #e74c3c;
            color: white;
            border-color: #e74c3c;
        }

        .price-display {
            text-align: center;
            font-size: 14px;
            color: #7f8c8d;
            margin: 10px 0;
            font-weight: 500;
        }

        .currency {
            font-size: 12px;
            color: #7f8c8d;
            margin-left: 2px;
        }

        .apply-filters-btn {
            width: 100%;
            padding: 12px;
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
            margin-top: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .apply-filters-btn:hover {
            background: #c0392b;
        }

        .clear-filters-btn {
            width: 100%;
            padding: 12px;
            background: #ecf0f1;
            color: #2c3e50;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .clear-filters-btn:hover {
            background: #bdc3c7;
        }

        /* Main Content */
        .catalog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 20px;
        }

        .results-info {
            font-size: 16px;
            color: #7f8c8d;
        }

        .results-info strong {
            color: #2c3e50;
        }

        .sort-options {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .sort-options label {
            font-weight: 500;
            color: #555;
        }

        .sort-options select {
            padding: 10px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
        }

        .view-toggle {
            display: flex;
            gap: 10px;
        }

        .view-btn {
            padding: 10px 15px;
            background: #ecf0f1;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: 0.3s;
        }

        .view-btn.active {
            background: #e74c3c;
            color: white;
        }

        /* Active Filters */
        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
        }

        .filter-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 15px;
            background: #e74c3c;
            color: white;
            border-radius: 20px;
            font-size: 14px;
        }

        .filter-tag i {
            cursor: pointer;
            opacity: 0.8;
        }

        .filter-tag i:hover {
            opacity: 1;
        }

        /* Products Grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 30px;
        }

        .products-grid.list-view {
            grid-template-columns: 1fr;
        }

        .product-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            transition: 0.3s;
            display: flex;
            flex-direction: column;
        }

        .products-grid.list-view .product-card {
            flex-direction: row;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .product-image {
            position: relative;
            height: 250px;
            overflow: hidden;
            background: #f8f9fa;
        }

        .products-grid.list-view .product-image {
            width: 300px;
            height: auto;
        }

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

        .product-card:hover .product-image img {
            transform: scale(1.1);
        }

        .product-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #e74c3c;
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .product-badge.new {
            background: #3498db;
        }

        .product-badge.sale {
            background: #e74c3c;
        }

        .product-badge.popular {
            background: #f39c12;
        }

        .product-info {
            padding: 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .product-brand {
            color: #7f8c8d;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .product-name {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .product-description {
            font-size: 14px;
            color: #7f8c8d;
            margin-bottom: 15px;
            line-height: 1.6;
            flex: 1;
        }

        .product-price {
            font-size: 28px;
            font-weight: 700;
            color: #e74c3c;
            margin-bottom: 15px;
        }

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

        .btn-whatsapp {
            flex: 1;
            padding: 12px;
            background: #25d366;
            color: white;
            text-align: center;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-whatsapp:hover {
            background: #20b358;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 50px;
        }

        .pagination-btn {
            padding: 12px 20px;
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            color: #2c3e50;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
        }

        .pagination-btn:hover:not(.active):not(:disabled) {
            background: #f8f9fa;
            border-color: #bdc3c7;
        }

        .pagination-btn.active {
            background: #e74c3c;
            border-color: #e74c3c;
            color: white;
        }

        .pagination-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
        }

        .empty-state i {
            font-size: 80px;
            color: #e0e0e0;
            margin-bottom: 20px;
        }

        .empty-state h3 {
            font-size: 24px;
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .empty-state p {
            color: #7f8c8d;
        }

        /* WhatsApp Float */
        .whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: #25d366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 30px;
            box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
            z-index: 999;
            transition: 0.3s;
            text-decoration: none;
        }

        .whatsapp-float:hover {
            transform: scale(1.1);
        }

        /* Mobile Menu Toggle */
        .mobile-filter-toggle {
            display: none;
            width: 100%;
            padding: 15px;
            background: #e74c3c;
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            margin-bottom: 20px;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .catalog-layout {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: static;
                display: none;
            }

            .sidebar.active {
                display: block;
            }

            .mobile-filter-toggle {
                display: block;
            }

            .products-grid.list-view .product-card {
                flex-direction: column;
            }

            .products-grid.list-view .product-image {
                width: 100%;
                height: 250px;
            }

            .page-hero h1 {
                font-size: 32px;
            }
        }

        @media (max-width: 768px) {
            /* header-search responsive rules handled globally in style.css */

            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
                gap: 20px;
            }

            .price-presets {
                grid-template-columns: 1fr;
            }

            .view-toggle {
                display: none;
            }
        }

        /* Especificaciones adicionales */
        .specs-list {
            margin: 10px 0;
            font-size: 13px;
            color: #666;
        }

        .specs-list li {
            margin-bottom: 5px;
            list-style-type: none;
            padding-left: 15px;
            position: relative;
        }

        .specs-list li:before {
            content: "•";
            position: absolute;
            left: 0;
            color: #e74c3c;
        }

        .colors-info {
            font-size: 13px;
            color: #666;
            margin: 10px 0;
        }
          /* Override para catálogo */
        .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
        .section-padding { padding: 40px 20px; }

        /* Page Hero */
        .page-hero { background: linear-gradient(135deg, #1e5799 0%, #207cca 100%); color: white; padding: 80px 20px; text-align: center; }
        .page-hero h1 { font-size: 48px; margin-bottom: 15px; font-weight: 700; }
        .page-hero p { font-size: 18px; opacity: 0.9; margin-bottom: 25px; }

        /* Catalog Layout */
        .catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; margin-top: 40px; }
        
        /* Sidebar */
        .sidebar { position: sticky; top: 120px; height: fit-content; }
        .filter-section { background: white; border-radius: 15px; padding: 25px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        .filter-section h3 { font-size: 16px; color: #2c3e50; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
        
        .filter-group { display: flex; flex-direction: column; gap: 8px; }
        .filter-option { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; transition: 0.3s; }
        .filter-option:hover { background: #f8f9fa; }
        .filter-option input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #e74c3c; }
        .filter-option label { flex: 1; cursor: pointer; font-size: 14px; color: #555; }

        /* Price Filters */
        .price-range { display: flex; flex-direction: column; gap: 15px; }
        .price-inputs { display: flex; gap: 10px; }
        .price-inputs input { flex: 1; padding: 10px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; }
        .price-inputs input:focus { border-color: #e74c3c; outline: none; }
        
        .price-slider-container { position: relative; height: 40px; margin: 15px 0; }
        .price-slider-track { position: absolute; top: 50%; left: 0; right: 0; height: 6px; background: #e0e0e0; border-radius: 3px; transform: translateY(-50%); }
        .price-slider-fill { position: absolute; height: 6px; background: #e74c3c; border-radius: 3px; }
        .price-slider { position: absolute; top: 50%; width: 100%; height: 6px; margin: 0; transform: translateY(-50%); -webkit-appearance: none; background: transparent; pointer-events: none; z-index: 2; }
        .price-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #e74c3c; cursor: pointer; pointer-events: auto; border: 3px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
        
        .price-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 15px 0; }
        .price-preset { padding: 10px; background: #f8f9fa; border: 2px solid #e0e0e0; border-radius: 6px; text-align: center; cursor: pointer; font-weight: 500; font-size: 12px; transition: 0.3s; }
        .price-preset:hover { background: #f0f0f0; }
        .price-preset.active { background: #e74c3c; color: white; border-color: #e74c3c; }
        
        .price-display { font-size: 12px; color: #666; text-align: center; padding: 10px; background: #f8f9fa; border-radius: 6px; }
        
        .apply-filters-btn, .clear-filters-btn { width: 100%; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; border: none; font-size: 14px; transition: 0.3s; }
        .apply-filters-btn { background: #e74c3c; color: white; }
        .apply-filters-btn:hover { background: #c0392b; }
        .clear-filters-btn { background: #ecf0f1; color: #2c3e50; }
        .clear-filters-btn:hover { background: #d5dbdb; }

        /* Catalog Header */
        .catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
        .results-info { font-size: 16px; color: #7f8c8d; font-weight: 500; }
        
        .sort-options { display: flex; align-items: center; gap: 10px; }
        .sort-options label { font-weight: 600; font-size: 14px; }
        .sort-options select { padding: 10px 15px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; background: white; cursor: pointer; }
        
        .view-toggle { display: flex; gap: 10px; }
        .view-btn { padding: 10px 15px; background: #ecf0f1; border: none; border-radius: 8px; cursor: pointer; transition: 0.3s; color: #2c3e50; font-weight: 600; }
        .view-btn.active { background: #e74c3c; color: white; }

        /* Active Filters */
        .active-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
        .filter-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; background: #e74c3c; color: white; border-radius: 20px; font-size: 14px; }
        .filter-tag i { cursor: pointer; opacity: 0.8; }
        .filter-tag i:hover { opacity: 1; }

        /* Family Sections */
        .family-section { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); margin-bottom: 40px; transition: 0.3s; }
        .family-section:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

        .family-header { position: relative; height: 400px; overflow: hidden; background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%); }
        .family-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: white; }
        .family-image img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.3s; }
        .family-section:hover .family-image img { transform: scale(1.05); }

        .family-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 30px; }
        .family-name { font-size: 36px; font-weight: 700; margin-bottom: 10px; }
        .family-description { font-size: 16px; opacity: 0.9; line-height: 1.6; }

        .family-models { padding: 30px; }
        .models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }

        .model-card { background: #f8f9fa; border-radius: 10px; padding: 20px; transition: 0.3s; }
        .model-card:hover { background: #e9ecef; transform: translateY(-3px); }

        .model-name { font-size: 20px; font-weight: 600; color: #2c3e50; margin-bottom: 10px; }
        .model-price { font-size: 24px; font-weight: 700; color: #e74c3c; margin-bottom: 15px; }
        .model-specs { margin-bottom: 15px; list-style: none; padding: 0; }
        .model-specs li { margin-bottom: 8px; font-size: 13px; color: #555; padding-left: 15px; position: relative; }
        .model-specs li:before { content: "•"; position: absolute; left: 0; color: #e74c3c; }

        .family-actions { text-align: center; padding-top: 20px; border-top: 1px solid #e0e0e0; }
        .btn-whatsapp-large { display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; background: #25d366; color: white; text-decoration: none; border-radius: 10px; font-weight: 600; font-size: 16px; transition: 0.3s; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
        .btn-whatsapp-large:hover { background: #20b358; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }

        /* Empty State */
        .empty-state { text-align: center; padding: 80px 20px; }
        .empty-state i { font-size: 80px; color: #e0e0e0; margin-bottom: 20px; }
        .empty-state h3 { font-size: 24px; color: #2c3e50; margin-bottom: 10px; }
        .empty-state p { color: #7f8c8d; }

        /* Mobile Filter Toggle */
        .mobile-filter-toggle { display: none; width: 100%; padding: 15px; background: #e74c3c; color: white; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; margin-bottom: 20px; }

        /* Responsive */
        @media (max-width: 992px) {
            .catalog-layout { grid-template-columns: 1fr; }
            .sidebar { position: static; display: none; }
            .sidebar.active { display: block; }
            .mobile-filter-toggle { display: block; }
            .page-hero h1 { font-size: 36px; }
            .family-header { height: 300px; }
        }

        @media (max-width: 768px) {
            .catalog-header { flex-direction: column; align-items: flex-start; }
            .models-grid { grid-template-columns: 1fr; }
            .page-hero { padding: 60px 20px; }
            .page-hero h1 { font-size: 28px; }
        }

        /* Dark mode */
        :root.dark-mode .filter-section,
        :root.dark-mode .model-card {
            background: #2c3e50;
            color: #ecf0f1;
        }

        :root.dark-mode .filter-section h3,
        :root.dark-mode .model-name {
            color: #ecf0f1;
        }

        :root.dark-mode .filter-option label,
        :root.dark-mode .model-specs li {
            color: #bdc3c7;
        }

        :root.dark-mode .price-preset {
            background: #34495e;
            border-color: #555;
            color: #ecf0f1;
        }

        :root.dark-mode .price-preset.active {
            background: #e74c3c;
            border-color: #e74c3c;
        }