:root {
            --primary: #2c3e50;
            --secondary: #3498db;
            --success: #27ae60;
            --warning: #f39c12;
            --danger: #e74c3c;
            --light: #ecf0f1;
            --dark: #2c3e50;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
            /* background: #0032B9; */
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            padding-bottom: 50px;
        }

        .header {
            background: linear-gradient(135deg, var(--primary) 0%, #1a2530 100%);
            color: white;
            padding: 40px 0;
            margin-bottom: 40px;
            font-size: 1.6rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            text-align: center;
        }
        
        .container {
            max-width: 1400px;
        }
        
        .cart-icon-container {
            position: fixed;
            top: 200px;
            right: 20px;
            cursor: pointer;
            z-index: 1000;
            background: var(--success);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
            transition: all 0.3s ease;
        }

        .cart-icon-container:hover {
            background: #219653;
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
        }

        .cart-icon {
            position: relative;
            cursor: pointer;
            font-size: 1.5rem;
            color: white;
        }

        #contador {
            position: absolute;
            top: -8px;
            right: -8px;
            background-color: var(--danger);
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            font-weight: bold;
        }

        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }
        
        .plan-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border: 2px solid transparent;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .plan-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
            border-color: var(--secondary);
        }
        
        .plan-card.disabled {
            opacity: 0.7;
            filter: grayscale(0.3);
        }
        
        .plan-card.disabled:hover {
            transform: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            border-color: transparent;
        }
        
        .plan-header {
            background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
            color: white;
            padding: 25px;
            text-align: center;
            position: relative;
        }
        
        .plan-header.recomendado {
            background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
        }
        
        .plan-header h3 {
            margin: 0;
            font-size: 1.6rem;
            font-weight: 700;
        }
        
        .plan-header .subtitle {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-top: 5px;
        }
        
        .plan-price {
            margin-top: 20px;
        }
        
        .price-amount {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1;
        }
        
        .price-period {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .plan-body {
            padding: 25px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .plan-features {
            flex: 1;
            margin-bottom: 25px;
        }
        
        .feature-item {
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 0.95rem;
            line-height: 1.5;
        }
        
        .feature-item:last-child {
            border-bottom: none;
        }
        
        .feature-item strong {
            color: var(--primary);
            display: block;
            margin-bottom: 3px;
        }
        
        .plan-actions {
            margin-top: auto;
        }
        
        .btn-plan {
            width: 100%;
            padding: 14px;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .btn-plan-primary {
            background: linear-gradient(135deg, var(--success) 0%, #2ecc71 100%);
            color: white;
        }
        
        .btn-plan-primary:hover {
            background: linear-gradient(135deg, #219653 0%, #27ae60 100%);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
        }
        
        .btn-plan-secondary {
            background: #95a5a6;
            color: white;
            cursor: not-allowed;
        }
        
        .requisito-plan {
            font-size: 0.8rem;
            color: var(--danger);
            margin-top: 8px;
            text-align: center;
            font-style: italic;
        }
        
        .extras-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            height: 100%;
            display: flex;
            flex-direction: column;
            flex: 2;
        }
        
        .extras-header {
            background: linear-gradient(135deg, var(--success) 0%, #33465B 100%);
            color: white;
            padding: 25px;
            text-align: center;
        }
        
        .extras-header h3 {
            margin: 0;
            font-size: 1.6rem;
            font-weight: 700;
        }
        
        .extras-body {
            padding: 25px;
            flex: 1;
        }
        
        /* .extras-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        } */

        .extras-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 10px 15px;
            height: auto;
            max-height: 600px; 
            min-height: 3295px; 
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: var(--success) #f1f1f1;
        }

        .extras-list::-webkit-scrollbar {
            width: 8px;

        }

        .extras-list::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 10px;
            margin: 5px 0;
        }

        .extras-list::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, var(--success), #2c8c3d);
            border-radius: 10px;
            border: 2px solid #f8f9fa;
            min-height: 15% !important;
        }

        .extras-list::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(to bottom, #2c8c3d, #1e6b2d);
        }


        .extras-list {
            mask-image: linear-gradient(
                to bottom,
                transparent,
                black 20px,
                black calc(100% - 20px),
                transparent
            );
        }
        
        .extra-item {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
            width: 100%;
            min-width: 0;
        }
        
        .extra-item:hover {
            background: #f0f3f5;
            transform: translateX(5px);
        }
        
        .extra-info {
            flex: 1;
        }
        
        .extra-name {
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 5px;
        }
        
        .extra-type {
            font-size: 0.8rem;
            color: #7f8c8d;
        }
        
        .extra-price {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--success);
            margin: 0 12px;
            text-align: right; 
        }
        
        .btn-extra {
            background: #3498db;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 8px 12px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .btn-extra:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }
        
        .btn-extra:disabled {
            background: #95a5a6;
            cursor: not-allowed;
            transform: none;
        }
        
        /* Sidebar del carrito */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 380px;
            height: 100%;
            background-color: white;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            transition: right 0.4s ease;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            border-left: 5px solid var(--success);
        }
        
        .cart-sidebar.active {
            right: 0;
        }
        
        .cart-header {
            display: flex;
            align-items: center;        
            justify-content: space-between; 
            padding: 20px;
            border-bottom: 1px solid #c4c4c4;
            background-color: var(--primary);
            color: white;
        }
        
        .cart-header h3 {
            margin: 0;
            font-size: 1.4rem;
        }
        
        .cart-items {
            flex: 1;               
            overflow-y: auto;      
            padding: 20px;
        }
        
        .cart-item {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            border-left: 4px solid var(--success);
        }
        
        .cart-item.extra {
            border-left-color: var(--warning);
        }
        
        .cart-item h5 {
            margin: 0 0 10px 0;
            color: var(--primary);
            font-size: 1.1rem;
        }
        
        .cart-item-details {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .cart-item-price {
            font-size: 0.9rem;
            color: #7f8c8d;
        }
        
        .cart-item-subtotal {
            font-weight: bold;
            color: var(--success);
        }
        
        .remove-item {
            background-color: var(--danger);
            color: white;
            border: none;
            border-radius: 4px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }
        
        .remove-item:hover {
            background-color: #c0392b;
        }
        
        .cart-footer {
            padding: 20px;
            border-top: 1px solid #eee;
            background-color: #f9f9fa;
        }
        
        .cart-total {
            display: flex;
            justify-content: space-between;
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--primary);
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            display: none;
        }
        
        .overlay.active {
            display: block;
        }
        
        .empty-cart-message {
            text-align: center;
            padding: 3rem 1rem;
            color: #7f8c8d;
        }
        
        .empty-cart-message i {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            color: #bdc3c7;
        }
        
        .empty-cart-message p {
            font-size: 1.1rem;
        }
        
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background-color: #304559;
            color: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1100;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.1s ease;
            max-width: 350px;
        }
        
        .notification.error {
            background-color: var(--danger);
        }
        
        .notification.warning {
            background-color: var(--warning);
        }
        
        .notification.info {
            background-color: var(--secondary);
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        /* Botones del carrito */
        .btn2 {
            background-color: var(--secondary);
            color: white;
            border-radius: 8px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            padding: 12px;
            transition: all 0.3s ease;
            width: 100%;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .btn2:hover {
            opacity: 0.9;
            transform: translateY(-2px);
        }
        
        .btn2.btn-secondary {
            background-color: #95a5a6;
        }
        
        .btn2.btn-primary {
            background: linear-gradient(135deg, var(--success) 0%, #2ecc71 100%);
        }
        
        @media (max-width: 768px) {
            .cards-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .cart-sidebar {
                width: 100%;
                right: -100%;
            }
            
            .cart-icon-container {
                top: 15px;
                right: 15px;
                width: 50px;
                height: 50px;
            }
            
            .plan-card, .extras-card {
                margin-bottom: 20px;
            }
        }
        
        @media (min-width: 1200px) {
            .cards-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .container {
            display: flex;
            gap: 30px;
            padding: 20px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section {
            flex: 1;
            min-width: 0;
        }

        #foliosContainer {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            align-content: start;
        }

        .folio-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border: 1px solid #e0e0e0;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .folio-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }

        .folio-card.disabled {
            opacity: 0.7;
            pointer-events: none;
        }

        .folio-header {
            padding: 20px;
            text-align: center;
            background: linear-gradient(135deg, #33475A 0%, #33465B 100%) ;
            color: white;
        }

        .folio-header h3 {
            /* margin: 0 0 5px 0; */
            font-size: 2.5rem;
            font-weight: 600;
        }

        /* .folio-header .subtitle {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 15px;
            min-height: 40px;
        } */

        .folio-price {
            margin-top: 10px;
        }

        .folio-price .price-amount {
            font-size: 1.8rem;
            font-weight: 700;
            line-height: 1;
        }

        .folio-price .price-period {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-top: 5px;
        }

        .folio-body {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .folio-details {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.5;
            margin-bottom: 20px;
            flex-grow: 1;
        }
        .folio-actions {
            margin-top: auto;
        }

        .btn-folio {
            width: 100%;
            padding: 12px 20px;
            background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-folio:hover:not(:disabled) {
            background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
            transform: translateY(-2px);
        }

        .btn-folio:disabled {
            background: #cccccc;
            cursor: not-allowed;
            transform: none;
        }

        .btn-folio i {
            font-size: 1.1rem;
        }

        .requisito-plan {
            text-align: center;
            color: var(--danger);
            font-size: 0.85rem;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .requisito-plan i {
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .container {
                flex-direction: column;
            }
            
            #foliosContainer {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }

        @media (max-width: 768px) {
            #foliosContainer {
                grid-template-columns: 1fr;
            }
            
            .folio-header {
                padding: 15px;
            }
            
            .folio-body {
                padding: 15px;
            }
        }

        